]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
c6b750e1 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
c6b750e1 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
c6b750e1
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
b121d7d4 604READELF_FOR_TARGET
81ecdfbb
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
6b91c541 607OBJCOPY_FOR_TARGET
81ecdfbb
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
e552509b 614GOC_FOR_TARGET
81ecdfbb 615GFORTRAN_FOR_TARGET
81ecdfbb
RW
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
b121d7d4 619READELF
81ecdfbb
RW
620OBJDUMP
621OBJCOPY
622WINDMC
623WINDRES
624STRIP
625RANLIB
626NM
627LIPO
628LD
629DLLTOOL
630AS
631AR
632RUNTEST
633EXPECT
634MAKEINFO
635FLEX
636LEX
637M4
638BISON
639YACC
81ecdfbb
RW
640WINDRES_FOR_BUILD
641WINDMC_FOR_BUILD
642RANLIB_FOR_BUILD
643NM_FOR_BUILD
644LD_FOR_BUILD
645LDFLAGS_FOR_BUILD
e552509b 646GOC_FOR_BUILD
81ecdfbb 647GFORTRAN_FOR_BUILD
81ecdfbb
RW
648DLLTOOL_FOR_BUILD
649CXX_FOR_BUILD
650CXXFLAGS_FOR_BUILD
651CFLAGS_FOR_BUILD
652CC_FOR_BUILD
653AS_FOR_BUILD
654AR_FOR_BUILD
911e63d0 655target_configdirs
81ecdfbb 656configdirs
81ecdfbb 657build_configdirs
81ecdfbb
RW
658INSTALL_GDB_TK
659GDB_TK
660CONFIGURE_GDB_TK
661build_tooldir
662tooldir
663GCC_SHLIB_SUBDIR
664RPATH_ENVVAR
4074d5f2
RW
665target_configargs
666host_configargs
667build_configargs
96655cc4 668BUILD_CONFIG
91c1f14c 669LDFLAGS_FOR_TARGET
81ecdfbb
RW
670CXXFLAGS_FOR_TARGET
671CFLAGS_FOR_TARGET
672DEBUG_PREFIX_CFLAGS_FOR_TARGET
673SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 674get_gcc_base_ver
e81d5d05 675extra_host_zlib_configure_flags
700d40ca 676extra_host_libiberty_configure_flags
1b6c0831 677stage1_languages
bf41f30d 678host_shared
1b6c0831
L
679extra_linker_plugin_flags
680extra_linker_plugin_configure_flags
7ec59b9e 681islinc
1b6c0831 682isllibs
81ecdfbb 683poststage1_ldflags
143754cd 684poststage1_libs
81ecdfbb 685stage1_ldflags
b3676d82 686stage1_libs
7ec59b9e 687extra_isl_gmp_configure_flags
81ecdfbb
RW
688extra_mpc_mpfr_configure_flags
689extra_mpc_gmp_configure_flags
690extra_mpfr_configure_flags
691gmpinc
692gmplibs
301a9420 693LIBDEBUGINFOD
81ecdfbb
RW
694do_compare
695GNATMAKE
696GNATBIND
697ac_ct_CXX
698CXXFLAGS
699CXX
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
1b6c0831 707extra_liboffloadmic_configure_flags
81ecdfbb
RW
708target_subdir
709host_subdir
710build_subdir
711build_libsubdir
8e957354
PB
712AWK
713SED
81ecdfbb
RW
714LN_S
715LN
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727target_noncanonical
728host_noncanonical
729build_noncanonical
730build_os
731build_vendor
732build_cpu
733build
734TOPLEVEL_CONFIGURE_ARGUMENTS
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files='serialization_dependencies
774host_makefile_frag
775target_makefile_frag
776alphaieee_frag
777ospace_frag'
778ac_user_opts='
779enable_option_checking
780with_build_libsubdir
cf39cfc5 781with_system_zlib
1b6c0831
L
782enable_as_accelerator_for
783enable_offload_targets
81ecdfbb 784enable_gold
c7791212 785enable_ld
edeefb67 786enable_compressed_debug_sections
89a1e9c3
PB
787enable_libquadmath
788enable_libquadmath_support
81ecdfbb
RW
789enable_libada
790enable_libssp
f66a9a70 791enable_libstdcxx
1b6c0831 792enable_liboffloadmic
ffdd6afc 793enable_bootstrap
301a9420 794with_debuginfod
81ecdfbb
RW
795with_mpc
796with_mpc_include
797with_mpc_lib
798with_mpfr_dir
799with_mpfr
800with_mpfr_include
801with_mpfr_lib
802with_gmp_dir
803with_gmp
804with_gmp_include
805with_gmp_lib
81ecdfbb 806with_stage1_libs
c1a5d03a 807with_static_standard_libraries
b3676d82 808with_stage1_ldflags
81ecdfbb 809with_boot_libs
143754cd 810with_boot_ldflags
7ec59b9e
L
811with_isl
812with_isl_include
813with_isl_lib
814enable_isl_version_check
700d40ca 815enable_lto
1b6c0831
L
816enable_linker_plugin_configure_flags
817enable_linker_plugin_flags
bf41f30d 818enable_host_shared
81ecdfbb
RW
819enable_stage1_languages
820enable_objc_gc
05a13254
NC
821with_target_bdw_gc
822with_target_bdw_gc_include
823with_target_bdw_gc_lib
bf41f30d 824with_gcc_major_version_only
81ecdfbb
RW
825with_build_sysroot
826with_debug_prefix_map
96655cc4 827with_build_config
730af8ee 828enable_vtable_verify
81ecdfbb
RW
829enable_serial_configure
830with_build_time_tools
831enable_maintainer_mode
832enable_stage1_checking
833enable_werror
81ecdfbb
RW
834'
835 ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843CXX
844CXXFLAGS
845CCC
4074d5f2
RW
846build_configargs
847host_configargs
848target_configargs
81ecdfbb
RW
849AR
850AS
851DLLTOOL
852LD
853LIPO
854NM
855RANLIB
856STRIP
857WINDRES
858WINDMC
859OBJCOPY
860OBJDUMP
b121d7d4 861READELF
81ecdfbb
RW
862CC_FOR_TARGET
863CXX_FOR_TARGET
864GCC_FOR_TARGET
81ecdfbb 865GFORTRAN_FOR_TARGET
e552509b 866GOC_FOR_TARGET
81ecdfbb
RW
867AR_FOR_TARGET
868AS_FOR_TARGET
869DLLTOOL_FOR_TARGET
870LD_FOR_TARGET
871LIPO_FOR_TARGET
872NM_FOR_TARGET
6b91c541 873OBJCOPY_FOR_TARGET
81ecdfbb
RW
874OBJDUMP_FOR_TARGET
875RANLIB_FOR_TARGET
b121d7d4 876READELF_FOR_TARGET
81ecdfbb
RW
877STRIP_FOR_TARGET
878WINDRES_FOR_TARGET
879WINDMC_FOR_TARGET'
880
a0da8069
NN
881
882# Initialize some variables set by options.
c6b750e1
DJ
883ac_init_help=
884ac_init_version=false
81ecdfbb
RW
885ac_unrecognized_opts=
886ac_unrecognized_sep=
a0da8069
NN
887# The variables have the same names as the options, with
888# dashes changed to underlines.
c6b750e1 889cache_file=/dev/null
a0da8069 890exec_prefix=NONE
a0da8069 891no_create=
a0da8069
NN
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
a0da8069
NN
900verbose=
901x_includes=NONE
902x_libraries=NONE
c6b750e1
DJ
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 909# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
a0da8069
NN
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
a0da8069
NN
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
81ecdfbb
RW
920docdir='${datarootdir}/doc/${PACKAGE}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
252b5132 929
a0da8069 930ac_prev=
81ecdfbb 931ac_dashdash=
a0da8069
NN
932for ac_option
933do
a0da8069
NN
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
81ecdfbb 936 eval $ac_prev=\$ac_option
a0da8069
NN
937 ac_prev=
938 continue
939 fi
252b5132 940
81ecdfbb 941 case $ac_option in
d0ac1c44
SM
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
81ecdfbb 945 esac
a0da8069
NN
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
81ecdfbb
RW
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
a0da8069
NN
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 956 bindir=$ac_optarg ;;
a0da8069
NN
957
958 -build | --build | --buil | --bui | --bu)
c6b750e1 959 ac_prev=build_alias ;;
a0da8069 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 961 build_alias=$ac_optarg ;;
a0da8069
NN
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
a0da8069 972
81ecdfbb 973 -datadir | --datadir | --datadi | --datad)
a0da8069 974 ac_prev=datadir ;;
81ecdfbb 975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 976 datadir=$ac_optarg ;;
a0da8069 977
81ecdfbb
RW
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
a0da8069 985 -disable-* | --disable-*)
81ecdfbb 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 987 # Reject names that are not valid shell variable names.
81ecdfbb 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 989 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"enable_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
a0da8069
NN
1010
1011 -enable-* | --enable-*)
81ecdfbb 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1013 # Reject names that are not valid shell variable names.
81ecdfbb 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1015 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
a0da8069 1024 esac
81ecdfbb 1025 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
c6b750e1 1034 exec_prefix=$ac_optarg ;;
a0da8069
NN
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
c6b750e1
DJ
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
a0da8069
NN
1046
1047 -host | --host | --hos | --ho)
c6b750e1 1048 ac_prev=host_alias ;;
a0da8069 1049 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1050 host_alias=$ac_optarg ;;
a0da8069 1051
81ecdfbb
RW
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
a0da8069
NN
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1063 includedir=$ac_optarg ;;
a0da8069
NN
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1068 infodir=$ac_optarg ;;
a0da8069
NN
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1073 libdir=$ac_optarg ;;
a0da8069
NN
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1080 libexecdir=$ac_optarg ;;
a0da8069 1081
81ecdfbb
RW
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
a0da8069 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1088 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1092 localstatedir=$ac_optarg ;;
a0da8069
NN
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1097 mandir=$ac_optarg ;;
a0da8069
NN
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1104 | --no-cr | --no-c | -n)
a0da8069
NN
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1118 oldincludedir=$ac_optarg ;;
a0da8069
NN
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1123 prefix=$ac_optarg ;;
a0da8069
NN
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1130 program_prefix=$ac_optarg ;;
a0da8069
NN
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1137 program_suffix=$ac_optarg ;;
a0da8069
NN
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1154 program_transform_name=$ac_optarg ;;
a0da8069 1155
81ecdfbb
RW
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
a0da8069
NN
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
c6b750e1 1174 sbindir=$ac_optarg ;;
a0da8069
NN
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
c6b750e1 1185 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
c6b750e1 1190 site=$ac_optarg ;;
a0da8069
NN
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1195 srcdir=$ac_optarg ;;
a0da8069
NN
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1202 sysconfdir=$ac_optarg ;;
a0da8069
NN
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1205 ac_prev=target_alias ;;
a0da8069 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1207 target_alias=$ac_optarg ;;
a0da8069
NN
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
c6b750e1
DJ
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
a0da8069
NN
1214
1215 -with-* | --with-*)
81ecdfbb 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1217 # Reject names that are not valid shell variable names.
81ecdfbb 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1219 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
a0da8069 1228 esac
81ecdfbb 1229 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1230
1231 -without-* | --without-*)
81ecdfbb 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1233 # Reject names that are not valid shell variable names.
81ecdfbb 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1235 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240"with_$ac_useropt"
1241"*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
a0da8069
NN
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1256 x_includes=$ac_optarg ;;
a0da8069
NN
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1263 x_libraries=$ac_optarg ;;
a0da8069 1264
d0ac1c44
SM
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266Try \`$0 --help' for more information"
a0da8069
NN
1267 ;;
1268
c6b750e1
DJ
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1275 esac
1276 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1277 export $ac_envvar ;;
1278
a0da8069 1279 *)
c6b750e1 1280 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1285 ;;
1286
1287 esac
1288done
1289
1290if test -n "$ac_prev"; then
c6b750e1 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1292 as_fn_error $? "missing argument to $ac_option"
a0da8069 1293fi
a0da8069 1294
81ecdfbb
RW
1295if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
d0ac1c44 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1300 esac
81ecdfbb 1301fi
a0da8069 1302
81ecdfbb
RW
1303# Check all directory arguments for consistency.
1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
a0da8069 1308do
81ecdfbb
RW
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
c6b750e1 1317 case $ac_val in
81ecdfbb
RW
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1320 esac
d0ac1c44 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1322done
1323
c6b750e1
DJ
1324# There might be people who depend on the old broken behavior: `$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
376a0e54 1330
c6b750e1
DJ
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
c6b750e1
DJ
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
a0da8069 1344
a0da8069 1345
81ecdfbb
RW
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1349 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1351 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1352
1353
a0da8069
NN
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
81ecdfbb
RW
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
a0da8069 1381 srcdir=$ac_confdir
81ecdfbb 1382 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
81ecdfbb
RW
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1391fi
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
d0ac1c44 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
6d0cd39e
AM
1406case $srcdir in
1407 *" "*)
d0ac1c44 1408 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1409 ;;
1410esac
9cc8ae67
PB
1411ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1412
81ecdfbb
RW
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
c6b750e1
DJ
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427\`configure' configures this package to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
d0ac1c44 1441 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
c6b750e1
DJ
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1449 [$ac_default_prefix]
c6b750e1 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1451 [PREFIX]
c6b750e1
DJ
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
81ecdfbb
RW
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1480_ACEOF
1481
1482 cat <<\_ACEOF
1483
1484Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493_ACEOF
a0da8069 1494fi
a0da8069 1495
c6b750e1
DJ
1496if test -n "$ac_init_help"; then
1497
1498 cat <<\_ACEOF
1499
1500Optional Features:
81ecdfbb 1501 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1506 host triple by ARG
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET[=DIR]. Use optional path to find
1510 offload target compiler during the build
c7791212 1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1513 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1514 Enable compressed debug sections for gas, gold or ld
1515 by default
89a1e9c3
PB
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support for Fortran
521ec477
DD
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
f66a9a70 1521 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1524 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1525 --disable-isl-version-check
4849dfd8 1526 disable check for isl version
700d40ca 1527 --enable-lto enable link time optimization support
1b6c0831
L
1528 --enable-linker-plugin-configure-flags=FLAGS
1529 additional flags for configuring linker plugins
1530 [none]
1531 --enable-linker-plugin-flags=FLAGS
1532 additional flags for configuring and building linker
1533 plugins [none]
bf41f30d 1534 --enable-host-shared build host code as shared libraries
7837304f
AS
1535 --enable-stage1-languages[=all]
1536 choose additional languages to build during stage1.
1537 Mostly useful for compiler development
1538 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1539 Objective-C runtime
ce6c656d 1540 --enable-vtable-verify Enable vtable verification feature
521ec477 1541 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1542 force sequential configuration of sub-packages for
1543 the host, target or build machine, or all
1544 sub-packages
1545 --enable-maintainer-mode
1546 enable make rules and dependencies not useful (and
1547 sometimes confusing) to the casual installer
1548 --enable-stage1-checking[=all]
1549 choose additional checking for stage1 of the
1550 compiler
c6b750e1
DJ
1551 --enable-werror enable -Werror in bootstrap stage2 and later
1552
1553Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1557 --with-system-zlib use installed libz
301a9420
AM
1558 --with-debuginfod Enable debuginfo lookups with debuginfod
1559 (auto/yes/no)
7837304f
AS
1560 --with-mpc=PATH specify prefix directory for installed MPC package.
1561 Equivalent to --with-mpc-include=PATH/include plus
1562 --with-mpc-lib=PATH/lib
1563 --with-mpc-include=PATH specify directory for installed MPC include files
1564 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1565 --with-mpfr-dir=PATH this option has been REMOVED
1566 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1567 Equivalent to --with-mpfr-include=PATH/include plus
1568 --with-mpfr-lib=PATH/lib
c6b750e1 1569 --with-mpfr-include=PATH
521ec477
DD
1570 specify directory for installed MPFR include files
1571 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1572 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1573 --with-gmp=PATH specify prefix directory for the installed GMP
1574 package. Equivalent to
1575 --with-gmp-include=PATH/include plus
1576 --with-gmp-lib=PATH/lib
521ec477
DD
1577 --with-gmp-include=PATH specify directory for installed GMP include files
1578 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1579 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1580 --with-static-standard-libraries
1581 use -static-libstdc++ and -static-libgcc
1582 (default=auto)
7837304f
AS
1583 --with-stage1-ldflags=FLAGS
1584 linker flags for stage1
7837304f
AS
1585 --with-boot-libs=LIBS libraries for stage2 and later
1586 --with-boot-ldflags=FLAGS
1587 linker flags for stage2 and later
4849dfd8 1588 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1589 package. Equivalent to
7ec59b9e
L
1590 --with-isl-include=PATH/include plus
1591 --with-isl-lib=PATH/lib
4849dfd8
NC
1592 --with-isl-include=PATH Specify directory for installed isl include files
1593 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1594 --with-target-bdw-gc=PATHLIST
1595 specify prefix directory for installed bdw-gc
1596 package. Equivalent to
1597 --with-target-bdw-gc-include=PATH/include plus
1598 --with-target-bdw-gc-lib=PATH/lib
1599 --with-target-bdw-gc-include=PATHLIST
1600 specify directories for installed bdw-gc include
1601 files
1602 --with-target-bdw-gc-lib=PATHLIST
1603 specify directories for installed bdw-gc library
bf41f30d
NC
1604 --with-gcc-major-version-only
1605 use only GCC major number in filesystem paths
521ec477 1606 --with-build-sysroot=SYSROOT
c6b750e1 1607 use sysroot as the system root during the build
8a6ee3ab 1608 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1609 map A to B, C to D ... in debug information
1610 --with-build-config='NAME NAME2...'
1611 use config/NAME.mk build configuration
521ec477 1612 --with-build-time-tools=PATH
c6b750e1 1613 use given path to find target tools during the build
c6b750e1
DJ
1614
1615Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
81ecdfbb 1620 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1622 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
4074d5f2
RW
1625 build_configargs
1626 additional configure arguments for build directories
1627 host_configargs
1628 additional configure arguments for host directories
1629 target_configargs
1630 additional configure arguments for target directories
9a819804
AO
1631 AR AR for the host
1632 AS AS for the host
1633 DLLTOOL DLLTOOL for the host
1634 LD LD for the host
1635 LIPO LIPO for the host
1636 NM NM for the host
1637 RANLIB RANLIB for the host
1638 STRIP STRIP for the host
1639 WINDRES WINDRES for the host
0c24b341 1640 WINDMC WINDMC for the host
9a819804
AO
1641 OBJCOPY OBJCOPY for the host
1642 OBJDUMP OBJDUMP for the host
b121d7d4 1643 READELF READELF for the host
9a819804
AO
1644 CC_FOR_TARGET
1645 CC for the target
1646 CXX_FOR_TARGET
1647 CXX for the target
1648 GCC_FOR_TARGET
1649 GCC for the target
9a819804
AO
1650 GFORTRAN_FOR_TARGET
1651 GFORTRAN for the target
e552509b
ILT
1652 GOC_FOR_TARGET
1653 GOC for the target
9a819804
AO
1654 AR_FOR_TARGET
1655 AR for the target
1656 AS_FOR_TARGET
1657 AS for the target
1658 DLLTOOL_FOR_TARGET
1659 DLLTOOL for the target
1660 LD_FOR_TARGET
1661 LD for the target
1662 LIPO_FOR_TARGET
1663 LIPO for the target
1664 NM_FOR_TARGET
1665 NM for the target
6b91c541
AP
1666 OBJCOPY_FOR_TARGET
1667 OBJCOPY for the target
9a819804
AO
1668 OBJDUMP_FOR_TARGET
1669 OBJDUMP for the target
1670 RANLIB_FOR_TARGET
1671 RANLIB for the target
b121d7d4
DD
1672 READELF_FOR_TARGET
1673 READELF for the target
9a819804
AO
1674 STRIP_FOR_TARGET
1675 STRIP for the target
1676 WINDRES_FOR_TARGET
1677 WINDRES for the target
0c24b341
NC
1678 WINDMC_FOR_TARGET
1679 WINDMC for the target
c6b750e1
DJ
1680
1681Use these variables to override the choices made by `configure' or to help
1682it to find libraries and programs with nonstandard names/locations.
1683
81ecdfbb 1684Report bugs to the package provider.
c6b750e1 1685_ACEOF
81ecdfbb 1686ac_status=$?
c6b750e1
DJ
1687fi
1688
1689if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
c6b750e1 1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
c6b750e1
DJ
1695 ac_builddir=.
1696
81ecdfbb
RW
1697case "$ac_dir" in
1698.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699*)
1700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707esac
1708ac_abs_top_builddir=$ac_pwd
1709ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710# for backward compatibility:
1711ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1712
1713case $srcdir in
81ecdfbb 1714 .) # We are building in place.
c6b750e1 1715 ac_srcdir=.
81ecdfbb
RW
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1719 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1726esac
81ecdfbb
RW
1727ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1737 else
81ecdfbb
RW
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 fi || ac_status=$?
1740 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1741 done
1742fi
1743
81ecdfbb 1744test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1745if $ac_init_version; then
1746 cat <<\_ACEOF
81ecdfbb 1747configure
d0ac1c44 1748generated by GNU Autoconf 2.69
c6b750e1 1749
d0ac1c44 1750Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1751This configure script is free software; the Free Software Foundation
1752gives unlimited permission to copy, distribute and modify it.
1753_ACEOF
81ecdfbb 1754 exit
c6b750e1 1755fi
81ecdfbb
RW
1756
1757## ------------------------ ##
1758## Autoconf initialization. ##
1759## ------------------------ ##
1760
1761# ac_fn_c_try_compile LINENO
1762# --------------------------
1763# Try to compile conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793fi
d0ac1c44
SM
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
81ecdfbb
RW
1796
1797} # ac_fn_c_try_compile
1798
1799# ac_fn_cxx_try_compile LINENO
1800# ----------------------------
1801# Try to compile conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_cxx_try_compile ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
d0ac1c44
SM
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
81ecdfbb
RW
1834
1835} # ac_fn_cxx_try_compile
1836
b3676d82
EB
1837# ac_fn_cxx_try_link LINENO
1838# -------------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_cxx_try_link ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
d0ac1c44 1864 test -x conftest$ac_exeext
b3676d82
EB
1865 }; then :
1866 ac_retval=0
1867else
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872fi
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
b3676d82
EB
1880
1881} # ac_fn_cxx_try_link
1882
81ecdfbb
RW
1883# ac_fn_c_try_link LINENO
1884# -----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_c_try_link ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
d0ac1c44 1910 test -x conftest$ac_exeext
81ecdfbb
RW
1911 }; then :
1912 ac_retval=0
1913else
1914 $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918fi
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
81ecdfbb
RW
1926
1927} # ac_fn_c_try_link
301a9420
AM
1928
1929# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930# ---------------------------------------------
1931# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1932# accordingly.
1933ac_fn_c_check_decl ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 as_decl_name=`echo $2|sed 's/ *(.*//'`
1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949#ifndef $as_decl_name
1950#ifdef __cplusplus
1951 (void) $as_decl_use;
1952#else
1953 (void) $as_decl_name;
1954#endif
1955#endif
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$3=yes"
1963else
1964 eval "$3=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_decl
81ecdfbb 1974cat >config.log <<_ACEOF
c6b750e1
DJ
1975This file contains any messages produced by compilers while
1976running configure, to aid debugging if configure makes a mistake.
1977
1978It was created by $as_me, which was
d0ac1c44 1979generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1980
1981 $ $0 $@
1982
1983_ACEOF
81ecdfbb 1984exec 5>>config.log
c6b750e1
DJ
1985{
1986cat <<_ASUNAME
1987## --------- ##
1988## Platform. ##
1989## --------- ##
1990
1991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995uname -v = `(uname -v) 2>/dev/null || echo unknown`
1996
1997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1999
2000/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2003/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
2004/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007
2008_ASUNAME
2009
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2015 $as_echo "PATH: $as_dir"
2016 done
2017IFS=$as_save_IFS
c6b750e1
DJ
2018
2019} >&5
2020
2021cat >&5 <<_ACEOF
2022
2023
2024## ----------- ##
2025## Core tests. ##
2026## ----------- ##
2027
2028_ACEOF
2029
2030
2031# Keep a trace of the command line.
2032# Strip out --no-create and --no-recursion so they do not pile up.
2033# Strip out --silent because we don't want to record it for future runs.
2034# Also quote any args containing shell meta-characters.
2035# Make two passes to allow for proper duplicate-argument suppression.
2036ac_configure_args=
2037ac_configure_args0=
2038ac_configure_args1=
c6b750e1
DJ
2039ac_must_keep_next=false
2040for ac_pass in 1 2
2041do
2042 for ac_arg
2043 do
2044 case $ac_arg in
2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2047 | -silent | --silent | --silen | --sile | --sil)
2048 continue ;;
81ecdfbb
RW
2049 *\'*)
2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2051 esac
2052 case $ac_pass in
81ecdfbb 2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2054 2)
81ecdfbb 2055 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2056 if test $ac_must_keep_next = true; then
2057 ac_must_keep_next=false # Got value, back to normal.
2058 else
2059 case $ac_arg in
2060 *=* | --config-cache | -C | -disable-* | --disable-* \
2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2063 | -with-* | --with-* | -without-* | --without-* | --x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 esac
2067 ;;
2068 -* ) ac_must_keep_next=true ;;
2069 esac
2070 fi
81ecdfbb 2071 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2072 ;;
2073 esac
2074 done
2075done
81ecdfbb
RW
2076{ ac_configure_args0=; unset ac_configure_args0;}
2077{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2078
2079# When interrupted or exit'd, cleanup temporary files, and complete
2080# config.log. We remove comments because anyway the quotes in there
2081# would cause problems or look ugly.
81ecdfbb
RW
2082# WARNING: Use '\'' to represent an apostrophe within the trap.
2083# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2084trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2086 {
2087 echo
2088
d0ac1c44 2089 $as_echo "## ---------------- ##
c6b750e1 2090## Cache variables. ##
d0ac1c44 2091## ---------------- ##"
c6b750e1
DJ
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2094(
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
c6b750e1 2110 (set) 2>&1 |
81ecdfbb
RW
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
c6b750e1 2113 sed -n \
81ecdfbb
RW
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
c6b750e1 2117 *)
81ecdfbb 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2119 ;;
81ecdfbb
RW
2120 esac |
2121 sort
2122)
c6b750e1
DJ
2123 echo
2124
d0ac1c44 2125 $as_echo "## ----------------- ##
c6b750e1 2126## Output variables. ##
d0ac1c44 2127## ----------------- ##"
c6b750e1
DJ
2128 echo
2129 for ac_var in $ac_subst_vars
2130 do
81ecdfbb
RW
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2136 done | sort
2137 echo
2138
2139 if test -n "$ac_subst_files"; then
d0ac1c44 2140 $as_echo "## ------------------- ##
81ecdfbb 2141## File substitutions. ##
d0ac1c44 2142## ------------------- ##"
c6b750e1
DJ
2143 echo
2144 for ac_var in $ac_subst_files
2145 do
81ecdfbb
RW
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2151 done | sort
2152 echo
2153 fi
2154
2155 if test -s confdefs.h; then
d0ac1c44 2156 $as_echo "## ----------- ##
c6b750e1 2157## confdefs.h. ##
d0ac1c44 2158## ----------- ##"
c6b750e1 2159 echo
81ecdfbb 2160 cat confdefs.h
c6b750e1
DJ
2161 echo
2162 fi
2163 test "$ac_signal" != 0 &&
81ecdfbb
RW
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
c6b750e1 2166 } >&5
81ecdfbb
RW
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2169 exit $exit_status
81ecdfbb 2170' 0
c6b750e1 2171for ac_signal in 1 2 13 15; do
81ecdfbb 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2173done
2174ac_signal=0
2175
2176# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2177rm -f -r conftest* confdefs.h
2178
2179$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2180
2181# Predefined preprocessor variables.
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_NAME "$PACKAGE_NAME"
2185_ACEOF
2186
c6b750e1
DJ
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189_ACEOF
2190
c6b750e1
DJ
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_VERSION "$PACKAGE_VERSION"
2193_ACEOF
2194
c6b750e1
DJ
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_STRING "$PACKAGE_STRING"
2197_ACEOF
2198
c6b750e1
DJ
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201_ACEOF
2202
81ecdfbb
RW
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_URL "$PACKAGE_URL"
2205_ACEOF
2206
c6b750e1
DJ
2207
2208# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2209# Prefer an explicitly selected file to automatically selected ones.
2210ac_site_file1=NONE
2211ac_site_file2=NONE
2212if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2213 # We do not want a PATH search for config.site.
2214 case $CONFIG_SITE in #((
2215 -*) ac_site_file1=./$CONFIG_SITE;;
2216 */*) ac_site_file1=$CONFIG_SITE;;
2217 *) ac_site_file1=./$CONFIG_SITE;;
2218 esac
81ecdfbb
RW
2219elif test "x$prefix" != xNONE; then
2220 ac_site_file1=$prefix/share/config.site
2221 ac_site_file2=$prefix/etc/config.site
2222else
2223 ac_site_file1=$ac_default_prefix/share/config.site
2224 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2225fi
81ecdfbb
RW
2226for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2227do
2228 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2232 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2233 . "$ac_site_file" \
2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236as_fn_error $? "failed to load site script $ac_site_file
2237See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2238 fi
2239done
2240
2241if test -r "$cache_file"; then
d0ac1c44
SM
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2247 case $cache_file in
81ecdfbb
RW
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
c6b750e1
DJ
2250 esac
2251 fi
a0da8069 2252else
81ecdfbb
RW
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2255 >$cache_file
2256fi
2257
2258# Check that the precious variables saved in the cache have kept the same
2259# value.
2260ac_cache_corrupted=false
81ecdfbb 2261for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2266 case $ac_old_set,$ac_new_set in
2267 set,)
81ecdfbb
RW
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2270 ac_cache_corrupted=: ;;
2271 ,set)
81ecdfbb
RW
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2274 ac_cache_corrupted=: ;;
2275 ,);;
2276 *)
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x $ac_old_val`
2280 ac_new_val_w=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted=:
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2294 fi;;
2295 esac
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2298 case $ac_new_val in
81ecdfbb 2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2301 esac
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2305 esac
2306 fi
2307done
2308if $ac_cache_corrupted; then
81ecdfbb
RW
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2314fi
81ecdfbb
RW
2315## -------------------- ##
2316## Main body of script. ##
2317## -------------------- ##
a0da8069
NN
2318
2319ac_ext=c
a0da8069 2320ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
2325
2326
2327
c6b750e1
DJ
2328
2329
34a0f3cf 2330
c6b750e1 2331
5b553f7e
RW
2332progname=$0
2333# if PWD already has a value, it is probably wrong.
2334if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2335
2336# Export original configure arguments for use by sub-configures.
2337# Quote arguments with shell meta charatcers.
2338TOPLEVEL_CONFIGURE_ARGUMENTS=
2339set -- "$progname" "$@"
2340for ac_arg
2341do
2342 case "$ac_arg" in
2343 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2344 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2345 # if the argument is of the form -foo=baz, quote the baz part only
2346 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2347 *) ;;
2348 esac
2349 # Add the quoted argument to the list.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2351done
2352if test "$silent" = yes; then
2353 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2354fi
2355# Remove the initial space we just introduced and, as these will be
2356# expanded by make, quote '$'.
2357TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2358
c6b750e1
DJ
2359
2360# Find the build, host, and target systems.
a0da8069 2361ac_aux_dir=
81ecdfbb 2362for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2363 if test -f "$ac_dir/install-sh"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/install-sh -c"
2366 break
2367 elif test -f "$ac_dir/install.sh"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/install.sh -c"
2370 break
2371 elif test -f "$ac_dir/shtool"; then
2372 ac_aux_dir=$ac_dir
2373 ac_install_sh="$ac_aux_dir/shtool install -c"
2374 break
2375 fi
a0da8069
NN
2376done
2377if test -z "$ac_aux_dir"; then
d0ac1c44 2378 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2379fi
81ecdfbb
RW
2380
2381# These three variables are undocumented and unsupported,
2382# and are intended to be withdrawn in a future Autoconf release.
2383# They can cause serious problems if a builder's source tree is in a directory
2384# whose full name contains unusual characters.
2385ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388
a0da8069 2389
c6b750e1 2390# Make sure we can run config.sub.
81ecdfbb 2391$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2393
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2396if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2397 $as_echo_n "(cached) " >&6
2398else
2399 ac_build_alias=$build_alias
2400test "x$ac_build_alias" = x &&
2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2402test "x$ac_build_alias" = x &&
d0ac1c44 2403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2404ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2406
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409$as_echo "$ac_cv_build" >&6; }
2410case $ac_cv_build in
2411*-*-*) ;;
d0ac1c44 2412*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2413esac
c6b750e1 2414build=$ac_cv_build
81ecdfbb
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_build
2417shift
2418build_cpu=$1
2419build_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423build_os=$*
2424IFS=$ac_save_IFS
2425case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2426
a0da8069 2427
c6b750e1
DJ
2428 case ${build_alias} in
2429 "") build_noncanonical=${build} ;;
2430 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2431esac
2432
2433
cac3d6c4 2434
c6b750e1
DJ
2435 case ${host_alias} in
2436 "") host_noncanonical=${build_noncanonical} ;;
2437 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2438esac
2439
cac3d6c4 2440
c6b750e1
DJ
2441
2442 case ${target_alias} in
2443 "") target_noncanonical=${host_noncanonical} ;;
2444 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2445esac
2446
cac3d6c4 2447
c6b750e1
DJ
2448
2449
2450test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2451 test "$program_prefix$program_suffix$program_transform_name" = \
2452 NONENONEs,x,x, &&
c6b750e1 2453 program_transform_name=s,y,y,
cac3d6c4 2454
81ecdfbb
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2456$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2457if ${ac_cv_host+:} false; then :
81ecdfbb 2458 $as_echo_n "(cached) " >&6
cac3d6c4 2459else
81ecdfbb
RW
2460 if test "x$host_alias" = x; then
2461 ac_cv_host=$ac_cv_build
2462else
2463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2465fi
c6b750e1
DJ
2466
2467fi
81ecdfbb
RW
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2469$as_echo "$ac_cv_host" >&6; }
2470case $ac_cv_host in
2471*-*-*) ;;
d0ac1c44 2472*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2473esac
c6b750e1 2474host=$ac_cv_host
81ecdfbb
RW
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_host
2477shift
2478host_cpu=$1
2479host_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483host_os=$*
2484IFS=$ac_save_IFS
2485case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2486
2487
81ecdfbb
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2489$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2490if ${ac_cv_target+:} false; then :
81ecdfbb 2491 $as_echo_n "(cached) " >&6
c6b750e1 2492else
81ecdfbb
RW
2493 if test "x$target_alias" = x; then
2494 ac_cv_target=$ac_cv_host
2495else
2496 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2498fi
c6b750e1 2499
cac3d6c4 2500fi
81ecdfbb
RW
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2502$as_echo "$ac_cv_target" >&6; }
2503case $ac_cv_target in
2504*-*-*) ;;
d0ac1c44 2505*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2506esac
c6b750e1 2507target=$ac_cv_target
81ecdfbb
RW
2508ac_save_IFS=$IFS; IFS='-'
2509set x $ac_cv_target
2510shift
2511target_cpu=$1
2512target_vendor=$2
2513shift; shift
2514# Remember, the first character of IFS is used to create $*,
2515# except with old shells:
2516target_os=$*
2517IFS=$ac_save_IFS
2518case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2519
2520
2521# The aliases save the names the user supplied, while $host etc.
2522# will get canonicalized.
2523test -n "$target_alias" &&
2524 test "$program_prefix$program_suffix$program_transform_name" = \
2525 NONENONEs,x,x, &&
2526 program_prefix=${target_alias}-
81ecdfbb 2527
a0da8069 2528test "$program_prefix" != NONE &&
81ecdfbb 2529 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2530# Use a double $ so make ignores it.
2531test "$program_suffix" != NONE &&
81ecdfbb
RW
2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2533# Double any \ or $.
c6b750e1 2534# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2535ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2536program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2537
a0da8069
NN
2538
2539
e5c3f801
NN
2540# Get 'install' or 'install-sh' and its variants.
2541# Find a good install program. We prefer a C program (faster),
2542# so one script is as good as another. But avoid the broken or
2543# incompatible versions:
2544# SysV /etc/install, /usr/sbin/install
2545# SunOS /usr/etc/install
2546# IRIX /sbin/install
2547# AIX /bin/install
c6b750e1 2548# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2552# OS/2's system install, which has a completely different semantic
e5c3f801 2553# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2554# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2556$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2557if test -z "$INSTALL"; then
d0ac1c44 2558if ${ac_cv_path_install+:} false; then :
81ecdfbb 2559 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2560else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2566 # Account for people who put trailing slashes in PATH elements.
2567case $as_dir/ in #((
2568 ./ | .// | /[cC]/* | \
c6b750e1 2569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2571 /usr/ucb/* ) ;;
2572 *)
2573 # OSF1 and SCO ODT 3.0 have their own names for install.
2574 # Don't use installbsd from OSF since it installs stuff as root
2575 # by default.
2576 for ac_prog in ginstall scoinst install; do
2577 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2578 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2579 if test $ac_prog = install &&
c6b750e1 2580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2581 # AIX install. It has an incompatible calling convention.
2582 :
c6b750e1
DJ
2583 elif test $ac_prog = install &&
2584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2585 # program-specific install script used by HP pwplus--don't use.
2586 :
e5c3f801 2587 else
58c85be7
RW
2588 rm -rf conftest.one conftest.two conftest.dir
2589 echo one > conftest.one
2590 echo two > conftest.two
2591 mkdir conftest.dir
2592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2593 test -s conftest.one && test -s conftest.two &&
2594 test -s conftest.dir/conftest.one &&
2595 test -s conftest.dir/conftest.two
2596 then
2597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2598 break 3
2599 fi
e5c3f801
NN
2600 fi
2601 fi
2602 done
c6b750e1
DJ
2603 done
2604 ;;
2605esac
81ecdfbb
RW
2606
2607 done
2608IFS=$as_save_IFS
c6b750e1 2609
58c85be7 2610rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2611
2612fi
2613 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2614 INSTALL=$ac_cv_path_install
e5c3f801 2615 else
58c85be7
RW
2616 # As a last resort, use the slow shell script. Don't cache a
2617 # value for INSTALL within a source directory, because that will
e5c3f801 2618 # break other packages using the cache if that directory is
58c85be7 2619 # removed, or if the value is a relative name.
c6b750e1 2620 INSTALL=$ac_install_sh
e5c3f801
NN
2621 fi
2622fi
81ecdfbb
RW
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2624$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2625
2626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2627# It thinks the first close brace ends the variable substitution.
2628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2629
c6b750e1 2630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2631
2632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2633
81ecdfbb
RW
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2635$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2636if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2637 $as_echo_n "(cached) " >&6
656fdd47
PB
2638else
2639 rm -f conftestdata_t
2640echo >conftestdata_f
2641if ln conftestdata_f conftestdata_t 2>/dev/null
2642then
2643 acx_cv_prog_LN=ln
2644else
2645 acx_cv_prog_LN=no
2646fi
2647rm -f conftestdata_f conftestdata_t
2648
2649fi
2650if test $acx_cv_prog_LN = no; then
2651 LN="cp"
81ecdfbb
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2653$as_echo "no, using $LN" >&6; }
656fdd47
PB
2654else
2655 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
656fdd47
PB
2658fi
2659
81ecdfbb
RW
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2661$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2662LN_S=$as_ln_s
2663if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
cac3d6c4 2666else
81ecdfbb
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2668$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2669fi
2670
8e957354
PB
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2672$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2673if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2674 $as_echo_n "(cached) " >&6
2675else
2676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2677 for ac_i in 1 2 3 4 5 6 7; do
2678 ac_script="$ac_script$as_nl$ac_script"
2679 done
2680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2681 { ac_script=; unset ac_script;}
2682 if test -z "$SED"; then
2683 ac_path_SED_found=false
2684 # Loop through the user's path and test for each of PROGNAME-LIST
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_prog in sed gsed; do
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2693 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2694# Check for GNU ac_path_SED and select it if it is found.
2695 # Check for GNU $ac_path_SED
2696case `"$ac_path_SED" --version 2>&1` in
2697*GNU*)
2698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2699*)
2700 ac_count=0
2701 $as_echo_n 0123456789 >"conftest.in"
2702 while :
2703 do
2704 cat "conftest.in" "conftest.in" >"conftest.tmp"
2705 mv "conftest.tmp" "conftest.in"
2706 cp "conftest.in" "conftest.nl"
2707 $as_echo '' >> "conftest.nl"
2708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2710 as_fn_arith $ac_count + 1 && ac_count=$as_val
2711 if test $ac_count -gt ${ac_path_SED_max-0}; then
2712 # Best one so far, save it but keep looking for a better one
2713 ac_cv_path_SED="$ac_path_SED"
2714 ac_path_SED_max=$ac_count
2715 fi
2716 # 10*(2^10) chars as input seems more than enough
2717 test $ac_count -gt 10 && break
2718 done
2719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2720esac
2721
2722 $ac_path_SED_found && break 3
2723 done
2724 done
2725 done
2726IFS=$as_save_IFS
2727 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2729 fi
2730else
2731 ac_cv_path_SED=$SED
2732fi
2733
2734fi
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2736$as_echo "$ac_cv_path_SED" >&6; }
2737 SED="$ac_cv_path_SED"
2738 rm -f conftest.sed
2739
2740for ac_prog in gawk mawk nawk awk
2741do
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2746if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2747 $as_echo_n "(cached) " >&6
2748else
2749 if test -n "$AWK"; then
2750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2759 ac_cv_prog_AWK="$ac_prog"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763done
2764 done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769AWK=$ac_cv_prog_AWK
2770if test -n "$AWK"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2772$as_echo "$AWK" >&6; }
2773else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779 test -n "$AWK" && break
2780done
2781
e5c3f801 2782
0fdbe983
DJ
2783srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2784
2785# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2786# a relative path.
2787if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2788 INSTALL="${srcpwd}/install-sh -c"
2789fi
2790
a0da8069
NN
2791# Set srcdir to "." if that's what it is.
2792# This is important for multilib support.
2793pwd=`${PWDCMD-pwd}`
a0da8069
NN
2794if test "${pwd}" = "${srcpwd}" ; then
2795 srcdir=.
252b5132
RH
2796fi
2797
a0da8069 2798topsrcdir=$srcpwd
252b5132 2799
a0da8069 2800extra_host_args=
afefada0 2801
a0da8069
NN
2802### To add a new directory to the tree, first choose whether it is a target
2803### or a host dependent tool. Then put it into the appropriate list
2804### (library or tools, host or target), doing a dependency sort.
252b5132 2805
c6b750e1 2806# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2807# configdirs, or target_configdirs; see the serialization section below.
252b5132 2808
c6b750e1
DJ
2809# Dependency sorting is only needed when *configuration* must be done in
2810# a particular order. In all cases a dependency should be specified in
a0da8069 2811# the Makefile, whether or not it's implicitly specified here.
252b5132 2812
a0da8069
NN
2813# Double entries in build_configdirs, configdirs, or target_configdirs may
2814# cause circular dependencies and break everything horribly.
252b5132 2815
6a9cf61e
PB
2816# these library is used by various programs built for the build
2817# environment
2818#
1b6c0831 2819build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2820
2821# these tools are built for the build environment
a90ef4bf 2822build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2823
a0da8069 2824# these libraries are used by various programs built for the host environment
1b6c0831 2825#f
0e65dfba 2826host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2827
a0da8069
NN
2828# these tools are built for the host environment
2829# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2830# know that we are building the simulator.
2831# binutils, gas and ld appear in that order because it makes sense to run
2832# "make check" in that particular order.
e6de499b 2833# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2834host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2835
a0da8069
NN
2836# these libraries are built for the target environment, and are built after
2837# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2838# Note that libiberty is not a target library.
b1299c4e 2839target_libraries="target-libgcc \
2bf680c4 2840 target-libbacktrace \
a0da8069
NN
2841 target-libgloss \
2842 target-newlib \
cff87f51 2843 target-libgomp \
1b6c0831 2844 target-liboffloadmic \
bf41f30d 2845 target-libhsail-rt \
7ec59b9e 2846 target-libatomic \
d32e2926 2847 target-libitm \
b9459e83 2848 target-libstdc++-v3 \
5286fdef 2849 target-libsanitizer \
95e43135 2850 target-libvtv \
bb780410 2851 target-libssp \
e552509b 2852 target-libquadmath \
4b1cb4fe 2853 target-libgfortran \
05a13254 2854 target-libffi \
a2592b1b 2855 target-libobjc \
e552509b 2856 target-libada \
e3f56a99 2857 target-libgo"
a0da8069 2858
9c14acb8
NN
2859# these tools are built using the target libraries, and are intended to
2860# run only in the target environment
a0da8069 2861#
9c14acb8 2862# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2863# list belongs in this list.
a0da8069 2864#
a90ef4bf 2865target_tools="target-rda"
252b5132 2866
a0da8069 2867################################################################################
252b5132 2868
a0da8069
NN
2869## All tools belong in one of the four categories, and are assigned above
2870## We assign ${configdirs} this way to remove all embedded newlines. This
2871## is important because configure will choke if they ever get through.
2872## ${configdirs} is directories we build using the host tools.
2873## ${target_configdirs} is directories we build using the target tools.
a0da8069 2874configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2875target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2876build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2877
9cc8ae67
PB
2878
2879
a0da8069 2880################################################################################
252b5132 2881
a0da8069 2882srcname="gnu development package"
252b5132 2883
a0da8069
NN
2884# This gets set non-empty for some net releases of packages.
2885appdirs=""
252b5132 2886
a0da8069
NN
2887# Define is_cross_compiler to save on calls to 'test'.
2888is_cross_compiler=
2889if test x"${host}" = x"${target}" ; then
2890 is_cross_compiler=no
252b5132 2891else
a0da8069 2892 is_cross_compiler=yes
c6b750e1 2893fi
252b5132 2894
9175bfc0 2895# Find the build and target subdir names.
dd12c3a8 2896
66a79c16
DJ
2897# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2898# have matching libraries, they should use host libraries: Makefile.tpl
2899# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2900# However, they still use the build modules, because the corresponding
2901# host modules (e.g. bison) are only built for the host when bootstrap
2902# finishes. So:
2903# - build_subdir is where we find build modules, and never changes.
2904# - build_libsubdir is where we find build libraries, and can be overridden.
2905
2906# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2907build_subdir="build-${build_noncanonical}"
c6b750e1 2908
81ecdfbb
RW
2909# Check whether --with-build-libsubdir was given.
2910if test "${with_build_libsubdir+set}" = set; then :
2911 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2912else
2913 build_libsubdir="$build_subdir"
81ecdfbb
RW
2914fi
2915
b00612cc
PB
2916# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2917if ( test $srcdir = . && test -d gcc ) \
2918 || test -d $srcdir/../host-${host_noncanonical}; then
2919 host_subdir="host-${host_noncanonical}"
2920else
2921 host_subdir=.
2922fi
dd12c3a8
NN
2923# No prefix.
2924target_subdir=${target_noncanonical}
c6b750e1 2925
2fd0b40b
RW
2926# Be sure to cover against remnants of an in-tree build.
2927if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2928 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2929Use a pristine source tree when building in a separate tree" "$LINENO" 5
2930fi
252b5132 2931
a0da8069
NN
2932# Skipdirs are removed silently.
2933skipdirs=
2934# Noconfigdirs are removed loudly.
2935noconfigdirs=""
252b5132 2936
a0da8069
NN
2937use_gnu_ld=
2938# Make sure we don't let GNU ld be added if we didn't want it.
2939if test x$with_gnu_ld = xno ; then
2940 use_gnu_ld=no
93f9b408 2941 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2942fi
2943
a0da8069
NN
2944use_gnu_as=
2945# Make sure we don't let GNU as be added if we didn't want it.
2946if test x$with_gnu_as = xno ; then
2947 use_gnu_as=no
2948 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2949fi
2950
700d40ca 2951use_included_zlib=
cf39cfc5
L
2952
2953# Check whether --with-system-zlib was given.
2954if test "${with_system_zlib+set}" = set; then :
2955 withval=$with_system_zlib;
2956fi
2957
700d40ca
ILT
2958# Make sure we don't let ZLIB be added if we didn't want it.
2959if test x$with_system_zlib = xyes ; then
2960 use_included_zlib=no
2961 noconfigdirs="$noconfigdirs zlib"
2962fi
2963
69961a84
ДП
2964# Don't compile the bundled readline/libreadline.a if --with-system-readline
2965# is provided.
2966if test x$with_system_readline = xyes ; then
2967 noconfigdirs="$noconfigdirs readline"
2968fi
2969
c6b750e1 2970# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2971# it's not even worth trying to configure, much less build, that tool.
252b5132 2972
a0da8069
NN
2973case ${with_x} in
2974 yes | "") ;; # the default value for this tree is that X11 is available
2975 no)
675c6968 2976 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2977 # We won't be able to build gdbtk without X.
c6b750e1 2978 enable_gdbtk=no
a0da8069
NN
2979 ;;
2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2981esac
252b5132 2982
0377a422 2983# Some are only suitable for cross toolchains.
a0da8069
NN
2984# Remove these if host=target.
2985cross_only="target-libgloss target-newlib target-opcodes"
2986
2987case $is_cross_compiler in
2988 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2989esac
252b5132 2990
a0da8069
NN
2991# If both --with-headers and --with-libs are specified, default to
2992# --without-newlib.
32be62b5
RS
2993if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2994 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2995 if test x"${with_newlib}" = x ; then
2996 with_newlib=no
2997 fi
252b5132
RH
2998fi
2999
a0da8069
NN
3000# Recognize --with-newlib/--without-newlib.
3001case ${with_newlib} in
3002 no) skipdirs="${skipdirs} target-newlib" ;;
3003 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3004esac
252b5132 3005
1b6c0831
L
3006# Check whether --enable-as-accelerator-for was given.
3007if test "${enable_as_accelerator_for+set}" = set; then :
3008 enableval=$enable_as_accelerator_for;
3009fi
3010
3011
3012# Check whether --enable-offload-targets was given.
3013if test "${enable_offload_targets+set}" = set; then :
3014 enableval=$enable_offload_targets;
3015 if test x"$enable_offload_targets" = x; then
d0ac1c44 3016 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
3017 fi
3018
3019else
3020 enable_offload_targets=
3021fi
3022
3023
c7791212
NC
3024# Handle --enable-gold, --enable-ld.
3025# --disable-gold [--enable-ld]
3026# Build only ld. Default option.
d3b50760
L
3027# --enable-gold [--enable-ld]
3028# Build both gold and ld. Install gold as "ld.gold", install ld
3029# as "ld.bfd" and "ld".
3030# --enable-gold=default [--enable-ld]
c7791212
NC
3031# Build both gold and ld. Install gold as "ld.gold" and "ld",
3032# install ld as "ld.bfd".
3033# --enable-gold[=default] --disable-ld
3034# Build only gold, which is then installed as both "ld.gold" and "ld".
3035# --enable-gold --enable-ld=default
d3b50760
L
3036# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3037# and ld.bfd).
c7791212
NC
3038# In other words, ld is default
3039# --enable-gold=default --enable-ld=default
3040# Error.
3041
3042default_ld=
81ecdfbb
RW
3043# Check whether --enable-gold was given.
3044if test "${enable_gold+set}" = set; then :
3045 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3046else
3047 ENABLE_GOLD=no
81ecdfbb
RW
3048fi
3049
c7791212
NC
3050case "${ENABLE_GOLD}" in
3051 yes|default)
e6de499b
NC
3052 # Check for ELF target.
3053 is_elf=no
3054 case "${target}" in
3055 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3056 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3057 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 3058 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3059 case "${target}" in
3060 *-*-linux*aout* | *-*-linux*oldld*)
3061 ;;
3062 *)
3063 is_elf=yes
3064 ;;
3065 esac
3066 esac
3067
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
93f9b408 3070 case "${target}" in
6d26190c 3071 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3072 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3073 configdirs="$configdirs gold"
3074 if test x${ENABLE_GOLD} = xdefault; then
3075 default_ld=gold
3076 fi
e6de499b 3077 ENABLE_GOLD=yes
93f9b408
ILT
3078 ;;
3079 esac
e6de499b
NC
3080 fi
3081 ;;
3082 no)
3083 ;;
3084 *)
d0ac1c44 3085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3086 ;;
c7791212
NC
3087esac
3088
3089# Check whether --enable-ld was given.
3090if test "${enable_ld+set}" = set; then :
3091 enableval=$enable_ld; ENABLE_LD=$enableval
3092else
3093 ENABLE_LD=yes
3094fi
3095
3096
3097case "${ENABLE_LD}" in
3098 default)
d3b50760 3099 if test x${default_ld} != x; then
d0ac1c44 3100 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3101 fi
3102 ;;
3103 yes)
3104 ;;
3105 no)
3106 if test x${ENABLE_GOLD} != xyes; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3109 fi
3110 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3111 ;;
3112 *)
d0ac1c44 3113 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3114 ;;
3115esac
93f9b408 3116
edeefb67
L
3117# PR gas/19109
3118# Decide the default method for compressing debug sections.
3119# Provide a configure time option to override our default.
3120# Check whether --enable-compressed_debug_sections was given.
3121if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval=$enable_compressed_debug_sections;
3123 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3124 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3125 fi
3126
3127else
3128 enable_compressed_debug_sections=
3129fi
3130
3131
a0da8069 3132# Configure extra directories which are host specific
252b5132 3133
a0da8069
NN
3134case "${host}" in
3135 *-cygwin*)
3136 configdirs="$configdirs libtermcap" ;;
3137esac
252b5132 3138
59f7ec45
HPN
3139# A target can indicate whether a language isn't supported for some reason.
3140# Only spaces may be used in this macro; not newlines or tabs.
3141unsupported_languages=
3142
c6b750e1 3143# Remove more programs from consideration, based on the host or
a0da8069
NN
3144# target this usually means that a port of the program doesn't
3145# exist yet.
252b5132 3146
a0da8069 3147case "${host}" in
3516a403 3148 i[3456789]86-*-msdosdjgpp*)
6a608608 3149 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3150 ;;
a0da8069 3151esac
252b5132 3152
4b1cb4fe 3153
89a1e9c3
PB
3154# Check whether --enable-libquadmath was given.
3155if test "${enable_libquadmath+set}" = set; then :
3156 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3157else
3158 ENABLE_LIBQUADMATH=yes
3159fi
3160
3161if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs="$noconfigdirs target-libquadmath"
3163fi
3164
3165
3166# Check whether --enable-libquadmath-support was given.
3167if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3169else
3170 ENABLE_LIBQUADMATH_SUPPORT=yes
3171fi
3172
3173enable_libquadmath_support=
3174if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support=no
3176fi
3177
3178
81ecdfbb
RW
3179# Check whether --enable-libada was given.
3180if test "${enable_libada+set}" = set; then :
3181 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3182else
3183 ENABLE_LIBADA=yes
81ecdfbb
RW
3184fi
3185
a2592b1b 3186if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3187 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3188fi
3189
81ecdfbb
RW
3190# Check whether --enable-libssp was given.
3191if test "${enable_libssp+set}" = set; then :
3192 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3193else
3194 ENABLE_LIBSSP=yes
81ecdfbb
RW
3195fi
3196
5f128533 3197
f66a9a70
L
3198# Check whether --enable-libstdcxx was given.
3199if test "${enable_libstdcxx+set}" = set; then :
3200 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3201else
3202 ENABLE_LIBSTDCXX=default
3203fi
3204
3205if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3206 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3207fi
3208
3209# If this is accelerator compiler and its target is intelmic we enable
3210# target liboffloadmic by default. If this is compiler with offloading
3211# for intelmic we enable host liboffloadmic by default. Otherwise
3212# liboffloadmic is disabled by default.
3213# Check whether --enable-liboffloadmic was given.
3214if test "${enable_liboffloadmic+set}" = set; then :
3215 enableval=$enable_liboffloadmic; case "$enableval" in
3216 no | host | target)
3217 enable_liboffloadmic=$enableval ;;
3218 *)
d0ac1c44 3219 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3220esac
3221else
3222 if test x"$enable_as_accelerator_for" != x; then
3223 case "${target}" in
3224 *-intelmic-* | *-intelmicemul-*)
3225 enable_liboffloadmic=target
3226 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3227 ;;
3228 *)
3229 enable_liboffloadmic=no
3230 ;;
3231 esac
3232else
3233 case "${enable_offload_targets}" in
3234 *-intelmic-* | *-intelmicemul-*)
3235 enable_liboffloadmic=host
3236 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3237 ;;
3238 *)
3239 enable_liboffloadmic=no
3240 ;;
3241 esac
3242fi
f66a9a70
L
3243fi
3244
1b6c0831
L
3245
3246
68996839 3247# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3248if test x$enable_libgomp = x ; then
b3ded179 3249 case "${target}" in
29383458 3250 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3251 ;;
5b806d27 3252 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3253 ;;
2479f722 3254 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3255 ;;
3256 *-*-darwin* | *-*-aix*)
3257 ;;
68996839
NC
3258 nvptx*-*-*)
3259 ;;
b3ded179
PB
3260 *)
3261 noconfigdirs="$noconfigdirs target-libgomp"
3262 ;;
3263 esac
a6df5a19 3264fi
b3ded179 3265
7ec59b9e
L
3266# Disable libatomic on unsupported systems.
3267if test -d ${srcdir}/libatomic; then
3268 if test x$enable_libatomic = x; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3270$as_echo_n "checking for libatomic support... " >&6; }
3271 if (srcdir=${srcdir}/libatomic; \
3272 . ${srcdir}/configure.tgt; \
3273 test -n "$UNSUPPORTED")
3274 then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277 noconfigdirs="$noconfigdirs target-libatomic"
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280$as_echo "yes" >&6; }
3281 fi
3282 fi
3283fi
3284
1b6c0831
L
3285# Disable liboffloadmic on unsupported systems.
3286if test -d ${srcdir}/liboffloadmic; then
3287 if test x$enable_liboffloadmic != xno; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3289$as_echo_n "checking for liboffloadmic support... " >&6; }
3290 if (srcdir=${srcdir}/liboffloadmic; \
3291 . ${srcdir}/configure.tgt; \
3292 test -n "$UNSUPPORTED")
3293 then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296 noconfigdirs="$noconfigdirs target-liboffloadmic"
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299$as_echo "yes" >&6; }
3300 fi
3301 fi
3302fi
3303
d32e2926
RH
3304# Disable libitm on unsupported systems.
3305if test -d ${srcdir}/libitm; then
3306 if test x$enable_libitm = x; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3308$as_echo_n "checking for libitm support... " >&6; }
3309 if (srcdir=${srcdir}/libitm; \
3310 . ${srcdir}/configure.tgt; \
3311 test -n "$UNSUPPORTED")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libitm"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 fi
3321fi
3322
5286fdef
L
3323# Disable libsanitizer on unsupported systems.
3324if test -d ${srcdir}/libsanitizer; then
3325 if test x$enable_libsanitizer = x; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3327$as_echo_n "checking for libsanitizer support... " >&6; }
3328 if (srcdir=${srcdir}/libsanitizer; \
3329 . ${srcdir}/configure.tgt; \
3330 test -n "$UNSUPPORTED")
3331 then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334 noconfigdirs="$noconfigdirs target-libsanitizer"
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337$as_echo "yes" >&6; }
3338 fi
3339 fi
3340fi
3341
95e43135
JBG
3342# Disable libvtv on unsupported systems.
3343if test -d ${srcdir}/libvtv; then
3344 if test x$enable_libvtv = x; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3346$as_echo_n "checking for libvtv support... " >&6; }
3347 if (srcdir=${srcdir}/libvtv; \
3348 . ${srcdir}/configure.tgt; \
3349 test "$VTV_SUPPORTED" != "yes")
3350 then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353 noconfigdirs="$noconfigdirs target-libvtv"
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356$as_echo "yes" >&6; }
3357 fi
3358 fi
3359fi
3360
1b6c0831 3361
bf41f30d
NC
3362# Disable libhsail-rt on unsupported systems.
3363if test -d ${srcdir}/libhsail-rt; then
3364 if test x$enable_libhsail_rt = x; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3366$as_echo_n "checking for libhsail-rt support... " >&6; }
3367 if (srcdir=${srcdir}/libhsail-rt; \
3368 . ${srcdir}/configure.tgt; \
3369 test -n "$UNSUPPORTED")
3370 then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373 unsupported_languages="$unsupported_languages brig"
3374 # This implicitly disables also target-libhsail-rt as it won't
3375 # get added to the build without BRIG FE.
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3378$as_echo "yes" >&6; }
3379 fi
3380 fi
3381fi
1b6c0831
L
3382
3383
1488e230
DE
3384# Disable libquadmath for some systems.
3385case "${target}" in
5286fdef
L
3386 avr-*-*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3388 ;;
1488e230
DE
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-*-aix* | rs6000-*-aix*)
3392 noconfigdirs="$noconfigdirs target-libquadmath"
3393 ;;
3394esac
3395
065a5627
JM
3396# Disable libssp for some systems.
3397case "${target}" in
3398 avr-*-*)
c5f5c3c2 3399 # No hosted I/O support.
065a5627
JM
3400 noconfigdirs="$noconfigdirs target-libssp"
3401 ;;
3402 powerpc-*-aix* | rs6000-*-aix*)
3403 noconfigdirs="$noconfigdirs target-libssp"
3404 ;;
99c513f6 3405 rl78-*-*)
202e2356
NC
3406 # libssp uses a misaligned load to trigger a fault, but the RL78
3407 # doesn't fault for those - instead, it gives a build-time error
3408 # for explicit misaligned loads.
99c513f6
DD
3409 noconfigdirs="$noconfigdirs target-libssp"
3410 ;;
1b6c0831
L
3411 visium-*-*)
3412 # No hosted I/O support.
3413 noconfigdirs="$noconfigdirs target-libssp"
3414 ;;
065a5627
JM
3415esac
3416
065a5627 3417# Disable libstdc++-v3 for some systems.
f66a9a70
L
3418# Allow user to override this if they pass --enable-libstdc++-v3
3419if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3420 case "${target}" in
3421 *-*-vxworks*)
3422 # VxWorks uses the Dinkumware C++ library.
3423 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3424 ;;
3425 arm*-wince-pe*)
3426 # the C++ libraries don't build on top of CE's C libraries
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 ;;
3429 avr-*-*)
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 ;;
969b1713
L
3432 ft32-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3434 ;;
f66a9a70
L
3435 esac
3436fi
065a5627
JM
3437
3438# Disable Fortran for some systems.
3439case "${target}" in
3440 mmix-*-*)
3441 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3442 unsupported_languages="$unsupported_languages fortran"
3443 ;;
3444esac
3445
05a13254 3446# Disable libffi for some systems.
0827f9a6 3447case "${target}" in
9863d716
JM
3448 powerpc-*-darwin*)
3449 ;;
3450 i[3456789]86-*-darwin*)
3451 ;;
3452 x86_64-*-darwin[912]*)
3453 ;;
3454 *-*-darwin*)
05a13254 3455 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3456 ;;
9863d716 3457 *-*-netware*)
05a13254
NC
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 *-*-phoenix*)
3461 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3462 ;;
3463 *-*-rtems*)
05a13254 3464 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3465 ;;
3466 *-*-tpf*)
05a13254 3467 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3468 ;;
3469 *-*-uclinux*)
05a13254 3470 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3471 ;;
3472 *-*-vxworks*)
05a13254
NC
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 aarch64*-*-freebsd*)
3476 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3477 ;;
9863d716 3478 alpha*-*-*vms*)
05a13254 3479 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3480 ;;
1b6c0831 3481 arm*-*-freebsd*)
05a13254 3482 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3483 ;;
0827f9a6 3484 arm-wince-pe)
05a13254 3485 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3486 ;;
9863d716 3487 arm*-*-symbianelf*)
05a13254 3488 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3489 ;;
9863d716 3490 cris-*-* | crisv32-*-*)
9863d716
JM
3491 case "${target}" in
3492 *-*-linux*)
3493 ;;
3494 *) # See PR46792 regarding target-libffi.
05a13254 3495 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3496 esac
3497 ;;
82ae827f 3498 hppa*64*-*-hpux*)
05a13254 3499 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3500 ;;
3501 hppa*-hp-hpux11*)
3502 ;;
82ae827f 3503 hppa*-*-hpux*)
05a13254 3504 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3505 ;;
9863d716 3506 ia64*-*-*vms*)
05a13254 3507 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3508 ;;
9863d716 3509 i[3456789]86-w64-mingw*)
05a13254 3510 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3511 ;;
3512 i[3456789]86-*-mingw*)
05a13254 3513 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3514 ;;
3515 x86_64-*-mingw*)
05a13254 3516 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3517 ;;
9863d716 3518 mmix-*-*)
05a13254 3519 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3520 ;;
3521 powerpc-*-aix*)
9863d716 3522 ;;
9863d716 3523 rs6000-*-aix*)
9863d716 3524 ;;
3f8107ab 3525 ft32-*-*)
05a13254 3526 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3527 ;;
9863d716 3528 *-*-lynxos*)
05a13254 3529 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3530 ;;
9863d716
JM
3531esac
3532
1b6c0831
L
3533# Disable the go frontend on systems where it is known to not work. Please keep
3534# this in sync with contrib/config-list.mk.
3535case "${target}" in
bf41f30d 3536*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3537 unsupported_languages="$unsupported_languages go"
3538 ;;
3539esac
3540
a413f71a
ILT
3541# Disable libgo for some systems where it is known to not work.
3542# For testing, you can easily override this with --enable-libgo.
3543if test x$enable_libgo = x; then
3544 case "${target}" in
3545 *-*-darwin*)
3546 # PR 46986
3547 noconfigdirs="$noconfigdirs target-libgo"
3548 ;;
3549 *-*-cygwin* | *-*-mingw*)
3550 noconfigdirs="$noconfigdirs target-libgo"
3551 ;;
a413f71a
ILT
3552 esac
3553fi
3554
691bb5a1
DD
3555# Default libgloss CPU subdirectory.
3556libgloss_dir="$target_cpu"
4b1cb4fe 3557
ff46fb8f
JM
3558case "${target}" in
3559 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3560 libgloss_dir=wince
3561 ;;
f1dd87fc
YZ
3562 aarch64*-*-* )
3563 libgloss_dir=aarch64
3564 ;;
ff46fb8f
JM
3565 arm*-*-*)
3566 libgloss_dir=arm
3567 ;;
3568 cris-*-* | crisv32-*-*)
3569 libgloss_dir=cris
3570 ;;
3571 hppa*-*-*)
3572 libgloss_dir=pa
3573 ;;
3574 i[3456789]86-*-*)
3575 libgloss_dir=i386
3576 ;;
3577 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3578 libgloss_dir=m68hc11
3579 ;;
3580 m68*-*-* | fido-*-*)
3581 libgloss_dir=m68k
3582 ;;
3583 mips*-*-*)
3584 libgloss_dir=mips
3585 ;;
3586 powerpc*-*-*)
3587 libgloss_dir=rs6000
3588 ;;
3589 sparc*-*-*)
3590 libgloss_dir=sparc
3591 ;;
3592esac
3593
c7e4b184 3594# Disable newlib and libgloss for various target OSes.
a0da8069 3595case "${target}" in
c7e4b184
JM
3596 alpha*-dec-osf*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 i[3456789]86-*-linux*)
3600 # This section makes it possible to build newlib natively on linux.
3601 # If we are using a cross compiler then don't configure newlib.
3602 if test x${is_cross_compiler} != xno ; then
3603 noconfigdirs="$noconfigdirs target-newlib"
3604 fi
3605 noconfigdirs="$noconfigdirs target-libgloss"
3606 # If we are not using a cross compiler, do configure newlib.
3607 # Note however, that newlib will only be configured in this situation
3608 # if the --with-newlib option has been given, because otherwise
3609 # 'target-newlib' will appear in skipdirs.
3610 ;;
3611 i[3456789]86-*-rdos*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 sparc-*-sunos4*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-aix*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-beos*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
a0da8069 3626 *-*-chorusos)
b2f14e4a 3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3628 ;;
c7e4b184
JM
3629 *-*-dragonfly*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 ;;
3632 *-*-freebsd*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 ;;
3635 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 *-*-lynxos*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 *-*-mingw*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-netbsd*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 *-*-netware*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 *-*-tpf*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 *-*-uclinux*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 *-*-vxworks*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659esac
3660
3661case "${target}" in
3662 *-*-chorusos)
3663 ;;
f075eb5e
TG
3664 aarch64-*-darwin*)
3665 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs="$noconfigdirs sim target-rda"
3667 ;;
3668 arm-*-darwin*)
3669 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3670 noconfigdirs="$noconfigdirs sim target-rda"
3671 ;;
24741ab2 3672 powerpc-*-darwin*)
9d39db92 3673 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3674 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3675 ;;
85bd1942
TG
3676 i[3456789]86-*-darwin*)
3677 noconfigdirs="$noconfigdirs ld gprof"
3678 noconfigdirs="$noconfigdirs sim target-rda"
3679 ;;
e8a5fa9c 3680 x86_64-*-darwin[912]*)
652dec25
TG
3681 noconfigdirs="$noconfigdirs ld gas gprof"
3682 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3683 ;;
04d1ab34 3684 *-*-darwin*)
d320aacb 3685 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3686 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3687 ;;
5b806d27 3688 *-*-dragonfly*)
5b806d27 3689 ;;
de0b4a87 3690 *-*-freebsd*)
4b1cb4fe
DD
3691 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3692 && test -f /usr/local/include/gmp.h; then
3693 with_gmp=/usr/local
3694 fi
4b1cb4fe 3695 ;;
f8a495c8
NC
3696 *-*-kaos*)
3697 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3698 noconfigdirs="$noconfigdirs target-libgloss"
3699 ;;
a0da8069 3700 *-*-netbsd*)
a0da8069 3701 ;;
2a3124ca 3702 *-*-netware*)
a0da8069 3703 ;;
05a13254
NC
3704 *-*-phoenix*)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3706 ;;
a0da8069 3707 *-*-rtems*)
9863d716 3708 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3709 ;;
1587117a
EC
3710 # The tpf target doesn't support gdb yet.
3711 *-*-tpf*)
c7e4b184 3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3713 ;;
c1968181 3714 *-*-uclinux*)
c7e4b184 3715 noconfigdirs="$noconfigdirs target-rda"
c1968181 3716 ;;
a0da8069 3717 *-*-vxworks*)
a0da8069
NN
3718 ;;
3719 alpha*-dec-osf*)
3720 # ld works, but does not support shared libraries.
a0da8069 3721 # gas doesn't generate exception information.
c7e4b184 3722 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3723 ;;
3724 alpha*-*-*vms*)
9863d716 3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3726 ;;
a0da8069
NN
3727 alpha*-*-*)
3728 # newlib is not 64 bit ready
9863d716 3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3730 ;;
a0da8069 3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3733 ;;
05a13254
NC
3734 arc*-*-*)
3735 noconfigdirs="$noconfigdirs sim"
a0da8069 3736 ;;
a0da8069 3737 arm-*-pe*)
9863d716 3738 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3739 ;;
a0da8069 3740 arm-*-riscix*)
b2f14e4a 3741 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3742 ;;
8e71395b
L
3743 avr-*-*)
3744 if test x${with_avrlibc} != xno; then
3745 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 fi
3747 ;;
a0da8069 3748 c4x-*-* | tic4x-*-*)
b2f14e4a 3749 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3750 ;;
b2f14e4a
JM
3751 tic54x-*-*)
3752 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3753 ;;
a0da8069 3754 d10v-*-*)
b2f14e4a 3755 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3756 ;;
3757 d30v-*-*)
b2f14e4a 3758 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3759 ;;
3760 fr30-*-elf*)
9863d716 3761 noconfigdirs="$noconfigdirs gdb"
a0da8069 3762 ;;
3f8107ab
AM
3763 ft32-*-*)
3764 noconfigdirs="$noconfigdirs target-rda gprof"
3765 ;;
20135e4c 3766 moxie-*-*)
10b8fe5e 3767 noconfigdirs="$noconfigdirs"
20135e4c 3768 ;;
a0da8069 3769 h8300*-*-*)
9863d716 3770 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3771 ;;
3772 h8500-*-*)
b2f14e4a 3773 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3774 ;;
caeba88f 3775 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3776 ;;
5569a85f
JDA
3777 hppa*64*-*-hpux*)
3778 noconfigdirs="$noconfigdirs gdb"
3779 ;;
3780 hppa*-*-hpux11*)
3781 noconfigdirs="$noconfigdirs gdb ld"
3782 ;;
93cc359e 3783 hppa*64*-*-linux*)
a0da8069 3784 ;;
f0ff0f90 3785 hppa*-*-linux*)
5dcac624 3786 ;;
a0da8069 3787 hppa*-*-*elf* | \
a0da8069
NN
3788 hppa*-*-lites* | \
3789 hppa*-*-openbsd* | \
3790 hppa*64*-*-*)
4f0ef2d8 3791 ;;
691bb5a1 3792 hppa*-*-pro*)
691bb5a1 3793 ;;
a0da8069 3794 hppa*-*-*)
9863d716 3795 noconfigdirs="$noconfigdirs ld"
a0da8069 3796 ;;
b07c2aad 3797 i960-*-*)
b2f14e4a 3798 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3799 ;;
a0da8069
NN
3800 ia64*-*-elf*)
3801 # No gdb support yet.
0377a422 3802 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3803 ;;
3804 ia64*-**-hpux*)
92c9a463 3805 # No ld support yet.
5569a85f 3806 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3807 ;;
19e99079 3808 ia64*-*-*vms*)
7ec59b9e
L
3809 # No ld support yet.
3810 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3811 ;;
1f53ca9a 3812 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3813 ;;
3814 i[3456789]86-*-mingw*)
45055374 3815 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3816 ;;
a0da8069
NN
3817 *-*-cygwin*)
3818 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3819 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3820 # always build newlib if winsup directory is present.
45055374 3821 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3822 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3823 elif test -d "$srcdir/newlib"; then
45055374 3824 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3825 fi
c6b750e1 3826 ;;
ec11bdc6 3827 i[3456789]86-*-pe)
782cb41f 3828 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3829 ;;
ec11bdc6 3830 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3831 # The linker does not yet know about weak symbols in COFF,
3832 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3833 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3834 ;;
ec11bdc6 3835 i[3456789]86-*-sco*)
b2f14e4a 3836 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3837 ;;
cff32a7c 3838 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 ;;
ec11bdc6 3841 i[3456789]86-*-sysv4*)
b2f14e4a 3842 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3843 ;;
ec11bdc6 3844 i[3456789]86-*-beos*)
c7e4b184 3845 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3846 ;;
b59bea8a 3847 i[3456789]86-*-rdos*)
c7e4b184 3848 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3849 ;;
a0da8069 3850 mmix-*-*)
9863d716 3851 noconfigdirs="$noconfigdirs gdb"
a0da8069 3852 ;;
4970f871 3853 mt-*-*)
cdb9b172
AH
3854 noconfigdirs="$noconfigdirs sim"
3855 ;;
1063beb5
FT
3856 nfp-*-*)
3857 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3858 noconfigdirs="$noconfigdirs $target_libraries"
3859 ;;
a0da8069
NN
3860 powerpc-*-aix*)
3861 # copied from rs6000-*-* entry
c7e4b184 3862 noconfigdirs="$noconfigdirs gprof"
a0da8069 3863 ;;
93cc359e 3864 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3865 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3866 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3867 # always build newlib.
3868 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3869 ;;
3870 # This is temporary until we can link against shared libraries
3871 powerpcle-*-solaris*)
b2f14e4a 3872 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3873 ;;
3874 powerpc-*-beos*)
c7e4b184 3875 noconfigdirs="$noconfigdirs gdb"
a0da8069 3876 ;;
a0da8069 3877 rs6000-*-lynxos*)
c7e4b184 3878 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3879 ;;
3880 rs6000-*-aix*)
c7e4b184 3881 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3882 ;;
3883 rs6000-*-*)
9863d716 3884 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3885 ;;
3886 m68k-apollo-*)
b2f14e4a 3887 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3888 ;;
25a07265 3889 microblaze*)
9863d716 3890 noconfigdirs="$noconfigdirs gprof"
25a07265 3891 ;;
a9d58c06 3892 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3893 if test x$with_newlib = xyes; then
3894 noconfigdirs="$noconfigdirs gprof"
3895 fi
5bd8be13 3896 ;;
a0da8069 3897 mips*-*-irix5*)
b2f14e4a 3898 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3899 ;;
3900 mips*-*-irix6*)
9863d716 3901 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3902 ;;
a0da8069 3903 mips*-*-bsd*)
e8044f35 3904 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3905 ;;
a0da8069 3906 mips*-*-linux*)
a0da8069 3907 ;;
e8044f35
RS
3908 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3909 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3910 noconfigdirs="$noconfigdirs ld gas gprof"
3911 ;;
a0da8069 3912 mips*-*-*)
9863d716 3913 noconfigdirs="$noconfigdirs gprof"
a0da8069 3914 ;;
1b6c0831 3915 nvptx*-*-*)
1b6c0831
L
3916 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3917 ;;
05a13254 3918 sh-*-*)
e8a5fa9c
RW
3919 case "${target}" in
3920 sh*-*-elf)
9863d716 3921 ;;
e8a5fa9c 3922 *)
9863d716 3923 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3924 esac
a0da8069 3925 ;;
a0da8069 3926 sparc-*-sunos4*)
c7e4b184 3927 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3928 use_gnu_ld=no
3929 fi
3930 ;;
619a3713 3931 tic6x-*-*)
40ae9136 3932 noconfigdirs="$noconfigdirs sim"
619a3713 3933 ;;
05a13254 3934 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3935 noconfigdirs="$noconfigdirs sim"
3936 ;;
a0da8069 3937 v810-*-*)
b2f14e4a 3938 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3939 ;;
3940 vax-*-*)
9863d716 3941 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3942 ;;
b29d2641
MR
3943 wasm32-*-*)
3944 noconfigdirs="$noconfigdirs ld"
3945 ;;
a0da8069 3946esac
252b5132 3947
a0da8069
NN
3948# If we aren't building newlib, then don't build libgloss, since libgloss
3949# depends upon some newlib header files.
3950case "${noconfigdirs}" in
3951 *target-libgloss*) ;;
3952 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3953esac
3954
a0da8069 3955# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3956host_makefile_frag=/dev/null
3957if test -d ${srcdir}/config ; then
3958case "${host}" in
ec11bdc6 3959 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3960 host_makefile_frag="config/mh-djgpp"
3961 ;;
3962 *-cygwin*)
e33b51a6 3963
81ecdfbb
RW
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3965$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3966echo a >cygwin-cat-check
1f53ca9a 3967if test `cat cygwin-cat-check` = a ; then
8ade07e9 3968 rm cygwin-cat-check
81ecdfbb
RW
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970$as_echo "yes" >&6; }
e33b51a6 3971else
8ade07e9 3972 rm cygwin-cat-check
81ecdfbb
RW
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
d0ac1c44 3975 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3976 Please either mount the build directory in binary mode or run the following
3977 commands before running any configure script:
3978set -o igncr
3979export SHELLOPTS
81ecdfbb 3980 " "$LINENO" 5
e33b51a6 3981fi
e33b51a6 3982
a0da8069
NN
3983 host_makefile_frag="config/mh-cygwin"
3984 ;;
8a1599ab 3985 *-mingw*)
84e7906e 3986 host_makefile_frag="config/mh-mingw"
2d1e8239 3987 ;;
ce6c656d
L
3988 alpha*-linux*)
3989 host_makefile_frag="config/mh-alpha-linux"
3990 ;;
da888c87 3991 hppa*-hp-hpux10*)
da888c87 3992 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3993 ;;
3516a403 3994 hppa*-hp-hpux*)
da888c87
PB
3995 host_makefile_frag="config/mh-pa"
3996 ;;
3997 hppa*-*)
3998 host_makefile_frag="config/mh-pa"
3999 ;;
e552509b
ILT
4000 *-*-darwin*)
4001 host_makefile_frag="config/mh-darwin"
0df3d27f 4002 ;;
f6d183c0
PB
4003 powerpc-*-aix*)
4004 host_makefile_frag="config/mh-ppc-aix"
4005 ;;
4006 rs6000-*-aix*)
4007 host_makefile_frag="config/mh-ppc-aix"
4008 ;;
a0da8069
NN
4009esac
4010fi
4011
9e07f89d 4012if test "${build}" != "${host}" ; then
1576798e
PB
4013 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4014 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4015 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 4016 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 4017 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4018 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
4019 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4020 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4021 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4022 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4023 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4024 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4025else
4026 AR_FOR_BUILD="\$(AR)"
4027 AS_FOR_BUILD="\$(AS)"
512b7dfb 4028 CC_FOR_BUILD="\$(CC)"
1576798e 4029 CXX_FOR_BUILD="\$(CXX)"
1576798e 4030 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4031 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4032 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4033 LD_FOR_BUILD="\$(LD)"
4034 NM_FOR_BUILD="\$(NM)"
4035 RANLIB_FOR_BUILD="\$(RANLIB)"
4036 WINDRES_FOR_BUILD="\$(WINDRES)"
4037 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4038fi
4039
4040ac_ext=c
c6b750e1
DJ
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4050if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4051 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4052else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
81ecdfbb 4061 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4063 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4065 break 2
4066 fi
4067done
81ecdfbb
RW
4068 done
4069IFS=$as_save_IFS
c6b750e1
DJ
4070
4071fi
4072fi
4073CC=$ac_cv_prog_CC
4074if test -n "$CC"; then
81ecdfbb
RW
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076$as_echo "$CC" >&6; }
c6b750e1 4077else
81ecdfbb
RW
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079$as_echo "no" >&6; }
c6b750e1
DJ
4080fi
4081
81ecdfbb 4082
c6b750e1
DJ
4083fi
4084if test -z "$ac_cv_prog_CC"; then
4085 ac_ct_CC=$CC
6a9cf61e 4086 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4087set dummy gcc; ac_word=$2
81ecdfbb
RW
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4090if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4091 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4092else
4093 if test -n "$ac_ct_CC"; then
4094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4095else
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
81ecdfbb 4101 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4103 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4105 break 2
4106 fi
4107done
81ecdfbb
RW
4108 done
4109IFS=$as_save_IFS
c6b750e1
DJ
4110
4111fi
4112fi
4113ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4117else
81ecdfbb
RW
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
c6b750e1
DJ
4120fi
4121
81ecdfbb
RW
4122 if test "x$ac_ct_CC" = x; then
4123 CC=""
4124 else
4125 case $cross_compiling:$ac_tool_warned in
4126yes:)
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129ac_tool_warned=yes ;;
4130esac
4131 CC=$ac_ct_CC
4132 fi
c6b750e1
DJ
4133else
4134 CC="$ac_cv_prog_CC"
4135fi
4136
4137if test -z "$CC"; then
81ecdfbb
RW
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4140set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4143if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4144 $as_echo_n "(cached) " >&6
9e07f89d
NN
4145else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148else
c6b750e1
DJ
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
81ecdfbb 4154 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4156 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4158 break 2
4159 fi
4160done
81ecdfbb
RW
4161 done
4162IFS=$as_save_IFS
c6b750e1 4163
9e07f89d
NN
4164fi
4165fi
c6b750e1 4166CC=$ac_cv_prog_CC
9e07f89d 4167if test -n "$CC"; then
81ecdfbb
RW
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169$as_echo "$CC" >&6; }
c6b750e1 4170else
81ecdfbb
RW
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
c6b750e1
DJ
4173fi
4174
c6b750e1 4175
81ecdfbb 4176 fi
c6b750e1 4177fi
9e07f89d
NN
4178if test -z "$CC"; then
4179 # Extract the first word of "cc", so it can be a program name with args.
4180set dummy cc; ac_word=$2
81ecdfbb
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4183if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4184 $as_echo_n "(cached) " >&6
9e07f89d
NN
4185else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
9e07f89d 4189 ac_prog_rejected=no
c6b750e1
DJ
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
81ecdfbb 4195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198 ac_prog_rejected=yes
4199 continue
4200 fi
4201 ac_cv_prog_CC="cc"
81ecdfbb 4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4203 break 2
4204 fi
4205done
81ecdfbb
RW
4206 done
4207IFS=$as_save_IFS
c6b750e1 4208
9e07f89d
NN
4209if test $ac_prog_rejected = yes; then
4210 # We found a bogon in the path, so make sure we never use it.
4211 set dummy $ac_cv_prog_CC
4212 shift
c6b750e1 4213 if test $# != 0; then
9e07f89d
NN
4214 # We chose a different compiler from the bogus one.
4215 # However, it has the same basename, so the bogon will be chosen
4216 # first if we set CC to just the basename; use the full file name.
4217 shift
c6b750e1 4218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4219 fi
4220fi
4221fi
4222fi
c6b750e1 4223CC=$ac_cv_prog_CC
9e07f89d 4224if test -n "$CC"; then
81ecdfbb
RW
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226$as_echo "$CC" >&6; }
9e07f89d 4227else
81ecdfbb
RW
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
9e07f89d
NN
4230fi
4231
81ecdfbb 4232
c6b750e1
DJ
4233fi
4234if test -z "$CC"; then
4235 if test -n "$ac_tool_prefix"; then
81ecdfbb 4236 for ac_prog in cl.exe
c6b750e1
DJ
4237 do
4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4242if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4243 $as_echo_n "(cached) " >&6
9e07f89d
NN
4244else
4245 if test -n "$CC"; then
4246 ac_cv_prog_CC="$CC" # Let the user override the test.
4247else
c6b750e1
DJ
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
81ecdfbb 4253 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4257 break 2
376a0e54 4258 fi
c6b750e1 4259done
81ecdfbb
RW
4260 done
4261IFS=$as_save_IFS
cac3d6c4 4262
c6b750e1
DJ
4263fi
4264fi
4265CC=$ac_cv_prog_CC
4266if test -n "$CC"; then
81ecdfbb
RW
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268$as_echo "$CC" >&6; }
cac3d6c4 4269else
81ecdfbb
RW
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
9e07f89d 4272fi
cac3d6c4 4273
81ecdfbb 4274
c6b750e1
DJ
4275 test -n "$CC" && break
4276 done
cac3d6c4 4277fi
c6b750e1
DJ
4278if test -z "$CC"; then
4279 ac_ct_CC=$CC
81ecdfbb 4280 for ac_prog in cl.exe
c6b750e1
DJ
4281do
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4286if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4287 $as_echo_n "(cached) " >&6
cac3d6c4 4288else
c6b750e1
DJ
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4291else
c6b750e1
DJ
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
81ecdfbb 4297 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4299 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4301 break 2
4302 fi
4303done
81ecdfbb
RW
4304 done
4305IFS=$as_save_IFS
c6b750e1 4306
cac3d6c4
CM
4307fi
4308fi
c6b750e1
DJ
4309ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4313else
81ecdfbb
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
cac3d6c4 4316fi
376a0e54 4317
81ecdfbb 4318
c6b750e1
DJ
4319 test -n "$ac_ct_CC" && break
4320done
4321
81ecdfbb
RW
4322 if test "x$ac_ct_CC" = x; then
4323 CC=""
4324 else
4325 case $cross_compiling:$ac_tool_warned in
4326yes:)
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329ac_tool_warned=yes ;;
4330esac
4331 CC=$ac_ct_CC
4332 fi
c6b750e1
DJ
4333fi
4334
4335fi
4336
4337
81ecdfbb
RW
4338test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4340as_fn_error $? "no acceptable C compiler found in \$PATH
4341See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4342
4343# Provide some information about the compiler.
81ecdfbb
RW
4344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4345set X $ac_compile
4346ac_compiler=$2
4347for ac_option in --version -v -V -qversion; do
4348 { { ac_try="$ac_compiler $ac_option >&5"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354$as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4356 ac_status=$?
81ecdfbb
RW
4357 if test -s conftest.err; then
4358 sed '10a\
4359... rest of stderr output deleted ...
4360 10q' conftest.err >conftest.er1
4361 cat conftest.er1 >&5
81ecdfbb 4362 fi
d0ac1c44 4363 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4366done
c6b750e1 4367
81ecdfbb 4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4369/* end confdefs.h. */
4370
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379ac_clean_files_save=$ac_clean_files
d0ac1c44 4380ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4381# Try to create an executable without -o first, disregard a.out.
4382# It will help us diagnose broken compilers, and finding out an intuition
4383# of exeext.
d0ac1c44
SM
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4386ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4387
4388# The possible output files:
4389ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4390
4391ac_rmfiles=
4392for ac_file in $ac_files
4393do
4394 case $ac_file in
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4397 esac
4398done
4399rm -f $ac_rmfiles
4400
4401if { { ac_try="$ac_link_default"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link_default") 2>&5
c6b750e1 4409 ac_status=$?
81ecdfbb
RW
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414# in a Makefile. We should not override ac_cv_exeext if it was cached,
4415# so that the user can short-circuit this test for compilers unknown to
4416# Autoconf.
4417for ac_file in $ac_files ''
c6b750e1
DJ
4418do
4419 test -f "$ac_file" || continue
4420 case $ac_file in
81ecdfbb 4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4422 ;;
4423 [ab].out )
4424 # We found the default executable, but exeext='' is most
4425 # certainly right.
4426 break;;
4427 *.* )
81ecdfbb
RW
4428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4429 then :; else
4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431 fi
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4436 # actually working.
c6b750e1
DJ
4437 break;;
4438 * )
4439 break;;
4440 esac
4441done
81ecdfbb
RW
4442test "$ac_cv_exeext" = no && ac_cv_exeext=
4443
c6b750e1 4444else
81ecdfbb
RW
4445 ac_file=''
4446fi
81ecdfbb 4447if test -z "$ac_file"; then :
d0ac1c44
SM
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
81ecdfbb
RW
4453{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4455as_fn_error 77 "C compiler cannot create executables
4456See \`config.log' for more details" "$LINENO" 5; }
4457else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459$as_echo "yes" >&6; }
c6b750e1 4460fi
d0ac1c44
SM
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462$as_echo_n "checking for C compiler default output file name... " >&6; }
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464$as_echo "$ac_file" >&6; }
c6b750e1 4465ac_exeext=$ac_cv_exeext
c6b750e1 4466
d0ac1c44 4467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4468ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470$as_echo_n "checking for suffix of executables... " >&6; }
4471if { { ac_try="$ac_link"
4472case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_link") 2>&5
c6b750e1 4479 ac_status=$?
81ecdfbb
RW
4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; then :
c6b750e1
DJ
4482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4484# work properly (i.e., refer to `conftest.exe'), while it won't with
4485# `rm'.
4486for ac_file in conftest.exe conftest conftest.*; do
4487 test -f "$ac_file" || continue
4488 case $ac_file in
81ecdfbb 4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4491 break;;
4492 * ) break;;
4493 esac
4494done
4495else
81ecdfbb
RW
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4498as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4500fi
d0ac1c44 4501rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4504
4505rm -f conftest.$ac_ext
4506EXEEXT=$ac_cv_exeext
4507ac_exeext=$EXEEXT
d0ac1c44
SM
4508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h. */
4510#include <stdio.h>
4511int
4512main ()
4513{
4514FILE *f = fopen ("conftest.out", "w");
4515 return ferror (f) || fclose (f) != 0;
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521ac_clean_files="$ac_clean_files conftest.out"
4522# Check that the compiler produces executables we can run. If not, either
4523# the compiler is broken, or we cross compile.
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525$as_echo_n "checking whether we are cross compiling... " >&6; }
4526if test "$cross_compiling" != yes; then
4527 { { ac_try="$ac_link"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533$as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_link") 2>&5
4535 ac_status=$?
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }
4538 if { ac_try='./conftest$ac_cv_exeext'
4539 { { case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
4543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544$as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_try") 2>&5
4546 ac_status=$?
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; }; then
4549 cross_compiling=no
4550 else
4551 if test "$cross_compiling" = maybe; then
4552 cross_compiling=yes
4553 else
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556as_fn_error $? "cannot run C compiled programs.
4557If you meant to cross compile, use \`--host'.
4558See \`config.log' for more details" "$LINENO" 5; }
4559 fi
4560 fi
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563$as_echo "$cross_compiling" >&6; }
4564
4565rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4569if ${ac_cv_objext+:} false; then :
81ecdfbb 4570 $as_echo_n "(cached) " >&6
c6b750e1 4571else
81ecdfbb 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4573/* end confdefs.h. */
4574
4575int
4576main ()
4577{
4578
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583rm -f conftest.o conftest.obj
81ecdfbb
RW
4584if { { ac_try="$ac_compile"
4585case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588esac
4589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590$as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_compile") 2>&5
c6b750e1 4592 ac_status=$?
81ecdfbb
RW
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }; then :
4595 for ac_file in conftest.o conftest.obj conftest.*; do
4596 test -f "$ac_file" || continue;
c6b750e1 4597 case $ac_file in
81ecdfbb 4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600 break;;
4601 esac
4602done
cac3d6c4 4603else
81ecdfbb 4604 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
81ecdfbb
RW
4607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4609as_fn_error $? "cannot compute suffix of object files: cannot compile
4610See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4611fi
c6b750e1
DJ
4612rm -f conftest.$ac_cv_objext conftest.$ac_ext
4613fi
81ecdfbb
RW
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4616OBJEXT=$ac_cv_objext
4617ac_objext=$OBJEXT
81ecdfbb
RW
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4620if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4621 $as_echo_n "(cached) " >&6
c6b750e1 4622else
81ecdfbb 4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4624/* end confdefs.h. */
4625
4626int
4627main ()
4628{
4629#ifndef __GNUC__
4630 choke me
4631#endif
4632
4633 ;
4634 return 0;
4635}
4636_ACEOF
81ecdfbb 4637if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4638 ac_compiler_gnu=yes
4639else
81ecdfbb 4640 ac_compiler_gnu=no
c6b750e1 4641fi
81ecdfbb 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4643ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645fi
81ecdfbb
RW
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648if test $ac_compiler_gnu = yes; then
4649 GCC=yes
4650else
4651 GCC=
4652fi
c6b750e1
DJ
4653ac_test_CFLAGS=${CFLAGS+set}
4654ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4657if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4658 $as_echo_n "(cached) " >&6
4659else
4660 ac_save_c_werror_flag=$ac_c_werror_flag
4661 ac_c_werror_flag=yes
4662 ac_cv_prog_cc_g=no
4663 CFLAGS="-g"
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4665/* end confdefs.h. */
4666
4667int
4668main ()
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
81ecdfbb 4675if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4676 ac_cv_prog_cc_g=yes
4677else
81ecdfbb
RW
4678 CFLAGS=""
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h. */
4681
4682int
4683main ()
4684{
4685
4686 ;
4687 return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691
4692else
4693 ac_c_werror_flag=$ac_save_c_werror_flag
4694 CFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
cac3d6c4 4697
81ecdfbb
RW
4698int
4699main ()
4700{
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_prog_cc_g=yes
4708fi
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4710fi
81ecdfbb 4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4712fi
81ecdfbb
RW
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_c_werror_flag=$ac_save_c_werror_flag
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4718if test "$ac_test_CFLAGS" = set; then
c6b750e1 4719 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4720elif test $ac_cv_prog_cc_g = yes; then
4721 if test "$GCC" = yes; then
4722 CFLAGS="-g -O2"
4723 else
4724 CFLAGS="-g"
4725 fi
4726else
4727 if test "$GCC" = yes; then
4728 CFLAGS="-O2"
4729 else
4730 CFLAGS=
4731 fi
4732fi
81ecdfbb
RW
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4735if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4736 $as_echo_n "(cached) " >&6
c6b750e1 4737else
81ecdfbb 4738 ac_cv_prog_cc_c89=no
c6b750e1 4739ac_save_CC=$CC
81ecdfbb 4740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4741/* end confdefs.h. */
4742#include <stdarg.h>
4743#include <stdio.h>
d0ac1c44 4744struct stat;
c6b750e1
DJ
4745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4746struct buf { int x; };
4747FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748static char *e (p, i)
4749 char **p;
4750 int i;
4751{
4752 return p[i];
4753}
4754static char *f (char * (*g) (char **, int), char **p, ...)
4755{
4756 char *s;
4757 va_list v;
4758 va_start (v,p);
4759 s = g (p, va_arg (v,int));
4760 va_end (v);
4761 return s;
4762}
4763
4764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4765 function prototypes and stuff, but not '\xHH' hex character constants.
4766 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4767 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4769 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4770 that's true only with -std. */
c6b750e1
DJ
4771int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4772
81ecdfbb
RW
4773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774 inside strings and character constants. */
4775#define FOO(x) 'x'
4776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4777
c6b750e1
DJ
4778int test (int i, double x);
4779struct s1 {int (*f) (int a);};
4780struct s2 {int (*f) (double a);};
4781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782int argc;
4783char **argv;
4784int
4785main ()
4786{
4787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4788 ;
4789 return 0;
4790}
4791_ACEOF
81ecdfbb
RW
4792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4794do
4795 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4798fi
81ecdfbb
RW
4799rm -f core conftest.err conftest.$ac_objext
4800 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4801done
81ecdfbb 4802rm -f conftest.$ac_ext
c6b750e1
DJ
4803CC=$ac_save_CC
4804
4805fi
81ecdfbb
RW
4806# AC_CACHE_VAL
4807case "x$ac_cv_prog_cc_c89" in
4808 x)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810$as_echo "none needed" >&6; } ;;
4811 xno)
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813$as_echo "unsupported" >&6; } ;;
c6b750e1 4814 *)
81ecdfbb
RW
4815 CC="$CC $ac_cv_prog_cc_c89"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4818esac
81ecdfbb 4819if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4820
c6b750e1
DJ
4821fi
4822
c6b750e1
DJ
4823ac_ext=c
4824ac_cpp='$CPP $CPPFLAGS'
4825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4828
81ecdfbb 4829ac_ext=cpp
18f6b6ee
PB
4830ac_cpp='$CXXCPP $CPPFLAGS'
4831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4834if test -z "$CXX"; then
4835 if test -n "$CCC"; then
4836 CXX=$CCC
4837 else
4838 if test -n "$ac_tool_prefix"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4840 do
4841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4845if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4846 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4847else
4848 if test -n "$CXX"; then
4849 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
81ecdfbb 4856 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4858 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4860 break 2
4861 fi
4862done
81ecdfbb
RW
4863 done
4864IFS=$as_save_IFS
512b7dfb 4865
18f6b6ee
PB
4866fi
4867fi
4868CXX=$ac_cv_prog_CXX
4869if test -n "$CXX"; then
81ecdfbb
RW
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4871$as_echo "$CXX" >&6; }
18f6b6ee 4872else
81ecdfbb
RW
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
18f6b6ee
PB
4875fi
4876
81ecdfbb 4877
18f6b6ee
PB
4878 test -n "$CXX" && break
4879 done
4880fi
4881if test -z "$CXX"; then
4882 ac_ct_CXX=$CXX
81ecdfbb 4883 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4884do
4885 # Extract the first word of "$ac_prog", so it can be a program name with args.
4886set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4889if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4890 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4891else
4892 if test -n "$ac_ct_CXX"; then
4893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
81ecdfbb 4900 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4902 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4904 break 2
512b7dfb 4905 fi
18f6b6ee 4906done
81ecdfbb
RW
4907 done
4908IFS=$as_save_IFS
512b7dfb 4909
18f6b6ee
PB
4910fi
4911fi
4912ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4913if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4915$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4916else
81ecdfbb
RW
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
18f6b6ee
PB
4919fi
4920
81ecdfbb 4921
18f6b6ee
PB
4922 test -n "$ac_ct_CXX" && break
4923done
18f6b6ee 4924
81ecdfbb
RW
4925 if test "x$ac_ct_CXX" = x; then
4926 CXX="g++"
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929yes:)
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932ac_tool_warned=yes ;;
4933esac
4934 CXX=$ac_ct_CXX
4935 fi
18f6b6ee
PB
4936fi
4937
81ecdfbb
RW
4938 fi
4939fi
18f6b6ee 4940# Provide some information about the compiler.
81ecdfbb
RW
4941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4942set X $ac_compile
4943ac_compiler=$2
4944for ac_option in --version -v -V -qversion; do
4945 { { ac_try="$ac_compiler $ac_option >&5"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
4950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951$as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4953 ac_status=$?
81ecdfbb
RW
4954 if test -s conftest.err; then
4955 sed '10a\
4956... rest of stderr output deleted ...
4957 10q' conftest.err >conftest.er1
4958 cat conftest.er1 >&5
81ecdfbb 4959 fi
d0ac1c44 4960 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962 test $ac_status = 0; }
4963done
18f6b6ee 4964
81ecdfbb
RW
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4966$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4967if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4968 $as_echo_n "(cached) " >&6
18f6b6ee 4969else
81ecdfbb 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4971/* end confdefs.h. */
4972
4973int
4974main ()
4975{
4976#ifndef __GNUC__
4977 choke me
4978#endif
4979
4980 ;
4981 return 0;
4982}
4983_ACEOF
81ecdfbb 4984if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4985 ac_compiler_gnu=yes
4986else
81ecdfbb 4987 ac_compiler_gnu=no
18f6b6ee 4988fi
81ecdfbb 4989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4991
4992fi
81ecdfbb
RW
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4994$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4995if test $ac_compiler_gnu = yes; then
4996 GXX=yes
4997else
4998 GXX=
4999fi
18f6b6ee
PB
5000ac_test_CXXFLAGS=${CXXFLAGS+set}
5001ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5003$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5004if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5005 $as_echo_n "(cached) " >&6
5006else
5007 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5008 ac_cxx_werror_flag=yes
5009 ac_cv_prog_cxx_g=no
5010 CXXFLAGS="-g"
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5012/* end confdefs.h. */
5013
5014int
5015main ()
5016{
5017
5018 ;
5019 return 0;
5020}
5021_ACEOF
81ecdfbb 5022if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5023 ac_cv_prog_cxx_g=yes
5024else
81ecdfbb
RW
5025 CXXFLAGS=""
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5027/* end confdefs.h. */
81ecdfbb 5028
18f6b6ee
PB
5029int
5030main ()
5031{
81ecdfbb 5032
18f6b6ee
PB
5033 ;
5034 return 0;
5035}
5036_ACEOF
81ecdfbb 5037if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5038
81ecdfbb
RW
5039else
5040 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5041 CXXFLAGS="-g"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5043/* end confdefs.h. */
81ecdfbb 5044
18f6b6ee
PB
5045int
5046main ()
5047{
81ecdfbb 5048
18f6b6ee
PB
5049 ;
5050 return 0;
5051}
5052_ACEOF
81ecdfbb
RW
5053if ac_fn_cxx_try_compile "$LINENO"; then :
5054 ac_cv_prog_cxx_g=yes
18f6b6ee 5055fi
81ecdfbb
RW
5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5064$as_echo "$ac_cv_prog_cxx_g" >&6; }
5065if test "$ac_test_CXXFLAGS" = set; then
5066 CXXFLAGS=$ac_save_CXXFLAGS
5067elif test $ac_cv_prog_cxx_g = yes; then
5068 if test "$GXX" = yes; then
5069 CXXFLAGS="-g -O2"
5070 else
5071 CXXFLAGS="-g"
5072 fi
5073else
5074 if test "$GXX" = yes; then
5075 CXXFLAGS="-O2"
5076 else
5077 CXXFLAGS=
5078 fi
18f6b6ee 5079fi
18f6b6ee
PB
5080ac_ext=c
5081ac_cpp='$CPP $CPPFLAGS'
5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086
5087# We must set the default linker to the linker used by gcc for the correct
5088# operation of libtool. If LD is not defined and we are using gcc, try to
5089# set the LD default to the ld used by gcc.
5090if test -z "$LD"; then
5091 if test "$GCC" = yes; then
5092 case $build in
5093 *-*-mingw*)
5094 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5095 *)
5096 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5097 esac
5098 case $gcc_prog_ld in
5099 # Accept absolute paths.
5100 [\\/]* | [A-Za-z]:[\\/]*)
5101 LD="$gcc_prog_ld" ;;
5102 esac
5103 fi
512b7dfb
PB
5104fi
5105
b3676d82
EB
5106# Check whether -static-libstdc++ -static-libgcc is supported.
5107have_static_libs=no
5108if test "$GCC" = yes; then
5109 saved_LDFLAGS="$LDFLAGS"
5110
5111 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5113$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5114 ac_ext=cpp
5115ac_cpp='$CXXCPP $CPPFLAGS'
5116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5119
5120
5121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h. */
a882be68
EB
5123
5124#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5125#error -static-libstdc++ not implemented
5126#endif
b3676d82
EB
5127int main() {}
5128_ACEOF
5129if ac_fn_cxx_try_link "$LINENO"; then :
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5131$as_echo "yes" >&6; }; have_static_libs=yes
5132else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144
5145 LDFLAGS="$saved_LDFLAGS"
5146fi
5147
512b7dfb
PB
5148
5149
5150
c6b750e1 5151if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5152 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5153set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5156if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5157 $as_echo_n "(cached) " >&6
9e07f89d 5158else
512b7dfb
PB
5159 if test -n "$GNATBIND"; then
5160 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5161else
c6b750e1
DJ
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
81ecdfbb 5167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5169 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5171 break 2
5172 fi
5173done
81ecdfbb
RW
5174 done
5175IFS=$as_save_IFS
c6b750e1 5176
9e07f89d
NN
5177fi
5178fi
512b7dfb
PB
5179GNATBIND=$ac_cv_prog_GNATBIND
5180if test -n "$GNATBIND"; then
81ecdfbb
RW
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5182$as_echo "$GNATBIND" >&6; }
9e07f89d 5183else
81ecdfbb
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
9e07f89d
NN
5186fi
5187
81ecdfbb 5188
c6b750e1 5189fi
512b7dfb
PB
5190if test -z "$ac_cv_prog_GNATBIND"; then
5191 ac_ct_GNATBIND=$GNATBIND
5192 # Extract the first word of "gnatbind", so it can be a program name with args.
5193set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5196if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5197 $as_echo_n "(cached) " >&6
9e07f89d 5198else
512b7dfb
PB
5199 if test -n "$ac_ct_GNATBIND"; then
5200 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5201else
c6b750e1
DJ
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
81ecdfbb 5207 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5209 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5211 break 2
5212 fi
5213done
81ecdfbb
RW
5214 done
5215IFS=$as_save_IFS
c6b750e1 5216
9e07f89d
NN
5217fi
5218fi
512b7dfb
PB
5219ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5220if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5222$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5223else
81ecdfbb
RW
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
9e07f89d
NN
5226fi
5227
81ecdfbb
RW
5228 if test "x$ac_ct_GNATBIND" = x; then
5229 GNATBIND="no"
5230 else
5231 case $cross_compiling:$ac_tool_warned in
5232yes:)
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235ac_tool_warned=yes ;;
5236esac
5237 GNATBIND=$ac_ct_GNATBIND
5238 fi
24ff9987 5239else
512b7dfb 5240 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5241fi
5242
7df2cd5d 5243if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5244 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5245set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5248if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5249 $as_echo_n "(cached) " >&6
7df2cd5d 5250else
512b7dfb
PB
5251 if test -n "$GNATMAKE"; then
5252 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
81ecdfbb 5259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5261 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5263 break 2
5264 fi
5265done
81ecdfbb
RW
5266 done
5267IFS=$as_save_IFS
7df2cd5d
PB
5268
5269fi
5270fi
512b7dfb
PB
5271GNATMAKE=$ac_cv_prog_GNATMAKE
5272if test -n "$GNATMAKE"; then
81ecdfbb
RW
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5274$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5275else
81ecdfbb
RW
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
7df2cd5d
PB
5278fi
5279
81ecdfbb 5280
7df2cd5d 5281fi
512b7dfb
PB
5282if test -z "$ac_cv_prog_GNATMAKE"; then
5283 ac_ct_GNATMAKE=$GNATMAKE
5284 # Extract the first word of "gnatmake", so it can be a program name with args.
5285set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5288if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5289 $as_echo_n "(cached) " >&6
7df2cd5d 5290else
512b7dfb
PB
5291 if test -n "$ac_ct_GNATMAKE"; then
5292 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
81ecdfbb 5299 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5301 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5303 break 2
5304 fi
5305done
81ecdfbb
RW
5306 done
5307IFS=$as_save_IFS
7df2cd5d 5308
7df2cd5d
PB
5309fi
5310fi
512b7dfb
PB
5311ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5312if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5314$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5315else
81ecdfbb
RW
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
7df2cd5d
PB
5318fi
5319
81ecdfbb
RW
5320 if test "x$ac_ct_GNATMAKE" = x; then
5321 GNATMAKE="no"
5322 else
5323 case $cross_compiling:$ac_tool_warned in
5324yes:)
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327ac_tool_warned=yes ;;
5328esac
5329 GNATMAKE=$ac_ct_GNATMAKE
5330 fi
7df2cd5d 5331else
512b7dfb 5332 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5333fi
5334
81ecdfbb
RW
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5336$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5337if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5338 $as_echo_n "(cached) " >&6
9e07f89d
NN
5339else
5340 cat >conftest.adb <<EOF
5341procedure conftest is begin null; end conftest;
5342EOF
5343acx_cv_cc_gcc_supports_ada=no
5344# There is a bug in old released versions of GCC which causes the
5345# driver to exit successfully when the appropriate language module
5346# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5347# Therefore we must check for the error message as well as an
5348# unsuccessful exit.
b8908782
DD
5349# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5350# given a .adb file, but produce no object file. So we must check
5351# if an object file was really produced to guard against this.
9e07f89d 5352errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5353if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5354 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5355fi
5356rm -f conftest.*
5357fi
81ecdfbb
RW
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5359$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5360
64b986c0 5361if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5362 have_gnat=yes
5363else
5364 have_gnat=no
5365fi
5366
81ecdfbb
RW
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5368$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5369if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5370 $as_echo_n "(cached) " >&6
b8908782
DD
5371else
5372 echo abfoo >t1
5373 echo cdfoo >t2
da17fe9d 5374 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5375 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5376 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5377 :
5378 else
5379 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5380 fi
5381 fi
b8908782
DD
5382 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5383 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5384 :
b8908782
DD
5385 else
5386 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5387 fi
5388 fi
5389 rm t1 t2
5390
5391fi
81ecdfbb
RW
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5393$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5394do_compare="$gcc_cv_prog_cmp_skip"
5395
5396
9e07f89d 5397
ffdd6afc
ILT
5398# Check whether --enable-bootstrap was given.
5399if test "${enable_bootstrap+set}" = set; then :
5400 enableval=$enable_bootstrap;
5401else
5402 enable_bootstrap=default
5403fi
5404
5405
5406# Issue errors and warnings for invalid/strange bootstrap combinations.
5407if test -r $srcdir/gcc/configure; then
5408 have_compiler=yes
5409else
5410 have_compiler=no
5411fi
5412
5413case "$have_compiler:$host:$target:$enable_bootstrap" in
5414 *:*:*:no) ;;
5415
5416 # Default behavior. Enable bootstrap if we have a compiler
5417 # and we are in a native configuration.
5418 yes:$build:$build:default)
5419 enable_bootstrap=yes ;;
5420
5421 *:*:*:default)
5422 enable_bootstrap=no ;;
5423
5424 # We have a compiler and we are in a native configuration, bootstrap is ok
5425 yes:$build:$build:yes)
5426 ;;
5427
5428 # Other configurations, but we have a compiler. Assume the user knows
5429 # what he's doing.
5430 yes:*:*:yes)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5432$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5433 ;;
5434
5435 # No compiler: if they passed --enable-bootstrap explicitly, fail
5436 no:*:*:yes)
d0ac1c44 5437 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5438
5439 # Fail if wrong command line
5440 *)
d0ac1c44 5441 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5442 ;;
5443esac
5444
ce6c656d
L
5445# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5446# C++98 compiler can still start the bootstrap.
5447if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5448 CXX="$CXX -std=gnu++98"
5449fi
5450
d5f2ee2e
KG
5451# Used for setting $lt_cv_objdir
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5453$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5454if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5455 $as_echo_n "(cached) " >&6
5456else
5457 rm -f .libs 2>/dev/null
5458mkdir .libs 2>/dev/null
5459if test -d .libs; then
5460 lt_cv_objdir=.libs
5461else
5462 # MS-DOS does not allow filenames that begin with a dot.
5463 lt_cv_objdir=_libs
5464fi
5465rmdir .libs 2>/dev/null
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5468$as_echo "$lt_cv_objdir" >&6; }
5469objdir=$lt_cv_objdir
5470
5471
5472
5473
5474
5475cat >>confdefs.h <<_ACEOF
5476#define LT_OBJDIR "$lt_cv_objdir/"
5477_ACEOF
5478
5479
5480
e8a5fa9c 5481# Check for GMP, MPFR and MPC
d9b76ff9 5482gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5483gmpinc=
4b900473 5484have_gmp=no
e8a5fa9c 5485
301a9420
AM
5486# Check for debuginfod
5487
5488
5489# Enable debuginfod
5490
5491# Check whether --with-debuginfod was given.
5492if test "${with_debuginfod+set}" = set; then :
5493 withval=$with_debuginfod;
5494else
5495 with_debuginfod=auto
5496fi
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
5499$as_echo_n "checking whether to use debuginfod... " >&6; }
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
5501$as_echo "$with_debuginfod" >&6; }
5502
5503if test "${with_debuginfod}" = no; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
5505$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5
5508$as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; }
5509if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 ac_check_lib_save_LIBS=$LIBS
5513LIBS="-ldebuginfod $LIBS"
5514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h. */
5516
5517/* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5520#ifdef __cplusplus
5521extern "C"
5522#endif
5523char debuginfod_begin ();
5524int
5525main ()
5526{
5527return debuginfod_begin ();
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532if ac_fn_c_try_link "$LINENO"; then :
5533 ac_cv_lib_debuginfod_debuginfod_begin=yes
5534else
5535 ac_cv_lib_debuginfod_debuginfod_begin=no
5536fi
5537rm -f core conftest.err conftest.$ac_objext \
5538 conftest$ac_exeext conftest.$ac_ext
5539LIBS=$ac_check_lib_save_LIBS
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5
5542$as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; }
5543if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes; then :
5544 have_debuginfod_lib=yes
5545fi
5546
5547 ac_fn_c_check_decl "$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h>
5548"
5549if test "x$ac_cv_have_decl_debuginfod_begin" = xyes; then :
5550 have_debuginfod_h=yes
5551fi
5552
5553 if test "x$have_debuginfod_lib" = "xyes" -a \
5554 "x$have_debuginfod_h" = "xyes"; then
5555
5556$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
5557
5558 LIBDEBUGINFOD="-ldebuginfod"
5559
5560 else
5561
5562 if test "$with_debuginfod" = yes; then
5563 as_fn_error $? "debuginfod is missing or unusable" "$LINENO" 5
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5
5566$as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;}
5567 fi
5568 fi
5569fi
5570
5571
e8a5fa9c
RW
5572# Specify a location for mpc
5573# check for this first so it ends up on the link line before mpfr.
5574
81ecdfbb
RW
5575# Check whether --with-mpc was given.
5576if test "${with_mpc+set}" = set; then :
5577 withval=$with_mpc;
5578fi
e8a5fa9c 5579
e8a5fa9c 5580
e552509b 5581# Check whether --with-mpc-include was given.
81ecdfbb
RW
5582if test "${with_mpc_include+set}" = set; then :
5583 withval=$with_mpc_include;
5584fi
e8a5fa9c 5585
e8a5fa9c 5586
e552509b 5587# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5588if test "${with_mpc_lib+set}" = set; then :
5589 withval=$with_mpc_lib;
5590fi
e8a5fa9c 5591
e8a5fa9c
RW
5592
5593if test "x$with_mpc" != x; then
d9b76ff9
KG
5594 gmplibs="-L$with_mpc/lib $gmplibs"
5595 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5596fi
5597if test "x$with_mpc_include" != x; then
d9b76ff9 5598 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5599fi
5600if test "x$with_mpc_lib" != x; then
d9b76ff9 5601 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5602fi
5603if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5604 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5605 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5606 # Do not test the mpc version. Assume that it is sufficient, since
5607 # it is in the source tree, and the library has not been built yet
5608 # but it would be included on the link line in the version check below
5609 # hence making the test fail.
d9b76ff9 5610 have_gmp=yes
e8a5fa9c 5611fi
4b900473 5612
11b04d1f
DD
5613# Specify a location for mpfr
5614# check for this first so it ends up on the link line before gmp.
c6b750e1 5615
81ecdfbb
RW
5616# Check whether --with-mpfr-dir was given.
5617if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5618 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5619Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5620fi
5621
11b04d1f
DD
5622
5623
81ecdfbb
RW
5624# Check whether --with-mpfr was given.
5625if test "${with_mpfr+set}" = set; then :
5626 withval=$with_mpfr;
5627fi
c6b750e1 5628
11b04d1f 5629
e552509b 5630# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5631if test "${with_mpfr_include+set}" = set; then :
5632 withval=$with_mpfr_include;
5633fi
c6b750e1 5634
8a0d8a5c 5635
e552509b 5636# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5637if test "${with_mpfr_lib+set}" = set; then :
5638 withval=$with_mpfr_lib;
5639fi
8a0d8a5c 5640
11b04d1f
DD
5641
5642if test "x$with_mpfr" != x; then
5643 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5644 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5645fi
8a0d8a5c 5646if test "x$with_mpfr_include" != x; then
d9b76ff9 5647 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5648fi
5649if test "x$with_mpfr_lib" != x; then
5650 gmplibs="-L$with_mpfr_lib $gmplibs"
5651fi
4b900473 5652if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5653 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5654 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5655 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5656 fi
05a13254
NC
5657 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5658 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5659 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5660 # Do not test the mpfr version. Assume that it is sufficient, since
5661 # it is in the source tree, and the library has not been built yet
5662 # but it would be included on the link line in the version check below
5663 # hence making the test fail.
5664 have_gmp=yes
5665fi
11b04d1f 5666
4b1cb4fe 5667# Specify a location for gmp
c6b750e1 5668
81ecdfbb
RW
5669# Check whether --with-gmp-dir was given.
5670if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5671 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5672Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5673fi
5674
4b1cb4fe
DD
5675
5676
81ecdfbb
RW
5677# Check whether --with-gmp was given.
5678if test "${with_gmp+set}" = set; then :
5679 withval=$with_gmp;
5680fi
c6b750e1 5681
4b1cb4fe 5682
e552509b 5683# Check whether --with-gmp-include was given.
81ecdfbb
RW
5684if test "${with_gmp_include+set}" = set; then :
5685 withval=$with_gmp_include;
5686fi
c6b750e1 5687
8a0d8a5c 5688
e552509b 5689# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5690if test "${with_gmp_lib+set}" = set; then :
5691 withval=$with_gmp_lib;
5692fi
8a0d8a5c
PB
5693
5694
4b1cb4fe 5695
11b04d1f
DD
5696if test "x$with_gmp" != x; then
5697 gmplibs="-L$with_gmp/lib $gmplibs"
5698 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5699fi
8a0d8a5c
PB
5700if test "x$with_gmp_include" != x; then
5701 gmpinc="-I$with_gmp_include $gmpinc"
5702fi
5703if test "x$with_gmp_lib" != x; then
5704 gmplibs="-L$with_gmp_lib $gmplibs"
5705fi
4b900473 5706if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5707 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5708 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5709 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5710 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5711 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5712 # Do not test the gmp version. Assume that it is sufficient, since
5713 # it is in the source tree, and the library has not been built yet
5714 # but it would be included on the link line in the version check below
5715 # hence making the test fail.
5716 have_gmp=yes
5717fi
4b1cb4fe 5718
ceb92e78 5719if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5720 have_gmp=yes
5721 saved_CFLAGS="$CFLAGS"
5722 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5723 # Check for the recommended and required versions of GMP.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5725$as_echo_n "checking for the correct version of gmp.h... " >&6; }
301a9420 5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5727/* end confdefs.h. */
5728#include "gmp.h"
5729int
5730main ()
5731{
5732
5733 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5734 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5735 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5736 choke me
5737 #endif
5738
5739 ;
5740 return 0;
5741}
5742_ACEOF
5743if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5745/* end confdefs.h. */
a6b5846e 5746#include <gmp.h>
c6b750e1
DJ
5747int
5748main ()
5749{
4b1cb4fe 5750
a6b5846e
KG
5751 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5752 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5753 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5754 choke me
5755 #endif
c6b750e1
DJ
5756
5757 ;
5758 return 0;
5759}
5760_ACEOF
81ecdfbb
RW
5761if ac_fn_c_try_compile "$LINENO"; then :
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763$as_echo "yes" >&6; }
a6b5846e
KG
5764else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5766$as_echo "buggy but acceptable" >&6; }
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5769else
81ecdfbb
RW
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5772fi
81ecdfbb 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5774
e8a5fa9c 5775 # If we have GMP, check the MPFR version.
4b900473 5776 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5777 # Check for the recommended and required versions of MPFR.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5779$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5781/* end confdefs.h. */
9b134994 5782#include <gmp.h>
4b900473 5783 #include <mpfr.h>
c6b750e1
DJ
5784int
5785main ()
5786{
9b134994 5787
7ec59b9e 5788 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5789 choke me
5790 #endif
c6b750e1
DJ
5791
5792 ;
5793 return 0;
5794}
5795_ACEOF
81ecdfbb
RW
5796if ac_fn_c_try_compile "$LINENO"; then :
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5798/* end confdefs.h. */
4b1cb4fe 5799#include <gmp.h>
4b900473 5800 #include <mpfr.h>
c6b750e1
DJ
5801int
5802main ()
5803{
9dbaa842 5804
a6b5846e 5805 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5806 choke me
5807 #endif
e8a5fa9c
RW
5808
5809 ;
5810 return 0;
5811}
5812_ACEOF
81ecdfbb
RW
5813if ac_fn_c_try_compile "$LINENO"; then :
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5815$as_echo "yes" >&6; }
e8a5fa9c 5816else
81ecdfbb
RW
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5818$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5819fi
81ecdfbb 5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5821else
81ecdfbb
RW
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5824fi
81ecdfbb 5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5826 fi
5827
5828 # Check for the MPC header version.
d9b76ff9 5829 if test x"$have_gmp" = xyes ; then
a6b5846e 5830 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5832$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5834/* end confdefs.h. */
5835#include <mpc.h>
5836int
5837main ()
5838{
5839
a6b5846e
KG
5840 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5841 choke me
5842 #endif
5843
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848if ac_fn_c_try_compile "$LINENO"; then :
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h. */
5851#include <mpc.h>
5852int
5853main ()
5854{
5855
5856 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5857 choke me
5858 #endif
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
81ecdfbb
RW
5864if ac_fn_c_try_compile "$LINENO"; then :
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5866$as_echo "yes" >&6; }
a6b5846e
KG
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5869$as_echo "buggy but acceptable" >&6; }
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5872else
81ecdfbb 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5874$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5875fi
81ecdfbb 5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5877 fi
5878
5879 # Now check the MPFR library.
5880 if test x"$have_gmp" = xyes; then
5881 saved_LIBS="$LIBS"
5882 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5884$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5886/* end confdefs.h. */
d9b76ff9 5887#include <mpc.h>
e8a5fa9c
RW
5888int
5889main ()
5890{
5891
5892 mpfr_t n;
5893 mpfr_t x;
d9b76ff9 5894 mpc_t c;
e8a5fa9c
RW
5895 int t;
5896 mpfr_init (n);
5897 mpfr_init (x);
5898 mpfr_atan2 (n, n, x, GMP_RNDN);
5899 mpfr_erfc (n, x, GMP_RNDN);
5900 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5901 mpfr_clear(n);
5902 mpfr_clear(x);
5903 mpc_init2 (c, 53);
5904 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5905 mpc_cosh (c, c, MPC_RNDNN);
5906 mpc_pow (c, c, c, MPC_RNDNN);
5907 mpc_acosh (c, c, MPC_RNDNN);
5908 mpc_clear (c);
c6b750e1
DJ
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
81ecdfbb
RW
5914if ac_fn_c_try_link "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5916$as_echo "yes" >&6; }
c6b750e1 5917else
81ecdfbb
RW
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5920fi
81ecdfbb
RW
5921rm -f core conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5923 LIBS="$saved_LIBS"
5924 fi
5925
4b900473 5926 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5927
a6b5846e
KG
5928# The library versions listed in the error message below should match
5929# the HARD-minimums enforced above.
4b900473 5930 if test x$have_gmp != xyes; then
d0ac1c44 5931 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5932Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5933their locations. Source code for these libraries can be found at
5934their respective hosting sites as well as at
5935ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5936http://gcc.gnu.org/install/prerequisites.html for additional info. If
5937you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5938make sure that you have installed both the libraries and the header
5939files. They may be located in separate packages." "$LINENO" 5
4b900473 5940 fi
9dbaa842
DD
5941fi
5942
e8a5fa9c
RW
5943# Flags needed for both GMP, MPFR and/or MPC.
5944
5945
5946
4b1cb4fe
DD
5947
5948
5949
7ec59b9e 5950
b3676d82 5951# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5952
b3676d82
EB
5953# Check whether --with-stage1-libs was given.
5954if test "${with_stage1_libs+set}" = set; then :
5955 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5956 stage1_libs=
e8a5fa9c 5957 else
b3676d82 5958 stage1_libs=$withval
e8a5fa9c
RW
5959 fi
5960else
68996839 5961 stage1_libs=
81ecdfbb
RW
5962fi
5963
e8a5fa9c
RW
5964
5965
c1a5d03a
TT
5966# Whether or not to use -static-libstdc++ and -static-libgcc. The
5967# default is yes if gcc is being built; no otherwise. The reason for
5968# this default is that gdb is sometimes linked against GNU Source
5969# Highlight, which is a shared library that uses C++ exceptions. In
5970# this case, -static-libstdc++ will cause crashes.
5971
5972# Check whether --with-static-standard-libraries was given.
5973if test "${with_static_standard_libraries+set}" = set; then :
5974 withval=$with_static_standard_libraries;
5975else
5976 with_static_standard_libraries=auto
5977fi
5978
5979if test "$with_static_standard_libraries" = auto; then
5980 with_static_standard_libraries=$have_compiler
5981fi
5982
b3676d82 5983# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5984
b3676d82
EB
5985# Check whether --with-stage1-ldflags was given.
5986if test "${with_stage1_ldflags+set}" = set; then :
5987 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5988 stage1_ldflags=
e8a5fa9c 5989 else
b3676d82 5990 stage1_ldflags=$withval
e8a5fa9c
RW
5991 fi
5992else
b3676d82
EB
5993 stage1_ldflags=
5994 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5995 # if supported. But if the user explicitly specified the libraries to use,
5996 # trust that they are doing what they want.
c1a5d03a
TT
5997 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5998 -a "$have_static_libs" = yes; then
b3676d82
EB
5999 stage1_ldflags="-static-libstdc++ -static-libgcc"
6000 fi
81ecdfbb
RW
6001fi
6002
e8a5fa9c
RW
6003
6004
68996839 6005# Libraries to use for stage2 and later builds.
e8a5fa9c 6006
81ecdfbb
RW
6007# Check whether --with-boot-libs was given.
6008if test "${with_boot_libs+set}" = set; then :
6009 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
6010 poststage1_libs=
6011 else
6012 poststage1_libs=$withval
6013 fi
6014else
68996839 6015 poststage1_libs=
81ecdfbb
RW
6016fi
6017
e8a5fa9c
RW
6018
6019
143754cd
NC
6020# Linker flags to use for stage2 and later builds.
6021
6022# Check whether --with-boot-ldflags was given.
6023if test "${with_boot_ldflags+set}" = set; then :
6024 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6025 poststage1_ldflags=
6026 else
6027 poststage1_ldflags=$withval
6028 fi
6029else
6030 poststage1_ldflags=
4f11b223
ILT
6031 # In stages 2 and 3, default to linking libstdc++ and libgcc
6032 # statically. But if the user explicitly specified the libraries to
6033 # use, trust that they are doing what they want.
6034 if test "$poststage1_libs" = ""; then
143754cd
NC
6035 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6036 fi
6037fi
6038
6039
6040
4849dfd8 6041# GCC GRAPHITE dependency isl.
1b6c0831 6042# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6043
6044
7ec59b9e
L
6045# Check whether --with-isl was given.
6046if test "${with_isl+set}" = set; then :
6047 withval=$with_isl;
81ecdfbb 6048fi
e28c595f 6049
e28c595f 6050
1b6c0831 6051# Treat --without-isl as a request to disable
8e71395b 6052# GRAPHITE support and skip all following checks.
1b6c0831 6053if test "x$with_isl" != "xno"; then
4849dfd8 6054 # Check for isl
8e71395b
L
6055
6056
7ec59b9e
L
6057# Check whether --with-isl-include was given.
6058if test "${with_isl_include+set}" = set; then :
6059 withval=$with_isl_include;
81ecdfbb
RW
6060fi
6061
e28c595f 6062
7ec59b9e
L
6063# Check whether --with-isl-lib was given.
6064if test "${with_isl_lib+set}" = set; then :
6065 withval=$with_isl_lib;
81ecdfbb 6066fi
e28c595f 6067
e28c595f 6068
7ec59b9e
L
6069 # Check whether --enable-isl-version-check was given.
6070if test "${enable_isl_version_check+set}" = set; then :
6071 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6072else
6073 ENABLE_ISL_CHECK=yes
b123da99
SP
6074fi
6075
6076
7ec59b9e
L
6077 # Initialize isllibs and islinc.
6078 case $with_isl in
6079 no)
6080 isllibs=
6081 islinc=
6082 ;;
6083 "" | yes)
6084 ;;
6085 *)
6086 isllibs="-L$with_isl/lib"
6087 islinc="-I$with_isl/include"
6088 ;;
6089 esac
6090 if test "x${with_isl_include}" != x ; then
6091 islinc="-I$with_isl_include"
6092 fi
6093 if test "x${with_isl_lib}" != x; then
6094 isllibs="-L$with_isl_lib"
6095 fi
6096 if test "x${islinc}" = x && test "x${isllibs}" = x \
6097 && test -d ${srcdir}/isl; then
6098 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6099 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6100 ENABLE_ISL_CHECK=no
4849dfd8
NC
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6102$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6103 fi
b123da99 6104
1b6c0831 6105 isllibs="${isllibs} -lisl"
b123da99 6106
e28c595f 6107
b3fc79f8
JBG
6108
6109 if test "${ENABLE_ISL_CHECK}" = yes ; then
6110 _isl_saved_CFLAGS=$CFLAGS
6111 _isl_saved_LDFLAGS=$LDFLAGS
6112 _isl_saved_LIBS=$LIBS
6113
6114 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6115 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6116 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6117
bf41f30d
NC
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6119$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6121/* end confdefs.h. */
bf41f30d 6122#include <isl/schedule.h>
b3fc79f8
JBG
6123int
6124main ()
6125{
bf41f30d 6126isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6127 ;
6128 return 0;
6129}
6130_ACEOF
1b6c0831 6131if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6132 gcc_cv_isl=yes
6133else
6134 gcc_cv_isl=no
6135fi
1b6c0831
L
6136rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6139$as_echo "$gcc_cv_isl" >&6; }
6140
4849dfd8 6141 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6143$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6144 fi
6145
b3fc79f8
JBG
6146 CFLAGS=$_isl_saved_CFLAGS
6147 LDFLAGS=$_isl_saved_LDFLAGS
6148 LIBS=$_isl_saved_LIBS
6149 fi
6150
6151
e28c595f 6152
e28c595f 6153
7ec59b9e
L
6154
6155
7ec59b9e
L
6156 if test "x${with_isl}" = xno; then
6157 graphite_requested=no
6158 elif test "x${with_isl}" != x \
6159 || test "x${with_isl_include}" != x \
6160 || test "x${with_isl_lib}" != x ; then
6161 graphite_requested=yes
6162 else
6163 graphite_requested=no
b123da99 6164 fi
e28c595f 6165
e28c595f
JM
6166
6167
7ec59b9e
L
6168 if test "${gcc_cv_isl}" = no ; then
6169 isllibs=
6170 islinc=
6171 fi
e28c595f 6172
7ec59b9e
L
6173 if test "${graphite_requested}" = yes \
6174 && test "x${isllibs}" = x \
6175 && test "x${islinc}" = x ; then
e28c595f 6176
d0ac1c44 6177 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6178 fi
e552509b 6179
e28c595f 6180
e552509b
ILT
6181fi
6182
4849dfd8 6183# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6184if test "x$with_isl" = xno ||
8e71395b 6185 test "x$gcc_cv_isl" = xno; then
1b6c0831 6186 noconfigdirs="$noconfigdirs isl"
8e71395b 6187 islinc=
7ec59b9e
L
6188fi
6189
8e71395b
L
6190
6191
6192
700d40ca
ILT
6193# Check for LTO support.
6194# Check whether --enable-lto was given.
6195if test "${enable_lto+set}" = set; then :
6196 enableval=$enable_lto; enable_lto=$enableval
6197else
6198 enable_lto=yes; default_enable_lto=yes
6199fi
6200
6201
143754cd 6202
e49e5c92
DK
6203
6204
6205target_elf=no
6206case $target in
6207 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6208 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6209 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6210 nvptx-*-none)
e49e5c92
DK
6211 target_elf=no
6212 ;;
6213 *)
6214 target_elf=yes
6215 ;;
6216esac
6217
6218if test $target_elf = yes; then :
74cea91b
DK
6219 # ELF platforms build the lto-plugin always.
6220 build_lto_plugin=yes
e49e5c92 6221
e49e5c92
DK
6222else
6223 if test x"$default_enable_lto" = x"yes" ; then
29821356 6224 case $target in
bf41f30d 6225 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6226 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6227 *) enable_lto=no ;;
6228 esac
e49e5c92 6229 else
29821356
RW
6230 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6231 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6232 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6233 # warn during gcc/ subconfigure; unless you're bootstrapping with
6234 # -flto it won't be needed until after installation anyway.
6235 case $target in
52cf9762 6236 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6237 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6238 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6239 fi
6240 ;;
6241 esac
6242 fi
a8eb3f0a 6243 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6244 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6245 case $target in
74cea91b 6246 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6247 *) ;;
6248 esac
74cea91b 6249
e49e5c92
DK
6250fi
6251
700d40ca 6252
1b6c0831
L
6253# Check whether --enable-linker-plugin-configure-flags was given.
6254if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6255 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6256else
6257 extra_linker_plugin_configure_flags=
6258fi
6259
6260
6261# Check whether --enable-linker-plugin-flags was given.
6262if test "${enable_linker_plugin_flags+set}" = set; then :
6263 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6264else
6265 extra_linker_plugin_flags=
6266fi
6267
6268
6269
bf41f30d
NC
6270# Enable --enable-host-shared.
6271# Checked early to determine whether jit is an 'all' language
6272# Check whether --enable-host-shared was given.
6273if test "${enable_host_shared+set}" = set; then :
6274 enableval=$enable_host_shared; host_shared=$enableval
6275else
6276 host_shared=no
6277fi
6278
6279
e28c595f 6280
7ec59b9e 6281# By default, C and C++ are the only stage 1 languages.
9b134994 6282stage1_languages=,c,
1d39f329 6283
e8a5fa9c 6284# Target libraries that we bootstrap.
2aa2364a 6285bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6286
9e07f89d
NN
6287# Figure out what language subdirectories are present.
6288# Look if the user specified --enable-languages="..."; if not, use
6289# the environment variable $LANGUAGES if defined. $LANGUAGES might
6290# go away some day.
6291# NB: embedded tabs in this IF block -- do not untabify
6292if test -d ${srcdir}/gcc; then
6293 if test x"${enable_languages+set}" != xset; then
6294 if test x"${LANGUAGES+set}" = xset; then
6295 enable_languages="${LANGUAGES}"
136bb21f 6296 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6297 else
bf41f30d 6298 enable_languages=default
9e07f89d
NN
6299 fi
6300 else
6301 if test x"${enable_languages}" = x ||
6302 test x"${enable_languages}" = xyes;
6303 then
136bb21f 6304 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6305 exit 1
6306 fi
6307 fi
6308 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6309
096f7d00
DE
6310 # 'f95' is the old name for the 'fortran' language. We issue a warning
6311 # and make the substitution.
6312 case ,${enable_languages}, in
6313 *,f95,*)
136bb21f 6314 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6315 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6316 ;;
6317 esac
6318
7ec59b9e
L
6319 # If bootstrapping, C++ must be enabled.
6320 case ",$enable_languages,:$enable_bootstrap" in
6321 *,c++,*:*) ;;
6322 *:yes)
ffdd6afc
ILT
6323 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6324 enable_languages="${enable_languages},c++"
6325 else
d0ac1c44 6326 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6327 fi
6328 ;;
6329 esac
6330
9e07f89d
NN
6331 # First scan to see if an enabled language requires some other language.
6332 # We assume that a given config-lang.in will list all the language
6333 # front ends it requires, even if some are required indirectly.
6334 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6335 case ${lang_frag} in
6336 ..) ;;
6337 # The odd quoting in the next line works around
6338 # an apparent bug in bash 1.12 on linux.
6339 ${srcdir}/gcc/[*]/config-lang.in) ;;
6340 *)
e552509b
ILT
6341 # From the config-lang.in, get $language, $lang_requires, and
6342 # $lang_requires_boot_languages.
9e07f89d
NN
6343 language=
6344 lang_requires=
e552509b 6345 lang_requires_boot_languages=
bf41f30d
NC
6346 # set srcdir during sourcing lang_frag to the gcc dir.
6347 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6348 # polutes this shell
6349 saved_srcdir=${srcdir}
6350 srcdir=${srcdir}/gcc . ${lang_frag}
6351 srcdir=${saved_srcdir}
e552509b 6352 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6353 case ,${enable_languages}, in
6354 *,$other,*) ;;
bf41f30d 6355 *,default,*) ;;
9e07f89d
NN
6356 *,all,*) ;;
6357 *,$language,*)
6358 echo " \`$other' language required by \`$language'; enabling" 1>&2
6359 enable_languages="${enable_languages},${other}"
6360 ;;
6361 esac
6362 done
e552509b
ILT
6363 for other in ${lang_requires_boot_languages} ; do
6364 if test "$other" != "c"; then
6365 case ,${enable_stage1_languages}, in
6366 *,$other,*) ;;
bf41f30d 6367 *,default,*) ;;
e552509b
ILT
6368 *,all,*) ;;
6369 *)
6370 case ,${enable_languages}, in
6371 *,$language,*)
6372 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6373 enable_stage1_languages="$enable_stage1_languages,${other}"
6374 ;;
6375 esac
6376 ;;
6377 esac
6378 fi
6379 done
9e07f89d
NN
6380 ;;
6381 esac
6382 done
6383
9b134994 6384 new_enable_languages=,c,
700d40ca
ILT
6385
6386 # If LTO is enabled, add the LTO front end.
700d40ca 6387 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6388 case ,${enable_languages}, in
6389 *,lto,*) ;;
6390 *) enable_languages="${enable_languages},lto" ;;
6391 esac
a8eb3f0a 6392 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6393 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6394 fi
6395 fi
6396
1b6c0831
L
6397 # If we're building an offloading compiler, add the LTO front end.
6398 if test x"$enable_as_accelerator_for" != x ; then
6399 case ,${enable_languages}, in
6400 *,lto,*) ;;
6401 *) enable_languages="${enable_languages},lto" ;;
6402 esac
6403 fi
700d40ca 6404
bf41f30d 6405 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6406 potential_languages=,c,
9e07f89d 6407
9e1a94f4
ILT
6408 enabled_target_libs=
6409 disabled_target_libs=
6410
9e07f89d
NN
6411 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6412 case ${lang_frag} in
6413 ..) ;;
6414 # The odd quoting in the next line works around
6415 # an apparent bug in bash 1.12 on linux.
6416 ${srcdir}/gcc/[*]/config-lang.in) ;;
6417 *)
c6b750e1 6418 # From the config-lang.in, get $language, $target_libs,
1d39f329 6419 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6420 language=
6421 target_libs=
6422 lang_dirs=
64ce424c 6423 subdir_requires=
9b134994
PB
6424 boot_language=no
6425 build_by_default=yes
bf41f30d
NC
6426 # set srcdir during sourcing. See above about save & restore
6427 saved_srcdir=${srcdir}
6428 srcdir=${srcdir}/gcc . ${lang_frag}
6429 srcdir=${saved_srcdir}
9b134994
PB
6430 if test x${language} = x; then
6431 echo "${lang_frag} doesn't set \$language." 1>&2
6432 exit 1
6433 fi
6434
ffdd6afc 6435 if test "$language" = "c++"; then
7ec59b9e 6436 boot_language=yes
e8a5fa9c
RW
6437 fi
6438
8e71395b 6439 add_this_lang=no
bf41f30d
NC
6440 # C is always enabled, so no need to add it again
6441 if test "$language" != "c"; then
6442 case ,${enable_languages}, in
6443 *,${language},*)
6444 # Language was explicitly selected; include it
7ec59b9e 6445 add_this_lang=yes
bf41f30d
NC
6446 ;;
6447 *,all,*)
6448 # All languages are enabled
6449 add_this_lang=all
6450 ;;
6451 *,default,*)
6452 # 'default' was selected, select it if it is a default language
8e71395b 6453 add_this_lang=${build_by_default}
bf41f30d
NC
6454 ;;
6455 esac
6456 fi
4b1cb4fe 6457
64ce424c 6458 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6459 for i in $subdir_requires; do
3d3adb43 6460 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6461 case ${add_this_lang} in
6462 yes)
64ce424c 6463 # Specifically requested language; tell them.
d0ac1c44 6464 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6465 ;;
bf41f30d
NC
6466 all)
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6468$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6469 add_this_lang=unsupported
6470 ;;
64ce424c
PB
6471 *)
6472 # Silently disable.
9b134994 6473 add_this_lang=unsupported
64ce424c
PB
6474 ;;
6475 esac
6476 done
6477
9b134994 6478 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6479 case ${add_this_lang}:${language}:${have_gnat} in
6480 yes:ada:no)
9b134994 6481 # Specifically requested language; tell them.
d0ac1c44 6482 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6483 ;;
bf41f30d
NC
6484 all:ada:no)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6486$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6487 add_this_lang=unsupported
6488 ;;
9b134994
PB
6489 *:ada:no)
6490 # Silently disable.
6491 add_this_lang=unsupported
6492 ;;
6493 esac
6494
bf41f30d
NC
6495 # Disable jit if -enable-host-shared not specified
6496 case ${add_this_lang}:${language}:${host_shared} in
6497 yes:jit:no)
6498 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6499 as_fn_error $? "
bf41f30d
NC
6500Enabling language \"jit\" requires --enable-host-shared.
6501
6502--enable-host-shared typically slows the rest of the compiler down by
6503a few %, so you must explicitly enable it.
6504
6505If you want to build both the jit and the regular compiler, it is often
6506best to do this via two separate configure/builds, in separate
6507directories, to avoid imposing the performance cost of
6508--enable-host-shared on the regular compiler." "$LINENO" 5
6509 ;;
6510 all:jit:no)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6512$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6513 add_this_lang=unsupported
6514 ;;
6515 *:jit:no)
6516 # Silently disable.
6517 add_this_lang=unsupported
6518 ;;
6519 esac
6520
6521 # Disable a language that is unsupported by the target.
6522 case "${add_this_lang}: $unsupported_languages " in
6523 no:*) ;;
6524 unsupported:*) ;;
6525 *:*" $language "*)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6527$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6528 add_this_lang=unsupported
59f7ec45
HPN
6529 ;;
6530 esac
6531
4b1cb4fe 6532 case $add_this_lang in
9b134994 6533 unsupported)
9e07f89d 6534 # Remove language-dependent dirs.
9e1a94f4
ILT
6535 disabled_target_libs="$disabled_target_libs $target_libs"
6536 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6537 ;;
9b134994
PB
6538 no)
6539 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6540 disabled_target_libs="$disabled_target_libs $target_libs"
6541 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6542 potential_languages="${potential_languages}${language},"
6543 ;;
bf41f30d 6544 all|yes)
9b134994
PB
6545 new_enable_languages="${new_enable_languages}${language},"
6546 potential_languages="${potential_languages}${language},"
1d39f329 6547 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6548 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6549 case "${boot_language}:,$enable_stage1_languages," in
6550 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6551 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6552 case ",$stage1_languages," in
6553 *,$language,* | ,yes, | ,all,) ;;
6554 *) stage1_languages="${stage1_languages}${language}," ;;
6555 esac
e8a5fa9c
RW
6556 # We need to bootstrap any supporting libraries.
6557 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6558 ;;
6559 esac
6560 ;;
9e07f89d
NN
6561 esac
6562 ;;
6563 esac
6564 done
6565
9e1a94f4
ILT
6566 # Add target libraries which are only needed for disabled languages
6567 # to noconfigdirs.
6568 if test -n "$disabled_target_libs"; then
6569 for dir in $disabled_target_libs; do
6570 case " $enabled_target_libs " in
6571 *" ${dir} "*) ;;
6572 *) noconfigdirs="$noconfigdirs $dir" ;;
6573 esac
6574 done
6575 fi
6576
81ecdfbb
RW
6577 # Check whether --enable-stage1-languages was given.
6578if test "${enable_stage1_languages+set}" = set; then :
6579 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6580 ,no,|,,)
6581 # Set it to something that will have no effect in the loop below
6582 enable_stage1_languages=c ;;
6583 ,yes,)
6584 enable_stage1_languages=`echo $new_enable_languages | \
6585 sed -e "s/^,//" -e "s/,$//" ` ;;
6586 *,all,*)
6587 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6588 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6589 esac
6590
6591 # Add "good" languages from enable_stage1_languages to stage1_languages,
6592 # while "bad" languages go in missing_languages. Leave no duplicates.
6593 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6594 case $potential_languages in
6595 *,$i,*)
6596 case $stage1_languages in
6597 *,$i,*) ;;
6598 *) stage1_languages="$stage1_languages$i," ;;
6599 esac ;;
6600 *)
6601 case $missing_languages in
6602 *,$i,*) ;;
6603 *) missing_languages="$missing_languages$i," ;;
6604 esac ;;
6605 esac
6606 done
81ecdfbb
RW
6607fi
6608
9b134994
PB
6609
6610 # Remove leading/trailing commas that were added for simplicity
6611 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6612 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6613 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6614 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6615
9e07f89d 6616 if test "x$missing_languages" != x; then
d0ac1c44 6617 as_fn_error $? "
27258dd4 6618The following requested languages could not be built: ${missing_languages}
81ecdfbb 6619Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6620 fi
9e07f89d
NN
6621 if test "x$new_enable_languages" != "x$enable_languages"; then
6622 echo The following languages will be built: ${new_enable_languages}
9b134994 6623 enable_languages="$new_enable_languages"
9e07f89d 6624 fi
9b134994 6625
c6b750e1 6626
81ec575a 6627 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6628fi
6629
a6df5a19
PB
6630# Handle --disable-<component> generically.
6631for dir in $configdirs $build_configdirs $target_configdirs ; do
6632 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6633 varname=`echo $dirname | sed -e s/+/_/g`
6634 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6635 noconfigdirs="$noconfigdirs $dir"
6636 fi
6637done
6638
4f0ef2d8 6639# Check for Boehm's garbage collector
81ecdfbb
RW
6640# Check whether --enable-objc-gc was given.
6641if test "${enable_objc_gc+set}" = set; then :
05a13254 6642 enableval=$enable_objc_gc;
81ecdfbb
RW
6643fi
6644
4f0ef2d8 6645
05a13254
NC
6646# Check whether --with-target-bdw-gc was given.
6647if test "${with_target_bdw_gc+set}" = set; then :
6648 withval=$with_target_bdw_gc;
6649fi
6650
6651
6652# Check whether --with-target-bdw-gc-include was given.
6653if test "${with_target_bdw_gc_include+set}" = set; then :
6654 withval=$with_target_bdw_gc_include;
6655fi
6656
6657
6658# Check whether --with-target-bdw-gc-lib was given.
6659if test "${with_target_bdw_gc_lib+set}" = set; then :
6660 withval=$with_target_bdw_gc_lib;
6661fi
6662
6663
6664case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6666$as_echo_n "checking for bdw garbage collector... " >&6; }
6667 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6669$as_echo "using bdw-gc in default locations" >&6; }
6670 else
6671 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6672 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6673 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6674 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6677$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6678 fi
05a13254 6679 fi
4f0ef2d8
CD
6680esac
6681
bf41f30d 6682# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6683case ,${enable_languages}, in
1b6c0831 6684 *,c++,*)
bf41f30d 6685 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6686 case "${noconfigdirs}" in
6687 *target-libstdc++-v3*)
bf41f30d 6688 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6689 ;;
6690 *) ;;
6691 esac
6692 ;;
7ec59b9e 6693 *)
bf41f30d 6694 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6695 ;;
6696esac
6697
caeba88f
AL
6698# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6699# $build_configdirs and $target_configdirs.
9e07f89d
NN
6700# If we have the source for $noconfigdirs entries, add them to $notsupp.
6701
6702notsupp=""
6703for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6704 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6705 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6706 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6707 if test -r $srcdir/$dirname/configure ; then
6708 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6709 true
6710 else
6711 notsupp="$notsupp $dir"
6712 fi
6713 fi
6714 fi
caeba88f
AL
6715 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6716 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6717 if test -r $srcdir/$dirname/configure ; then
6718 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6719 true
6720 else
6721 notsupp="$notsupp $dir"
6722 fi
6723 fi
6724 fi
9e07f89d
NN
6725 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6726 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6727 if test -r $srcdir/$dirname/configure ; then
6728 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6729 true
6730 else
6731 notsupp="$notsupp $dir"
6732 fi
6733 fi
6734 fi
6735done
6736
9e07f89d
NN
6737# Quietly strip out all directories which aren't configurable in this tree.
6738# This relies on all configurable subdirectories being autoconfiscated, which
6739# is now the case.
6a9cf61e
PB
6740build_configdirs_all="$build_configdirs"
6741build_configdirs=
6742for i in ${build_configdirs_all} ; do
c6b750e1 6743 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6744 if test -f ${srcdir}/$j/configure ; then
6745 build_configdirs="${build_configdirs} $i"
6746 fi
6747done
6748
9e07f89d
NN
6749configdirs_all="$configdirs"
6750configdirs=
6751for i in ${configdirs_all} ; do
6752 if test -f ${srcdir}/$i/configure ; then
6753 configdirs="${configdirs} $i"
6754 fi
6755done
6a9cf61e 6756
9e07f89d
NN
6757target_configdirs_all="$target_configdirs"
6758target_configdirs=
6759for i in ${target_configdirs_all} ; do
c6b750e1 6760 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6761 if test -f ${srcdir}/$j/configure ; then
6762 target_configdirs="${target_configdirs} $i"
6763 fi
6764done
6765
1b6c0831
L
6766# libiberty-linker-plugin is special: it doesn't have its own source directory,
6767# so we have to add it after the preceding checks.
6768if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6769then
6770 case " $configdirs " in
6771 *" libiberty "*)
6772 # If we can build libiberty, we can also build libiberty-linker-plugin.
6773 configdirs="$configdirs libiberty-linker-plugin"
6774 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6775 --with-libiberty=../libiberty-linker-plugin";;
6776 *)
d0ac1c44 6777 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6778 esac
6779fi
6780
6781# Sometimes we have special requirements for the host libiberty.
6782extra_host_libiberty_configure_flags=
e81d5d05 6783extra_host_zlib_configure_flags=
1b6c0831
L
6784case " $configdirs " in
6785 *" lto-plugin "* | *" libcc1 "*)
6786 # When these are to be built as shared libraries, the same applies to
6787 # libiberty.
6788 extra_host_libiberty_configure_flags=--enable-shared
6789 ;;
e81d5d05
L
6790 *" bfd "*)
6791 # When bfd is to be built as a shared library, the same applies to
6792 # zlib.
6793 if test "$enable_shared" = "yes"; then
6794 extra_host_zlib_configure_flags=--enable-host-shared
6795 fi
6796 ;;
1b6c0831
L
6797esac
6798
6799
e81d5d05 6800
9e07f89d
NN
6801# Produce a warning message for the subdirs we can't configure.
6802# This isn't especially interesting in the Cygnus tree, but in the individual
6803# FSF releases, it's important to let people know when their machine isn't
6804# supported by the one or two programs in a package.
6805
6806if test -n "${notsupp}" && test -z "${norecursion}" ; then
6807 # If $appdirs is non-empty, at least one of those directories must still
6808 # be configured, or we error out. (E.g., if the gas release supports a
6809 # specified target in some subdirs but not the gas subdir, we shouldn't
6810 # pretend that all is well.)
6811 if test -n "$appdirs" ; then
6812 for dir in $appdirs ; do
6813 if test -r $dir/Makefile.in ; then
6814 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6815 appdirs=""
6816 break
6817 fi
6a9cf61e 6818 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6819 appdirs=""
6820 break
6821 fi
6822 fi
6823 done
6824 if test -n "$appdirs" ; then
6825 echo "*** This configuration is not supported by this package." 1>&2
6826 exit 1
6827 fi
6828 fi
6829 # Okay, some application will build, or we don't care to check. Still
6830 # notify of subdirs not getting built.
6831 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6832 echo " ${notsupp}" 1>&2
6833 echo " (Any other directories should still work fine.)" 1>&2
6834fi
6835
6836case "$host" in
6837 *msdosdjgpp*)
6838 enable_gdbtk=no ;;
6839esac
6840
18f6b6ee
PB
6841# To find our prefix, in gcc_cv_tool_prefix.
6842
6843# The user is always right.
6844if test "${PATH_SEPARATOR+set}" != set; then
6845 echo "#! /bin/sh" >conf$$.sh
6846 echo "exit 0" >>conf$$.sh
6847 chmod +x conf$$.sh
6848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6849 PATH_SEPARATOR=';'
6850 else
6851 PATH_SEPARATOR=:
6852 fi
6853 rm -f conf$$.sh
6854fi
6855
6856
bf41f30d
NC
6857 get_gcc_base_ver="cat"
6858
6859# Check whether --with-gcc-major-version-only was given.
6860if test "${with_gcc_major_version_only+set}" = set; then :
6861 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6862 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6863 fi
6864
6865fi
6866
6867
6868
6869
6870
18f6b6ee
PB
6871
6872if test "x$exec_prefix" = xNONE; then
6873 if test "x$prefix" = xNONE; then
6874 gcc_cv_tool_prefix=$ac_default_prefix
6875 else
6876 gcc_cv_tool_prefix=$prefix
6877 fi
6878else
6879 gcc_cv_tool_prefix=$exec_prefix
6880fi
6881
6882# If there is no compiler in the tree, use the PATH only. In any
6883# case, if there is no compiler in the tree nobody should use
6884# AS_FOR_TARGET and LD_FOR_TARGET.
6885if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6886 if test x$with_gcc_major_version_only = xyes ; then
6887 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6888 else
6889 gcc_version=`cat $srcdir/gcc/BASE-VER`
6890 fi
18f6b6ee
PB
6891 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6892 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6893 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6894 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6895 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6896 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6897else
6898 gcc_cv_tool_dirs=
6899fi
6900
6901if test x$build = x$target && test -n "$md_exec_prefix"; then
6902 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6903fi
6904
6905
6906
9e07f89d
NN
6907copy_dirs=
6908
c6b750e1 6909
81ecdfbb
RW
6910# Check whether --with-build-sysroot was given.
6911if test "${with_build_sysroot+set}" = set; then :
6912 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6913 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6914 fi
6915else
6916 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6917fi
a19b6204
MM
6918
6919
8a6ee3ab 6920
81ecdfbb
RW
6921
6922# Check whether --with-debug-prefix-map was given.
6923if test "${with_debug_prefix_map+set}" = set; then :
6924 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6925 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6926 for debug_map in $withval; do
6927 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6928 done
6929 fi
6930else
6931 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6932fi
6933
8a6ee3ab
JM
6934
6935
7f6ef0c0
PB
6936# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6937# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6938# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6939# We want to ensure that TARGET libraries (which we know are built with
6940# gcc) are built with "-O2 -g", so include those options when setting
6941# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6942if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6943 if test "x${is_cross_compiler}" = xyes; then
6944 CFLAGS_FOR_TARGET="-g -O2"
6945 else
6946 CFLAGS_FOR_TARGET=$CFLAGS
6947 case " $CFLAGS " in
6948 *" -O2 "*) ;;
6949 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6950 esac
6951 case " $CFLAGS " in
6952 *" -g "* | *" -g3 "*) ;;
6953 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6954 esac
6955 fi
7f6ef0c0
PB
6956fi
6957
6958
6959if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6960 if test "x${is_cross_compiler}" = xyes; then
6961 CXXFLAGS_FOR_TARGET="-g -O2"
6962 else
6963 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6964 case " $CXXFLAGS " in
6965 *" -O2 "*) ;;
6966 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6967 esac
6968 case " $CXXFLAGS " in
6969 *" -g "* | *" -g3 "*) ;;
6970 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6971 esac
6972 fi
7f6ef0c0
PB
6973fi
6974
6975
91c1f14c
DK
6976
6977
9e07f89d
NN
6978# Handle --with-headers=XXX. If the value is not "yes", the contents of
6979# the named directory are copied to $(tooldir)/sys-include.
6980if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6981 if test x${is_cross_compiler} = xno ; then
6982 echo 1>&2 '***' --with-headers is only supported when cross compiling
6983 exit 1
6984 fi
6985 if test x"${with_headers}" != xyes ; then
18f6b6ee 6986 x=${gcc_cv_tool_prefix}
c6b750e1 6987 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6988 fi
6989fi
6990
6991# Handle --with-libs=XXX. If the value is not "yes", the contents of
6992# the name directories are copied to $(tooldir)/lib. Multiple directories
6993# are permitted.
6994if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6995 if test x${is_cross_compiler} = xno ; then
6996 echo 1>&2 '***' --with-libs is only supported when cross compiling
6997 exit 1
6998 fi
6999 if test x"${with_libs}" != xyes ; then
7000 # Copy the libraries in reverse order, so that files in the first named
7001 # library override files in subsequent libraries.
18f6b6ee 7002 x=${gcc_cv_tool_prefix}
9e07f89d 7003 for l in ${with_libs}; do
c6b750e1 7004 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7005 done
7006 fi
7007fi
7008
700d40ca 7009# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7010#
7011# This is done by determining whether or not the appropriate directory
7012# is available, and by checking whether or not specific configurations
7013# have requested that this magic not happen.
c6b750e1
DJ
7014#
7015# The command line options always override the explicit settings in
136bb21f 7016# configure.ac, and the settings in configure.ac override this magic.
2429c060 7017#
c6b750e1 7018# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7019# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7020# --without-gnu-ld options for the configure script. Similarly, if
7021# the default is to use the included zlib and you don't want to do that,
7022# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7023
7024if test x${use_gnu_as} = x &&
7025 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7026 with_gnu_as=yes
7027 extra_host_args="$extra_host_args --with-gnu-as"
7028fi
7029
7030if test x${use_gnu_ld} = x &&
93f9b408 7031 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7032 with_gnu_ld=yes
7033 extra_host_args="$extra_host_args --with-gnu-ld"
7034fi
7035
700d40ca
ILT
7036if test x${use_included_zlib} = x &&
7037 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7038 :
7039else
7040 with_system_zlib=yes
7041 extra_host_args="$extra_host_args --with-system-zlib"
7042fi
7043
2429c060
PB
7044# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7045# can detect this case.
7046
7047if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7048 with_newlib=yes
7049 extra_host_args="$extra_host_args --with-newlib"
7050fi
7051
9e07f89d
NN
7052# Handle ${copy_dirs}
7053set fnord ${copy_dirs}
7054shift
7055while test $# != 0 ; do
7056 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7057 :
7058 else
7059 echo Copying $1 to $2
7060
7061 # Use the install script to create the directory and all required
7062 # parent directories.
7063 if test -d $2 ; then
7064 :
7065 else
7066 echo >config.temp
7067 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7068 fi
7069
7070 # Copy the directory, assuming we have tar.
7071 # FIXME: Should we use B in the second tar? Not all systems support it.
7072 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7073
7074 # It is the responsibility of the user to correctly adjust all
7075 # symlinks. If somebody can figure out how to handle them correctly
7076 # here, feel free to add the code.
7077
7078 echo $1 > $2/COPIED
7079 fi
7080 shift; shift
7081done
7082
2429c060
PB
7083# Determine a target-dependent exec_prefix that the installed
7084# gcc will search in. Keep this list sorted by triplet, with
7085# the *-*-osname triplets last.
7086md_exec_prefix=
7087case "${target}" in
521ec477 7088 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7089 md_exec_prefix=/dev/env/DJDIR/bin
7090 ;;
2429c060 7091 *-*-hpux* | \
2429c060 7092 *-*-nto-qnx* | \
1f111696 7093 *-*-solaris2*)
2429c060
PB
7094 md_exec_prefix=/usr/ccs/bin
7095 ;;
7096esac
7097
a0da8069
NN
7098extra_arflags_for_target=
7099extra_nmflags_for_target=
7100extra_ranlibflags_for_target=
7101target_makefile_frag=/dev/null
7102case "${target}" in
77d7106f
AM
7103 spu-*-*)
7104 target_makefile_frag="config/mt-spu"
7105 ;;
a9d58c06 7106 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7107 target_makefile_frag="config/mt-sde"
7108 ;;
f3b1e08e
RS
7109 mipsisa*-*-elfoabi*)
7110 target_makefile_frag="config/mt-mips-elfoabi"
7111 ;;
e7c8859c
RS
7112 mips*-*-*linux* | mips*-*-gnu*)
7113 target_makefile_frag="config/mt-mips-gnu"
7114 ;;
d9e042ac
SL
7115 nios2-*-elf*)
7116 target_makefile_frag="config/mt-nios2-elf"
7117 ;;
bf41f30d
NC
7118 *-*-linux-android*)
7119 target_makefile_frag="config/mt-android"
7120 ;;
29383458 7121 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7122 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7123 ;;
7124 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7125 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7126 # commands to handle both 32-bit and 64-bit objects. These flags are
7127 # harmless if we're using GNU nm or ar.
7128 extra_arflags_for_target=" -X32_64"
7129 extra_nmflags_for_target=" -B -X32_64"
7130 ;;
a0da8069
NN
7131esac
7132
7133alphaieee_frag=/dev/null
7134case $target in
7135 alpha*-*-*)
7136 # This just makes sure to use the -mieee option to build target libs.
7137 # This should probably be set individually by each library.
7138 alphaieee_frag="config/mt-alphaieee"
7139 ;;
7140esac
7141
7142# If --enable-target-optspace always use -Os instead of -O2 to build
7143# the target libraries, similarly if it is not specified, use -Os
7144# on selected platforms.
7145ospace_frag=/dev/null
7146case "${enable_target_optspace}:${target}" in
7147 yes:*)
7148 ospace_frag="config/mt-ospace"
7149 ;;
7150 :d30v-*)
7151 ospace_frag="config/mt-d30v"
7152 ;;
16beab3d 7153 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7154 ospace_frag="config/mt-ospace"
7155 ;;
7156 no:* | :*)
7157 ;;
7158 *)
7159 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7160 ;;
7161esac
7162
a0da8069
NN
7163# Some systems (e.g., one of the i386-aix systems the gas testers are
7164# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7165tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7166build_tooldir=${tooldir}
7167
a0da8069
NN
7168# Create a .gdbinit file which runs the one in srcdir
7169# and tells GDB to look there for source files.
7170
7171if test -r ${srcdir}/.gdbinit ; then
7172 case ${srcdir} in
7173 .) ;;
7174 *) cat > ./.gdbinit <<EOF
7175# ${NO_EDIT}
7176dir ${srcdir}
7177dir .
7178source ${srcdir}/.gdbinit
7179EOF
7180 ;;
7181 esac
7182fi
7183
a0da8069
NN
7184# Make sure that the compiler is able to generate an executable. If it
7185# can't, we are probably in trouble. We don't care whether we can run the
7186# executable--we might be using a cross compiler--we only care whether it
7187# can be created. At this point the main configure script has set CC.
7188we_are_ok=no
7189echo "int main () { return 0; }" > conftest.c
7190${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7191if test $? = 0 ; then
7192 if test -s conftest || test -s conftest.exe ; then
7193 we_are_ok=yes
7194 fi
c6b750e1 7195fi
a0da8069
NN
7196case $we_are_ok in
7197 no)
7198 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7199 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7200 rm -f conftest*
7201 exit 1
7202 ;;
7203esac
7204rm -f conftest*
7205
3bbd2f8f 7206# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7207case "${host}" in
7208 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7209 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7210 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7211 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7212esac
7213
3bbd2f8f 7214# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7215# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7216# built executables to PATH.
3bbd2f8f
AL
7217if test "$RPATH_ENVVAR" = PATH; then
7218 GCC_SHLIB_SUBDIR=/shlib
7219else
7220 GCC_SHLIB_SUBDIR=
7221fi
7222
730af8ee 7223# Adjust the toplevel makefile according to whether bootstrap was selected.
7224case $enable_bootstrap in
7225 yes)
7226 bootstrap_suffix=bootstrap
7227 BUILD_CONFIG=bootstrap-debug
7228 ;;
7229 no)
7230 bootstrap_suffix=no-bootstrap
7231 BUILD_CONFIG=
7232 ;;
7233esac
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7236$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7237
7238
7239# Check whether --with-build-config was given.
7240if test "${with_build_config+set}" = set; then :
7241 withval=$with_build_config; case $with_build_config in
7242 yes) with_build_config= ;;
7243 no) with_build_config= BUILD_CONFIG= ;;
7244 esac
7245fi
7246
7247
7248if test "x${with_build_config}" != x; then
7249 BUILD_CONFIG=$with_build_config
7250else
7251 case $BUILD_CONFIG in
7252 bootstrap-debug)
7253 if echo "int f (void) { return 0; }" > conftest.c &&
7254 ${CC} -c conftest.c &&
7255 mv conftest.o conftest.o.g0 &&
7256 ${CC} -c -g conftest.c &&
7257 mv conftest.o conftest.o.g &&
7258 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7259 :
7260 else
7261 BUILD_CONFIG=
7262 fi
7263 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7264 ;;
7265 esac
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7268$as_echo "$BUILD_CONFIG" >&6; }
7269
7270
7271# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7273$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7274# Check whether --enable-vtable-verify was given.
7275if test "${enable_vtable_verify+set}" = set; then :
7276 enableval=$enable_vtable_verify; case "$enableval" in
7277 yes) enable_vtable_verify=yes ;;
7278 no) enable_vtable_verify=no ;;
7279 *) enable_vtable_verify=no;;
7280 esac
7281else
7282 enable_vtable_verify=no
7283fi
7284
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7286$as_echo "$enable_vtable_verify" >&6; }
7287
a0da8069
NN
7288# Record target_configdirs and the configure arguments for target and
7289# build configuration in Makefile.
7290target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7291build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7292bootstrap_fixincludes=no
a0da8069 7293
2aa2364a
JR
7294# If we are building libgomp, bootstrap it.
7295if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7296 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7297fi
7298
730af8ee 7299# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7300# or bootstrap-ubsan, bootstrap it.
7301if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7302 case "$BUILD_CONFIG" in
7303 *bootstrap-asan* | *bootstrap-ubsan* )
7304 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7305 bootstrap_fixincludes=yes
730af8ee 7306 ;;
7307 esac
5eb08693
L
7308fi
7309
730af8ee 7310# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7311if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7312 test "$enable_vtable_verify" != no; then
95e43135
JBG
7313 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7314fi
7315
a0da8069
NN
7316# Determine whether gdb needs tk/tcl or not.
7317# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7318# and in that case we want gdb to be built without tk. Ugh!
7319# In fact I believe gdb is the *only* package directly dependent on tk,
7320# so we should be able to put the 'maybe's in unconditionally and
7321# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7322# 100% sure that that's safe though.
c180f501 7323
675c6968 7324gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7325case "$enable_gdbtk" in
7326 no)
7327 GDB_TK="" ;;
c180f501
AC
7328 yes)
7329 GDB_TK="${gdb_tk}" ;;
a0da8069 7330 *)
c180f501
AC
7331 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7332 # distro. Eventually someone will fix this and move Insight, nee
7333 # gdbtk to a separate directory.
7334 if test -d ${srcdir}/gdb/gdbtk ; then
7335 GDB_TK="${gdb_tk}"
7336 else
7337 GDB_TK=""
7338 fi
7339 ;;
a0da8069 7340esac
907be67c
DJ
7341CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7342INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7343
73cc7272
TT
7344# gdb depends on gnulib, but as nothing else does, only include it if
7345# gdb is built.
7346if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7347 # The Makefile provides the ordering, so it's enough here to add
7348 # gnulib to the list.
7349 configdirs="${configdirs} gnulib"
7350fi
7351
6bd3dfaa 7352# Strip out unwanted targets.
dd12c3a8
NN
7353
7354# While at that, we remove Makefiles if we were started for recursive
7355# configuration, so that the top-level Makefile reconfigures them,
7356# like we used to do when configure itself was recursive.
dd12c3a8 7357
06a51eac
RW
7358# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7359# but now we're fixing up the Makefile ourselves with the additional
7360# commands passed to AC_CONFIG_FILES. Use separate variables
7361# extrasub-{build,host,target} not because there is any reason to split
7362# the substitutions up that way, but only to remain below the limit of
7363# 99 commands in a script, for HP-UX sed.
4119873a
AO
7364
7365# Do not nest @if/@endif or @unless/@endunless pairs, because
7366# configure will not warn you at all.
dd12c3a8 7367
16b1ad29
RW
7368case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7369 yes:yes:*\ gold\ *:*,c++,*) ;;
7370 yes:yes:*\ gold\ *:*)
d0ac1c44 7371 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7372 ;;
7373esac
7374
06a51eac 7375extrasub_build=
6a9cf61e 7376for module in ${build_configdirs} ; do
498d4a71
CF
7377 if test -z "${no_recursion}" \
7378 && test -f ${build_subdir}/${module}/Makefile; then
7379 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7380 rm -f ${build_subdir}/${module}/Makefile
7381 fi
06a51eac 7382 extrasub_build="$extrasub_build
498d4a71
CF
7383/^@if build-$module\$/d
7384/^@endif build-$module\$/d
4119873a 7385/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7386/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7387/^@endif build-$module-$bootstrap_suffix\$/d
7388/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7389done
06a51eac 7390extrasub_host=
498d4a71 7391for module in ${configdirs} ; do
80911fe1 7392 if test -z "${no_recursion}"; then
8cf39b1b 7393 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7394 if test -f ${file}; then
7395 echo 1>&2 "*** removing ${file} to force reconfigure"
7396 rm -f ${file}
7397 fi
7398 done
498d4a71 7399 fi
201f096f 7400 case ${module},${bootstrap_fixincludes} in
7401 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7402 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7403 esac
06a51eac 7404 extrasub_host="$extrasub_host
498d4a71
CF
7405/^@if $module\$/d
7406/^@endif $module\$/d
4119873a 7407/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7408/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7409/^@endif $module-$host_bootstrap_suffix\$/d
7410/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7411done
06a51eac 7412extrasub_target=
498d4a71
CF
7413for module in ${target_configdirs} ; do
7414 if test -z "${no_recursion}" \
7415 && test -f ${target_subdir}/${module}/Makefile; then
7416 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7417 rm -f ${target_subdir}/${module}/Makefile
7418 fi
e8a5fa9c
RW
7419
7420 # We only bootstrap target libraries listed in bootstrap_target_libs.
7421 case $bootstrap_target_libs in
7422 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7423 *) target_bootstrap_suffix=no-bootstrap ;;
7424 esac
7425
06a51eac 7426 extrasub_target="$extrasub_target
498d4a71
CF
7427/^@if target-$module\$/d
7428/^@endif target-$module\$/d
4119873a 7429/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7430/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7431/^@endif target-$module-$target_bootstrap_suffix\$/d
7432/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7433done
7434
06a51eac
RW
7435# Do the final fixup along with target modules.
7436extrasub_target="$extrasub_target
4119873a
AO
7437/^@if /,/^@endif /d
7438/^@unless /d
7439/^@endunless /d"
a0da8069
NN
7440
7441# Create the serialization dependencies. This uses a temporary file.
7442
81ecdfbb
RW
7443# Check whether --enable-serial-configure was given.
7444if test "${enable_serial_configure+set}" = set; then :
7445 enableval=$enable_serial_configure;
7446fi
e6bfb94a
AO
7447
7448
1047cb91
DD
7449case ${enable_serial_configure} in
7450 yes)
7451 enable_serial_build_configure=yes
7452 enable_serial_host_configure=yes
7453 enable_serial_target_configure=yes
7454 ;;
7455esac
7456
a0da8069
NN
7457# These force 'configure's to be done one at a time, to avoid problems
7458# with contention over a shared config.cache.
7459rm -f serdep.tmp
e6bfb94a 7460echo '# serdep.tmp' > serdep.tmp
a0da8069 7461olditem=
1047cb91 7462test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7463for item in ${build_configdirs} ; do
7464 case ${olditem} in
7465 "") ;;
e6bfb94a 7466 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7467 esac
7468 olditem=${item}
7469done
7470olditem=
1047cb91 7471test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7472for item in ${configdirs} ; do
7473 case ${olditem} in
7474 "") ;;
e6bfb94a 7475 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7476 esac
7477 olditem=${item}
7478done
7479olditem=
1047cb91 7480test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7481for item in ${target_configdirs} ; do
7482 case ${olditem} in
7483 "") ;;
e6bfb94a 7484 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7485 esac
7486 olditem=${item}
7487done
7488serialization_dependencies=serdep.tmp
7489
7490
e6bfb94a 7491# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7492# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7493# might not want to pass down to subconfigures. The exception being
7494# --cache-file=/dev/null, which is used to turn off the use of cache
7495# files altogether, and which should be passed on to subconfigures.
7496# Also strip program-prefix, program-suffix, and program-transform-name,
7497# so that we can pass down a consistent program-transform-name.
c6b750e1 7498baseargs=
65b4571a 7499tbaseargs=
c6b750e1
DJ
7500keep_next=no
7501skip_next=no
7502eval "set -- $ac_configure_args"
18f6b6ee
PB
7503for ac_arg
7504do
c6b750e1
DJ
7505 if test X"$skip_next" = X"yes"; then
7506 skip_next=no
7507 continue
7508 fi
7509 if test X"$keep_next" = X"yes"; then
7510 case $ac_arg in
7511 *\'*)
7512 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7513 esac
7514 baseargs="$baseargs '$ac_arg'"
65b4571a 7515 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7516 keep_next=no
7517 continue
7518 fi
7519
7520 # Handle separated arguments. Based on the logic generated by
7521 # autoconf 2.59.
7522 case $ac_arg in
7523 *=* | --config-cache | -C | -disable-* | --disable-* \
7524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7526 | -with-* | --with-* | -without-* | --without-* | --x)
7527 separate_arg=no
7528 ;;
7529 -*)
7530 separate_arg=yes
7531 ;;
7532 *)
7533 separate_arg=no
7534 ;;
7535 esac
7536
65b4571a
AO
7537 skip_targ=no
7538 case $ac_arg in
7539
7540 --with-* | --without-*)
7541 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7542
7543 case $libopt in
7544 *[-_]include)
7545 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7546 ;;
7547 *[-_]lib)
7548 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7549 ;;
7550 *)
7551 lib=$libopt
7552 ;;
7553 esac
7554
7555
7556 case $lib in
1b6c0831 7557 mpc | mpfr | gmp | isl)
65b4571a
AO
7558 # If we're processing --with-$lib, --with-$lib-include or
7559 # --with-$lib-lib, for one of the libs above, and target is
7560 # different from host, don't pass the current argument to any
7561 # target library's configure.
7562 if test x$is_cross_compiler = xyes; then
7563 skip_targ=yes
7564 fi
7565 ;;
7566 esac
7567 ;;
7568 esac
7569
c6b750e1 7570 case "$ac_arg" in
30167e0a
NC
7571 --cache-file=/dev/null | \
7572 -cache-file=/dev/null )
7573 # Handled here to avoid the test to skip args below.
7574 baseargs="$baseargs '$ac_arg'"
65b4571a 7575 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7576 # Assert: $separate_arg should always be no.
7577 keep_next=$separate_arg
7578 ;;
c6b750e1
DJ
7579 --no*)
7580 continue
7581 ;;
7582 --c* | \
7583 --sr* | \
7584 --ho* | \
7585 --bu* | \
7586 --t* | \
7587 --program-* | \
7588 -cache_file* | \
7589 -srcdir* | \
7590 -host* | \
7591 -build* | \
7592 -target* | \
7593 -program-prefix* | \
7594 -program-suffix* | \
7595 -program-transform-name* )
7596 skip_next=$separate_arg
7597 continue
7598 ;;
7599 -*)
7600 # An option. Add it.
7601 case $ac_arg in
7602 *\'*)
7603 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7604 esac
7605 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7606 if test X"$skip_targ" = Xno; then
7607 tbaseargs="$tbaseargs '$ac_arg'"
7608 fi
c6b750e1
DJ
7609 keep_next=$separate_arg
7610 ;;
7611 *)
7612 # Either a variable assignment, or a nonopt (triplet). Don't
7613 # pass it down; let the Makefile handle this.
7614 continue
7615 ;;
7616 esac
7617done
7618# Remove the initial space we just introduced and, as these will be
7619# expanded by make, quote '$'.
7620baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7621
f27d4f92
DJ
7622# Add in --program-transform-name, after --program-prefix and
7623# --program-suffix have been applied to it. Autoconf has already
7624# doubled dollar signs and backslashes in program_transform_name; we want
7625# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7626# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7627# Also, because we want to override the logic in subdir configure scripts to
7628# choose program_transform_name, replace any s,x,x, with s,y,y,.
7629sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7630${program_transform_name}
7631EOF_SED
7632gcc_transform_name=`cat conftestsed.out`
7633rm -f conftestsed.out
7634baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7635tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7636if test "$silent" = yes; then
7637 baseargs="$baseargs --silent"
65b4571a 7638 tbaseargs="$tbaseargs --silent"
2444379b 7639fi
34a0f3cf 7640baseargs="$baseargs --disable-option-checking"
65b4571a 7641tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7642
4074d5f2
RW
7643# Record and document user additions to sub configure arguments.
7644
7645
7646
7647
a0da8069
NN
7648# For the build-side libraries, we just need to pretend we're native,
7649# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7650# desired. We can't even use the same cache file for all build-side
7651# libraries, as they're compiled differently; some with C, some with
7652# C++ or with different feature-enabling options.
7653build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7654
7655# For host modules, accept cache file option, or specification as blank.
7656case "${cache_file}" in
7657"") # empty
7658 cache_file_option="" ;;
7659/* | [A-Za-z]:[\\/]* ) # absolute path
7660 cache_file_option="--cache-file=${cache_file}" ;;
7661*) # relative path
7662 cache_file_option="--cache-file=../${cache_file}" ;;
7663esac
7664
82252c06
NN
7665# Host dirs don't like to share a cache file either, horribly enough.
7666# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7667host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7668
65b4571a 7669target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7670
7671# Passing a --with-cross-host argument lets the target libraries know
7672# whether they are being built with a cross-compiler or being built
7673# native. However, it would be better to use other mechanisms to make the
7674# sorts of decisions they want to make on this basis. Please consider
7675# this option to be deprecated. FIXME.
7676if test x${is_cross_compiler} = xyes ; then
c6b750e1 7677 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7678fi
7679
afc0578d 7680# Special user-friendly check for native x86_64-linux build, if
7681# multilib is not explicitly enabled.
7682case "$target:$have_compiler:$host:$target:$enable_multilib" in
7683 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7684 # Make sure we have a development environment that handles 32-bit
afc0578d 7685 dev64=no
7686 echo "int main () { return 0; }" > conftest.c
7687 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7688 if test $? = 0 ; then
7689 if test -s conftest || test -s conftest.exe ; then
7690 dev64=yes
7691 fi
7692 fi
7693 rm -f conftest*
7694 if test x${dev64} != xyes ; then
d0ac1c44 7695 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 7696 fi
7697 ;;
7698esac
7699
938d2b74
RW
7700# Default to --enable-multilib.
7701if test x${enable_multilib} = x ; then
a0da8069 7702 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7703fi
a0da8069
NN
7704
7705# Pass --with-newlib if appropriate. Note that target_configdirs has
7706# changed from the earlier setting of with_newlib.
7707if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7708 target_configargs="--with-newlib ${target_configargs}"
7709fi
7710
95036d20
NN
7711# Different target subdirs use different values of certain variables
7712# (notably CXX). Worse, multilibs use *lots* of different values.
7713# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7714# it doesn't automatically accept command-line overrides of them.
7715# This means it's not safe for target subdirs to share a cache file,
7716# which is disgusting, but there you have it. Hopefully this can be
7717# fixed in future. It's still worthwhile to use a cache file for each
7718# directory. I think.
7719
ae380b45
MS
7720# Pass the appropriate --build, --host, --target and --cache-file arguments.
7721# We need to pass --target, as newer autoconf's requires consistency
7722# for target_alias and gcc doesn't manage it consistently.
4b900473 7723target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7724
a0da8069
NN
7725FLAGS_FOR_TARGET=
7726case " $target_configdirs " in
7727 *" newlib "*)
7728 case " $target_configargs " in
7729 *" --with-newlib "*)
7730 case "$target" in
1f53ca9a 7731 *-cygwin*)
6d94c122 7732 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7733 ;;
a0da8069
NN
7734 esac
7735
7736 # If we're not building GCC, don't discard standard headers.
7737 if test -d ${srcdir}/gcc; then
7738 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7739
7740 if test "${build}" != "${host}"; then
7741 # On Canadian crosses, CC_FOR_TARGET will have already been set
7742 # by `configure', so we won't have an opportunity to add -Bgcc/
7743 # to it. This is right: we don't want to search that directory
7744 # for binaries, but we want the header files in there, so add
7745 # them explicitly.
e552509b 7746 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7747
7748 # Someone might think of using the pre-installed headers on
7749 # Canadian crosses, in case the installed compiler is not fully
7750 # compatible with the compiler being built. In this case, it
7751 # would be better to flag an error than risking having
7752 # incompatible object files being constructed. We can't
7753 # guarantee that an error will be flagged, but let's hope the
7754 # compiler will do it, when presented with incompatible header
7755 # files.
7756 fi
7757 fi
7758
7759 case "${target}-${is_cross_compiler}" in
ec11bdc6 7760 i[3456789]86-*-linux*-no)
a0da8069
NN
7761 # Here host == target, so we don't need to build gcc,
7762 # so we don't want to discard standard headers.
7763 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7764 ;;
7765 *)
7766 # If we're building newlib, use its generic headers last, but search
7767 # for any libc-related directories first (so make it the last -B
7768 # switch).
7769 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
7770
7771 # If we're building libgloss, find the startup file, simulator library
7772 # and linker script.
7773 case " $target_configdirs " in
7774 *" libgloss "*)
7775 # Look for startup file, simulator library and maybe linker script.
7776 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7777 # Look for libnosys.a in case the target needs it.
7778 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7779 # Most targets have the linker script in the source directory.
7780 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7781 ;;
7782 esac
a0da8069
NN
7783 ;;
7784 esac
7785 ;;
7786 esac
7787 ;;
7788esac
1f53ca9a 7789
45055374 7790case "$target" in
1f53ca9a
AO
7791 x86_64-*mingw* | *-w64-mingw*)
7792 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7793 # however, use a symlink named 'mingw' in ${prefix} .
7794 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7795 ;;
7796 *-mingw*)
7797 # MinGW can't be handled as Cygwin above since it does not use newlib.
7798 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'
7799 ;;
45055374 7800esac
a0da8069 7801
5fbad20a
DD
7802# Allow the user to override the flags for
7803# our build compiler if desired.
c66487f8
NC
7804if test x"${build}" = x"${host}" ; then
7805 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7806 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7807 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7808fi
5fbad20a 7809
a0da8069
NN
7810# On Canadian crosses, we'll be searching the right directories for
7811# the previously-installed cross compiler, so don't bother to add
7812# flags for directories within the install tree of the compiler
7813# being built; programs in there won't even run.
7814if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7815 # Search for pre-installed headers if nothing else fits.
bba45b8b 7816 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
7817fi
7818
7819if test "x${use_gnu_ld}" = x &&
7820 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7821 # Arrange for us to find uninstalled linker scripts.
b00612cc 7822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7823fi
7824
a481dbb7
DD
7825# Search for other target-specific linker scripts and such.
7826case "${target}" in
4e206d7e
DB
7827 mep*)
7828 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7829 ;;
7830esac
7831
a0da8069 7832# Makefile fragments.
3e707e94
PB
7833for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7834do
7835 eval fragval=\$$frag
7836 if test $fragval != /dev/null; then
7837 eval $frag=${srcdir}/$fragval
7838 fi
7839done
a0da8069
NN
7840
7841
7842
7843
7844
7845# Miscellanea: directories, flags, etc.
7846
7847
7848
7849
7850
7851
7852
3bbd2f8f 7853
6a9cf61e 7854# Build module lists & subconfigure args.
a0da8069
NN
7855
7856
7857
be01d343
PB
7858# Host module lists & subconfigure args.
7859
7860
7861
911e63d0 7862
be01d343
PB
7863# Target module lists & subconfigure args.
7864
7865
7866
7867# Build tools.
7868
7869
7870
1576798e
PB
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
be01d343
PB
7884# Generate default definitions for YACC, M4, LEX and other programs that run
7885# on the build machine. These are used if the Makefile can't locate these
7886# programs in objdir.
7887MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7888
7889for ac_prog in 'bison -y' byacc yacc
7890do
c6b750e1 7891 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7892set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7895if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7896 $as_echo_n "(cached) " >&6
be01d343
PB
7897else
7898 if test -n "$YACC"; then
7899 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7900else
c6b750e1
DJ
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
81ecdfbb 7906 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7908 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7910 break 2
7911 fi
7912done
81ecdfbb
RW
7913 done
7914IFS=$as_save_IFS
c6b750e1 7915
be01d343
PB
7916fi
7917fi
c6b750e1 7918YACC=$ac_cv_prog_YACC
be01d343 7919if test -n "$YACC"; then
81ecdfbb
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7921$as_echo "$YACC" >&6; }
be01d343 7922else
81ecdfbb
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
be01d343
PB
7925fi
7926
81ecdfbb 7927
c6b750e1 7928 test -n "$YACC" && break
be01d343
PB
7929done
7930test -n "$YACC" || YACC="$MISSING bison -y"
7931
7932case " $build_configdirs " in
7933 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7934esac
7935
7936for ac_prog in bison
7937do
c6b750e1 7938 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7939set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7942if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7943 $as_echo_n "(cached) " >&6
be01d343
PB
7944else
7945 if test -n "$BISON"; then
7946 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7947else
c6b750e1
DJ
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
81ecdfbb 7953 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7955 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7957 break 2
7958 fi
7959done
81ecdfbb
RW
7960 done
7961IFS=$as_save_IFS
c6b750e1 7962
be01d343
PB
7963fi
7964fi
c6b750e1 7965BISON=$ac_cv_prog_BISON
be01d343 7966if test -n "$BISON"; then
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7968$as_echo "$BISON" >&6; }
be01d343 7969else
81ecdfbb
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
be01d343
PB
7972fi
7973
81ecdfbb 7974
c6b750e1 7975 test -n "$BISON" && break
be01d343
PB
7976done
7977test -n "$BISON" || BISON="$MISSING bison"
7978
7979case " $build_configdirs " in
7980 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7981esac
7982
7983for ac_prog in gm4 gnum4 m4
7984do
c6b750e1 7985 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7986set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7989if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7990 $as_echo_n "(cached) " >&6
be01d343
PB
7991else
7992 if test -n "$M4"; then
7993 ac_cv_prog_M4="$M4" # Let the user override the test.
7994else
c6b750e1
DJ
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
81ecdfbb 8000 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8002 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8004 break 2
8005 fi
8006done
81ecdfbb
RW
8007 done
8008IFS=$as_save_IFS
c6b750e1 8009
be01d343
PB
8010fi
8011fi
c6b750e1 8012M4=$ac_cv_prog_M4
be01d343 8013if test -n "$M4"; then
81ecdfbb
RW
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8015$as_echo "$M4" >&6; }
be01d343 8016else
81ecdfbb
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
be01d343
PB
8019fi
8020
81ecdfbb 8021
c6b750e1 8022 test -n "$M4" && break
be01d343
PB
8023done
8024test -n "$M4" || M4="$MISSING m4"
8025
8026case " $build_configdirs " in
8027 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8028esac
8029
8030for ac_prog in flex lex
8031do
c6b750e1 8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8033set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8036if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8037 $as_echo_n "(cached) " >&6
be01d343
PB
8038else
8039 if test -n "$LEX"; then
8040 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8041else
c6b750e1
DJ
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
81ecdfbb 8047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8049 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8051 break 2
8052 fi
8053done
81ecdfbb
RW
8054 done
8055IFS=$as_save_IFS
c6b750e1 8056
be01d343
PB
8057fi
8058fi
c6b750e1 8059LEX=$ac_cv_prog_LEX
be01d343 8060if test -n "$LEX"; then
81ecdfbb
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8062$as_echo "$LEX" >&6; }
be01d343 8063else
81ecdfbb
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
be01d343
PB
8066fi
8067
81ecdfbb 8068
c6b750e1 8069 test -n "$LEX" && break
be01d343
PB
8070done
8071test -n "$LEX" || LEX="$MISSING flex"
8072
8073case " $build_configdirs " in
8074 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8075 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8076esac
8077
8078for ac_prog in flex
8079do
c6b750e1 8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8081set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8084if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8085 $as_echo_n "(cached) " >&6
be01d343
PB
8086else
8087 if test -n "$FLEX"; then
8088 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8089else
c6b750e1
DJ
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
81ecdfbb 8095 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8097 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8099 break 2
8100 fi
8101done
81ecdfbb
RW
8102 done
8103IFS=$as_save_IFS
c6b750e1 8104
be01d343
PB
8105fi
8106fi
c6b750e1 8107FLEX=$ac_cv_prog_FLEX
be01d343 8108if test -n "$FLEX"; then
81ecdfbb
RW
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8110$as_echo "$FLEX" >&6; }
be01d343 8111else
81ecdfbb
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
be01d343
PB
8114fi
8115
81ecdfbb 8116
c6b750e1 8117 test -n "$FLEX" && break
be01d343
PB
8118done
8119test -n "$FLEX" || FLEX="$MISSING flex"
8120
8121case " $build_configdirs " in
8122 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8123esac
8124
8125for ac_prog in makeinfo
8126do
c6b750e1 8127 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8128set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8131if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8132 $as_echo_n "(cached) " >&6
be01d343
PB
8133else
8134 if test -n "$MAKEINFO"; then
8135 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8136else
c6b750e1
DJ
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
81ecdfbb 8142 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8144 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8146 break 2
8147 fi
8148done
81ecdfbb
RW
8149 done
8150IFS=$as_save_IFS
c6b750e1 8151
be01d343
PB
8152fi
8153fi
c6b750e1 8154MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8155if test -n "$MAKEINFO"; then
81ecdfbb
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8157$as_echo "$MAKEINFO" >&6; }
be01d343 8158else
81ecdfbb
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
be01d343
PB
8161fi
8162
81ecdfbb 8163
c6b750e1 8164 test -n "$MAKEINFO" && break
be01d343
PB
8165done
8166test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8167
8168case " $build_configdirs " in
8169 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8170 *)
8171
10ad8ef3 8172 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8173 # higher, else we use the "missing" dummy.
8174 if ${MAKEINFO} --version \
10ad8ef3 8175 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8176 :
8177 else
8178 MAKEINFO="$MISSING makeinfo"
8179 fi
8180 ;;
8181
8182esac
a0da8069 8183
be01d343 8184# FIXME: expect and dejagnu may become build tools?
a0da8069 8185
be01d343
PB
8186for ac_prog in expect
8187do
c6b750e1 8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8189set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8192if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8193 $as_echo_n "(cached) " >&6
be01d343
PB
8194else
8195 if test -n "$EXPECT"; then
8196 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8197else
c6b750e1
DJ
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
81ecdfbb 8203 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8205 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8207 break 2
8208 fi
8209done
81ecdfbb
RW
8210 done
8211IFS=$as_save_IFS
c6b750e1 8212
be01d343
PB
8213fi
8214fi
c6b750e1 8215EXPECT=$ac_cv_prog_EXPECT
be01d343 8216if test -n "$EXPECT"; then
81ecdfbb
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8218$as_echo "$EXPECT" >&6; }
be01d343 8219else
81ecdfbb
RW
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
be01d343 8222fi
a0da8069 8223
81ecdfbb 8224
c6b750e1 8225 test -n "$EXPECT" && break
be01d343
PB
8226done
8227test -n "$EXPECT" || EXPECT="expect"
a0da8069 8228
be01d343
PB
8229case " $configdirs " in
8230 *" expect "*)
8231 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8232 ;;
8233esac
a0da8069 8234
be01d343
PB
8235for ac_prog in runtest
8236do
c6b750e1 8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8238set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8241if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8242 $as_echo_n "(cached) " >&6
be01d343
PB
8243else
8244 if test -n "$RUNTEST"; then
8245 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8246else
c6b750e1
DJ
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
81ecdfbb 8252 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8254 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8256 break 2
8257 fi
8258done
81ecdfbb
RW
8259 done
8260IFS=$as_save_IFS
c6b750e1 8261
be01d343
PB
8262fi
8263fi
c6b750e1 8264RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8265if test -n "$RUNTEST"; then
81ecdfbb
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8267$as_echo "$RUNTEST" >&6; }
be01d343 8268else
81ecdfbb
RW
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
be01d343 8271fi
a0da8069 8272
81ecdfbb 8273
c6b750e1 8274 test -n "$RUNTEST" && break
be01d343
PB
8275done
8276test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8277
be01d343
PB
8278case " $configdirs " in
8279 *" dejagnu "*)
6b89cc21 8280 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8281 ;;
8282esac
a0da8069
NN
8283
8284
a0da8069 8285# Host tools.
859789af
AC
8286ncn_tool_prefix=
8287test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8288ncn_target_tool_prefix=
8289test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8290
9a819804
AO
8291
8292
8293if test -n "$AR"; then
8294 ac_cv_prog_AR=$AR
8295elif test -n "$ac_cv_prog_AR"; then
8296 AR=$ac_cv_prog_AR
8297fi
8298
8299if test -n "$ac_cv_prog_AR"; then
8300 for ncn_progname in ar; do
8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8305if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8306 $as_echo_n "(cached) " >&6
9a819804
AO
8307else
8308 if test -n "$AR"; then
8309 ac_cv_prog_AR="$AR" # Let the user override the test.
8310else
8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
81ecdfbb 8316 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8318 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8320 break 2
8321 fi
8322done
81ecdfbb
RW
8323 done
8324IFS=$as_save_IFS
9a819804
AO
8325
8326fi
8327fi
8328AR=$ac_cv_prog_AR
8329if test -n "$AR"; then
81ecdfbb
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8331$as_echo "$AR" >&6; }
9a819804 8332else
81ecdfbb
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
9a819804
AO
8335fi
8336
81ecdfbb 8337
9a819804
AO
8338 done
8339fi
8340
8341for ncn_progname in ar; do
05cbd757
PB
8342 if test -n "$ncn_tool_prefix"; then
8343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8347if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8348 $as_echo_n "(cached) " >&6
859789af
AC
8349else
8350 if test -n "$AR"; then
8351 ac_cv_prog_AR="$AR" # Let the user override the test.
8352else
c6b750e1
DJ
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
81ecdfbb 8358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8360 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8362 break 2
8363 fi
8364done
81ecdfbb
RW
8365 done
8366IFS=$as_save_IFS
c6b750e1 8367
859789af
AC
8368fi
8369fi
c6b750e1 8370AR=$ac_cv_prog_AR
859789af 8371if test -n "$AR"; then
81ecdfbb
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373$as_echo "$AR" >&6; }
859789af 8374else
81ecdfbb
RW
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
859789af
AC
8377fi
8378
81ecdfbb 8379
05cbd757
PB
8380 fi
8381 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8383set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8386if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8387 $as_echo_n "(cached) " >&6
859789af 8388else
05cbd757
PB
8389 if test -n "$AR"; then
8390 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8391else
c6b750e1
DJ
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
81ecdfbb 8397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8399 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8401 break 2
8402 fi
8403done
81ecdfbb
RW
8404 done
8405IFS=$as_save_IFS
c6b750e1 8406
859789af
AC
8407fi
8408fi
c6b750e1 8409AR=$ac_cv_prog_AR
05cbd757 8410if test -n "$AR"; then
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8412$as_echo "$AR" >&6; }
859789af 8413else
81ecdfbb
RW
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
859789af 8416fi
c6b750e1 8417
81ecdfbb 8418
05cbd757
PB
8419 fi
8420 test -n "$ac_cv_prog_AR" && break
8421done
8422
8423if test -z "$ac_cv_prog_AR" ; then
8424 set dummy ar
8425 if test $build = $host ; then
8426 AR="$2"
859789af 8427 else
05cbd757 8428 AR="${ncn_tool_prefix}$2"
859789af 8429 fi
859789af
AC
8430fi
8431
9a819804
AO
8432
8433
8434if test -n "$AS"; then
8435 ac_cv_prog_AS=$AS
8436elif test -n "$ac_cv_prog_AS"; then
8437 AS=$ac_cv_prog_AS
8438fi
8439
8440if test -n "$ac_cv_prog_AS"; then
8441 for ncn_progname in as; do
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8446if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8447 $as_echo_n "(cached) " >&6
9a819804
AO
8448else
8449 if test -n "$AS"; then
8450 ac_cv_prog_AS="$AS" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
81ecdfbb 8457 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8459 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8461 break 2
8462 fi
8463done
81ecdfbb
RW
8464 done
8465IFS=$as_save_IFS
9a819804
AO
8466
8467fi
8468fi
8469AS=$ac_cv_prog_AS
8470if test -n "$AS"; then
81ecdfbb
RW
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8472$as_echo "$AS" >&6; }
9a819804 8473else
81ecdfbb
RW
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
9a819804
AO
8476fi
8477
81ecdfbb 8478
9a819804
AO
8479 done
8480fi
8481
8482for ncn_progname in as; do
05cbd757
PB
8483 if test -n "$ncn_tool_prefix"; then
8484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8488if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8489 $as_echo_n "(cached) " >&6
859789af
AC
8490else
8491 if test -n "$AS"; then
8492 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8493else
8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495for as_dir in $PATH
8496do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
81ecdfbb 8499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8503 break 2
8504 fi
8505done
81ecdfbb
RW
8506 done
8507IFS=$as_save_IFS
c6b750e1 8508
859789af
AC
8509fi
8510fi
c6b750e1 8511AS=$ac_cv_prog_AS
859789af 8512if test -n "$AS"; then
81ecdfbb
RW
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8514$as_echo "$AS" >&6; }
859789af 8515else
81ecdfbb
RW
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517$as_echo "no" >&6; }
859789af
AC
8518fi
8519
81ecdfbb 8520
05cbd757
PB
8521 fi
8522 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8524set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8527if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8528 $as_echo_n "(cached) " >&6
859789af 8529else
05cbd757
PB
8530 if test -n "$AS"; then
8531 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8532else
c6b750e1
DJ
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
81ecdfbb 8538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8540 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8542 break 2
8543 fi
8544done
81ecdfbb
RW
8545 done
8546IFS=$as_save_IFS
c6b750e1 8547
859789af
AC
8548fi
8549fi
c6b750e1 8550AS=$ac_cv_prog_AS
05cbd757 8551if test -n "$AS"; then
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8553$as_echo "$AS" >&6; }
859789af 8554else
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556$as_echo "no" >&6; }
859789af 8557fi
c6b750e1 8558
81ecdfbb 8559
05cbd757
PB
8560 fi
8561 test -n "$ac_cv_prog_AS" && break
8562done
8563
8564if test -z "$ac_cv_prog_AS" ; then
8565 set dummy as
8566 if test $build = $host ; then
8567 AS="$2"
859789af 8568 else
05cbd757 8569 AS="${ncn_tool_prefix}$2"
859789af 8570 fi
859789af
AC
8571fi
8572
9a819804
AO
8573
8574
8575if test -n "$DLLTOOL"; then
8576 ac_cv_prog_DLLTOOL=$DLLTOOL
8577elif test -n "$ac_cv_prog_DLLTOOL"; then
8578 DLLTOOL=$ac_cv_prog_DLLTOOL
8579fi
8580
8581if test -n "$ac_cv_prog_DLLTOOL"; then
8582 for ncn_progname in dlltool; do
8583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8584set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8587if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8588 $as_echo_n "(cached) " >&6
9a819804
AO
8589else
8590 if test -n "$DLLTOOL"; then
8591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8592else
8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
81ecdfbb 8598 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8600 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8602 break 2
8603 fi
8604done
81ecdfbb
RW
8605 done
8606IFS=$as_save_IFS
9a819804
AO
8607
8608fi
8609fi
8610DLLTOOL=$ac_cv_prog_DLLTOOL
8611if test -n "$DLLTOOL"; then
81ecdfbb
RW
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8613$as_echo "$DLLTOOL" >&6; }
9a819804 8614else
81ecdfbb
RW
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
9a819804
AO
8617fi
8618
81ecdfbb 8619
9a819804
AO
8620 done
8621fi
8622
8623for ncn_progname in dlltool; do
05cbd757
PB
8624 if test -n "$ncn_tool_prefix"; then
8625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8629if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8630 $as_echo_n "(cached) " >&6
859789af
AC
8631else
8632 if test -n "$DLLTOOL"; then
8633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8634else
c6b750e1
DJ
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
81ecdfbb 8640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8642 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8644 break 2
8645 fi
8646done
81ecdfbb
RW
8647 done
8648IFS=$as_save_IFS
c6b750e1 8649
859789af
AC
8650fi
8651fi
c6b750e1 8652DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8653if test -n "$DLLTOOL"; then
81ecdfbb
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8655$as_echo "$DLLTOOL" >&6; }
859789af 8656else
81ecdfbb
RW
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
859789af
AC
8659fi
8660
81ecdfbb 8661
05cbd757
PB
8662 fi
8663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8668if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8669 $as_echo_n "(cached) " >&6
859789af 8670else
05cbd757
PB
8671 if test -n "$DLLTOOL"; then
8672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8673else
c6b750e1
DJ
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
81ecdfbb 8679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8681 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8683 break 2
8684 fi
8685done
81ecdfbb
RW
8686 done
8687IFS=$as_save_IFS
c6b750e1 8688
859789af
AC
8689fi
8690fi
c6b750e1 8691DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8692if test -n "$DLLTOOL"; then
81ecdfbb
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8694$as_echo "$DLLTOOL" >&6; }
859789af 8695else
81ecdfbb
RW
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697$as_echo "no" >&6; }
859789af 8698fi
c6b750e1 8699
81ecdfbb 8700
05cbd757
PB
8701 fi
8702 test -n "$ac_cv_prog_DLLTOOL" && break
8703done
8704
8705if test -z "$ac_cv_prog_DLLTOOL" ; then
8706 set dummy dlltool
8707 if test $build = $host ; then
8708 DLLTOOL="$2"
859789af 8709 else
05cbd757 8710 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8711 fi
859789af
AC
8712fi
8713
9a819804
AO
8714
8715
8716if test -n "$LD"; then
8717 ac_cv_prog_LD=$LD
8718elif test -n "$ac_cv_prog_LD"; then
8719 LD=$ac_cv_prog_LD
8720fi
8721
8722if test -n "$ac_cv_prog_LD"; then
8723 for ncn_progname in ld; do
8724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8725set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8728if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8729 $as_echo_n "(cached) " >&6
9a819804
AO
8730else
8731 if test -n "$LD"; then
8732 ac_cv_prog_LD="$LD" # Let the user override the test.
8733else
8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
81ecdfbb 8739 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8741 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8743 break 2
8744 fi
8745done
81ecdfbb
RW
8746 done
8747IFS=$as_save_IFS
9a819804
AO
8748
8749fi
8750fi
8751LD=$ac_cv_prog_LD
8752if test -n "$LD"; then
81ecdfbb
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8754$as_echo "$LD" >&6; }
9a819804 8755else
81ecdfbb
RW
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
9a819804
AO
8758fi
8759
81ecdfbb 8760
9a819804
AO
8761 done
8762fi
8763
8764for ncn_progname in ld; do
05cbd757
PB
8765 if test -n "$ncn_tool_prefix"; then
8766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8770if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8771 $as_echo_n "(cached) " >&6
859789af
AC
8772else
8773 if test -n "$LD"; then
8774 ac_cv_prog_LD="$LD" # Let the user override the test.
8775else
c6b750e1
DJ
8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
81ecdfbb 8781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8783 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8785 break 2
8786 fi
8787done
81ecdfbb
RW
8788 done
8789IFS=$as_save_IFS
c6b750e1 8790
859789af
AC
8791fi
8792fi
c6b750e1 8793LD=$ac_cv_prog_LD
859789af 8794if test -n "$LD"; then
81ecdfbb
RW
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8796$as_echo "$LD" >&6; }
859789af 8797else
81ecdfbb
RW
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
859789af
AC
8800fi
8801
81ecdfbb 8802
05cbd757
PB
8803 fi
8804 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8806set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8809if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8810 $as_echo_n "(cached) " >&6
859789af 8811else
05cbd757
PB
8812 if test -n "$LD"; then
8813 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8814else
c6b750e1
DJ
8815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816for as_dir in $PATH
8817do
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
81ecdfbb 8820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8822 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8824 break 2
8825 fi
8826done
81ecdfbb
RW
8827 done
8828IFS=$as_save_IFS
c6b750e1 8829
859789af
AC
8830fi
8831fi
c6b750e1 8832LD=$ac_cv_prog_LD
05cbd757 8833if test -n "$LD"; then
81ecdfbb
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8835$as_echo "$LD" >&6; }
859789af 8836else
81ecdfbb
RW
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
859789af 8839fi
c6b750e1 8840
81ecdfbb 8841
05cbd757
PB
8842 fi
8843 test -n "$ac_cv_prog_LD" && break
8844done
8845
8846if test -z "$ac_cv_prog_LD" ; then
8847 set dummy ld
8848 if test $build = $host ; then
8849 LD="$2"
859789af 8850 else
05cbd757 8851 LD="${ncn_tool_prefix}$2"
859789af 8852 fi
859789af
AC
8853fi
8854
9a819804
AO
8855
8856
8857if test -n "$LIPO"; then
8858 ac_cv_prog_LIPO=$LIPO
8859elif test -n "$ac_cv_prog_LIPO"; then
8860 LIPO=$ac_cv_prog_LIPO
8861fi
8862
8863if test -n "$ac_cv_prog_LIPO"; then
8864 for ncn_progname in lipo; do
8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8866set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8869if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8870 $as_echo_n "(cached) " >&6
9a819804
AO
8871else
8872 if test -n "$LIPO"; then
8873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8874else
8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878 IFS=$as_save_IFS
8879 test -z "$as_dir" && as_dir=.
81ecdfbb 8880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8882 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8884 break 2
8885 fi
8886done
81ecdfbb
RW
8887 done
8888IFS=$as_save_IFS
9a819804
AO
8889
8890fi
8891fi
8892LIPO=$ac_cv_prog_LIPO
8893if test -n "$LIPO"; then
81ecdfbb
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8895$as_echo "$LIPO" >&6; }
9a819804 8896else
81ecdfbb
RW
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898$as_echo "no" >&6; }
9a819804
AO
8899fi
8900
81ecdfbb 8901
9a819804
AO
8902 done
8903fi
8904
8905for ncn_progname in lipo; do
be01d343
PB
8906 if test -n "$ncn_tool_prefix"; then
8907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8911if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8912 $as_echo_n "(cached) " >&6
be01d343
PB
8913else
8914 if test -n "$LIPO"; then
8915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8916else
c6b750e1
DJ
8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918for as_dir in $PATH
8919do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
81ecdfbb 8922 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8924 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8926 break 2
8927 fi
8928done
81ecdfbb
RW
8929 done
8930IFS=$as_save_IFS
c6b750e1 8931
be01d343
PB
8932fi
8933fi
c6b750e1 8934LIPO=$ac_cv_prog_LIPO
be01d343 8935if test -n "$LIPO"; then
81ecdfbb
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8937$as_echo "$LIPO" >&6; }
be01d343 8938else
81ecdfbb
RW
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
be01d343
PB
8941fi
8942
81ecdfbb 8943
be01d343
PB
8944 fi
8945 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8950if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8951 $as_echo_n "(cached) " >&6
be01d343
PB
8952else
8953 if test -n "$LIPO"; then
8954 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8955else
c6b750e1
DJ
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
81ecdfbb 8961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8963 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8965 break 2
8966 fi
8967done
81ecdfbb
RW
8968 done
8969IFS=$as_save_IFS
c6b750e1 8970
be01d343
PB
8971fi
8972fi
c6b750e1 8973LIPO=$ac_cv_prog_LIPO
be01d343 8974if test -n "$LIPO"; then
81ecdfbb
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8976$as_echo "$LIPO" >&6; }
be01d343 8977else
81ecdfbb
RW
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979$as_echo "no" >&6; }
be01d343 8980fi
c6b750e1 8981
81ecdfbb 8982
be01d343
PB
8983 fi
8984 test -n "$ac_cv_prog_LIPO" && break
8985done
8986
8987if test -z "$ac_cv_prog_LIPO" ; then
8988 set dummy lipo
8989 if test $build = $host ; then
8990 LIPO="$2"
8991 else
8992 LIPO="${ncn_tool_prefix}$2"
8993 fi
8994fi
8995
9a819804
AO
8996
8997
8998if test -n "$NM"; then
8999 ac_cv_prog_NM=$NM
9000elif test -n "$ac_cv_prog_NM"; then
9001 NM=$ac_cv_prog_NM
9002fi
9003
9004if test -n "$ac_cv_prog_NM"; then
9005 for ncn_progname in nm; do
9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9007set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9010if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9011 $as_echo_n "(cached) " >&6
859789af
AC
9012else
9013 if test -n "$NM"; then
9014 ac_cv_prog_NM="$NM" # Let the user override the test.
9015else
c6b750e1
DJ
9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in $PATH
9018do
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
81ecdfbb 9021 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9023 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9025 break 2
9026 fi
9027done
81ecdfbb
RW
9028 done
9029IFS=$as_save_IFS
c6b750e1 9030
859789af
AC
9031fi
9032fi
c6b750e1 9033NM=$ac_cv_prog_NM
859789af 9034if test -n "$NM"; then
81ecdfbb
RW
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9036$as_echo "$NM" >&6; }
859789af 9037else
81ecdfbb
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039$as_echo "no" >&6; }
859789af
AC
9040fi
9041
81ecdfbb 9042
9a819804
AO
9043 done
9044fi
9045
9046for ncn_progname in nm; do
9047 if test -n "$ncn_tool_prefix"; then
9048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9049set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9052if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9053 $as_echo_n "(cached) " >&6
859789af 9054else
05cbd757
PB
9055 if test -n "$NM"; then
9056 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9057else
c6b750e1
DJ
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
81ecdfbb 9063 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9065 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9067 break 2
9068 fi
9069done
81ecdfbb
RW
9070 done
9071IFS=$as_save_IFS
c6b750e1 9072
859789af
AC
9073fi
9074fi
c6b750e1 9075NM=$ac_cv_prog_NM
05cbd757 9076if test -n "$NM"; then
81ecdfbb
RW
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9078$as_echo "$NM" >&6; }
859789af 9079else
81ecdfbb
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081$as_echo "no" >&6; }
859789af 9082fi
c6b750e1 9083
81ecdfbb 9084
05cbd757 9085 fi
9a819804
AO
9086 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9088set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9091if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9092 $as_echo_n "(cached) " >&6
9a819804
AO
9093else
9094 if test -n "$NM"; then
9095 ac_cv_prog_NM="$NM" # Let the user override the test.
9096else
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
81ecdfbb 9102 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9104 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9106 break 2
9107 fi
9108done
81ecdfbb
RW
9109 done
9110IFS=$as_save_IFS
9a819804
AO
9111
9112fi
9113fi
9114NM=$ac_cv_prog_NM
9115if test -n "$NM"; then
81ecdfbb
RW
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9117$as_echo "$NM" >&6; }
9a819804 9118else
81ecdfbb
RW
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120$as_echo "no" >&6; }
9a819804
AO
9121fi
9122
81ecdfbb 9123
9a819804
AO
9124 fi
9125 test -n "$ac_cv_prog_NM" && break
9126done
9127
9128if test -z "$ac_cv_prog_NM" ; then
9129 set dummy nm
9130 if test $build = $host ; then
9131 NM="$2"
9132 else
9133 NM="${ncn_tool_prefix}$2"
9134 fi
9135fi
9136
9137
9138
9139if test -n "$RANLIB"; then
9140 ac_cv_prog_RANLIB=$RANLIB
9141elif test -n "$ac_cv_prog_RANLIB"; then
9142 RANLIB=$ac_cv_prog_RANLIB
9143fi
9144
9145if test -n "$ac_cv_prog_RANLIB"; then
9146 for ncn_progname in ranlib; do
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9151if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9152 $as_echo_n "(cached) " >&6
9a819804
AO
9153else
9154 if test -n "$RANLIB"; then
9155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9156else
9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
81ecdfbb 9162 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9164 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9166 break 2
9167 fi
9168done
81ecdfbb
RW
9169 done
9170IFS=$as_save_IFS
9a819804
AO
9171
9172fi
9173fi
9174RANLIB=$ac_cv_prog_RANLIB
9175if test -n "$RANLIB"; then
81ecdfbb
RW
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9177$as_echo "$RANLIB" >&6; }
9a819804 9178else
81ecdfbb
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
9a819804
AO
9181fi
9182
81ecdfbb 9183
9a819804
AO
9184 done
9185fi
859789af 9186
9a819804 9187for ncn_progname in ranlib; do
05cbd757
PB
9188 if test -n "$ncn_tool_prefix"; then
9189 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9190set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9193if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9194 $as_echo_n "(cached) " >&6
859789af
AC
9195else
9196 if test -n "$RANLIB"; then
9197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9198else
c6b750e1
DJ
9199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $PATH
9201do
9202 IFS=$as_save_IFS
9203 test -z "$as_dir" && as_dir=.
81ecdfbb 9204 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9206 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9208 break 2
9209 fi
9210done
81ecdfbb
RW
9211 done
9212IFS=$as_save_IFS
c6b750e1 9213
859789af
AC
9214fi
9215fi
c6b750e1 9216RANLIB=$ac_cv_prog_RANLIB
859789af 9217if test -n "$RANLIB"; then
81ecdfbb
RW
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9219$as_echo "$RANLIB" >&6; }
859789af 9220else
81ecdfbb
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222$as_echo "no" >&6; }
859789af
AC
9223fi
9224
81ecdfbb 9225
05cbd757
PB
9226 fi
9227 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9229set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9232if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9233 $as_echo_n "(cached) " >&6
859789af 9234else
05cbd757
PB
9235 if test -n "$RANLIB"; then
9236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9237else
c6b750e1
DJ
9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239for as_dir in $PATH
9240do
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
81ecdfbb 9243 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9245 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9247 break 2
9248 fi
9249done
81ecdfbb
RW
9250 done
9251IFS=$as_save_IFS
c6b750e1 9252
859789af
AC
9253fi
9254fi
c6b750e1 9255RANLIB=$ac_cv_prog_RANLIB
05cbd757 9256if test -n "$RANLIB"; then
81ecdfbb
RW
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9258$as_echo "$RANLIB" >&6; }
859789af 9259else
81ecdfbb
RW
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
859789af 9262fi
c6b750e1 9263
81ecdfbb 9264
859789af 9265 fi
05cbd757
PB
9266 test -n "$ac_cv_prog_RANLIB" && break
9267done
9268
9269if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9270 RANLIB="true"
859789af
AC
9271fi
9272
9a819804
AO
9273
9274
9275if test -n "$STRIP"; then
9276 ac_cv_prog_STRIP=$STRIP
9277elif test -n "$ac_cv_prog_STRIP"; then
9278 STRIP=$ac_cv_prog_STRIP
9279fi
9280
9281if test -n "$ac_cv_prog_STRIP"; then
9282 for ncn_progname in strip; do
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9287if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9288 $as_echo_n "(cached) " >&6
9a819804
AO
9289else
9290 if test -n "$STRIP"; then
9291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9292else
9293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294for as_dir in $PATH
9295do
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
81ecdfbb 9298 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9300 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9302 break 2
9303 fi
9304done
81ecdfbb
RW
9305 done
9306IFS=$as_save_IFS
9a819804
AO
9307
9308fi
9309fi
9310STRIP=$ac_cv_prog_STRIP
9311if test -n "$STRIP"; then
81ecdfbb
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9313$as_echo "$STRIP" >&6; }
9a819804 9314else
81ecdfbb
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
9a819804
AO
9317fi
9318
81ecdfbb 9319
9a819804
AO
9320 done
9321fi
9322
9323for ncn_progname in strip; do
be01d343
PB
9324 if test -n "$ncn_tool_prefix"; then
9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9326set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9329if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9330 $as_echo_n "(cached) " >&6
be01d343
PB
9331else
9332 if test -n "$STRIP"; then
9333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9334else
c6b750e1
DJ
9335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336for as_dir in $PATH
9337do
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
81ecdfbb 9340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9342 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9344 break 2
9345 fi
9346done
81ecdfbb
RW
9347 done
9348IFS=$as_save_IFS
c6b750e1 9349
be01d343
PB
9350fi
9351fi
c6b750e1 9352STRIP=$ac_cv_prog_STRIP
be01d343 9353if test -n "$STRIP"; then
81ecdfbb
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9355$as_echo "$STRIP" >&6; }
be01d343 9356else
81ecdfbb
RW
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358$as_echo "no" >&6; }
be01d343
PB
9359fi
9360
81ecdfbb 9361
be01d343
PB
9362 fi
9363 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9368if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9369 $as_echo_n "(cached) " >&6
be01d343
PB
9370else
9371 if test -n "$STRIP"; then
9372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9373else
c6b750e1
DJ
9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
81ecdfbb 9379 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9381 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9383 break 2
9384 fi
9385done
81ecdfbb
RW
9386 done
9387IFS=$as_save_IFS
c6b750e1 9388
be01d343
PB
9389fi
9390fi
c6b750e1 9391STRIP=$ac_cv_prog_STRIP
be01d343 9392if test -n "$STRIP"; then
81ecdfbb
RW
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9394$as_echo "$STRIP" >&6; }
be01d343 9395else
81ecdfbb
RW
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
be01d343 9398fi
c6b750e1 9399
81ecdfbb 9400
be01d343
PB
9401 fi
9402 test -n "$ac_cv_prog_STRIP" && break
9403done
9404
9405if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9406 STRIP="true"
be01d343
PB
9407fi
9408
9a819804
AO
9409
9410
9411if test -n "$WINDRES"; then
9412 ac_cv_prog_WINDRES=$WINDRES
9413elif test -n "$ac_cv_prog_WINDRES"; then
9414 WINDRES=$ac_cv_prog_WINDRES
9415fi
9416
9417if test -n "$ac_cv_prog_WINDRES"; then
9418 for ncn_progname in windres; do
9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9423if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9424 $as_echo_n "(cached) " >&6
9a819804
AO
9425else
9426 if test -n "$WINDRES"; then
9427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9428else
9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
81ecdfbb 9434 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9436 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9438 break 2
9439 fi
9440done
81ecdfbb
RW
9441 done
9442IFS=$as_save_IFS
9a819804
AO
9443
9444fi
9445fi
9446WINDRES=$ac_cv_prog_WINDRES
9447if test -n "$WINDRES"; then
81ecdfbb
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9449$as_echo "$WINDRES" >&6; }
9a819804 9450else
81ecdfbb
RW
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
9a819804
AO
9453fi
9454
81ecdfbb 9455
9a819804
AO
9456 done
9457fi
9458
9459for ncn_progname in windres; do
05cbd757
PB
9460 if test -n "$ncn_tool_prefix"; then
9461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9465if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9466 $as_echo_n "(cached) " >&6
859789af
AC
9467else
9468 if test -n "$WINDRES"; then
9469 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9470else
c6b750e1
DJ
9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
81ecdfbb 9476 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9478 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9480 break 2
9481 fi
9482done
81ecdfbb
RW
9483 done
9484IFS=$as_save_IFS
c6b750e1 9485
859789af
AC
9486fi
9487fi
c6b750e1 9488WINDRES=$ac_cv_prog_WINDRES
859789af 9489if test -n "$WINDRES"; then
81ecdfbb
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9491$as_echo "$WINDRES" >&6; }
859789af 9492else
81ecdfbb
RW
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494$as_echo "no" >&6; }
859789af
AC
9495fi
9496
81ecdfbb 9497
05cbd757
PB
9498 fi
9499 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9501set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9504if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9505 $as_echo_n "(cached) " >&6
859789af 9506else
05cbd757
PB
9507 if test -n "$WINDRES"; then
9508 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9509else
c6b750e1
DJ
9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511for as_dir in $PATH
9512do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
81ecdfbb 9515 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9517 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9519 break 2
9520 fi
9521done
81ecdfbb
RW
9522 done
9523IFS=$as_save_IFS
c6b750e1 9524
859789af
AC
9525fi
9526fi
c6b750e1 9527WINDRES=$ac_cv_prog_WINDRES
05cbd757 9528if test -n "$WINDRES"; then
81ecdfbb
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9530$as_echo "$WINDRES" >&6; }
859789af 9531else
81ecdfbb
RW
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533$as_echo "no" >&6; }
859789af 9534fi
c6b750e1 9535
81ecdfbb 9536
05cbd757
PB
9537 fi
9538 test -n "$ac_cv_prog_WINDRES" && break
9539done
9540
9541if test -z "$ac_cv_prog_WINDRES" ; then
9542 set dummy windres
9543 if test $build = $host ; then
9544 WINDRES="$2"
859789af 9545 else
05cbd757 9546 WINDRES="${ncn_tool_prefix}$2"
859789af 9547 fi
859789af
AC
9548fi
9549
9a819804
AO
9550
9551
0c24b341
NC
9552if test -n "$WINDMC"; then
9553 ac_cv_prog_WINDMC=$WINDMC
9554elif test -n "$ac_cv_prog_WINDMC"; then
9555 WINDMC=$ac_cv_prog_WINDMC
9556fi
9557
9558if test -n "$ac_cv_prog_WINDMC"; then
9559 for ncn_progname in windmc; do
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9564if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9565 $as_echo_n "(cached) " >&6
0c24b341
NC
9566else
9567 if test -n "$WINDMC"; then
9568 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9569else
9570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571for as_dir in $PATH
9572do
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
81ecdfbb 9575 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9577 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9579 break 2
9580 fi
9581done
81ecdfbb
RW
9582 done
9583IFS=$as_save_IFS
0c24b341
NC
9584
9585fi
9586fi
9587WINDMC=$ac_cv_prog_WINDMC
9588if test -n "$WINDMC"; then
81ecdfbb
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9590$as_echo "$WINDMC" >&6; }
0c24b341 9591else
81ecdfbb
RW
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593$as_echo "no" >&6; }
0c24b341
NC
9594fi
9595
81ecdfbb 9596
0c24b341
NC
9597 done
9598fi
9599
9600for ncn_progname in windmc; do
9601 if test -n "$ncn_tool_prefix"; then
9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9606if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9607 $as_echo_n "(cached) " >&6
0c24b341
NC
9608else
9609 if test -n "$WINDMC"; then
9610 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9611else
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
81ecdfbb 9617 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9619 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9621 break 2
9622 fi
9623done
81ecdfbb
RW
9624 done
9625IFS=$as_save_IFS
0c24b341
NC
9626
9627fi
9628fi
9629WINDMC=$ac_cv_prog_WINDMC
9630if test -n "$WINDMC"; then
81ecdfbb
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9632$as_echo "$WINDMC" >&6; }
0c24b341 9633else
81ecdfbb
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635$as_echo "no" >&6; }
0c24b341
NC
9636fi
9637
81ecdfbb 9638
0c24b341
NC
9639 fi
9640 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9645if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9646 $as_echo_n "(cached) " >&6
0c24b341
NC
9647else
9648 if test -n "$WINDMC"; then
9649 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9650else
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
81ecdfbb 9656 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9658 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9660 break 2
9661 fi
9662done
81ecdfbb
RW
9663 done
9664IFS=$as_save_IFS
0c24b341
NC
9665
9666fi
9667fi
9668WINDMC=$ac_cv_prog_WINDMC
9669if test -n "$WINDMC"; then
81ecdfbb
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9671$as_echo "$WINDMC" >&6; }
0c24b341 9672else
81ecdfbb
RW
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
0c24b341
NC
9675fi
9676
81ecdfbb 9677
0c24b341
NC
9678 fi
9679 test -n "$ac_cv_prog_WINDMC" && break
9680done
9681
9682if test -z "$ac_cv_prog_WINDMC" ; then
9683 set dummy windmc
9684 if test $build = $host ; then
9685 WINDMC="$2"
9686 else
9687 WINDMC="${ncn_tool_prefix}$2"
9688 fi
9689fi
9690
9691
9692
9a819804
AO
9693if test -n "$OBJCOPY"; then
9694 ac_cv_prog_OBJCOPY=$OBJCOPY
9695elif test -n "$ac_cv_prog_OBJCOPY"; then
9696 OBJCOPY=$ac_cv_prog_OBJCOPY
9697fi
9698
9699if test -n "$ac_cv_prog_OBJCOPY"; then
9700 for ncn_progname in objcopy; do
9701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9702set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9705if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9706 $as_echo_n "(cached) " >&6
9a819804
AO
9707else
9708 if test -n "$OBJCOPY"; then
9709 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9710else
9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH
9713do
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
81ecdfbb 9716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9718 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9720 break 2
9721 fi
9722done
81ecdfbb
RW
9723 done
9724IFS=$as_save_IFS
9a819804
AO
9725
9726fi
9727fi
9728OBJCOPY=$ac_cv_prog_OBJCOPY
9729if test -n "$OBJCOPY"; then
81ecdfbb
RW
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9731$as_echo "$OBJCOPY" >&6; }
9a819804 9732else
81ecdfbb
RW
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734$as_echo "no" >&6; }
9a819804
AO
9735fi
9736
81ecdfbb 9737
9a819804
AO
9738 done
9739fi
9740
9741for ncn_progname in objcopy; do
05cbd757
PB
9742 if test -n "$ncn_tool_prefix"; then
9743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9744set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9747if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9748 $as_echo_n "(cached) " >&6
859789af
AC
9749else
9750 if test -n "$OBJCOPY"; then
9751 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9752else
c6b750e1
DJ
9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754for as_dir in $PATH
9755do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
81ecdfbb 9758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9760 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9762 break 2
9763 fi
9764done
81ecdfbb
RW
9765 done
9766IFS=$as_save_IFS
c6b750e1 9767
859789af
AC
9768fi
9769fi
c6b750e1 9770OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9771if test -n "$OBJCOPY"; then
81ecdfbb
RW
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9773$as_echo "$OBJCOPY" >&6; }
859789af 9774else
81ecdfbb
RW
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776$as_echo "no" >&6; }
859789af
AC
9777fi
9778
81ecdfbb 9779
05cbd757
PB
9780 fi
9781 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9783set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9785$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9786if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9787 $as_echo_n "(cached) " >&6
859789af 9788else
05cbd757
PB
9789 if test -n "$OBJCOPY"; then
9790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9791else
c6b750e1
DJ
9792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793for as_dir in $PATH
9794do
9795 IFS=$as_save_IFS
9796 test -z "$as_dir" && as_dir=.
81ecdfbb 9797 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9799 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9801 break 2
9802 fi
9803done
81ecdfbb
RW
9804 done
9805IFS=$as_save_IFS
c6b750e1 9806
859789af
AC
9807fi
9808fi
c6b750e1 9809OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9810if test -n "$OBJCOPY"; then
81ecdfbb
RW
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9812$as_echo "$OBJCOPY" >&6; }
859789af 9813else
81ecdfbb
RW
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815$as_echo "no" >&6; }
859789af 9816fi
c6b750e1 9817
81ecdfbb 9818
05cbd757
PB
9819 fi
9820 test -n "$ac_cv_prog_OBJCOPY" && break
9821done
9822
9823if test -z "$ac_cv_prog_OBJCOPY" ; then
9824 set dummy objcopy
9825 if test $build = $host ; then
9826 OBJCOPY="$2"
859789af 9827 else
05cbd757 9828 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9829 fi
859789af
AC
9830fi
9831
9a819804
AO
9832
9833
9834if test -n "$OBJDUMP"; then
9835 ac_cv_prog_OBJDUMP=$OBJDUMP
9836elif test -n "$ac_cv_prog_OBJDUMP"; then
9837 OBJDUMP=$ac_cv_prog_OBJDUMP
9838fi
9839
9840if test -n "$ac_cv_prog_OBJDUMP"; then
9841 for ncn_progname in objdump; do
9842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9843set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9846if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9847 $as_echo_n "(cached) " >&6
9a819804
AO
9848else
9849 if test -n "$OBJDUMP"; then
9850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9851else
9852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853for as_dir in $PATH
9854do
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
81ecdfbb 9857 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9859 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9861 break 2
9862 fi
9863done
81ecdfbb
RW
9864 done
9865IFS=$as_save_IFS
9a819804
AO
9866
9867fi
9868fi
9869OBJDUMP=$ac_cv_prog_OBJDUMP
9870if test -n "$OBJDUMP"; then
81ecdfbb
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9872$as_echo "$OBJDUMP" >&6; }
9a819804 9873else
81ecdfbb
RW
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875$as_echo "no" >&6; }
9a819804
AO
9876fi
9877
81ecdfbb 9878
9a819804
AO
9879 done
9880fi
9881
9882for ncn_progname in objdump; do
05cbd757
PB
9883 if test -n "$ncn_tool_prefix"; then
9884 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9885set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9888if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9889 $as_echo_n "(cached) " >&6
859789af
AC
9890else
9891 if test -n "$OBJDUMP"; then
9892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9893else
c6b750e1
DJ
9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
81ecdfbb 9899 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9901 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9903 break 2
9904 fi
9905done
81ecdfbb
RW
9906 done
9907IFS=$as_save_IFS
c6b750e1 9908
859789af
AC
9909fi
9910fi
c6b750e1 9911OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9912if test -n "$OBJDUMP"; then
81ecdfbb
RW
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9914$as_echo "$OBJDUMP" >&6; }
859789af 9915else
81ecdfbb
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917$as_echo "no" >&6; }
859789af
AC
9918fi
9919
81ecdfbb 9920
05cbd757
PB
9921 fi
9922 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9924set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9927if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9928 $as_echo_n "(cached) " >&6
859789af 9929else
05cbd757
PB
9930 if test -n "$OBJDUMP"; then
9931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9932else
c6b750e1
DJ
9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
81ecdfbb 9938 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9940 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9942 break 2
9943 fi
9944done
81ecdfbb
RW
9945 done
9946IFS=$as_save_IFS
c6b750e1 9947
859789af
AC
9948fi
9949fi
c6b750e1 9950OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9951if test -n "$OBJDUMP"; then
81ecdfbb
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9953$as_echo "$OBJDUMP" >&6; }
859789af 9954else
81ecdfbb
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
859789af 9957fi
c6b750e1 9958
81ecdfbb 9959
05cbd757
PB
9960 fi
9961 test -n "$ac_cv_prog_OBJDUMP" && break
9962done
9963
9964if test -z "$ac_cv_prog_OBJDUMP" ; then
9965 set dummy objdump
9966 if test $build = $host ; then
9967 OBJDUMP="$2"
859789af 9968 else
05cbd757 9969 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9970 fi
859789af
AC
9971fi
9972
a0da8069
NN
9973
9974
b121d7d4
DD
9975if test -n "$READELF"; then
9976 ac_cv_prog_READELF=$READELF
9977elif test -n "$ac_cv_prog_READELF"; then
9978 READELF=$ac_cv_prog_READELF
9979fi
9980
9981if test -n "$ac_cv_prog_READELF"; then
9982 for ncn_progname in readelf; do
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984set dummy ${ncn_progname}; ac_word=$2
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9987if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9988 $as_echo_n "(cached) " >&6
9989else
9990 if test -n "$READELF"; then
9991 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9992else
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10000 ac_cv_prog_READELF="${ncn_progname}"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004done
10005 done
10006IFS=$as_save_IFS
10007
10008fi
10009fi
10010READELF=$ac_cv_prog_READELF
10011if test -n "$READELF"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10013$as_echo "$READELF" >&6; }
10014else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016$as_echo "no" >&6; }
10017fi
10018
10019
10020 done
10021fi
10022
10023for ncn_progname in readelf; do
10024 if test -n "$ncn_tool_prefix"; then
10025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10026set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10029if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10030 $as_echo_n "(cached) " >&6
10031else
10032 if test -n "$READELF"; then
10033 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10034else
10035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036for as_dir in $PATH
10037do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10042 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10045 fi
10046done
10047 done
10048IFS=$as_save_IFS
10049
10050fi
10051fi
10052READELF=$ac_cv_prog_READELF
10053if test -n "$READELF"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10055$as_echo "$READELF" >&6; }
10056else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058$as_echo "no" >&6; }
10059fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10065set dummy ${ncn_progname}; ac_word=$2
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10068if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10069 $as_echo_n "(cached) " >&6
10070else
10071 if test -n "$READELF"; then
10072 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10073else
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10081 ac_cv_prog_READELF="${ncn_progname}"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085done
10086 done
10087IFS=$as_save_IFS
10088
10089fi
10090fi
10091READELF=$ac_cv_prog_READELF
10092if test -n "$READELF"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10094$as_echo "$READELF" >&6; }
10095else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
10098fi
10099
10100
10101 fi
10102 test -n "$ac_cv_prog_READELF" && break
10103done
10104
10105if test -z "$ac_cv_prog_READELF" ; then
10106 set dummy readelf
10107 if test $build = $host ; then
10108 READELF="$2"
10109 else
10110 READELF="${ncn_tool_prefix}$2"
10111 fi
10112fi
10113
10114
10115
a0da8069
NN
10116
10117
10118
be01d343 10119# Target tools.
c6b750e1 10120
81ecdfbb
RW
10121# Check whether --with-build-time-tools was given.
10122if test "${with_build_time_tools+set}" = set; then :
10123 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10124 x/*) ;;
10125 *)
10126 with_build_time_tools=
81ecdfbb
RW
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10128$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10129 ;;
10130 esac
859789af 10131else
2429c060 10132 with_build_time_tools=
81ecdfbb
RW
10133fi
10134
859789af 10135
9a819804
AO
10136
10137
10138if test -n "$CC_FOR_TARGET"; then
10139 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10140elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10141 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10142fi
10143
10144if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10145 for ncn_progname in cc gcc; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10150if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10151 $as_echo_n "(cached) " >&6
9a819804
AO
10152else
10153 if test -n "$CC_FOR_TARGET"; then
10154 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
81ecdfbb 10161 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10163 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10165 break 2
10166 fi
10167done
81ecdfbb
RW
10168 done
10169IFS=$as_save_IFS
9a819804
AO
10170
10171fi
10172fi
10173CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10174if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10176$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10177else
81ecdfbb
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
9a819804
AO
10180fi
10181
81ecdfbb 10182
9a819804
AO
10183 done
10184fi
10185
10186if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10187 for ncn_progname in cc gcc; do
81ecdfbb
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10189$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10190 if test -x $with_build_time_tools/${ncn_progname}; then
10191 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10193$as_echo "yes" >&6; }
cac3d6c4 10194 break
2429c060 10195 else
81ecdfbb
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
cac3d6c4
CM
10198 fi
10199 done
55db4b87
PB
10200fi
10201
2429c060
PB
10202if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10203 for ncn_progname in cc gcc; do
10204 if test -n "$ncn_target_tool_prefix"; then
10205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10209if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10210 $as_echo_n "(cached) " >&6
55db4b87
PB
10211else
10212 if test -n "$CC_FOR_TARGET"; then
10213 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10214else
c6b750e1
DJ
10215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216for as_dir in $PATH
10217do
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
81ecdfbb 10220 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10222 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10224 break 2
10225 fi
10226done
81ecdfbb
RW
10227 done
10228IFS=$as_save_IFS
c6b750e1 10229
55db4b87
PB
10230fi
10231fi
c6b750e1 10232CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10233if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10235$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10236else
81ecdfbb
RW
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238$as_echo "no" >&6; }
55db4b87
PB
10239fi
10240
81ecdfbb 10241
2429c060
PB
10242 fi
10243 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10248if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10249 $as_echo_n "(cached) " >&6
55db4b87 10250else
05cbd757
PB
10251 if test -n "$CC_FOR_TARGET"; then
10252 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10253else
c6b750e1
DJ
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
81ecdfbb 10259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10261 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10263 break 2
10264 fi
10265done
81ecdfbb
RW
10266 done
10267IFS=$as_save_IFS
c6b750e1 10268
55db4b87
PB
10269fi
10270fi
c6b750e1 10271CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10272if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10274$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10275else
81ecdfbb
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
55db4b87 10278fi
c6b750e1 10279
81ecdfbb 10280
2429c060
PB
10281 fi
10282 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10283 done
10284fi
c6b750e1 10285
05cbd757
PB
10286if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10287 set dummy cc gcc
10288 if test $build = $target ; then
10289 CC_FOR_TARGET="$2"
55db4b87 10290 else
05cbd757 10291 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10292 fi
d3f5afc4
MS
10293else
10294 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10295fi
10296
9a819804
AO
10297
10298
10299if test -n "$CXX_FOR_TARGET"; then
10300 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10301elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10303fi
10304
10305if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10306 for ncn_progname in c++ g++ cxx gxx; do
10307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10308set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10311if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10312 $as_echo_n "(cached) " >&6
9a819804
AO
10313else
10314 if test -n "$CXX_FOR_TARGET"; then
10315 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10316else
10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318for as_dir in $PATH
10319do
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
81ecdfbb 10322 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10324 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10326 break 2
10327 fi
10328done
81ecdfbb
RW
10329 done
10330IFS=$as_save_IFS
9a819804
AO
10331
10332fi
10333fi
10334CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10335if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10337$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10338else
81ecdfbb
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
9a819804
AO
10341fi
10342
81ecdfbb 10343
9a819804
AO
10344 done
10345fi
10346
10347if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10348 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10350$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10351 if test -x $with_build_time_tools/${ncn_progname}; then
10352 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354$as_echo "yes" >&6; }
2429c060
PB
10355 break
10356 else
81ecdfbb
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358$as_echo "no" >&6; }
2429c060
PB
10359 fi
10360 done
10361fi
10362
10363if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10364 for ncn_progname in c++ g++ cxx gxx; do
10365 if test -n "$ncn_target_tool_prefix"; then
10366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10367set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10370if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10371 $as_echo_n "(cached) " >&6
55db4b87
PB
10372else
10373 if test -n "$CXX_FOR_TARGET"; then
10374 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10375else
c6b750e1
DJ
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
81ecdfbb 10381 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10383 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10385 break 2
10386 fi
10387done
81ecdfbb
RW
10388 done
10389IFS=$as_save_IFS
c6b750e1 10390
55db4b87
PB
10391fi
10392fi
c6b750e1 10393CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10394if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10396$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10397else
81ecdfbb
RW
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
55db4b87
PB
10400fi
10401
81ecdfbb 10402
2429c060
PB
10403 fi
10404 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10409if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10410 $as_echo_n "(cached) " >&6
55db4b87 10411else
05cbd757
PB
10412 if test -n "$CXX_FOR_TARGET"; then
10413 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10414else
c6b750e1
DJ
10415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
81ecdfbb 10420 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10422 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10424 break 2
10425 fi
10426done
81ecdfbb
RW
10427 done
10428IFS=$as_save_IFS
c6b750e1 10429
55db4b87
PB
10430fi
10431fi
c6b750e1 10432CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10433if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10435$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10436else
81ecdfbb
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438$as_echo "no" >&6; }
55db4b87 10439fi
c6b750e1 10440
81ecdfbb 10441
2429c060
PB
10442 fi
10443 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10444 done
10445fi
c6b750e1 10446
05cbd757
PB
10447if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10448 set dummy c++ g++ cxx gxx
10449 if test $build = $target ; then
10450 CXX_FOR_TARGET="$2"
55db4b87 10451 else
05cbd757 10452 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10453 fi
d3f5afc4
MS
10454else
10455 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10456fi
10457
9a819804
AO
10458
10459
10460if test -n "$GCC_FOR_TARGET"; then
10461 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10462elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10463 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10464fi
10465
10466if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10467 for ncn_progname in gcc; do
10468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10469set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10472if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10473 $as_echo_n "(cached) " >&6
9a819804
AO
10474else
10475 if test -n "$GCC_FOR_TARGET"; then
10476 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10477else
10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
81ecdfbb 10483 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10485 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10487 break 2
10488 fi
10489done
81ecdfbb
RW
10490 done
10491IFS=$as_save_IFS
9a819804
AO
10492
10493fi
10494fi
10495GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10496if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10498$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10499else
81ecdfbb
RW
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
9a819804
AO
10502fi
10503
81ecdfbb 10504
9a819804
AO
10505 done
10506fi
10507
10508if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10509 for ncn_progname in gcc; do
81ecdfbb
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10511$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10512 if test -x $with_build_time_tools/${ncn_progname}; then
10513 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515$as_echo "yes" >&6; }
2429c060
PB
10516 break
10517 else
81ecdfbb
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
2429c060
PB
10520 fi
10521 done
10522fi
10523
10524if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10525 for ncn_progname in gcc; do
10526 if test -n "$ncn_target_tool_prefix"; then
10527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10528set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10531if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10532 $as_echo_n "(cached) " >&6
859789af 10533else
2429c060
PB
10534 if test -n "$GCC_FOR_TARGET"; then
10535 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10536else
c6b750e1
DJ
10537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538for as_dir in $PATH
10539do
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
81ecdfbb 10542 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10544 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10546 break 2
10547 fi
10548done
81ecdfbb
RW
10549 done
10550IFS=$as_save_IFS
c6b750e1 10551
55db4b87
PB
10552fi
10553fi
c6b750e1 10554GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10555if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10557$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10558else
81ecdfbb
RW
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560$as_echo "no" >&6; }
55db4b87
PB
10561fi
10562
81ecdfbb 10563
2429c060
PB
10564 fi
10565 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10570if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10571 $as_echo_n "(cached) " >&6
55db4b87 10572else
05cbd757
PB
10573 if test -n "$GCC_FOR_TARGET"; then
10574 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10575else
c6b750e1
DJ
10576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577for as_dir in $PATH
10578do
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
81ecdfbb 10581 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10583 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10585 break 2
10586 fi
10587done
81ecdfbb
RW
10588 done
10589IFS=$as_save_IFS
c6b750e1 10590
55db4b87
PB
10591fi
10592fi
c6b750e1 10593GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10594if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10596$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10597else
81ecdfbb
RW
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599$as_echo "no" >&6; }
55db4b87 10600fi
c6b750e1 10601
81ecdfbb 10602
2429c060
PB
10603 fi
10604 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10605 done
10606fi
c6b750e1 10607
05cbd757
PB
10608if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10609 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10610else
10611 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10612fi
10613
9a819804
AO
10614
10615
9a819804
AO
10616if test -n "$GFORTRAN_FOR_TARGET"; then
10617 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10618elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10619 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10620fi
10621
9a819804
AO
10622if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10623 for ncn_progname in gfortran; do
10624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10625set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10628if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10629 $as_echo_n "(cached) " >&6
55db4b87 10630else
9a819804
AO
10631 if test -n "$GFORTRAN_FOR_TARGET"; then
10632 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10633else
c6b750e1
DJ
10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635for as_dir in $PATH
10636do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
81ecdfbb 10639 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10641 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10643 break 2
10644 fi
10645done
81ecdfbb
RW
10646 done
10647IFS=$as_save_IFS
c6b750e1 10648
55db4b87
PB
10649fi
10650fi
9a819804
AO
10651GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10652if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10654$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10655else
81ecdfbb
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
55db4b87 10658fi
c6b750e1 10659
81ecdfbb 10660
2429c060
PB
10661 done
10662fi
c6b750e1 10663
9a819804 10664if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10665 for ncn_progname in gfortran; do
81ecdfbb
RW
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10667$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10668 if test -x $with_build_time_tools/${ncn_progname}; then
10669 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671$as_echo "yes" >&6; }
2429c060
PB
10672 break
10673 else
81ecdfbb
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
2429c060
PB
10676 fi
10677 done
10678fi
10679
10680if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10681 for ncn_progname in gfortran; do
10682 if test -n "$ncn_target_tool_prefix"; then
10683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10687if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10688 $as_echo_n "(cached) " >&6
55db4b87
PB
10689else
10690 if test -n "$GFORTRAN_FOR_TARGET"; then
10691 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10692else
c6b750e1
DJ
10693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694for as_dir in $PATH
10695do
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
81ecdfbb 10698 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10700 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10702 break 2
10703 fi
10704done
81ecdfbb
RW
10705 done
10706IFS=$as_save_IFS
c6b750e1 10707
55db4b87
PB
10708fi
10709fi
c6b750e1 10710GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10711if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10713$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10714else
81ecdfbb
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }
55db4b87
PB
10717fi
10718
81ecdfbb 10719
2429c060
PB
10720 fi
10721 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10723set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10726if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10727 $as_echo_n "(cached) " >&6
55db4b87 10728else
05cbd757 10729 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10730 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
81ecdfbb 10737 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10739 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10741 break 2
10742 fi
10743done
81ecdfbb
RW
10744 done
10745IFS=$as_save_IFS
c6b750e1 10746
55db4b87
PB
10747fi
10748fi
c6b750e1 10749GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10750if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10752$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10753else
81ecdfbb
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
55db4b87 10756fi
c6b750e1 10757
81ecdfbb 10758
2429c060
PB
10759 fi
10760 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10761 done
10762fi
c6b750e1 10763
05cbd757
PB
10764if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10765 set dummy gfortran
10766 if test $build = $target ; then
10767 GFORTRAN_FOR_TARGET="$2"
55db4b87 10768 else
05cbd757 10769 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10770 fi
d3f5afc4
MS
10771else
10772 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10773fi
10774
2429c060
PB
10775
10776
e552509b
ILT
10777if test -n "$GOC_FOR_TARGET"; then
10778 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10779elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10780 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10781fi
10782
10783if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10784 for ncn_progname in gccgo; do
10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10786set dummy ${ncn_progname}; ac_word=$2
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10789if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10790 $as_echo_n "(cached) " >&6
10791else
10792 if test -n "$GOC_FOR_TARGET"; then
10793 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10802 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807 done
10808IFS=$as_save_IFS
10809
10810fi
10811fi
10812GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10813if test -n "$GOC_FOR_TARGET"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10815$as_echo "$GOC_FOR_TARGET" >&6; }
10816else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819fi
10820
10821
10822 done
10823fi
10824
10825if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10826 for ncn_progname in gccgo; do
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10828$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10829 if test -x $with_build_time_tools/${ncn_progname}; then
10830 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10832$as_echo "yes" >&6; }
10833 break
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
10837 fi
10838 done
10839fi
10840
10841if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10842 for ncn_progname in gccgo; do
10843 if test -n "$ncn_target_tool_prefix"; then
10844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10845set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10848if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10849 $as_echo_n "(cached) " >&6
10850else
10851 if test -n "$GOC_FOR_TARGET"; then
10852 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10853else
10854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855for as_dir in $PATH
10856do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10861 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865done
10866 done
10867IFS=$as_save_IFS
10868
10869fi
10870fi
10871GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10872if test -n "$GOC_FOR_TARGET"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10874$as_echo "$GOC_FOR_TARGET" >&6; }
10875else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877$as_echo "no" >&6; }
10878fi
10879
10880
10881 fi
10882 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884set dummy ${ncn_progname}; ac_word=$2
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10887if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10888 $as_echo_n "(cached) " >&6
10889else
10890 if test -n "$GOC_FOR_TARGET"; then
10891 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10892else
10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10900 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904done
10905 done
10906IFS=$as_save_IFS
10907
10908fi
10909fi
10910GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10911if test -n "$GOC_FOR_TARGET"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10913$as_echo "$GOC_FOR_TARGET" >&6; }
10914else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
10917fi
10918
10919
10920 fi
10921 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10922 done
10923fi
10924
10925if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10926 set dummy gccgo
10927 if test $build = $target ; then
10928 GOC_FOR_TARGET="$2"
10929 else
10930 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10931 fi
10932else
10933 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10934fi
10935
10936
10937
2429c060
PB
10938cat > conftest.c << \EOF
10939#ifdef __GNUC__
10940 gcc_yay;
10941#endif
10942EOF
10943if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10944 have_gcc_for_target=yes
859789af 10945else
2429c060
PB
10946 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10947 have_gcc_for_target=no
859789af 10948fi
2429c060
PB
10949rm conftest.c
10950
10951
10952
859789af 10953
2429c060
PB
10954if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10955 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10957$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10958 if test -x $with_build_time_tools/ar; then
10959 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10960 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10962$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10963 else
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965$as_echo "no" >&6; }
3a35eeb3 10966 fi
2429c060
PB
10967 elif test $build != $host && test $have_gcc_for_target = yes; then
10968 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10969 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10970 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10971 fi
2429c060 10972fi
c6b750e1 10973if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10974 # Extract the first word of "ar", so it can be a program name with args.
10975set dummy ar; ac_word=$2
81ecdfbb
RW
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10978if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 10979 $as_echo_n "(cached) " >&6
859789af 10980else
c6b750e1
DJ
10981 case $AR_FOR_TARGET in
10982 [\\/]* | ?:[\\/]*)
2429c060
PB
10983 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10984 ;;
2429c060 10985 *)
c6b750e1
DJ
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $gcc_cv_tool_dirs
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
81ecdfbb 10991 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10993 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10995 break 2
10996 fi
10997done
81ecdfbb
RW
10998 done
10999IFS=$as_save_IFS
c6b750e1 11000
2429c060
PB
11001 ;;
11002esac
859789af 11003fi
c6b750e1 11004AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11005if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11007$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11008else
81ecdfbb
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
859789af 11011fi
05cbd757 11012
81ecdfbb 11013
2429c060
PB
11014fi
11015if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11016
11017
11018if test -n "$AR_FOR_TARGET"; then
11019 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11020elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11021 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11022fi
11023
11024if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11025 for ncn_progname in ar; do
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11030if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11031 $as_echo_n "(cached) " >&6
9a819804
AO
11032else
11033 if test -n "$AR_FOR_TARGET"; then
11034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11035else
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
81ecdfbb 11041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11043 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11045 break 2
11046 fi
11047done
81ecdfbb
RW
11048 done
11049IFS=$as_save_IFS
9a819804
AO
11050
11051fi
11052fi
11053AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11054if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11056$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11057else
81ecdfbb
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
9a819804
AO
11060fi
11061
81ecdfbb 11062
9a819804
AO
11063 done
11064fi
11065
11066if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11067 for ncn_progname in ar; do
81ecdfbb
RW
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11069$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11070 if test -x $with_build_time_tools/${ncn_progname}; then
11071 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11073$as_echo "yes" >&6; }
2429c060
PB
11074 break
11075 else
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
2429c060
PB
11078 fi
11079 done
859789af
AC
11080fi
11081
2429c060
PB
11082if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11083 for ncn_progname in ar; do
11084 if test -n "$ncn_target_tool_prefix"; then
11085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11089if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11090 $as_echo_n "(cached) " >&6
7e0f7140 11091else
2429c060
PB
11092 if test -n "$AR_FOR_TARGET"; then
11093 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11094else
c6b750e1
DJ
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
81ecdfbb 11100 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11102 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11104 break 2
11105 fi
11106done
81ecdfbb
RW
11107 done
11108IFS=$as_save_IFS
c6b750e1 11109
7e0f7140
GK
11110fi
11111fi
c6b750e1 11112AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11113if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11115$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11116else
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
7e0f7140
GK
11119fi
11120
81ecdfbb 11121
2429c060
PB
11122 fi
11123 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11125set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11128if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11129 $as_echo_n "(cached) " >&6
7e0f7140 11130else
2429c060
PB
11131 if test -n "$AR_FOR_TARGET"; then
11132 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11133else
c6b750e1
DJ
11134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135for as_dir in $PATH
11136do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
81ecdfbb 11139 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11141 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11143 break 2
11144 fi
11145done
81ecdfbb
RW
11146 done
11147IFS=$as_save_IFS
c6b750e1 11148
7e0f7140
GK
11149fi
11150fi
c6b750e1 11151AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11152if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11154$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11155else
81ecdfbb
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157$as_echo "no" >&6; }
7e0f7140 11158fi
c6b750e1 11159
81ecdfbb 11160
2429c060
PB
11161 fi
11162 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11163 done
11164fi
c6b750e1 11165
2429c060
PB
11166if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11167 set dummy ar
7e0f7140 11168 if test $build = $target ; then
2429c060 11169 AR_FOR_TARGET="$2"
7e0f7140 11170 else
2429c060 11171 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11172 fi
d3f5afc4
MS
11173else
11174 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11175fi
11176
3a35eeb3
PB
11177else
11178 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11179fi
11180
11181
11182
11183
11184if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11185 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11187$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11188 if test -x $with_build_time_tools/as; then
11189 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11190 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11192$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11193 else
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
3a35eeb3 11196 fi
2429c060
PB
11197 elif test $build != $host && test $have_gcc_for_target = yes; then
11198 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11199 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11200 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11201 fi
11202fi
c6b750e1 11203if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11204 # Extract the first word of "as", so it can be a program name with args.
11205set dummy as; ac_word=$2
81ecdfbb
RW
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11208if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11209 $as_echo_n "(cached) " >&6
2429c060 11210else
c6b750e1
DJ
11211 case $AS_FOR_TARGET in
11212 [\\/]* | ?:[\\/]*)
2429c060
PB
11213 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11214 ;;
2429c060 11215 *)
c6b750e1
DJ
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $gcc_cv_tool_dirs
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
81ecdfbb 11221 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11223 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11225 break 2
11226 fi
11227done
81ecdfbb
RW
11228 done
11229IFS=$as_save_IFS
c6b750e1 11230
2429c060
PB
11231 ;;
11232esac
11233fi
c6b750e1 11234AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11235if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11237$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11238else
81ecdfbb
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
2429c060
PB
11241fi
11242
81ecdfbb 11243
2429c060
PB
11244fi
11245if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11246
11247
11248if test -n "$AS_FOR_TARGET"; then
11249 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11250elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11251 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11252fi
11253
11254if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11255 for ncn_progname in as; do
11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11260if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11261 $as_echo_n "(cached) " >&6
9a819804
AO
11262else
11263 if test -n "$AS_FOR_TARGET"; then
11264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11265else
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
81ecdfbb 11271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11273 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11275 break 2
11276 fi
11277done
81ecdfbb
RW
11278 done
11279IFS=$as_save_IFS
9a819804
AO
11280
11281fi
11282fi
11283AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11284if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11286$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11287else
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
9a819804
AO
11290fi
11291
81ecdfbb 11292
9a819804
AO
11293 done
11294fi
11295
11296if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11297 for ncn_progname in as; do
81ecdfbb
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11299$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11300 if test -x $with_build_time_tools/${ncn_progname}; then
11301 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303$as_echo "yes" >&6; }
2429c060
PB
11304 break
11305 else
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
2429c060
PB
11308 fi
11309 done
11310fi
11311
11312if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11313 for ncn_progname in as; do
11314 if test -n "$ncn_target_tool_prefix"; then
11315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11319if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11320 $as_echo_n "(cached) " >&6
2429c060
PB
11321else
11322 if test -n "$AS_FOR_TARGET"; then
11323 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11324else
c6b750e1
DJ
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
81ecdfbb 11330 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11332 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11334 break 2
11335 fi
11336done
81ecdfbb
RW
11337 done
11338IFS=$as_save_IFS
c6b750e1 11339
2429c060
PB
11340fi
11341fi
c6b750e1 11342AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11343if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11345$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11346else
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
2429c060
PB
11349fi
11350
81ecdfbb 11351
2429c060
PB
11352 fi
11353 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11355set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11358if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11359 $as_echo_n "(cached) " >&6
2429c060
PB
11360else
11361 if test -n "$AS_FOR_TARGET"; then
11362 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11363else
c6b750e1
DJ
11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
81ecdfbb 11369 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11371 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11373 break 2
11374 fi
11375done
81ecdfbb
RW
11376 done
11377IFS=$as_save_IFS
c6b750e1 11378
2429c060
PB
11379fi
11380fi
c6b750e1 11381AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11382if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11384$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11385else
81ecdfbb
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
2429c060 11388fi
c6b750e1 11389
81ecdfbb 11390
2429c060
PB
11391 fi
11392 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11393 done
11394fi
c6b750e1 11395
2429c060
PB
11396if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11397 set dummy as
11398 if test $build = $target ; then
11399 AS_FOR_TARGET="$2"
11400 else
11401 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11402 fi
d3f5afc4
MS
11403else
11404 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11405fi
11406
3a35eeb3
PB
11407else
11408 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11409fi
11410
11411
11412
11413
11414if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11415 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11417$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11418 if test -x $with_build_time_tools/dlltool; then
11419 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11420 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11422$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11423 else
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
3a35eeb3 11426 fi
2429c060
PB
11427 elif test $build != $host && test $have_gcc_for_target = yes; then
11428 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11429 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11430 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11431 fi
11432fi
c6b750e1 11433if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11434 # Extract the first word of "dlltool", so it can be a program name with args.
11435set dummy dlltool; ac_word=$2
81ecdfbb
RW
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11438if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11439 $as_echo_n "(cached) " >&6
2429c060 11440else
c6b750e1
DJ
11441 case $DLLTOOL_FOR_TARGET in
11442 [\\/]* | ?:[\\/]*)
2429c060
PB
11443 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11444 ;;
2429c060 11445 *)
c6b750e1
DJ
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447for as_dir in $gcc_cv_tool_dirs
11448do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
81ecdfbb 11451 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11453 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11455 break 2
11456 fi
11457done
81ecdfbb
RW
11458 done
11459IFS=$as_save_IFS
c6b750e1 11460
2429c060
PB
11461 ;;
11462esac
11463fi
c6b750e1 11464DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11465if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11467$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11468else
81ecdfbb
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470$as_echo "no" >&6; }
2429c060
PB
11471fi
11472
81ecdfbb 11473
2429c060
PB
11474fi
11475if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11476
11477
11478if test -n "$DLLTOOL_FOR_TARGET"; then
11479 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11480elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11481 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11482fi
11483
11484if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11485 for ncn_progname in dlltool; do
11486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11490if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11491 $as_echo_n "(cached) " >&6
9a819804
AO
11492else
11493 if test -n "$DLLTOOL_FOR_TARGET"; then
11494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11495else
11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
81ecdfbb 11501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11505 break 2
11506 fi
11507done
81ecdfbb
RW
11508 done
11509IFS=$as_save_IFS
9a819804
AO
11510
11511fi
11512fi
11513DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11514if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11516$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11517else
81ecdfbb
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
9a819804
AO
11520fi
11521
81ecdfbb 11522
9a819804
AO
11523 done
11524fi
11525
11526if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11527 for ncn_progname in dlltool; do
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11530 if test -x $with_build_time_tools/${ncn_progname}; then
11531 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11533$as_echo "yes" >&6; }
2429c060
PB
11534 break
11535 else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
2429c060
PB
11538 fi
11539 done
11540fi
11541
11542if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11543 for ncn_progname in dlltool; do
11544 if test -n "$ncn_target_tool_prefix"; then
11545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11549if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11550 $as_echo_n "(cached) " >&6
2429c060
PB
11551else
11552 if test -n "$DLLTOOL_FOR_TARGET"; then
11553 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11554else
c6b750e1
DJ
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
81ecdfbb 11560 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11562 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11564 break 2
11565 fi
11566done
81ecdfbb
RW
11567 done
11568IFS=$as_save_IFS
c6b750e1 11569
2429c060
PB
11570fi
11571fi
c6b750e1 11572DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11573if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11575$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11576else
81ecdfbb
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
2429c060
PB
11579fi
11580
81ecdfbb 11581
2429c060
PB
11582 fi
11583 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11585set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11588if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11589 $as_echo_n "(cached) " >&6
2429c060
PB
11590else
11591 if test -n "$DLLTOOL_FOR_TARGET"; then
11592 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11593else
c6b750e1
DJ
11594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
81ecdfbb 11599 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11601 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11603 break 2
11604 fi
11605done
81ecdfbb
RW
11606 done
11607IFS=$as_save_IFS
c6b750e1 11608
2429c060
PB
11609fi
11610fi
c6b750e1 11611DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11612if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11614$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11615else
81ecdfbb
RW
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
2429c060 11618fi
c6b750e1 11619
81ecdfbb 11620
2429c060
PB
11621 fi
11622 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11623 done
11624fi
c6b750e1 11625
2429c060
PB
11626if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11627 set dummy dlltool
11628 if test $build = $target ; then
11629 DLLTOOL_FOR_TARGET="$2"
11630 else
11631 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11632 fi
d3f5afc4
MS
11633else
11634 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11635fi
11636
3a35eeb3
PB
11637else
11638 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11639fi
11640
11641
11642
11643
11644if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11645 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11647$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11648 if test -x $with_build_time_tools/ld; then
11649 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11650 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11652$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11653 else
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
3a35eeb3 11656 fi
2429c060
PB
11657 elif test $build != $host && test $have_gcc_for_target = yes; then
11658 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11659 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11660 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11661 fi
11662fi
c6b750e1 11663if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11664 # Extract the first word of "ld", so it can be a program name with args.
11665set dummy ld; ac_word=$2
81ecdfbb
RW
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11668if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11669 $as_echo_n "(cached) " >&6
2429c060 11670else
c6b750e1
DJ
11671 case $LD_FOR_TARGET in
11672 [\\/]* | ?:[\\/]*)
2429c060
PB
11673 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11674 ;;
2429c060 11675 *)
c6b750e1
DJ
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $gcc_cv_tool_dirs
11678do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
81ecdfbb 11681 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11683 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11685 break 2
11686 fi
11687done
81ecdfbb
RW
11688 done
11689IFS=$as_save_IFS
c6b750e1 11690
2429c060
PB
11691 ;;
11692esac
11693fi
c6b750e1 11694LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11695if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11697$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11698else
81ecdfbb
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700$as_echo "no" >&6; }
2429c060
PB
11701fi
11702
81ecdfbb 11703
2429c060
PB
11704fi
11705if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11706
11707
11708if test -n "$LD_FOR_TARGET"; then
11709 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11710elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11711 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11712fi
11713
11714if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11715 for ncn_progname in ld; do
11716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11717set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11720if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11721 $as_echo_n "(cached) " >&6
9a819804
AO
11722else
11723 if test -n "$LD_FOR_TARGET"; then
11724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11725else
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
81ecdfbb 11731 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11733 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11735 break 2
11736 fi
11737done
81ecdfbb
RW
11738 done
11739IFS=$as_save_IFS
9a819804
AO
11740
11741fi
11742fi
11743LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11744if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11746$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11747else
81ecdfbb
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
9a819804
AO
11750fi
11751
81ecdfbb 11752
9a819804
AO
11753 done
11754fi
11755
11756if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11757 for ncn_progname in ld; do
81ecdfbb
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11760 if test -x $with_build_time_tools/${ncn_progname}; then
11761 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763$as_echo "yes" >&6; }
2429c060
PB
11764 break
11765 else
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
2429c060
PB
11768 fi
11769 done
11770fi
11771
11772if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11773 for ncn_progname in ld; do
11774 if test -n "$ncn_target_tool_prefix"; then
11775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11779if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11780 $as_echo_n "(cached) " >&6
2429c060
PB
11781else
11782 if test -n "$LD_FOR_TARGET"; then
11783 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11784else
c6b750e1
DJ
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
81ecdfbb 11790 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11792 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11794 break 2
11795 fi
11796done
81ecdfbb
RW
11797 done
11798IFS=$as_save_IFS
c6b750e1 11799
2429c060
PB
11800fi
11801fi
c6b750e1 11802LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11803if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11805$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11806else
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
2429c060
PB
11809fi
11810
81ecdfbb 11811
2429c060
PB
11812 fi
11813 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11815set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11818if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11819 $as_echo_n "(cached) " >&6
2429c060
PB
11820else
11821 if test -n "$LD_FOR_TARGET"; then
11822 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11823else
c6b750e1
DJ
11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825for as_dir in $PATH
11826do
11827 IFS=$as_save_IFS
11828 test -z "$as_dir" && as_dir=.
81ecdfbb 11829 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11831 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11833 break 2
11834 fi
11835done
81ecdfbb
RW
11836 done
11837IFS=$as_save_IFS
c6b750e1 11838
2429c060
PB
11839fi
11840fi
c6b750e1 11841LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11842if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11844$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11845else
81ecdfbb
RW
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
2429c060 11848fi
c6b750e1 11849
81ecdfbb 11850
2429c060
PB
11851 fi
11852 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11853 done
11854fi
c6b750e1 11855
2429c060
PB
11856if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11857 set dummy ld
11858 if test $build = $target ; then
11859 LD_FOR_TARGET="$2"
11860 else
11861 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11862 fi
d3f5afc4
MS
11863else
11864 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11865fi
11866
3a35eeb3
PB
11867else
11868 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11869fi
11870
11871
11872
11873
11874if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11875 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11877$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11878 if test -x $with_build_time_tools/lipo; then
11879 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11880 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11882$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11883 else
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
3a35eeb3 11886 fi
2429c060
PB
11887 elif test $build != $host && test $have_gcc_for_target = yes; then
11888 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11889 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11890 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11891 fi
11892fi
9a819804
AO
11893if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11894 # Extract the first word of "lipo", so it can be a program name with args.
11895set dummy lipo; ac_word=$2
81ecdfbb
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11898if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11899 $as_echo_n "(cached) " >&6
9a819804
AO
11900else
11901 case $LIPO_FOR_TARGET in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $gcc_cv_tool_dirs
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
81ecdfbb 11911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11913 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11915 break 2
11916 fi
11917done
81ecdfbb
RW
11918 done
11919IFS=$as_save_IFS
9a819804
AO
11920
11921 ;;
11922esac
11923fi
11924LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11925if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11927$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11928else
81ecdfbb
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
9a819804
AO
11931fi
11932
81ecdfbb 11933
9a819804
AO
11934fi
11935if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11936
11937
11938if test -n "$LIPO_FOR_TARGET"; then
11939 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11940elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11941 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11942fi
11943
11944if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11945 for ncn_progname in lipo; do
11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11950if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11951 $as_echo_n "(cached) " >&6
2429c060 11952else
9a819804
AO
11953 if test -n "$LIPO_FOR_TARGET"; then
11954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
c6b750e1
DJ
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
81ecdfbb 11961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11965 break 2
11966 fi
11967done
81ecdfbb
RW
11968 done
11969IFS=$as_save_IFS
c6b750e1 11970
2429c060 11971fi
9a819804
AO
11972fi
11973LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11974if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11976$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11977else
81ecdfbb
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
2429c060
PB
11980fi
11981
81ecdfbb 11982
9a819804 11983 done
2429c060 11984fi
9a819804
AO
11985
11986if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11987 for ncn_progname in lipo; do
81ecdfbb
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11989$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11990 if test -x $with_build_time_tools/${ncn_progname}; then
11991 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11993$as_echo "yes" >&6; }
2429c060
PB
11994 break
11995 else
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
2429c060
PB
11998 fi
11999 done
12000fi
12001
12002if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12003 for ncn_progname in lipo; do
12004 if test -n "$ncn_target_tool_prefix"; then
12005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12006set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12009if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12010 $as_echo_n "(cached) " >&6
2429c060
PB
12011else
12012 if test -n "$LIPO_FOR_TARGET"; then
12013 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12014else
c6b750e1
DJ
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
81ecdfbb 12020 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12022 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12024 break 2
12025 fi
12026done
81ecdfbb
RW
12027 done
12028IFS=$as_save_IFS
c6b750e1 12029
2429c060
PB
12030fi
12031fi
c6b750e1 12032LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12033if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12035$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12036else
81ecdfbb
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
2429c060
PB
12039fi
12040
81ecdfbb 12041
2429c060
PB
12042 fi
12043 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12045set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12047$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12048if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12049 $as_echo_n "(cached) " >&6
2429c060
PB
12050else
12051 if test -n "$LIPO_FOR_TARGET"; then
12052 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12053else
c6b750e1
DJ
12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH
12056do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
81ecdfbb 12059 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12061 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12063 break 2
12064 fi
12065done
81ecdfbb
RW
12066 done
12067IFS=$as_save_IFS
c6b750e1 12068
2429c060
PB
12069fi
12070fi
c6b750e1 12071LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12072if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12074$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12075else
81ecdfbb
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
2429c060 12078fi
c6b750e1 12079
81ecdfbb 12080
2429c060
PB
12081 fi
12082 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12083 done
12084fi
c6b750e1 12085
2429c060
PB
12086if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12087 set dummy lipo
12088 if test $build = $target ; then
12089 LIPO_FOR_TARGET="$2"
12090 else
12091 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12092 fi
d3f5afc4
MS
12093else
12094 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12095fi
12096
3a35eeb3
PB
12097else
12098 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12099fi
12100
12101
12102
12103
12104if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12105 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12107$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12108 if test -x $with_build_time_tools/nm; then
12109 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12110 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12112$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12113 else
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
3a35eeb3 12116 fi
2429c060
PB
12117 elif test $build != $host && test $have_gcc_for_target = yes; then
12118 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12119 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12120 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12121 fi
12122fi
c6b750e1 12123if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12124 # Extract the first word of "nm", so it can be a program name with args.
12125set dummy nm; ac_word=$2
81ecdfbb
RW
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12128if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12129 $as_echo_n "(cached) " >&6
2429c060 12130else
c6b750e1
DJ
12131 case $NM_FOR_TARGET in
12132 [\\/]* | ?:[\\/]*)
2429c060
PB
12133 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12134 ;;
2429c060 12135 *)
c6b750e1
DJ
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $gcc_cv_tool_dirs
12138do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
81ecdfbb 12141 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12143 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12145 break 2
12146 fi
12147done
81ecdfbb
RW
12148 done
12149IFS=$as_save_IFS
c6b750e1 12150
2429c060
PB
12151 ;;
12152esac
12153fi
c6b750e1 12154NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12155if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12157$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12158else
81ecdfbb
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
2429c060
PB
12161fi
12162
81ecdfbb 12163
2429c060
PB
12164fi
12165if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12166
12167
12168if test -n "$NM_FOR_TARGET"; then
12169 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12170elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12171 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12172fi
12173
12174if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12175 for ncn_progname in nm; do
12176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12177set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12180if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12181 $as_echo_n "(cached) " >&6
9a819804
AO
12182else
12183 if test -n "$NM_FOR_TARGET"; then
12184 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12185else
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
81ecdfbb 12191 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12193 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12195 break 2
12196 fi
12197done
81ecdfbb
RW
12198 done
12199IFS=$as_save_IFS
9a819804
AO
12200
12201fi
12202fi
12203NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12204if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12206$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12207else
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
9a819804
AO
12210fi
12211
81ecdfbb 12212
9a819804
AO
12213 done
12214fi
12215
12216if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12217 for ncn_progname in nm; do
81ecdfbb
RW
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12220 if test -x $with_build_time_tools/${ncn_progname}; then
12221 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12223$as_echo "yes" >&6; }
2429c060
PB
12224 break
12225 else
81ecdfbb
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
2429c060
PB
12228 fi
12229 done
12230fi
12231
12232if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12233 for ncn_progname in nm; do
12234 if test -n "$ncn_target_tool_prefix"; then
12235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12239if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12240 $as_echo_n "(cached) " >&6
859789af 12241else
55db4b87
PB
12242 if test -n "$NM_FOR_TARGET"; then
12243 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12244else
c6b750e1
DJ
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
81ecdfbb 12250 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12252 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12254 break 2
12255 fi
12256done
81ecdfbb
RW
12257 done
12258IFS=$as_save_IFS
c6b750e1 12259
859789af
AC
12260fi
12261fi
c6b750e1 12262NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12263if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12265$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12266else
81ecdfbb
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
859789af
AC
12269fi
12270
81ecdfbb 12271
2429c060
PB
12272 fi
12273 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12275set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12278if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12279 $as_echo_n "(cached) " >&6
859789af 12280else
05cbd757
PB
12281 if test -n "$NM_FOR_TARGET"; then
12282 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12283else
c6b750e1
DJ
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
81ecdfbb 12289 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12291 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12293 break 2
12294 fi
12295done
81ecdfbb
RW
12296 done
12297IFS=$as_save_IFS
c6b750e1 12298
859789af
AC
12299fi
12300fi
c6b750e1 12301NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12302if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12304$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12305else
81ecdfbb
RW
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
859789af 12308fi
c6b750e1 12309
81ecdfbb 12310
2429c060
PB
12311 fi
12312 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12313 done
12314fi
c6b750e1 12315
05cbd757
PB
12316if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12317 set dummy nm
12318 if test $build = $target ; then
12319 NM_FOR_TARGET="$2"
859789af 12320 else
05cbd757 12321 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12322 fi
d3f5afc4
MS
12323else
12324 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12325fi
12326
3a35eeb3
PB
12327else
12328 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12329fi
12330
12331
12332
12333
6b91c541
AP
12334if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12335 if test -n "$with_build_time_tools"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12337$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12338 if test -x $with_build_time_tools/objcopy; then
12339 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12340 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12342$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
12346 fi
12347 elif test $build != $host && test $have_gcc_for_target = yes; then
12348 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12349 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12350 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12351 fi
12352fi
12353if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12354 # Extract the first word of "objcopy", so it can be a program name with args.
12355set dummy objcopy; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12358if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12359 $as_echo_n "(cached) " >&6
12360else
12361 case $OBJCOPY_FOR_TARGET in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12364 ;;
12365 *)
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $gcc_cv_tool_dirs
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12373 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381 ;;
12382esac
12383fi
12384OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12385if test -n "$OBJCOPY_FOR_TARGET"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12387$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12388else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391fi
12392
12393
12394fi
12395if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12396
12397
12398if test -n "$OBJCOPY_FOR_TARGET"; then
12399 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12400elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12401 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12402fi
12403
12404if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12405 for ncn_progname in objcopy; do
12406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12407set dummy ${ncn_progname}; ac_word=$2
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12410if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12411 $as_echo_n "(cached) " >&6
12412else
12413 if test -n "$OBJCOPY_FOR_TARGET"; then
12414 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12415else
12416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $PATH
12418do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12423 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12426 fi
12427done
12428 done
12429IFS=$as_save_IFS
12430
12431fi
12432fi
12433OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12434if test -n "$OBJCOPY_FOR_TARGET"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12436$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12437else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440fi
12441
12442
12443 done
12444fi
12445
12446if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12447 for ncn_progname in objcopy; do
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12449$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12450 if test -x $with_build_time_tools/${ncn_progname}; then
12451 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12453$as_echo "yes" >&6; }
12454 break
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457$as_echo "no" >&6; }
12458 fi
12459 done
12460fi
12461
12462if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12463 for ncn_progname in objcopy; do
12464 if test -n "$ncn_target_tool_prefix"; then
12465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12466set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12469if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12470 $as_echo_n "(cached) " >&6
12471else
12472 if test -n "$OBJCOPY_FOR_TARGET"; then
12473 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12474else
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12482 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12485 fi
12486done
12487 done
12488IFS=$as_save_IFS
12489
12490fi
12491fi
12492OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12493if test -n "$OBJCOPY_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12495$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12496else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499fi
12500
12501
12502 fi
12503 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12505set dummy ${ncn_progname}; ac_word=$2
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12508if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12509 $as_echo_n "(cached) " >&6
12510else
12511 if test -n "$OBJCOPY_FOR_TARGET"; then
12512 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12513else
12514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12521 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525done
12526 done
12527IFS=$as_save_IFS
12528
12529fi
12530fi
12531OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12532if test -n "$OBJCOPY_FOR_TARGET"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12534$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12535else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
12538fi
12539
12540
12541 fi
12542 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12543 done
12544fi
12545
12546if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12547 set dummy objcopy
12548 if test $build = $target ; then
12549 OBJCOPY_FOR_TARGET="$2"
12550 else
12551 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12552 fi
12553else
12554 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12555fi
12556
12557else
12558 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12559fi
12560
12561
12562
12563
2429c060
PB
12564if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12565 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12567$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12568 if test -x $with_build_time_tools/objdump; then
12569 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12570 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12572$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12573 else
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
3a35eeb3 12576 fi
2429c060
PB
12577 elif test $build != $host && test $have_gcc_for_target = yes; then
12578 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12579 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12580 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12581 fi
12582fi
c6b750e1 12583if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12584 # Extract the first word of "objdump", so it can be a program name with args.
12585set dummy objdump; ac_word=$2
81ecdfbb
RW
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12588if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12589 $as_echo_n "(cached) " >&6
2429c060 12590else
c6b750e1
DJ
12591 case $OBJDUMP_FOR_TARGET in
12592 [\\/]* | ?:[\\/]*)
2429c060
PB
12593 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12594 ;;
2429c060 12595 *)
c6b750e1
DJ
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $gcc_cv_tool_dirs
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
81ecdfbb 12601 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12603 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12605 break 2
12606 fi
12607done
81ecdfbb
RW
12608 done
12609IFS=$as_save_IFS
c6b750e1 12610
2429c060
PB
12611 ;;
12612esac
12613fi
c6b750e1 12614OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12615if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12617$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12618else
81ecdfbb
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
2429c060
PB
12621fi
12622
81ecdfbb 12623
2429c060
PB
12624fi
12625if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12626
12627
12628if test -n "$OBJDUMP_FOR_TARGET"; then
12629 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12630elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12631 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12632fi
12633
12634if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12635 for ncn_progname in objdump; do
12636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12637set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12640if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12641 $as_echo_n "(cached) " >&6
9a819804
AO
12642else
12643 if test -n "$OBJDUMP_FOR_TARGET"; then
12644 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12645else
12646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $PATH
12648do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
81ecdfbb 12651 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12653 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12655 break 2
12656 fi
12657done
81ecdfbb
RW
12658 done
12659IFS=$as_save_IFS
9a819804
AO
12660
12661fi
12662fi
12663OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12664if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12666$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12667else
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
9a819804
AO
12670fi
12671
81ecdfbb 12672
9a819804
AO
12673 done
12674fi
12675
12676if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12677 for ncn_progname in objdump; do
81ecdfbb
RW
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12679$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12680 if test -x $with_build_time_tools/${ncn_progname}; then
12681 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12683$as_echo "yes" >&6; }
2429c060
PB
12684 break
12685 else
81ecdfbb
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
2429c060
PB
12688 fi
12689 done
12690fi
12691
12692if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12693 for ncn_progname in objdump; do
12694 if test -n "$ncn_target_tool_prefix"; then
12695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12699if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12700 $as_echo_n "(cached) " >&6
5ae72758
DJ
12701else
12702 if test -n "$OBJDUMP_FOR_TARGET"; then
12703 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12704else
c6b750e1
DJ
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
81ecdfbb 12710 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12712 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12714 break 2
12715 fi
12716done
81ecdfbb
RW
12717 done
12718IFS=$as_save_IFS
c6b750e1 12719
5ae72758
DJ
12720fi
12721fi
c6b750e1 12722OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12723if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12725$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12726else
81ecdfbb
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
5ae72758
DJ
12729fi
12730
81ecdfbb 12731
2429c060
PB
12732 fi
12733 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12735set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12738if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12739 $as_echo_n "(cached) " >&6
5ae72758
DJ
12740else
12741 if test -n "$OBJDUMP_FOR_TARGET"; then
12742 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12743else
c6b750e1
DJ
12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745for as_dir in $PATH
12746do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
81ecdfbb 12749 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12751 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12753 break 2
12754 fi
12755done
81ecdfbb
RW
12756 done
12757IFS=$as_save_IFS
c6b750e1 12758
5ae72758
DJ
12759fi
12760fi
c6b750e1 12761OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12762if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12764$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12765else
81ecdfbb
RW
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
5ae72758 12768fi
c6b750e1 12769
81ecdfbb 12770
2429c060
PB
12771 fi
12772 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12773 done
12774fi
c6b750e1 12775
5ae72758
DJ
12776if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12777 set dummy objdump
12778 if test $build = $target ; then
12779 OBJDUMP_FOR_TARGET="$2"
12780 else
12781 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12782 fi
d3f5afc4
MS
12783else
12784 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12785fi
12786
3a35eeb3
PB
12787else
12788 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12789fi
12790
12791
12792
12793
12794if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12795 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12797$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12798 if test -x $with_build_time_tools/ranlib; then
12799 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12800 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12802$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12803 else
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
3a35eeb3 12806 fi
2429c060
PB
12807 elif test $build != $host && test $have_gcc_for_target = yes; then
12808 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12809 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12810 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12811 fi
12812fi
c6b750e1 12813if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12814 # Extract the first word of "ranlib", so it can be a program name with args.
12815set dummy ranlib; ac_word=$2
81ecdfbb
RW
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12818if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12819 $as_echo_n "(cached) " >&6
2429c060 12820else
c6b750e1
DJ
12821 case $RANLIB_FOR_TARGET in
12822 [\\/]* | ?:[\\/]*)
2429c060
PB
12823 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12824 ;;
2429c060 12825 *)
c6b750e1
DJ
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $gcc_cv_tool_dirs
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
81ecdfbb 12831 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12833 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12835 break 2
12836 fi
12837done
81ecdfbb
RW
12838 done
12839IFS=$as_save_IFS
c6b750e1 12840
2429c060
PB
12841 ;;
12842esac
12843fi
c6b750e1 12844RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12845if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12847$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12848else
81ecdfbb
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
2429c060
PB
12851fi
12852
81ecdfbb 12853
2429c060
PB
12854fi
12855if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12856
12857
12858if test -n "$RANLIB_FOR_TARGET"; then
12859 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12860elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12861 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12862fi
12863
12864if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12865 for ncn_progname in ranlib; do
12866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12867set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12870if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12871 $as_echo_n "(cached) " >&6
9a819804
AO
12872else
12873 if test -n "$RANLIB_FOR_TARGET"; then
12874 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
81ecdfbb 12881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12883 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12885 break 2
12886 fi
12887done
81ecdfbb
RW
12888 done
12889IFS=$as_save_IFS
9a819804
AO
12890
12891fi
12892fi
12893RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12894if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12896$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12897else
81ecdfbb
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
9a819804
AO
12900fi
12901
81ecdfbb 12902
9a819804
AO
12903 done
12904fi
12905
12906if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12907 for ncn_progname in ranlib; do
81ecdfbb
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12909$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12910 if test -x $with_build_time_tools/${ncn_progname}; then
12911 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913$as_echo "yes" >&6; }
2429c060
PB
12914 break
12915 else
81ecdfbb
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917$as_echo "no" >&6; }
2429c060
PB
12918 fi
12919 done
12920fi
12921
12922if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12923 for ncn_progname in ranlib; do
12924 if test -n "$ncn_target_tool_prefix"; then
12925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12929if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12930 $as_echo_n "(cached) " >&6
859789af 12931else
55db4b87
PB
12932 if test -n "$RANLIB_FOR_TARGET"; then
12933 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12934else
c6b750e1
DJ
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
81ecdfbb 12940 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12942 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12944 break 2
12945 fi
12946done
81ecdfbb
RW
12947 done
12948IFS=$as_save_IFS
c6b750e1 12949
859789af
AC
12950fi
12951fi
c6b750e1 12952RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12953if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12955$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12956else
81ecdfbb
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
859789af
AC
12959fi
12960
81ecdfbb 12961
2429c060
PB
12962 fi
12963 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12965set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12968if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12969 $as_echo_n "(cached) " >&6
859789af 12970else
05cbd757
PB
12971 if test -n "$RANLIB_FOR_TARGET"; then
12972 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12973else
c6b750e1
DJ
12974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975for as_dir in $PATH
12976do
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
81ecdfbb 12979 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12981 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12983 break 2
12984 fi
12985done
81ecdfbb
RW
12986 done
12987IFS=$as_save_IFS
c6b750e1 12988
859789af
AC
12989fi
12990fi
c6b750e1 12991RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12992if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12994$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12995else
81ecdfbb
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
859789af 12998fi
c6b750e1 12999
81ecdfbb 13000
2429c060
PB
13001 fi
13002 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13003 done
13004fi
c6b750e1 13005
2429c060
PB
13006if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13007 set dummy ranlib
13008 if test $build = $target ; then
13009 RANLIB_FOR_TARGET="$2"
13010 else
13011 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13012 fi
d3f5afc4
MS
13013else
13014 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13015fi
05cbd757 13016
3a35eeb3
PB
13017else
13018 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13019fi
13020
2429c060
PB
13021
13022
13023
b121d7d4
DD
13024if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13025 if test -n "$with_build_time_tools"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13027$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13028 if test -x $with_build_time_tools/readelf; then
13029 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13030 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13032$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035$as_echo "no" >&6; }
13036 fi
13037 elif test $build != $host && test $have_gcc_for_target = yes; then
13038 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13039 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13040 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13041 fi
13042fi
13043if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13044 # Extract the first word of "readelf", so it can be a program name with args.
13045set dummy readelf; ac_word=$2
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13048if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13049 $as_echo_n "(cached) " >&6
13050else
13051 case $READELF_FOR_TARGET in
13052 [\\/]* | ?:[\\/]*)
13053 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13054 ;;
13055 *)
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $gcc_cv_tool_dirs
13058do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13063 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067done
13068 done
13069IFS=$as_save_IFS
13070
13071 ;;
13072esac
13073fi
13074READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13075if test -n "$READELF_FOR_TARGET"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13077$as_echo "$READELF_FOR_TARGET" >&6; }
13078else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
13081fi
13082
13083
13084fi
13085if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13086
13087
13088if test -n "$READELF_FOR_TARGET"; then
13089 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13090elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13091 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13092fi
13093
13094if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13095 for ncn_progname in readelf; do
13096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13097set dummy ${ncn_progname}; ac_word=$2
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13100if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13101 $as_echo_n "(cached) " >&6
13102else
13103 if test -n "$READELF_FOR_TARGET"; then
13104 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13105else
13106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107for as_dir in $PATH
13108do
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13113 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13116 fi
13117done
13118 done
13119IFS=$as_save_IFS
13120
13121fi
13122fi
13123READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13124if test -n "$READELF_FOR_TARGET"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13126$as_echo "$READELF_FOR_TARGET" >&6; }
13127else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129$as_echo "no" >&6; }
13130fi
13131
13132
13133 done
13134fi
13135
13136if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13137 for ncn_progname in readelf; do
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13139$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13140 if test -x $with_build_time_tools/${ncn_progname}; then
13141 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143$as_echo "yes" >&6; }
13144 break
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
13148 fi
13149 done
13150fi
13151
13152if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13153 for ncn_progname in readelf; do
13154 if test -n "$ncn_target_tool_prefix"; then
13155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13159if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$READELF_FOR_TARGET"; then
13163 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13172 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13183if test -n "$READELF_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13185$as_echo "$READELF_FOR_TARGET" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192 fi
13193 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13195set dummy ${ncn_progname}; ac_word=$2
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13198if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13199 $as_echo_n "(cached) " >&6
13200else
13201 if test -n "$READELF_FOR_TARGET"; then
13202 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13211 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215done
13216 done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13222if test -n "$READELF_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13224$as_echo "$READELF_FOR_TARGET" >&6; }
13225else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230
13231 fi
13232 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13233 done
13234fi
13235
13236if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13237 set dummy readelf
13238 if test $build = $target ; then
13239 READELF_FOR_TARGET="$2"
13240 else
13241 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13242 fi
13243else
13244 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13245fi
13246
13247else
13248 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13249fi
13250
13251
13252
13253
2429c060
PB
13254if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13255 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13257$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13258 if test -x $with_build_time_tools/strip; then
13259 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13260 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13262$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13263 else
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265$as_echo "no" >&6; }
3a35eeb3 13266 fi
2429c060
PB
13267 elif test $build != $host && test $have_gcc_for_target = yes; then
13268 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13269 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13270 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13271 fi
13272fi
c6b750e1 13273if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13274 # Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
81ecdfbb
RW
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13278if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13279 $as_echo_n "(cached) " >&6
2429c060 13280else
c6b750e1
DJ
13281 case $STRIP_FOR_TARGET in
13282 [\\/]* | ?:[\\/]*)
2429c060
PB
13283 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13284 ;;
2429c060 13285 *)
c6b750e1
DJ
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $gcc_cv_tool_dirs
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
81ecdfbb 13291 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13293 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13295 break 2
13296 fi
13297done
81ecdfbb
RW
13298 done
13299IFS=$as_save_IFS
c6b750e1 13300
2429c060
PB
13301 ;;
13302esac
13303fi
c6b750e1 13304STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13305if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13307$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13308else
81ecdfbb
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
2429c060
PB
13311fi
13312
81ecdfbb 13313
2429c060
PB
13314fi
13315if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13316
13317
13318if test -n "$STRIP_FOR_TARGET"; then
13319 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13320elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13321 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13322fi
13323
13324if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13325 for ncn_progname in strip; do
13326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13327set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13330if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13331 $as_echo_n "(cached) " >&6
9a819804
AO
13332else
13333 if test -n "$STRIP_FOR_TARGET"; then
13334 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13335else
13336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
81ecdfbb 13341 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13343 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13345 break 2
13346 fi
13347done
81ecdfbb
RW
13348 done
13349IFS=$as_save_IFS
9a819804
AO
13350
13351fi
13352fi
13353STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13354if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13356$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13357else
81ecdfbb
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359$as_echo "no" >&6; }
9a819804
AO
13360fi
13361
81ecdfbb 13362
9a819804
AO
13363 done
13364fi
13365
13366if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13367 for ncn_progname in strip; do
81ecdfbb
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13369$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13370 if test -x $with_build_time_tools/${ncn_progname}; then
13371 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373$as_echo "yes" >&6; }
2429c060
PB
13374 break
13375 else
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
2429c060
PB
13378 fi
13379 done
13380fi
13381
13382if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13383 for ncn_progname in strip; do
13384 if test -n "$ncn_target_tool_prefix"; then
13385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13386set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13389if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13390 $as_echo_n "(cached) " >&6
7e0f7140
GK
13391else
13392 if test -n "$STRIP_FOR_TARGET"; then
13393 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13394else
13395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396for as_dir in $PATH
13397do
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
81ecdfbb 13400 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13402 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13404 break 2
13405 fi
13406done
81ecdfbb
RW
13407 done
13408IFS=$as_save_IFS
c6b750e1 13409
7e0f7140
GK
13410fi
13411fi
c6b750e1 13412STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13413if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13415$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13416else
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418$as_echo "no" >&6; }
7e0f7140
GK
13419fi
13420
81ecdfbb 13421
2429c060
PB
13422 fi
13423 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13425set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13428if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13429 $as_echo_n "(cached) " >&6
7e0f7140
GK
13430else
13431 if test -n "$STRIP_FOR_TARGET"; then
13432 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13433else
c6b750e1
DJ
13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435for as_dir in $PATH
13436do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
81ecdfbb 13439 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13441 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13443 break 2
13444 fi
13445done
81ecdfbb
RW
13446 done
13447IFS=$as_save_IFS
c6b750e1 13448
7e0f7140
GK
13449fi
13450fi
c6b750e1 13451STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13452if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13454$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13455else
81ecdfbb
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
7e0f7140 13458fi
c6b750e1 13459
81ecdfbb 13460
2429c060
PB
13461 fi
13462 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13463 done
13464fi
c6b750e1 13465
7e0f7140
GK
13466if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13467 set dummy strip
13468 if test $build = $target ; then
13469 STRIP_FOR_TARGET="$2"
13470 else
13471 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13472 fi
d3f5afc4
MS
13473else
13474 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13475fi
13476
3a35eeb3
PB
13477else
13478 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13479fi
13480
13481
13482
13483
13484if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13485 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13487$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13488 if test -x $with_build_time_tools/windres; then
13489 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13490 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13492$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13493 else
81ecdfbb
RW
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
3a35eeb3 13496 fi
2429c060
PB
13497 elif test $build != $host && test $have_gcc_for_target = yes; then
13498 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13499 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13500 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13501 fi
13502fi
c6b750e1 13503if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13504 # Extract the first word of "windres", so it can be a program name with args.
13505set dummy windres; ac_word=$2
81ecdfbb
RW
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13508if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13509 $as_echo_n "(cached) " >&6
2429c060 13510else
c6b750e1
DJ
13511 case $WINDRES_FOR_TARGET in
13512 [\\/]* | ?:[\\/]*)
2429c060
PB
13513 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13514 ;;
2429c060 13515 *)
c6b750e1
DJ
13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517for as_dir in $gcc_cv_tool_dirs
13518do
13519 IFS=$as_save_IFS
13520 test -z "$as_dir" && as_dir=.
81ecdfbb 13521 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13523 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13525 break 2
13526 fi
13527done
81ecdfbb
RW
13528 done
13529IFS=$as_save_IFS
c6b750e1 13530
2429c060
PB
13531 ;;
13532esac
13533fi
c6b750e1 13534WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13535if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13537$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13538else
81ecdfbb
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540$as_echo "no" >&6; }
2429c060
PB
13541fi
13542
81ecdfbb 13543
2429c060
PB
13544fi
13545if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13546
13547
13548if test -n "$WINDRES_FOR_TARGET"; then
13549 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13550elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13551 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13552fi
13553
13554if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13555 for ncn_progname in windres; do
13556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13557set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13560if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13561 $as_echo_n "(cached) " >&6
9a819804
AO
13562else
13563 if test -n "$WINDRES_FOR_TARGET"; then
13564 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13565else
13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567for as_dir in $PATH
13568do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
81ecdfbb 13571 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13573 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13575 break 2
13576 fi
13577done
81ecdfbb
RW
13578 done
13579IFS=$as_save_IFS
9a819804
AO
13580
13581fi
13582fi
13583WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13584if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13586$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13587else
81ecdfbb
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
9a819804
AO
13590fi
13591
81ecdfbb 13592
9a819804
AO
13593 done
13594fi
13595
13596if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13597 for ncn_progname in windres; do
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13599$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13600 if test -x $with_build_time_tools/${ncn_progname}; then
13601 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13603$as_echo "yes" >&6; }
2429c060
PB
13604 break
13605 else
81ecdfbb
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607$as_echo "no" >&6; }
2429c060
PB
13608 fi
13609 done
13610fi
13611
13612if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13613 for ncn_progname in windres; do
13614 if test -n "$ncn_target_tool_prefix"; then
13615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13619if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13620 $as_echo_n "(cached) " >&6
859789af 13621else
55db4b87
PB
13622 if test -n "$WINDRES_FOR_TARGET"; then
13623 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13624else
c6b750e1
DJ
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
81ecdfbb 13630 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13632 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13634 break 2
13635 fi
13636done
81ecdfbb
RW
13637 done
13638IFS=$as_save_IFS
c6b750e1 13639
859789af
AC
13640fi
13641fi
c6b750e1 13642WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13643if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13645$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13646else
81ecdfbb
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
859789af
AC
13649fi
13650
81ecdfbb 13651
2429c060
PB
13652 fi
13653 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13655set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13658if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13659 $as_echo_n "(cached) " >&6
859789af 13660else
05cbd757
PB
13661 if test -n "$WINDRES_FOR_TARGET"; then
13662 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13663else
c6b750e1
DJ
13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665for as_dir in $PATH
13666do
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
81ecdfbb 13669 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13671 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13673 break 2
13674 fi
13675done
81ecdfbb
RW
13676 done
13677IFS=$as_save_IFS
c6b750e1 13678
859789af
AC
13679fi
13680fi
c6b750e1 13681WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13682if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13684$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13685else
81ecdfbb
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687$as_echo "no" >&6; }
859789af 13688fi
c6b750e1 13689
81ecdfbb 13690
2429c060
PB
13691 fi
13692 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13693 done
13694fi
c6b750e1 13695
05cbd757
PB
13696if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13697 set dummy windres
13698 if test $build = $target ; then
13699 WINDRES_FOR_TARGET="$2"
859789af 13700 else
05cbd757 13701 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13702 fi
d3f5afc4
MS
13703else
13704 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13705fi
13706
3a35eeb3
PB
13707else
13708 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13709fi
13710
852e5f18 13711
0c24b341
NC
13712
13713
13714if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13715 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13717$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13718 if test -x $with_build_time_tools/windmc; then
13719 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13720 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13722$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13723 else
81ecdfbb
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725$as_echo "no" >&6; }
0c24b341
NC
13726 fi
13727 elif test $build != $host && test $have_gcc_for_target = yes; then
13728 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13729 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13730 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13731 fi
13732fi
13733if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13734 # Extract the first word of "windmc", so it can be a program name with args.
13735set dummy windmc; ac_word=$2
81ecdfbb
RW
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13738if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13739 $as_echo_n "(cached) " >&6
0c24b341
NC
13740else
13741 case $WINDMC_FOR_TARGET in
13742 [\\/]* | ?:[\\/]*)
13743 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13744 ;;
13745 *)
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $gcc_cv_tool_dirs
13748do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
81ecdfbb 13751 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13753 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13755 break 2
13756 fi
13757done
81ecdfbb
RW
13758 done
13759IFS=$as_save_IFS
0c24b341
NC
13760
13761 ;;
13762esac
13763fi
13764WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13765if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13767$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13768else
81ecdfbb
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
0c24b341
NC
13771fi
13772
81ecdfbb 13773
0c24b341
NC
13774fi
13775if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13776
13777
13778if test -n "$WINDMC_FOR_TARGET"; then
13779 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13780elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13781 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13782fi
13783
13784if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13785 for ncn_progname in windmc; do
13786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13787set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13790if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13791 $as_echo_n "(cached) " >&6
0c24b341
NC
13792else
13793 if test -n "$WINDMC_FOR_TARGET"; then
13794 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13795else
13796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797for as_dir in $PATH
13798do
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
81ecdfbb 13801 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13803 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13805 break 2
13806 fi
13807done
81ecdfbb
RW
13808 done
13809IFS=$as_save_IFS
0c24b341
NC
13810
13811fi
13812fi
13813WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13814if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13816$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13817else
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819$as_echo "no" >&6; }
0c24b341
NC
13820fi
13821
81ecdfbb 13822
0c24b341
NC
13823 done
13824fi
13825
13826if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13827 for ncn_progname in windmc; do
81ecdfbb
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13829$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13830 if test -x $with_build_time_tools/${ncn_progname}; then
13831 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833$as_echo "yes" >&6; }
0c24b341
NC
13834 break
13835 else
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837$as_echo "no" >&6; }
0c24b341
NC
13838 fi
13839 done
13840fi
13841
13842if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13843 for ncn_progname in windmc; do
13844 if test -n "$ncn_target_tool_prefix"; then
13845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13849if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13850 $as_echo_n "(cached) " >&6
0c24b341
NC
13851else
13852 if test -n "$WINDMC_FOR_TARGET"; then
13853 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13854else
13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
81ecdfbb 13860 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13862 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13864 break 2
13865 fi
13866done
81ecdfbb
RW
13867 done
13868IFS=$as_save_IFS
0c24b341
NC
13869
13870fi
13871fi
13872WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13873if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13875$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13876else
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878$as_echo "no" >&6; }
0c24b341
NC
13879fi
13880
81ecdfbb 13881
0c24b341
NC
13882 fi
13883 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13885set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13887$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13888if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13889 $as_echo_n "(cached) " >&6
0c24b341
NC
13890else
13891 if test -n "$WINDMC_FOR_TARGET"; then
13892 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13893else
13894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895for as_dir in $PATH
13896do
13897 IFS=$as_save_IFS
13898 test -z "$as_dir" && as_dir=.
81ecdfbb 13899 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13901 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13903 break 2
13904 fi
13905done
81ecdfbb
RW
13906 done
13907IFS=$as_save_IFS
0c24b341
NC
13908
13909fi
13910fi
13911WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13912if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13914$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13915else
81ecdfbb
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917$as_echo "no" >&6; }
0c24b341
NC
13918fi
13919
81ecdfbb 13920
0c24b341
NC
13921 fi
13922 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13923 done
13924fi
13925
13926if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13927 set dummy windmc
13928 if test $build = $target ; then
13929 WINDMC_FOR_TARGET="$2"
13930 else
13931 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13932 fi
13933else
13934 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13935fi
13936
13937else
13938 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13939fi
13940
13941
be01d343
PB
13942RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13943
81ecdfbb
RW
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13945$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13946if test "x${build}" != "x${host}" ; then
2429c060
PB
13947 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13948 # We already found the complete path
b8025f34 13949 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13952 else
13953 # Canadian cross, just use what we found
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955$as_echo "pre-installed" >&6; }
2429c060 13956 fi
be01d343
PB
13957else
13958 ok=yes
13959 case " ${configdirs} " in
13960 *" binutils "*) ;;
13961 *) ok=no ;;
13962 esac
c6b750e1 13963
be01d343
PB
13964 if test $ok = yes; then
13965 # An in-tree tool is available and we can use it
13966 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13968$as_echo "just compiled" >&6; }
2429c060
PB
13969 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13970 # We already found the complete path
b8025f34 13971 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13974 elif test "x$target" = "x$host"; then
13975 # We can use an host tool
13976 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13978$as_echo "host tool" >&6; }
be01d343
PB
13979 else
13980 # We need a cross tool
81ecdfbb
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982$as_echo "pre-installed" >&6; }
be01d343
PB
13983 fi
13984fi
4b900473 13985
81ecdfbb
RW
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13987$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13988if test "x${build}" != "x${host}" ; then
2429c060
PB
13989 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13990 # We already found the complete path
b8025f34 13991 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13994 else
13995 # Canadian cross, just use what we found
81ecdfbb
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997$as_echo "pre-installed" >&6; }
2429c060 13998 fi
be01d343
PB
13999else
14000 ok=yes
14001 case " ${configdirs} " in
14002 *" gas "*) ;;
14003 *) ok=no ;;
14004 esac
c6b750e1 14005
be01d343
PB
14006 if test $ok = yes; then
14007 # An in-tree tool is available and we can use it
14008 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14010$as_echo "just compiled" >&6; }
2429c060
PB
14011 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14012 # We already found the complete path
b8025f34 14013 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14015$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14016 elif test "x$target" = "x$host"; then
14017 # We can use an host tool
14018 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14020$as_echo "host tool" >&6; }
be01d343
PB
14021 else
14022 # We need a cross tool
81ecdfbb
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024$as_echo "pre-installed" >&6; }
be01d343
PB
14025 fi
14026fi
4b900473 14027
81ecdfbb
RW
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14029$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14030if test "x${build}" != "x${host}" ; then
2429c060
PB
14031 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14032 # We already found the complete path
b8025f34 14033 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14036 else
14037 # Canadian cross, just use what we found
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039$as_echo "pre-installed" >&6; }
2429c060 14040 fi
be01d343
PB
14041else
14042 ok=yes
14043 case " ${configdirs} " in
14044 *" gcc "*) ;;
14045 *) ok=no ;;
14046 esac
c6b750e1 14047
be01d343
PB
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052$as_echo "just compiled" >&6; }
2429c060
PB
14053 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
b8025f34 14055 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062$as_echo "host tool" >&6; }
be01d343
PB
14063 else
14064 # We need a cross tool
81ecdfbb
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066$as_echo "pre-installed" >&6; }
be01d343
PB
14067 fi
14068fi
4b900473 14069
81ecdfbb
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14071$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14072if test "x${build}" != "x${host}" ; then
2429c060
PB
14073 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
b8025f34 14075 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14078 else
14079 # Canadian cross, just use what we found
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081$as_echo "pre-installed" >&6; }
2429c060 14082 fi
be01d343
PB
14083else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" gcc "*) ;;
14087 *) ok=no ;;
14088 esac
14089 case ,${enable_languages}, in
14090 *,c++,*) ;;
14091 *) ok=no ;;
14092 esac
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
95e43135 14095 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14097$as_echo "just compiled" >&6; }
2429c060
PB
14098 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
b8025f34 14100 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14103 elif test "x$target" = "x$host"; then
14104 # We can use an host tool
14105 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14107$as_echo "host tool" >&6; }
be01d343
PB
14108 else
14109 # We need a cross tool
81ecdfbb
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111$as_echo "pre-installed" >&6; }
be01d343
PB
14112 fi
14113fi
4b900473 14114
81ecdfbb
RW
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14116$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14117if test "x${build}" != "x${host}" ; then
2429c060
PB
14118 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
b8025f34 14120 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14123 else
14124 # Canadian cross, just use what we found
81ecdfbb
RW
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14126$as_echo "pre-installed" >&6; }
2429c060 14127 fi
be01d343
PB
14128else
14129 ok=yes
14130 case " ${configdirs} " in
14131 *" gcc "*) ;;
14132 *) ok=no ;;
14133 esac
14134 case ,${enable_languages}, in
14135 *,c++,*) ;;
14136 *) ok=no ;;
14137 esac
14138 if test $ok = yes; then
14139 # An in-tree tool is available and we can use it
95e43135 14140 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14142$as_echo "just compiled" >&6; }
2429c060
PB
14143 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
b8025f34 14145 ac_dir=`dirname $RAW_CXX_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; }
be01d343
PB
14148 elif test "x$target" = "x$host"; then
14149 # We can use an host tool
14150 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14152$as_echo "host tool" >&6; }
be01d343
PB
14153 else
14154 # We need a cross tool
81ecdfbb
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14156$as_echo "pre-installed" >&6; }
be01d343
PB
14157 fi
14158fi
4b900473 14159
81ecdfbb
RW
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14161$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14162if test "x${build}" != "x${host}" ; then
2429c060
PB
14163 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
b8025f34 14165 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14168 else
14169 # Canadian cross, just use what we found
81ecdfbb
RW
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14171$as_echo "pre-installed" >&6; }
2429c060 14172 fi
be01d343
PB
14173else
14174 ok=yes
14175 case " ${configdirs} " in
14176 *" binutils "*) ;;
14177 *) ok=no ;;
14178 esac
c6b750e1 14179
be01d343
PB
14180 if test $ok = yes; then
14181 # An in-tree tool is available and we can use it
14182 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14184$as_echo "just compiled" >&6; }
2429c060
PB
14185 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14186 # We already found the complete path
b8025f34 14187 ac_dir=`dirname $DLLTOOL_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; }
be01d343
PB
14190 elif test "x$target" = "x$host"; then
14191 # We can use an host tool
14192 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14194$as_echo "host tool" >&6; }
be01d343
PB
14195 else
14196 # We need a cross tool
81ecdfbb
RW
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14198$as_echo "pre-installed" >&6; }
be01d343
PB
14199 fi
14200fi
4b900473 14201
81ecdfbb
RW
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14203$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14204if test "x${build}" != "x${host}" ; then
2429c060
PB
14205 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14206 # We already found the complete path
b8025f34 14207 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14210 else
14211 # Canadian cross, just use what we found
81ecdfbb
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14213$as_echo "pre-installed" >&6; }
2429c060 14214 fi
be01d343
PB
14215else
14216 ok=yes
14217 case " ${configdirs} " in
14218 *" gcc "*) ;;
14219 *) ok=no ;;
14220 esac
c6b750e1 14221
be01d343
PB
14222 if test $ok = yes; then
14223 # An in-tree tool is available and we can use it
14224 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14226$as_echo "just compiled" >&6; }
2429c060
PB
14227 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14228 # We already found the complete path
b8025f34 14229 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14231$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14232 elif test "x$target" = "x$host"; then
14233 # We can use an host tool
14234 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14236$as_echo "host tool" >&6; }
be01d343
PB
14237 else
14238 # We need a cross tool
81ecdfbb
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240$as_echo "pre-installed" >&6; }
be01d343
PB
14241 fi
14242fi
4b900473 14243
81ecdfbb
RW
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14245$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14246if test "x${build}" != "x${host}" ; then
2429c060
PB
14247 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
b8025f34 14249 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14252 else
14253 # Canadian cross, just use what we found
81ecdfbb
RW
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14255$as_echo "pre-installed" >&6; }
2429c060 14256 fi
be01d343
PB
14257else
14258 ok=yes
14259 case " ${configdirs} " in
14260 *" gcc "*) ;;
14261 *) ok=no ;;
14262 esac
14263 case ,${enable_languages}, in
14264 *,fortran,*) ;;
14265 *) ok=no ;;
14266 esac
14267 if test $ok = yes; then
14268 # An in-tree tool is available and we can use it
14269 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14271$as_echo "just compiled" >&6; }
2429c060
PB
14272 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
b8025f34 14274 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14277 elif test "x$target" = "x$host"; then
14278 # We can use an host tool
14279 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14281$as_echo "host tool" >&6; }
be01d343
PB
14282 else
14283 # We need a cross tool
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285$as_echo "pre-installed" >&6; }
be01d343
PB
14286 fi
14287fi
4b900473 14288
e552509b
ILT
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14290$as_echo_n "checking where to find the target gccgo... " >&6; }
14291if test "x${build}" != "x${host}" ; then
14292 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $GOC_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296$as_echo "pre-installed in $ac_dir" >&6; }
14297 else
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
14301 fi
14302else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" gcc "*) ;;
14306 *) ok=no ;;
14307 esac
14308 case ,${enable_languages}, in
14309 *,go,*) ;;
14310 *) ok=no ;;
14311 esac
14312 if test $ok = yes; then
14313 # An in-tree tool is available and we can use it
14314 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14316$as_echo "just compiled" >&6; }
14317 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14318 # We already found the complete path
14319 ac_dir=`dirname $GOC_FOR_TARGET`
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14321$as_echo "pre-installed in $ac_dir" >&6; }
14322 elif test "x$target" = "x$host"; then
14323 # We can use an host tool
14324 GOC_FOR_TARGET='$(GOC)'
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14326$as_echo "host tool" >&6; }
14327 else
14328 # We need a cross tool
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14330$as_echo "pre-installed" >&6; }
14331 fi
14332fi
14333
81ecdfbb
RW
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14335$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14336if test "x${build}" != "x${host}" ; then
2429c060
PB
14337 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14338 # We already found the complete path
b8025f34 14339 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14341$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14342 else
14343 # Canadian cross, just use what we found
81ecdfbb
RW
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14345$as_echo "pre-installed" >&6; }
2429c060 14346 fi
be01d343
PB
14347else
14348 ok=yes
14349 case " ${configdirs} " in
14350 *" ld "*) ;;
14351 *) ok=no ;;
14352 esac
c6b750e1 14353
be01d343
PB
14354 if test $ok = yes; then
14355 # An in-tree tool is available and we can use it
14356 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14358$as_echo "just compiled" >&6; }
2429c060
PB
14359 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14360 # We already found the complete path
b8025f34 14361 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14363$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14364 elif test "x$target" = "x$host"; then
14365 # We can use an host tool
14366 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14368$as_echo "host tool" >&6; }
be01d343
PB
14369 else
14370 # We need a cross tool
81ecdfbb
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14372$as_echo "pre-installed" >&6; }
be01d343
PB
14373 fi
14374fi
4b900473 14375
81ecdfbb
RW
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14377$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14378if test "x${build}" != "x${host}" ; then
2429c060
PB
14379 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14380 # We already found the complete path
b8025f34 14381 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14383$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14384 else
14385 # Canadian cross, just use what we found
81ecdfbb
RW
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14387$as_echo "pre-installed" >&6; }
2429c060 14388 fi
be01d343 14389else
2429c060
PB
14390 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
b8025f34 14392 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14395 elif test "x$target" = "x$host"; then
be01d343
PB
14396 # We can use an host tool
14397 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399$as_echo "host tool" >&6; }
be01d343
PB
14400 else
14401 # We need a cross tool
81ecdfbb
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403$as_echo "pre-installed" >&6; }
be01d343
PB
14404 fi
14405fi
4b900473 14406
81ecdfbb
RW
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14408$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14409if test "x${build}" != "x${host}" ; then
2429c060
PB
14410 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
b8025f34 14412 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14415 else
14416 # Canadian cross, just use what we found
81ecdfbb
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418$as_echo "pre-installed" >&6; }
2429c060 14419 fi
be01d343
PB
14420else
14421 ok=yes
14422 case " ${configdirs} " in
14423 *" binutils "*) ;;
14424 *) ok=no ;;
14425 esac
c6b750e1 14426
be01d343
PB
14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14431$as_echo "just compiled" >&6; }
2429c060
PB
14432 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14433 # We already found the complete path
b8025f34 14434 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14436$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14437 elif test "x$target" = "x$host"; then
14438 # We can use an host tool
14439 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14441$as_echo "host tool" >&6; }
be01d343
PB
14442 else
14443 # We need a cross tool
81ecdfbb
RW
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445$as_echo "pre-installed" >&6; }
be01d343
PB
14446 fi
14447fi
4b900473 14448
6b91c541
AP
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14450$as_echo_n "checking where to find the target objcopy... " >&6; }
14451if test "x${build}" != "x${host}" ; then
14452 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456$as_echo "pre-installed in $ac_dir" >&6; }
14457 else
14458 # Canadian cross, just use what we found
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460$as_echo "pre-installed" >&6; }
14461 fi
14462else
14463 ok=yes
14464 case " ${configdirs} " in
14465 *" binutils "*) ;;
14466 *) ok=no ;;
14467 esac
14468
14469 if test $ok = yes; then
14470 # An in-tree tool is available and we can use it
14471 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14473$as_echo "just compiled" >&6; }
14474 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14475 # We already found the complete path
14476 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14478$as_echo "pre-installed in $ac_dir" >&6; }
14479 elif test "x$target" = "x$host"; then
14480 # We can use an host tool
1b6c0831 14481 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14483$as_echo "host tool" >&6; }
14484 else
14485 # We need a cross tool
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14487$as_echo "pre-installed" >&6; }
14488 fi
14489fi
14490
81ecdfbb
RW
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14492$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14493if test "x${build}" != "x${host}" ; then
2429c060
PB
14494 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14495 # We already found the complete path
b8025f34 14496 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14498$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14499 else
14500 # Canadian cross, just use what we found
81ecdfbb
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14502$as_echo "pre-installed" >&6; }
2429c060 14503 fi
be01d343
PB
14504else
14505 ok=yes
14506 case " ${configdirs} " in
14507 *" binutils "*) ;;
14508 *) ok=no ;;
14509 esac
c6b750e1 14510
be01d343
PB
14511 if test $ok = yes; then
14512 # An in-tree tool is available and we can use it
14513 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14515$as_echo "just compiled" >&6; }
2429c060
PB
14516 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14517 # We already found the complete path
b8025f34 14518 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14520$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14521 elif test "x$target" = "x$host"; then
14522 # We can use an host tool
14523 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14525$as_echo "host tool" >&6; }
be01d343
PB
14526 else
14527 # We need a cross tool
81ecdfbb
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14529$as_echo "pre-installed" >&6; }
be01d343
PB
14530 fi
14531fi
4b900473 14532
81ecdfbb
RW
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14534$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14535if test "x${build}" != "x${host}" ; then
2429c060
PB
14536 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14537 # We already found the complete path
b8025f34 14538 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14540$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14541 else
14542 # Canadian cross, just use what we found
81ecdfbb
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14544$as_echo "pre-installed" >&6; }
2429c060 14545 fi
be01d343
PB
14546else
14547 ok=yes
14548 case " ${configdirs} " in
14549 *" binutils "*) ;;
14550 *) ok=no ;;
14551 esac
c6b750e1 14552
be01d343
PB
14553 if test $ok = yes; then
14554 # An in-tree tool is available and we can use it
14555 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14557$as_echo "just compiled" >&6; }
2429c060
PB
14558 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14559 # We already found the complete path
b8025f34 14560 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14562$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14563 elif test "x$target" = "x$host"; then
14564 # We can use an host tool
14565 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14567$as_echo "host tool" >&6; }
be01d343
PB
14568 else
14569 # We need a cross tool
81ecdfbb
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14571$as_echo "pre-installed" >&6; }
be01d343
PB
14572 fi
14573fi
4b900473 14574
b121d7d4
DD
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14576$as_echo_n "checking where to find the target readelf... " >&6; }
14577if test "x${build}" != "x${host}" ; then
14578 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14579 # We already found the complete path
14580 ac_dir=`dirname $READELF_FOR_TARGET`
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14582$as_echo "pre-installed in $ac_dir" >&6; }
14583 else
14584 # Canadian cross, just use what we found
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14586$as_echo "pre-installed" >&6; }
14587 fi
14588else
14589 ok=yes
14590 case " ${configdirs} " in
14591 *" binutils "*) ;;
14592 *) ok=no ;;
14593 esac
14594
14595 if test $ok = yes; then
14596 # An in-tree tool is available and we can use it
14597 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14599$as_echo "just compiled" >&6; }
14600 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14601 # We already found the complete path
14602 ac_dir=`dirname $READELF_FOR_TARGET`
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14604$as_echo "pre-installed in $ac_dir" >&6; }
14605 elif test "x$target" = "x$host"; then
14606 # We can use an host tool
14607 READELF_FOR_TARGET='$(READELF)'
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14609$as_echo "host tool" >&6; }
14610 else
14611 # We need a cross tool
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14613$as_echo "pre-installed" >&6; }
14614 fi
14615fi
14616
81ecdfbb
RW
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14618$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14619if test "x${build}" != "x${host}" ; then
2429c060
PB
14620 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14621 # We already found the complete path
b8025f34 14622 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14624$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14625 else
14626 # Canadian cross, just use what we found
81ecdfbb
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14628$as_echo "pre-installed" >&6; }
2429c060 14629 fi
be01d343
PB
14630else
14631 ok=yes
14632 case " ${configdirs} " in
14633 *" binutils "*) ;;
14634 *) ok=no ;;
14635 esac
c6b750e1 14636
be01d343
PB
14637 if test $ok = yes; then
14638 # An in-tree tool is available and we can use it
9b980aa1 14639 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14641$as_echo "just compiled" >&6; }
2429c060
PB
14642 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14643 # We already found the complete path
b8025f34 14644 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14646$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14647 elif test "x$target" = "x$host"; then
14648 # We can use an host tool
14649 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14651$as_echo "host tool" >&6; }
be01d343
PB
14652 else
14653 # We need a cross tool
81ecdfbb
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655$as_echo "pre-installed" >&6; }
be01d343
PB
14656 fi
14657fi
4b900473 14658
81ecdfbb
RW
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14660$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14661if test "x${build}" != "x${host}" ; then
2429c060
PB
14662 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14663 # We already found the complete path
b8025f34 14664 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14666$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14667 else
14668 # Canadian cross, just use what we found
81ecdfbb
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14670$as_echo "pre-installed" >&6; }
2429c060 14671 fi
be01d343
PB
14672else
14673 ok=yes
14674 case " ${configdirs} " in
14675 *" binutils "*) ;;
14676 *) ok=no ;;
14677 esac
c6b750e1 14678
be01d343
PB
14679 if test $ok = yes; then
14680 # An in-tree tool is available and we can use it
14681 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14683$as_echo "just compiled" >&6; }
2429c060
PB
14684 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14685 # We already found the complete path
b8025f34 14686 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14688$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14689 elif test "x$target" = "x$host"; then
14690 # We can use an host tool
14691 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14693$as_echo "host tool" >&6; }
be01d343
PB
14694 else
14695 # We need a cross tool
81ecdfbb
RW
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14697$as_echo "pre-installed" >&6; }
be01d343 14698 fi
a0da8069 14699fi
54752a6b 14700
81ecdfbb
RW
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14702$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14703if test "x${build}" != "x${host}" ; then
14704 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14705 # We already found the complete path
14706 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14708$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14709 else
14710 # Canadian cross, just use what we found
81ecdfbb
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14712$as_echo "pre-installed" >&6; }
0c24b341
NC
14713 fi
14714else
14715 ok=yes
14716 case " ${configdirs} " in
14717 *" binutils "*) ;;
14718 *) ok=no ;;
14719 esac
14720
14721 if test $ok = yes; then
14722 # An in-tree tool is available and we can use it
14723 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14725$as_echo "just compiled" >&6; }
0c24b341
NC
14726 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14727 # We already found the complete path
14728 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14730$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14731 elif test "x$target" = "x$host"; then
14732 # We can use an host tool
14733 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14735$as_echo "host tool" >&6; }
0c24b341
NC
14736 else
14737 # We need a cross tool
81ecdfbb
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14739$as_echo "pre-installed" >&6; }
0c24b341
NC
14740 fi
14741fi
14742
54752a6b
NN
14743
14744
be01d343 14745
4b900473 14746
a0da8069
NN
14747# Certain tools may need extra flags.
14748AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14749RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14750NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14751
be01d343
PB
14752# When building target libraries, except in a Canadian cross, we use
14753# the same toolchain as the compiler we just built.
14754COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14755COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14756COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14757if test $host = $build; then
14758 case " $configdirs " in
14759 *" gcc "*)
14760 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14761 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14762 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14763 ;;
14764 esac
14765fi
14766
14767
14768
14769
14770
81ecdfbb
RW
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14772$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14773# Check whether --enable-maintainer-mode was given.
14774if test "${enable_maintainer_mode+set}" = set; then :
14775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14776else
14777 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14778fi
14779
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14781$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14782
14783
14784if test "$USE_MAINTAINER_MODE" = yes; then
14785 MAINTAINER_MODE_TRUE=
14786 MAINTAINER_MODE_FALSE='#'
14787else
14788 MAINTAINER_MODE_TRUE='#'
14789 MAINTAINER_MODE_FALSE=
c6b750e1 14790fi
3d5e36ae
AO
14791MAINT=$MAINTAINER_MODE_TRUE
14792
1d39f329
NN
14793# ---------------------
14794# GCC bootstrap support
14795# ---------------------
14796
14797# Stage specific cflags for build.
14798stage1_cflags="-g"
14799case $build in
14800 vax-*-*)
14801 case ${GCC} in
14802 yes) stage1_cflags="-g -Wa,-J" ;;
14803 *) stage1_cflags="-g -J" ;;
14804 esac ;;
1d39f329
NN
14805esac
14806
1d89b610 14807
1d39f329 14808
8a0d8a5c 14809# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14810# Check whether --enable-stage1-checking was given.
14811if test "${enable_stage1_checking+set}" = set; then :
14812 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14813else
5566c1fa 14814 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14815 # For --disable-checking or implicit --enable-checking=release, avoid
14816 # setting --enable-checking=gc in the default stage1 checking for LTO
14817 # bootstraps. See PR62077.
ce6c656d
L
14818 case $BUILD_CONFIG in
14819 *lto*)
05a13254
NC
14820 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14821 *)
14822 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14823 esac
05a13254
NC
14824 if test "x$enable_checking" = x && \
14825 test -d ${srcdir}/gcc && \
14826 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14827 stage1_checking=--enable-checking=yes,types,extra
14828 fi
8a0d8a5c 14829else
5566c1fa 14830 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14831fi
81ecdfbb 14832fi
8a0d8a5c
PB
14833
14834
c6b750e1 14835
81ecdfbb
RW
14836# Enable -Werror in bootstrap stage2 and later.
14837# Check whether --enable-werror was given.
14838if test "${enable_werror+set}" = set; then :
14839 enableval=$enable_werror;
1a6f2dc7
NN
14840case ${enable_werror} in
14841 yes) stage2_werror_flag="--enable-werror-always" ;;
14842 *) stage2_werror_flag="" ;;
1d39f329
NN
14843esac
14844
82033c9b 14845else
82033c9b 14846
bf41f30d
NC
14847if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14848 case $BUILD_CONFIG in
14849 bootstrap-debug)
14850 stage2_werror_flag="--enable-werror-always" ;;
14851 "")
14852 stage2_werror_flag="--enable-werror-always" ;;
14853 esac
14854fi
82033c9b 14855
bf41f30d 14856fi
82033c9b 14857
1b6c0831 14858
1b6c0831 14859
1b6c0831 14860
e8a5fa9c
RW
14861# Specify what files to not compare during bootstrap.
14862
14863compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14864case "$target" in
14865 hppa*64*-*-hpux*) ;;
bf41f30d 14866 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14867 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14868esac
14869
14870
81ecdfbb
RW
14871ac_config_files="$ac_config_files Makefile"
14872
c6b750e1 14873cat >confcache <<\_ACEOF
a0da8069
NN
14874# This file is a shell script that caches the results of configure
14875# tests run on this system so they can be shared between configure
c6b750e1
DJ
14876# scripts and configure runs, see configure's option --config-cache.
14877# It is not useful on other systems. If it contains results you don't
14878# want to keep, you may remove or edit it.
a0da8069 14879#
c6b750e1
DJ
14880# config.status only pays attention to the cache file if you give it
14881# the --recheck option to rerun configure.
a0da8069 14882#
c6b750e1
DJ
14883# `ac_cv_env_foo' variables (set or unset) will be overridden when
14884# loading this file, other *unset* `ac_cv_foo' will be assigned the
14885# following values.
14886
14887_ACEOF
14888
a0da8069
NN
14889# The following way of writing the cache mishandles newlines in values,
14890# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14891# So, we kill variables containing newlines.
a0da8069
NN
14892# Ultrix sh set writes to stderr and can't be redirected directly,
14893# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14894(
14895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14896 eval ac_val=\$$ac_var
14897 case $ac_val in #(
14898 *${as_nl}*)
14899 case $ac_var in #(
14900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14902 esac
14903 case $ac_var in #(
14904 _ | IFS | as_nl) ;; #(
14905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14906 *) { eval $ac_var=; unset $ac_var;} ;;
14907 esac ;;
14908 esac
14909 done
14910
c6b750e1 14911 (set) 2>&1 |
81ecdfbb
RW
14912 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14913 *${as_nl}ac_space=\ *)
14914 # `set' does not quote correctly, so add quotes: double-quote
14915 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14916 sed -n \
14917 "s/'/'\\\\''/g;
14918 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14919 ;; #(
c6b750e1
DJ
14920 *)
14921 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14922 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14923 ;;
81ecdfbb
RW
14924 esac |
14925 sort
14926) |
c6b750e1 14927 sed '
81ecdfbb 14928 /^ac_cv_env_/b end
c6b750e1 14929 t clear
81ecdfbb 14930 :clear
c6b750e1
DJ
14931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14932 t end
81ecdfbb
RW
14933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14934 :end' >>confcache
14935if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14936 if test -w "$cache_file"; then
d0ac1c44 14937 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14939$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14940 if test ! -f "$cache_file" || test -h "$cache_file"; then
14941 cat confcache >"$cache_file"
14942 else
14943 case $cache_file in #(
14944 */* | ?:*)
14945 mv -f confcache "$cache_file"$$ &&
14946 mv -f "$cache_file"$$ "$cache_file" ;; #(
14947 *)
14948 mv -f confcache "$cache_file" ;;
14949 esac
14950 fi
14951 fi
a0da8069 14952 else
81ecdfbb
RW
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14954$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14955 fi
852e5f18 14956fi
a0da8069 14957rm -f confcache
852e5f18 14958
a0da8069
NN
14959test "x$prefix" = xNONE && prefix=$ac_default_prefix
14960# Let make expand exec_prefix.
14961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14962
a0da8069
NN
14963# Transform confdefs.h into DEFS.
14964# Protect against shell expansion while executing Makefile rules.
14965# Protect against Makefile macro expansion.
c6b750e1
DJ
14966#
14967# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14968# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14969# look for a macro that doesn't take arguments.
81ecdfbb
RW
14970ac_script='
14971:mline
14972/\\$/{
14973 N
14974 s,\\\n,,
14975 b mline
14976}
c6b750e1 14977t clear
81ecdfbb
RW
14978:clear
14979s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14980t quote
81ecdfbb 14981s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14982t quote
81ecdfbb
RW
14983b any
14984:quote
14985s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14986s/\[/\\&/g
14987s/\]/\\&/g
14988s/\$/$$/g
14989H
14990:any
14991${
14992 g
14993 s/^\n//
14994 s/\n/ /g
14995 p
14996}
14997'
14998DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14999
15000
15001ac_libobjs=
15002ac_ltlibobjs=
d0ac1c44 15003U=
c6b750e1
DJ
15004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15005 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15009 # will be set to the directory where LIBOBJS objects are built.
15010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15012done
15013LIBOBJS=$ac_libobjs
852e5f18 15014
c6b750e1 15015LTLIBOBJS=$ac_ltlibobjs
376a0e54 15016
cac3d6c4 15017
c6b750e1 15018
d0ac1c44 15019: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15020ac_write_fail=0
c6b750e1
DJ
15021ac_clean_files_save=$ac_clean_files
15022ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15024$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15025as_write_fail=0
15026cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15027#! $SHELL
15028# Generated by $as_me.
a0da8069 15029# Run this file to recreate the current configuration.
a0da8069 15030# Compiler output produced by configure, useful for debugging
c6b750e1 15031# configure, is in config.log if it exists.
376a0e54 15032
c6b750e1
DJ
15033debug=false
15034ac_cs_recheck=false
15035ac_cs_silent=false
c6b750e1 15036
81ecdfbb
RW
15037SHELL=\${CONFIG_SHELL-$SHELL}
15038export SHELL
15039_ASEOF
15040cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15041## -------------------- ##
15042## M4sh Initialization. ##
15043## -------------------- ##
15044
15045# Be more Bourne compatible
15046DUALCASE=1; export DUALCASE # for MKS sh
15047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15048 emulate sh
15049 NULLCMD=:
81ecdfbb 15050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15051 # is contrary to our usage. Disable this feature.
15052 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15053 setopt NO_GLOB_SUBST
15054else
15055 case `(set -o) 2>/dev/null` in #(
15056 *posix*) :
15057 set -o posix ;; #(
15058 *) :
15059 ;;
15060esac
c6b750e1 15061fi
c6b750e1 15062
81ecdfbb
RW
15063
15064as_nl='
15065'
15066export as_nl
15067# Printing a long string crashes Solaris 7 /usr/bin/printf.
15068as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15071# Prefer a ksh shell builtin over an external printf program on Solaris,
15072# but without wasting forks for bash or zsh.
15073if test -z "$BASH_VERSION$ZSH_VERSION" \
15074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15075 as_echo='print -r --'
15076 as_echo_n='print -rn --'
15077elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15078 as_echo='printf %s\n'
15079 as_echo_n='printf %s'
15080else
15081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15083 as_echo_n='/usr/ucb/echo -n'
15084 else
15085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15086 as_echo_n_body='eval
15087 arg=$1;
15088 case $arg in #(
15089 *"$as_nl"*)
15090 expr "X$arg" : "X\\(.*\\)$as_nl";
15091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15092 esac;
15093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15094 '
15095 export as_echo_n_body
15096 as_echo_n='sh -c $as_echo_n_body as_echo'
15097 fi
15098 export as_echo_body
15099 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15100fi
15101
81ecdfbb
RW
15102# The user is always right.
15103if test "${PATH_SEPARATOR+set}" != set; then
15104 PATH_SEPARATOR=:
15105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15107 PATH_SEPARATOR=';'
15108 }
15109fi
15110
15111
15112# IFS
15113# We need space, tab and new line, in precisely that order. Quoting is
15114# there to prevent editors from complaining about space-tab.
15115# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15116# splitting by setting IFS to empty value.)
15117IFS=" "" $as_nl"
15118
15119# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15120as_myself=
81ecdfbb
RW
15121case $0 in #((
15122 *[\\/]* ) as_myself=$0 ;;
15123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124for as_dir in $PATH
15125do
15126 IFS=$as_save_IFS
15127 test -z "$as_dir" && as_dir=.
15128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15129 done
15130IFS=$as_save_IFS
15131
15132 ;;
15133esac
15134# We did not find ourselves, most probably we were run as `sh COMMAND'
15135# in which case we are not to be found in the path.
15136if test "x$as_myself" = x; then
15137 as_myself=$0
15138fi
15139if test ! -f "$as_myself"; then
15140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15141 exit 1
15142fi
c6b750e1 15143
81ecdfbb
RW
15144# Unset variables that we do not need and which cause bugs (e.g. in
15145# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15146# suppresses any "Segmentation fault" message there. '((' could
15147# trigger a bug in pdksh 5.2.14.
15148for as_var in BASH_ENV ENV MAIL MAILPATH
15149do eval test x\${$as_var+set} = xset \
15150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15151done
c6b750e1
DJ
15152PS1='$ '
15153PS2='> '
15154PS4='+ '
15155
15156# NLS nuisances.
81ecdfbb
RW
15157LC_ALL=C
15158export LC_ALL
15159LANGUAGE=C
15160export LANGUAGE
15161
15162# CDPATH.
15163(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15164
15165
d0ac1c44
SM
15166# as_fn_error STATUS ERROR [LINENO LOG_FD]
15167# ----------------------------------------
81ecdfbb
RW
15168# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15169# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15170# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15171as_fn_error ()
15172{
d0ac1c44
SM
15173 as_status=$1; test $as_status -eq 0 && as_status=1
15174 if test "$4"; then
15175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15177 fi
d0ac1c44 15178 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15179 as_fn_exit $as_status
15180} # as_fn_error
15181
15182
15183# as_fn_set_status STATUS
15184# -----------------------
15185# Set $? to STATUS, without forking.
15186as_fn_set_status ()
15187{
15188 return $1
15189} # as_fn_set_status
15190
15191# as_fn_exit STATUS
15192# -----------------
15193# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15194as_fn_exit ()
15195{
15196 set +e
15197 as_fn_set_status $1
15198 exit $1
15199} # as_fn_exit
15200
15201# as_fn_unset VAR
15202# ---------------
15203# Portably unset VAR.
15204as_fn_unset ()
15205{
15206 { eval $1=; unset $1;}
15207}
15208as_unset=as_fn_unset
15209# as_fn_append VAR VALUE
15210# ----------------------
15211# Append the text in VALUE to the end of the definition contained in VAR. Take
15212# advantage of any shell optimizations that allow amortized linear growth over
15213# repeated appends, instead of the typical quadratic growth present in naive
15214# implementations.
15215if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15216 eval 'as_fn_append ()
15217 {
15218 eval $1+=\$2
15219 }'
15220else
15221 as_fn_append ()
15222 {
15223 eval $1=\$$1\$2
15224 }
15225fi # as_fn_append
15226
15227# as_fn_arith ARG...
15228# ------------------
15229# Perform arithmetic evaluation on the ARGs, and store the result in the
15230# global $as_val. Take advantage of shells that can avoid forks. The arguments
15231# must be portable across $(()) and expr.
15232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15233 eval 'as_fn_arith ()
15234 {
15235 as_val=$(( $* ))
15236 }'
15237else
15238 as_fn_arith ()
15239 {
15240 as_val=`expr "$@" || test $? -eq 1`
15241 }
15242fi # as_fn_arith
15243
c6b750e1 15244
81ecdfbb
RW
15245if expr a : '\(a\)' >/dev/null 2>&1 &&
15246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15247 as_expr=expr
15248else
15249 as_expr=false
15250fi
15251
81ecdfbb 15252if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15253 as_basename=basename
15254else
15255 as_basename=false
15256fi
15257
81ecdfbb
RW
15258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15259 as_dirname=dirname
15260else
15261 as_dirname=false
15262fi
c6b750e1 15263
81ecdfbb 15264as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15266 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15268$as_echo X/"$0" |
15269 sed '/^.*\/\([^/][^/]*\)\/*$/{
15270 s//\1/
15271 q
15272 }
15273 /^X\/\(\/\/\)$/{
15274 s//\1/
15275 q
15276 }
15277 /^X\/\(\/\).*/{
15278 s//\1/
15279 q
15280 }
15281 s/.*/./; q'`
c6b750e1 15282
c6b750e1
DJ
15283# Avoid depending upon Character Ranges.
15284as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15286as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15287as_cr_digits='0123456789'
15288as_cr_alnum=$as_cr_Letters$as_cr_digits
15289
81ecdfbb
RW
15290ECHO_C= ECHO_N= ECHO_T=
15291case `echo -n x` in #(((((
15292-n*)
15293 case `echo 'xy\c'` in
15294 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15295 xy) ECHO_C='\c';;
15296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15297 ECHO_T=' ';;
15298 esac;;
15299*)
15300 ECHO_N='-n';;
c6b750e1
DJ
15301esac
15302
81ecdfbb
RW
15303rm -f conf$$ conf$$.exe conf$$.file
15304if test -d conf$$.dir; then
15305 rm -f conf$$.dir/conf$$.file
c6b750e1 15306else
81ecdfbb
RW
15307 rm -f conf$$.dir
15308 mkdir conf$$.dir 2>/dev/null
c6b750e1 15309fi
81ecdfbb
RW
15310if (echo >conf$$.file) 2>/dev/null; then
15311 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15312 as_ln_s='ln -s'
81ecdfbb
RW
15313 # ... but there are two gotchas:
15314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15316 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15318 as_ln_s='cp -pR'
81ecdfbb
RW
15319 elif ln conf$$.file conf$$ 2>/dev/null; then
15320 as_ln_s=ln
15321 else
d0ac1c44 15322 as_ln_s='cp -pR'
c6b750e1 15323 fi
c6b750e1 15324else
d0ac1c44 15325 as_ln_s='cp -pR'
c6b750e1 15326fi
81ecdfbb
RW
15327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15328rmdir conf$$.dir 2>/dev/null
15329
15330
15331# as_fn_mkdir_p
15332# -------------
15333# Create "$as_dir" as a directory, including parents if necessary.
15334as_fn_mkdir_p ()
15335{
15336
15337 case $as_dir in #(
15338 -*) as_dir=./$as_dir;;
15339 esac
15340 test -d "$as_dir" || eval $as_mkdir_p || {
15341 as_dirs=
15342 while :; do
15343 case $as_dir in #(
15344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15345 *) as_qdir=$as_dir;;
15346 esac
15347 as_dirs="'$as_qdir' $as_dirs"
15348 as_dir=`$as_dirname -- "$as_dir" ||
15349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15350 X"$as_dir" : 'X\(//\)[^/]' \| \
15351 X"$as_dir" : 'X\(//\)$' \| \
15352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15353$as_echo X"$as_dir" |
15354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15355 s//\1/
15356 q
15357 }
15358 /^X\(\/\/\)[^/].*/{
15359 s//\1/
15360 q
15361 }
15362 /^X\(\/\/\)$/{
15363 s//\1/
15364 q
15365 }
15366 /^X\(\/\).*/{
15367 s//\1/
15368 q
15369 }
15370 s/.*/./; q'`
15371 test -d "$as_dir" && break
15372 done
15373 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15375
c6b750e1 15376
81ecdfbb 15377} # as_fn_mkdir_p
c6b750e1 15378if mkdir -p . 2>/dev/null; then
81ecdfbb 15379 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15380else
15381 test -d ./-p && rmdir ./-p
15382 as_mkdir_p=false
15383fi
15384
d0ac1c44
SM
15385
15386# as_fn_executable_p FILE
15387# -----------------------
15388# Test if FILE is an executable regular file.
15389as_fn_executable_p ()
15390{
15391 test -f "$1" && test -x "$1"
15392} # as_fn_executable_p
15393as_test_x='test -x'
15394as_executable_p=as_fn_executable_p
c6b750e1
DJ
15395
15396# Sed expression to map a string onto a valid CPP name.
15397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15398
15399# Sed expression to map a string onto a valid variable name.
15400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15401
15402
c6b750e1 15403exec 6>&1
81ecdfbb
RW
15404## ----------------------------------- ##
15405## Main body of $CONFIG_STATUS script. ##
15406## ----------------------------------- ##
15407_ASEOF
15408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15409
15410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15411# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15412# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15413# values after options handling.
15414ac_log="
c6b750e1 15415This file was extended by $as_me, which was
d0ac1c44 15416generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15417
15418 CONFIG_FILES = $CONFIG_FILES
15419 CONFIG_HEADERS = $CONFIG_HEADERS
15420 CONFIG_LINKS = $CONFIG_LINKS
15421 CONFIG_COMMANDS = $CONFIG_COMMANDS
15422 $ $0 $@
15423
81ecdfbb
RW
15424on `(hostname || uname -n) 2>/dev/null | sed 1q`
15425"
15426
c6b750e1
DJ
15427_ACEOF
15428
81ecdfbb
RW
15429case $ac_config_files in *"
15430"*) set x $ac_config_files; shift; ac_config_files=$*;;
15431esac
c6b750e1 15432
c6b750e1 15433
c6b750e1 15434
81ecdfbb
RW
15435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15436# Files that config.status was made for.
15437config_files="$ac_config_files"
c6b750e1 15438
81ecdfbb 15439_ACEOF
c6b750e1 15440
81ecdfbb 15441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15442ac_cs_usage="\
81ecdfbb
RW
15443\`$as_me' instantiates files and other configuration actions
15444from templates according to the current configuration. Unless the files
15445and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15446
81ecdfbb 15447Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15448
15449 -h, --help print this help, then exit
81ecdfbb 15450 -V, --version print version number and configuration settings, then exit
d0ac1c44 15451 --config print configuration, then exit
81ecdfbb
RW
15452 -q, --quiet, --silent
15453 do not print progress messages
c6b750e1
DJ
15454 -d, --debug don't remove temporary files
15455 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15456 --file=FILE[:TEMPLATE]
15457 instantiate the configuration file FILE
c6b750e1
DJ
15458
15459Configuration files:
15460$config_files
15461
81ecdfbb 15462Report bugs to the package provider."
c6b750e1 15463
81ecdfbb
RW
15464_ACEOF
15465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15466ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15467ac_cs_version="\\
15468config.status
d0ac1c44
SM
15469configured by $0, generated by GNU Autoconf 2.69,
15470 with options \\"\$ac_cs_config\\"
c6b750e1 15471
d0ac1c44 15472Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15473This config.status script is free software; the Free Software Foundation
15474gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15475
15476ac_pwd='$ac_pwd'
15477srcdir='$srcdir'
15478INSTALL='$INSTALL'
8e957354 15479AWK='$AWK'
81ecdfbb 15480test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15481_ACEOF
15482
81ecdfbb
RW
15483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15485ac_need_defaults=:
15486while test $# != 0
a0da8069 15487do
c6b750e1 15488 case $1 in
d0ac1c44 15489 --*=?*)
81ecdfbb
RW
15490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15492 ac_shift=:
15493 ;;
d0ac1c44
SM
15494 --*=)
15495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15496 ac_optarg=
15497 ac_shift=:
15498 ;;
81ecdfbb 15499 *)
c6b750e1
DJ
15500 ac_option=$1
15501 ac_optarg=$2
15502 ac_shift=shift
15503 ;;
c6b750e1
DJ
15504 esac
15505
15506 case $ac_option in
15507 # Handling of the options.
a0da8069 15508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15509 ac_cs_recheck=: ;;
81ecdfbb
RW
15510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15511 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15512 --config | --confi | --conf | --con | --co | --c )
15513 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15514 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15515 debug=: ;;
15516 --file | --fil | --fi | --f )
15517 $ac_shift
81ecdfbb
RW
15518 case $ac_optarg in
15519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15520 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15521 esac
15522 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15523 ac_need_defaults=false;;
81ecdfbb
RW
15524 --he | --h | --help | --hel | -h )
15525 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15528 ac_cs_silent=: ;;
15529
15530 # This is an error.
d0ac1c44 15531 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15532Try \`$0 --help' for more information." ;;
c6b750e1 15533
81ecdfbb
RW
15534 *) as_fn_append ac_config_targets " $1"
15535 ac_need_defaults=false ;;
c6b750e1 15536
376a0e54 15537 esac
c6b750e1 15538 shift
376a0e54
CM
15539done
15540
c6b750e1 15541ac_configure_extra_args=
376a0e54 15542
c6b750e1
DJ
15543if $ac_cs_silent; then
15544 exec 6>/dev/null
15545 ac_configure_extra_args="$ac_configure_extra_args --silent"
15546fi
376a0e54 15547
c6b750e1 15548_ACEOF
81ecdfbb 15549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15550if \$ac_cs_recheck; then
d0ac1c44 15551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15552 shift
15553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15554 CONFIG_SHELL='$SHELL'
15555 export CONFIG_SHELL
15556 exec "\$@"
c6b750e1
DJ
15557fi
15558
15559_ACEOF
81ecdfbb
RW
15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561exec 5>>config.log
15562{
15563 echo
15564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15565## Running $as_me. ##
15566_ASBOX
15567 $as_echo "$ac_log"
15568} >&5
c6b750e1 15569
81ecdfbb
RW
15570_ACEOF
15571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15572#
15573# INIT-COMMANDS
15574#
15575extrasub_build="$extrasub_build"
15576 extrasub_host="$extrasub_host"
15577 extrasub_target="$extrasub_target"
15578
81ecdfbb 15579_ACEOF
c6b750e1 15580
81ecdfbb 15581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15582
81ecdfbb 15583# Handling of arguments.
c6b750e1
DJ
15584for ac_config_target in $ac_config_targets
15585do
81ecdfbb
RW
15586 case $ac_config_target in
15587 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15588
d0ac1c44 15589 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15590 esac
15591done
15592
81ecdfbb 15593
c6b750e1
DJ
15594# If the user did not use the arguments to specify the items to instantiate,
15595# then the envvar interface is used. Set only those that are not.
15596# We use the long form for the default assignment because of an extremely
15597# bizarre bug on SunOS 4.1.3.
15598if $ac_need_defaults; then
15599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15600fi
15601
15602# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15603# simply because there is no reason against having it here, and in addition,
c6b750e1 15604# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15605# Hook for its removal unless debugging.
15606# Note that there is a small window in which the directory will not be cleaned:
15607# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15608$debug ||
15609{
d0ac1c44 15610 tmp= ac_tmp=
81ecdfbb 15611 trap 'exit_status=$?
d0ac1c44
SM
15612 : "${ac_tmp:=$tmp}"
15613 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15614' 0
15615 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15616}
c6b750e1
DJ
15617# Create a (secure) tmp directory for tmp files.
15618
15619{
81ecdfbb 15620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15621 test -d "$tmp"
c6b750e1
DJ
15622} ||
15623{
81ecdfbb
RW
15624 tmp=./conf$$-$RANDOM
15625 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15626} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15627ac_tmp=$tmp
81ecdfbb
RW
15628
15629# Set up the scripts for CONFIG_FILES section.
15630# No need to generate them if there are no CONFIG_FILES.
15631# This happens for instance with `./config.status config.h'.
15632if test -n "$CONFIG_FILES"; then
15633
15634if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15635 ac_cs_awk_getline=:
15636 ac_cs_awk_pipe_init=
15637 ac_cs_awk_read_file='
15638 while ((getline aline < (F[key])) > 0)
15639 print(aline)
15640 close(F[key])'
15641 ac_cs_awk_pipe_fini=
15642else
15643 ac_cs_awk_getline=false
15644 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15645 ac_cs_awk_read_file='
15646 print "|#_!!_#|"
15647 print "cat " F[key] " &&"
15648 '$ac_cs_awk_pipe_init
15649 # The final `:' finishes the AND list.
15650 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15651fi
15652ac_cr=`echo X | tr X '\015'`
15653# On cygwin, bash can eat \r inside `` if the user requested igncr.
15654# But we know of no other shell where ac_cr would be empty at this
15655# point, so we can use a bashism as a fallback.
15656if test "x$ac_cr" = x; then
15657 eval ac_cr=\$\'\\r\'
15658fi
15659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15661 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15662else
15663 ac_cs_awk_cr=$ac_cr
15664fi
15665
d0ac1c44 15666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15667_ACEOF
15668
15669# Create commands to substitute file output variables.
c6b750e1 15670{
81ecdfbb 15671 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15672 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15673 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15674 echo "_ACAWK" &&
15675 echo "_ACEOF"
15676} >conf$$files.sh &&
15677. ./conf$$files.sh ||
d0ac1c44 15678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15679rm -f conf$$files.sh
c6b750e1 15680
81ecdfbb
RW
15681{
15682 echo "cat >conf$$subs.awk <<_ACEOF" &&
15683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15684 echo "_ACEOF"
15685} >conf$$subs.sh ||
d0ac1c44
SM
15686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15687ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15688ac_delim='%!_!# '
15689for ac_last_try in false false false false false :; do
15690 . ./conf$$subs.sh ||
d0ac1c44 15691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15692
15693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15694 if test $ac_delim_n = $ac_delim_num; then
15695 break
15696 elif $ac_last_try; then
d0ac1c44 15697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15698 else
15699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15700 fi
15701done
15702rm -f conf$$subs.sh
15703
15704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15705cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15706_ACEOF
81ecdfbb
RW
15707sed -n '
15708h
15709s/^/S["/; s/!.*/"]=/
15710p
15711g
15712s/^[^!]*!//
15713:repl
15714t repl
15715s/'"$ac_delim"'$//
15716t delim
15717:nl
15718h
d0ac1c44 15719s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15720t more1
15721s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15722p
15723n
15724b repl
15725:more1
15726s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15727p
15728g
15729s/.\{148\}//
15730t nl
15731:delim
15732h
d0ac1c44 15733s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15734t more2
15735s/["\\]/\\&/g; s/^/"/; s/$/"/
15736p
15737b
15738:more2
15739s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15740p
15741g
15742s/.\{148\}//
15743t delim
15744' <conf$$subs.awk | sed '
15745/^[^""]/{
15746 N
15747 s/\n//
15748}
15749' >>$CONFIG_STATUS || ac_write_fail=1
15750rm -f conf$$subs.awk
15751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752_ACAWK
d0ac1c44 15753cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15754 for (key in S) S_is_set[key] = 1
15755 FS = "\a"
15756 \$ac_cs_awk_pipe_init
15757}
15758{
15759 line = $ 0
15760 nfields = split(line, field, "@")
15761 substed = 0
15762 len = length(field[1])
15763 for (i = 2; i < nfields; i++) {
15764 key = field[i]
15765 keylen = length(key)
15766 if (S_is_set[key]) {
15767 value = S[key]
15768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15769 len += length(value) + length(field[++i])
15770 substed = 1
15771 } else
15772 len += 1 + keylen
15773 }
15774 if (nfields == 3 && !substed) {
15775 key = field[2]
15776 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15777 \$ac_cs_awk_read_file
15778 next
15779 }
15780 }
15781 print line
15782}
15783\$ac_cs_awk_pipe_fini
15784_ACAWK
15785_ACEOF
15786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15789else
15790 cat
d0ac1c44
SM
15791fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15793_ACEOF
15794
d0ac1c44
SM
15795# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15796# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15797# trailing colons and then remove the whole line if VPATH becomes empty
15798# (actually we leave an empty line to preserve line numbers).
15799if test "x$srcdir" = x.; then
d0ac1c44
SM
15800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15801h
15802s///
15803s/^/:/
15804s/[ ]*$/:/
15805s/:\$(srcdir):/:/g
15806s/:\${srcdir}:/:/g
15807s/:@srcdir@:/:/g
15808s/^:*//
81ecdfbb 15809s/:*$//
d0ac1c44
SM
15810x
15811s/\(=[ ]*\).*/\1/
15812G
15813s/\n//
81ecdfbb
RW
15814s/^[^=]*=[ ]*$//
15815}'
15816fi
c6b750e1 15817
81ecdfbb
RW
15818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819fi # test -n "$CONFIG_FILES"
c6b750e1 15820
c6b750e1 15821
81ecdfbb
RW
15822eval set X " :F $CONFIG_FILES "
15823shift
15824for ac_tag
15825do
15826 case $ac_tag in
15827 :[FHLC]) ac_mode=$ac_tag; continue;;
15828 esac
15829 case $ac_mode$ac_tag in
15830 :[FHL]*:*);;
d0ac1c44 15831 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15832 :[FH]-) ac_tag=-:-;;
15833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15834 esac
15835 ac_save_IFS=$IFS
15836 IFS=:
15837 set x $ac_tag
15838 IFS=$ac_save_IFS
15839 shift
15840 ac_file=$1
15841 shift
252b5132 15842
81ecdfbb
RW
15843 case $ac_mode in
15844 :L) ac_source=$1;;
15845 :[FH])
15846 ac_file_inputs=
15847 for ac_f
15848 do
15849 case $ac_f in
d0ac1c44 15850 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15851 *) # Look for the file first in the build tree, then in the source tree
15852 # (if the path is not absolute). The absolute path cannot be DOS-style,
15853 # because $ac_f cannot contain `:'.
15854 test -f "$ac_f" ||
15855 case $ac_f in
15856 [\\/$]*) false;;
15857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15858 esac ||
d0ac1c44 15859 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15860 esac
15861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15862 as_fn_append ac_file_inputs " '$ac_f'"
15863 done
c6b750e1 15864
81ecdfbb
RW
15865 # Let's still pretend it is `configure' which instantiates (i.e., don't
15866 # use $as_me), people would be surprised to read:
15867 # /* config.h. Generated by config.status. */
15868 configure_input='Generated from '`
15869 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15870 `' by configure.'
15871 if test x"$ac_file" != x-; then
15872 configure_input="$ac_file. $configure_input"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15874$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15875 fi
81ecdfbb
RW
15876 # Neutralize special characters interpreted by sed in replacement strings.
15877 case $configure_input in #(
15878 *\&* | *\|* | *\\* )
15879 ac_sed_conf_input=`$as_echo "$configure_input" |
15880 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15881 *) ac_sed_conf_input=$configure_input;;
15882 esac
cac3d6c4 15883
81ecdfbb 15884 case $ac_tag in
d0ac1c44
SM
15885 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15887 esac
15888 ;;
a0da8069 15889 esac
252b5132 15890
81ecdfbb 15891 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15892$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15893 X"$ac_file" : 'X\(//\)[^/]' \| \
15894 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15896$as_echo X"$ac_file" |
15897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\(\/\/\)[^/].*/{
15902 s//\1/
15903 q
15904 }
15905 /^X\(\/\/\)$/{
15906 s//\1/
15907 q
15908 }
15909 /^X\(\/\).*/{
15910 s//\1/
15911 q
15912 }
15913 s/.*/./; q'`
15914 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15915 ac_builddir=.
252b5132 15916
81ecdfbb
RW
15917case "$ac_dir" in
15918.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15919*)
15920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15921 # A ".." for each directory in $ac_dir_suffix.
15922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15923 case $ac_top_builddir_sub in
15924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15926 esac ;;
15927esac
15928ac_abs_top_builddir=$ac_pwd
15929ac_abs_builddir=$ac_pwd$ac_dir_suffix
15930# for backward compatibility:
15931ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15932
15933case $srcdir in
81ecdfbb 15934 .) # We are building in place.
c6b750e1 15935 ac_srcdir=.
81ecdfbb
RW
15936 ac_top_srcdir=$ac_top_builddir_sub
15937 ac_abs_top_srcdir=$ac_pwd ;;
15938 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15939 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15940 ac_top_srcdir=$srcdir
15941 ac_abs_top_srcdir=$srcdir ;;
15942 *) # Relative name.
15943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15944 ac_top_srcdir=$ac_top_build_prefix$srcdir
15945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15946esac
81ecdfbb 15947ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15948
252b5132 15949
81ecdfbb
RW
15950 case $ac_mode in
15951 :F)
15952 #
15953 # CONFIG_FILE
15954 #
c6b750e1
DJ
15955
15956 case $INSTALL in
15957 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15958 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15959 esac
81ecdfbb 15960_ACEOF
252b5132 15961
81ecdfbb
RW
15962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15963# If the template does not know about datarootdir, expand it.
15964# FIXME: This hack should be removed a few years after 2.60.
15965ac_datarootdir_hack=; ac_datarootdir_seen=
15966ac_sed_dataroot='
15967/datarootdir/ {
15968 p
15969 q
15970}
15971/@datadir@/p
15972/@docdir@/p
15973/@infodir@/p
15974/@localedir@/p
15975/@mandir@/p'
15976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15977*datarootdir*) ac_datarootdir_seen=yes;;
15978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15981_ACEOF
81ecdfbb
RW
15982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15983 ac_datarootdir_hack='
15984 s&@datadir@&$datadir&g
15985 s&@docdir@&$docdir&g
15986 s&@infodir@&$infodir&g
15987 s&@localedir@&$localedir&g
15988 s&@mandir@&$mandir&g
15989 s&\\\${datarootdir}&$datarootdir&g' ;;
15990esac
15991_ACEOF
15992
15993# Neutralize VPATH when `$srcdir' = `.'.
15994# Shell code in configure.ac might set extrasub.
15995# FIXME: do we really want to maintain this feature?
15996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15997ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15998$extrasub
15999_ACEOF
81ecdfbb 16000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16001:t
16002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16003s|@configure_input@|$ac_sed_conf_input|;t t
16004s&@top_builddir@&$ac_top_builddir_sub&;t t
16005s&@top_build_prefix@&$ac_top_build_prefix&;t t
16006s&@srcdir@&$ac_srcdir&;t t
16007s&@abs_srcdir@&$ac_abs_srcdir&;t t
16008s&@top_srcdir@&$ac_top_srcdir&;t t
16009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16010s&@builddir@&$ac_builddir&;t t
16011s&@abs_builddir@&$ac_abs_builddir&;t t
16012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16013s&@INSTALL@&$ac_INSTALL&;t t
16014$ac_datarootdir_hack
16015"
16016eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16017if $ac_cs_awk_getline; then
d0ac1c44 16018 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16019else
d0ac1c44
SM
16020 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16021fi \
16022 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16023
16024test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16027 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16029which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16030$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16031which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16032
d0ac1c44 16033 rm -f "$ac_tmp/stdin"
81ecdfbb 16034 case $ac_file in
d0ac1c44
SM
16035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16037 esac \
d0ac1c44 16038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16039 ;;
c148b4cb 16040
c148b4cb 16041
c148b4cb 16042
81ecdfbb
RW
16043 esac
16044
06a51eac
RW
16045
16046 case $ac_file$ac_mode in
16047 "Makefile":F) sed "$extrasub_build" Makefile |
16048 sed "$extrasub_host" |
16049 sed "$extrasub_target" > mf$$
16050 mv -f mf$$ Makefile ;;
16051
16052 esac
81ecdfbb
RW
16053done # for ac_tag
16054
16055
16056as_fn_exit 0
c6b750e1 16057_ACEOF
c6b750e1
DJ
16058ac_clean_files=$ac_clean_files_save
16059
81ecdfbb 16060test $ac_write_fail = 0 ||
d0ac1c44 16061 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16062
c6b750e1
DJ
16063
16064# configure is writing to config.log, and then calls config.status.
16065# config.status does its own redirection, appending to config.log.
16066# Unfortunately, on DOS this fails, as config.log is still kept open
16067# by configure, so config.status won't be able to write to it; its
16068# output is simply discarded. So we exec the FD to /dev/null,
16069# effectively closing config.log, so it can be properly (re)opened and
16070# appended to by config.status. When coming back to configure, we
16071# need to make the FD available again.
16072if test "$no_create" != yes; then
16073 ac_cs_success=:
16074 ac_config_status_args=
16075 test "$silent" = yes &&
16076 ac_config_status_args="$ac_config_status_args --quiet"
16077 exec 5>/dev/null
16078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16079 exec 5>>config.log
16080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16081 # would make configure fail if this is the last instruction.
d0ac1c44 16082 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16083fi
16084if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16086$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16087fi
c148b4cb 16088