Handle multiple target events before commit resume
[deliverable/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
693do_compare
694GNATMAKE
695GNATBIND
696ac_ct_CXX
697CXXFLAGS
698CXX
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
1b6c0831 706extra_liboffloadmic_configure_flags
81ecdfbb
RW
707target_subdir
708host_subdir
709build_subdir
710build_libsubdir
8e957354
PB
711AWK
712SED
81ecdfbb
RW
713LN_S
714LN
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726target_noncanonical
727host_noncanonical
728build_noncanonical
729build_os
730build_vendor
731build_cpu
732build
733TOPLEVEL_CONFIGURE_ARGUMENTS
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files='serialization_dependencies
773host_makefile_frag
774target_makefile_frag
775alphaieee_frag
776ospace_frag'
777ac_user_opts='
778enable_option_checking
779with_build_libsubdir
cf39cfc5 780with_system_zlib
1b6c0831
L
781enable_as_accelerator_for
782enable_offload_targets
81ecdfbb 783enable_gold
c7791212 784enable_ld
edeefb67 785enable_compressed_debug_sections
89a1e9c3
PB
786enable_libquadmath
787enable_libquadmath_support
81ecdfbb
RW
788enable_libada
789enable_libssp
f66a9a70 790enable_libstdcxx
1b6c0831 791enable_liboffloadmic
ffdd6afc 792enable_bootstrap
81ecdfbb
RW
793with_mpc
794with_mpc_include
795with_mpc_lib
796with_mpfr_dir
797with_mpfr
798with_mpfr_include
799with_mpfr_lib
800with_gmp_dir
801with_gmp
802with_gmp_include
803with_gmp_lib
81ecdfbb 804with_stage1_libs
c1a5d03a 805with_static_standard_libraries
b3676d82 806with_stage1_ldflags
81ecdfbb 807with_boot_libs
143754cd 808with_boot_ldflags
7ec59b9e
L
809with_isl
810with_isl_include
811with_isl_lib
812enable_isl_version_check
700d40ca 813enable_lto
1b6c0831
L
814enable_linker_plugin_configure_flags
815enable_linker_plugin_flags
bf41f30d 816enable_host_shared
81ecdfbb
RW
817enable_stage1_languages
818enable_objc_gc
05a13254
NC
819with_target_bdw_gc
820with_target_bdw_gc_include
821with_target_bdw_gc_lib
bf41f30d 822with_gcc_major_version_only
81ecdfbb
RW
823with_build_sysroot
824with_debug_prefix_map
96655cc4 825with_build_config
730af8ee 826enable_vtable_verify
81ecdfbb
RW
827enable_serial_configure
828with_build_time_tools
829enable_maintainer_mode
830enable_stage1_checking
831enable_werror
81ecdfbb
RW
832'
833 ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CXX
842CXXFLAGS
843CCC
4074d5f2
RW
844build_configargs
845host_configargs
846target_configargs
81ecdfbb
RW
847AR
848AS
849DLLTOOL
850LD
851LIPO
852NM
853RANLIB
854STRIP
855WINDRES
856WINDMC
857OBJCOPY
858OBJDUMP
b121d7d4 859READELF
81ecdfbb
RW
860CC_FOR_TARGET
861CXX_FOR_TARGET
862GCC_FOR_TARGET
81ecdfbb 863GFORTRAN_FOR_TARGET
e552509b 864GOC_FOR_TARGET
81ecdfbb
RW
865AR_FOR_TARGET
866AS_FOR_TARGET
867DLLTOOL_FOR_TARGET
868LD_FOR_TARGET
869LIPO_FOR_TARGET
870NM_FOR_TARGET
6b91c541 871OBJCOPY_FOR_TARGET
81ecdfbb
RW
872OBJDUMP_FOR_TARGET
873RANLIB_FOR_TARGET
b121d7d4 874READELF_FOR_TARGET
81ecdfbb
RW
875STRIP_FOR_TARGET
876WINDRES_FOR_TARGET
877WINDMC_FOR_TARGET'
878
a0da8069
NN
879
880# Initialize some variables set by options.
c6b750e1
DJ
881ac_init_help=
882ac_init_version=false
81ecdfbb
RW
883ac_unrecognized_opts=
884ac_unrecognized_sep=
a0da8069
NN
885# The variables have the same names as the options, with
886# dashes changed to underlines.
c6b750e1 887cache_file=/dev/null
a0da8069 888exec_prefix=NONE
a0da8069 889no_create=
a0da8069
NN
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
a0da8069
NN
898verbose=
899x_includes=NONE
900x_libraries=NONE
c6b750e1
DJ
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 907# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
a0da8069
NN
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
a0da8069
NN
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
81ecdfbb
RW
918docdir='${datarootdir}/doc/${PACKAGE}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
252b5132 927
a0da8069 928ac_prev=
81ecdfbb 929ac_dashdash=
a0da8069
NN
930for ac_option
931do
a0da8069
NN
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
81ecdfbb 934 eval $ac_prev=\$ac_option
a0da8069
NN
935 ac_prev=
936 continue
937 fi
252b5132 938
81ecdfbb 939 case $ac_option in
d0ac1c44
SM
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
81ecdfbb 943 esac
a0da8069
NN
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
81ecdfbb
RW
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
a0da8069
NN
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 954 bindir=$ac_optarg ;;
a0da8069
NN
955
956 -build | --build | --buil | --bui | --bu)
c6b750e1 957 ac_prev=build_alias ;;
a0da8069 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 959 build_alias=$ac_optarg ;;
a0da8069
NN
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
a0da8069 970
81ecdfbb 971 -datadir | --datadir | --datadi | --datad)
a0da8069 972 ac_prev=datadir ;;
81ecdfbb 973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 974 datadir=$ac_optarg ;;
a0da8069 975
81ecdfbb
RW
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
a0da8069 983 -disable-* | --disable-*)
81ecdfbb 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 985 # Reject names that are not valid shell variable names.
81ecdfbb 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 987 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
a0da8069
NN
1008
1009 -enable-* | --enable-*)
81ecdfbb 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1011 # Reject names that are not valid shell variable names.
81ecdfbb 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1013 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
a0da8069 1022 esac
81ecdfbb 1023 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
c6b750e1 1032 exec_prefix=$ac_optarg ;;
a0da8069
NN
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
c6b750e1
DJ
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
a0da8069
NN
1044
1045 -host | --host | --hos | --ho)
c6b750e1 1046 ac_prev=host_alias ;;
a0da8069 1047 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1048 host_alias=$ac_optarg ;;
a0da8069 1049
81ecdfbb
RW
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
a0da8069
NN
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1061 includedir=$ac_optarg ;;
a0da8069
NN
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1066 infodir=$ac_optarg ;;
a0da8069
NN
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1071 libdir=$ac_optarg ;;
a0da8069
NN
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1078 libexecdir=$ac_optarg ;;
a0da8069 1079
81ecdfbb
RW
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
a0da8069 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1086 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1090 localstatedir=$ac_optarg ;;
a0da8069
NN
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1095 mandir=$ac_optarg ;;
a0da8069
NN
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1102 | --no-cr | --no-c | -n)
a0da8069
NN
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1116 oldincludedir=$ac_optarg ;;
a0da8069
NN
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1121 prefix=$ac_optarg ;;
a0da8069
NN
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1128 program_prefix=$ac_optarg ;;
a0da8069
NN
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1135 program_suffix=$ac_optarg ;;
a0da8069
NN
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1152 program_transform_name=$ac_optarg ;;
a0da8069 1153
81ecdfbb
RW
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
a0da8069
NN
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
c6b750e1 1172 sbindir=$ac_optarg ;;
a0da8069
NN
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
c6b750e1 1183 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
c6b750e1 1188 site=$ac_optarg ;;
a0da8069
NN
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1193 srcdir=$ac_optarg ;;
a0da8069
NN
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1200 sysconfdir=$ac_optarg ;;
a0da8069
NN
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1203 ac_prev=target_alias ;;
a0da8069 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1205 target_alias=$ac_optarg ;;
a0da8069
NN
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
c6b750e1
DJ
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
a0da8069
NN
1212
1213 -with-* | --with-*)
81ecdfbb 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1215 # Reject names that are not valid shell variable names.
81ecdfbb 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1217 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
a0da8069 1226 esac
81ecdfbb 1227 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1228
1229 -without-* | --without-*)
81ecdfbb 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1231 # Reject names that are not valid shell variable names.
81ecdfbb 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1233 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
a0da8069
NN
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1254 x_includes=$ac_optarg ;;
a0da8069
NN
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1261 x_libraries=$ac_optarg ;;
a0da8069 1262
d0ac1c44
SM
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
a0da8069
NN
1265 ;;
1266
c6b750e1
DJ
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1273 esac
1274 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1275 export $ac_envvar ;;
1276
a0da8069 1277 *)
c6b750e1 1278 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
c6b750e1 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1290 as_fn_error $? "missing argument to $ac_option"
a0da8069 1291fi
a0da8069 1292
81ecdfbb
RW
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
d0ac1c44 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1298 esac
81ecdfbb 1299fi
a0da8069 1300
81ecdfbb
RW
1301# Check all directory arguments for consistency.
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
a0da8069 1306do
81ecdfbb
RW
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
c6b750e1 1315 case $ac_val in
81ecdfbb
RW
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1318 esac
d0ac1c44 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1320done
1321
c6b750e1
DJ
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
376a0e54 1328
c6b750e1
DJ
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
c6b750e1
DJ
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
a0da8069 1342
a0da8069 1343
81ecdfbb
RW
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1347 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1349 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1350
1351
a0da8069
NN
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
81ecdfbb
RW
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
a0da8069 1379 srcdir=$ac_confdir
81ecdfbb 1380 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1381 srcdir=..
1382 fi
1383else
1384 ac_srcdir_defaulted=no
1385fi
81ecdfbb
RW
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
d0ac1c44 1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
6d0cd39e
AM
1404case $srcdir in
1405 *" "*)
d0ac1c44 1406 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1407 ;;
1408esac
9cc8ae67
PB
1409ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1410
81ecdfbb
RW
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
c6b750e1
DJ
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425\`configure' configures this package to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
d0ac1c44 1439 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
c6b750e1
DJ
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1447 [$ac_default_prefix]
c6b750e1 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1449 [PREFIX]
c6b750e1
DJ
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
81ecdfbb
RW
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491_ACEOF
a0da8069 1492fi
a0da8069 1493
c6b750e1
DJ
1494if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498Optional Features:
81ecdfbb 1499 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1502 --enable-as-accelerator-for=ARG
1503 build as offload target compiler. Specify offload
1504 host triple by ARG
1505 --enable-offload-targets=LIST
1506 enable offloading to devices from comma-separated
1507 LIST of TARGET[=DIR]. Use optional path to find
1508 offload target compiler during the build
c7791212 1509 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1510 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1511 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1512 Enable compressed debug sections for gas, gold or ld
1513 by default
89a1e9c3
PB
1514 --disable-libquadmath do not build libquadmath directory
1515 --disable-libquadmath-support
1516 disable libquadmath support for Fortran
521ec477
DD
1517 --enable-libada build libada directory
1518 --enable-libssp build libssp directory
f66a9a70 1519 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1520 --enable-liboffloadmic=ARG
1521 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1522 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1523 --disable-isl-version-check
4849dfd8 1524 disable check for isl version
700d40ca 1525 --enable-lto enable link time optimization support
1b6c0831
L
1526 --enable-linker-plugin-configure-flags=FLAGS
1527 additional flags for configuring linker plugins
1528 [none]
1529 --enable-linker-plugin-flags=FLAGS
1530 additional flags for configuring and building linker
1531 plugins [none]
bf41f30d 1532 --enable-host-shared build host code as shared libraries
7837304f
AS
1533 --enable-stage1-languages[=all]
1534 choose additional languages to build during stage1.
1535 Mostly useful for compiler development
1536 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1537 Objective-C runtime
ce6c656d 1538 --enable-vtable-verify Enable vtable verification feature
521ec477 1539 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1540 force sequential configuration of sub-packages for
1541 the host, target or build machine, or all
1542 sub-packages
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-stage1-checking[=all]
1547 choose additional checking for stage1 of the
1548 compiler
c6b750e1
DJ
1549 --enable-werror enable -Werror in bootstrap stage2 and later
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1555 --with-system-zlib use installed libz
7837304f
AS
1556 --with-mpc=PATH specify prefix directory for installed MPC package.
1557 Equivalent to --with-mpc-include=PATH/include plus
1558 --with-mpc-lib=PATH/lib
1559 --with-mpc-include=PATH specify directory for installed MPC include files
1560 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1561 --with-mpfr-dir=PATH this option has been REMOVED
1562 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1563 Equivalent to --with-mpfr-include=PATH/include plus
1564 --with-mpfr-lib=PATH/lib
c6b750e1 1565 --with-mpfr-include=PATH
521ec477
DD
1566 specify directory for installed MPFR include files
1567 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1568 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1569 --with-gmp=PATH specify prefix directory for the installed GMP
1570 package. Equivalent to
1571 --with-gmp-include=PATH/include plus
1572 --with-gmp-lib=PATH/lib
521ec477
DD
1573 --with-gmp-include=PATH specify directory for installed GMP include files
1574 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1575 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1576 --with-static-standard-libraries
1577 use -static-libstdc++ and -static-libgcc
1578 (default=auto)
7837304f
AS
1579 --with-stage1-ldflags=FLAGS
1580 linker flags for stage1
7837304f
AS
1581 --with-boot-libs=LIBS libraries for stage2 and later
1582 --with-boot-ldflags=FLAGS
1583 linker flags for stage2 and later
4849dfd8 1584 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1585 package. Equivalent to
7ec59b9e
L
1586 --with-isl-include=PATH/include plus
1587 --with-isl-lib=PATH/lib
4849dfd8
NC
1588 --with-isl-include=PATH Specify directory for installed isl include files
1589 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1590 --with-target-bdw-gc=PATHLIST
1591 specify prefix directory for installed bdw-gc
1592 package. Equivalent to
1593 --with-target-bdw-gc-include=PATH/include plus
1594 --with-target-bdw-gc-lib=PATH/lib
1595 --with-target-bdw-gc-include=PATHLIST
1596 specify directories for installed bdw-gc include
1597 files
1598 --with-target-bdw-gc-lib=PATHLIST
1599 specify directories for installed bdw-gc library
bf41f30d
NC
1600 --with-gcc-major-version-only
1601 use only GCC major number in filesystem paths
521ec477 1602 --with-build-sysroot=SYSROOT
c6b750e1 1603 use sysroot as the system root during the build
8a6ee3ab 1604 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1605 map A to B, C to D ... in debug information
1606 --with-build-config='NAME NAME2...'
1607 use config/NAME.mk build configuration
521ec477 1608 --with-build-time-tools=PATH
c6b750e1 1609 use given path to find target tools during the build
c6b750e1
DJ
1610
1611Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
81ecdfbb 1616 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1618 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1619 CXX C++ compiler command
1620 CXXFLAGS C++ compiler flags
4074d5f2
RW
1621 build_configargs
1622 additional configure arguments for build directories
1623 host_configargs
1624 additional configure arguments for host directories
1625 target_configargs
1626 additional configure arguments for target directories
9a819804
AO
1627 AR AR for the host
1628 AS AS for the host
1629 DLLTOOL DLLTOOL for the host
1630 LD LD for the host
1631 LIPO LIPO for the host
1632 NM NM for the host
1633 RANLIB RANLIB for the host
1634 STRIP STRIP for the host
1635 WINDRES WINDRES for the host
0c24b341 1636 WINDMC WINDMC for the host
9a819804
AO
1637 OBJCOPY OBJCOPY for the host
1638 OBJDUMP OBJDUMP for the host
b121d7d4 1639 READELF READELF for the host
9a819804
AO
1640 CC_FOR_TARGET
1641 CC for the target
1642 CXX_FOR_TARGET
1643 CXX for the target
1644 GCC_FOR_TARGET
1645 GCC for the target
9a819804
AO
1646 GFORTRAN_FOR_TARGET
1647 GFORTRAN for the target
e552509b
ILT
1648 GOC_FOR_TARGET
1649 GOC for the target
9a819804
AO
1650 AR_FOR_TARGET
1651 AR for the target
1652 AS_FOR_TARGET
1653 AS for the target
1654 DLLTOOL_FOR_TARGET
1655 DLLTOOL for the target
1656 LD_FOR_TARGET
1657 LD for the target
1658 LIPO_FOR_TARGET
1659 LIPO for the target
1660 NM_FOR_TARGET
1661 NM for the target
6b91c541
AP
1662 OBJCOPY_FOR_TARGET
1663 OBJCOPY for the target
9a819804
AO
1664 OBJDUMP_FOR_TARGET
1665 OBJDUMP for the target
1666 RANLIB_FOR_TARGET
1667 RANLIB for the target
b121d7d4
DD
1668 READELF_FOR_TARGET
1669 READELF for the target
9a819804
AO
1670 STRIP_FOR_TARGET
1671 STRIP for the target
1672 WINDRES_FOR_TARGET
1673 WINDRES for the target
0c24b341
NC
1674 WINDMC_FOR_TARGET
1675 WINDMC for the target
c6b750e1
DJ
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
81ecdfbb 1680Report bugs to the package provider.
c6b750e1 1681_ACEOF
81ecdfbb 1682ac_status=$?
c6b750e1
DJ
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
c6b750e1 1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
c6b750e1
DJ
1691 ac_builddir=.
1692
81ecdfbb
RW
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1708
1709case $srcdir in
81ecdfbb 1710 .) # We are building in place.
c6b750e1 1711 ac_srcdir=.
81ecdfbb
RW
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1715 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1722esac
81ecdfbb
RW
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1733 else
81ecdfbb
RW
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1737 done
1738fi
1739
81ecdfbb 1740test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1741if $ac_init_version; then
1742 cat <<\_ACEOF
81ecdfbb 1743configure
d0ac1c44 1744generated by GNU Autoconf 2.69
c6b750e1 1745
d0ac1c44 1746Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
81ecdfbb 1750 exit
c6b750e1 1751fi
81ecdfbb
RW
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
d0ac1c44
SM
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
81ecdfbb
RW
1792
1793} # ac_fn_c_try_compile
1794
1795# ac_fn_cxx_try_compile LINENO
1796# ----------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
d0ac1c44
SM
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
81ecdfbb
RW
1830
1831} # ac_fn_cxx_try_compile
1832
b3676d82
EB
1833# ac_fn_cxx_try_link LINENO
1834# -------------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_link ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
d0ac1c44 1860 test -x conftest$ac_exeext
b3676d82
EB
1861 }; then :
1862 ac_retval=0
1863else
1864 $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
b3676d82
EB
1876
1877} # ac_fn_cxx_try_link
1878
81ecdfbb
RW
1879# ac_fn_c_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_link ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
d0ac1c44 1906 test -x conftest$ac_exeext
81ecdfbb
RW
1907 }; then :
1908 ac_retval=0
1909else
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
81ecdfbb
RW
1922
1923} # ac_fn_c_try_link
1924cat >config.log <<_ACEOF
c6b750e1
DJ
1925This file contains any messages produced by compilers while
1926running configure, to aid debugging if configure makes a mistake.
1927
1928It was created by $as_me, which was
d0ac1c44 1929generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1930
1931 $ $0 $@
1932
1933_ACEOF
81ecdfbb 1934exec 5>>config.log
c6b750e1
DJ
1935{
1936cat <<_ASUNAME
1937## --------- ##
1938## Platform. ##
1939## --------- ##
1940
1941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1953/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958_ASUNAME
1959
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1965 $as_echo "PATH: $as_dir"
1966 done
1967IFS=$as_save_IFS
c6b750e1
DJ
1968
1969} >&5
1970
1971cat >&5 <<_ACEOF
1972
1973
1974## ----------- ##
1975## Core tests. ##
1976## ----------- ##
1977
1978_ACEOF
1979
1980
1981# Keep a trace of the command line.
1982# Strip out --no-create and --no-recursion so they do not pile up.
1983# Strip out --silent because we don't want to record it for future runs.
1984# Also quote any args containing shell meta-characters.
1985# Make two passes to allow for proper duplicate-argument suppression.
1986ac_configure_args=
1987ac_configure_args0=
1988ac_configure_args1=
c6b750e1
DJ
1989ac_must_keep_next=false
1990for ac_pass in 1 2
1991do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
81ecdfbb
RW
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2001 esac
2002 case $ac_pass in
81ecdfbb 2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2004 2)
81ecdfbb 2005 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
81ecdfbb 2021 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2022 ;;
2023 esac
2024 done
2025done
81ecdfbb
RW
2026{ ac_configure_args0=; unset ac_configure_args0;}
2027{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2028
2029# When interrupted or exit'd, cleanup temporary files, and complete
2030# config.log. We remove comments because anyway the quotes in there
2031# would cause problems or look ugly.
81ecdfbb
RW
2032# WARNING: Use '\'' to represent an apostrophe within the trap.
2033# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2034trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
d0ac1c44 2039 $as_echo "## ---------------- ##
c6b750e1 2040## Cache variables. ##
d0ac1c44 2041## ---------------- ##"
c6b750e1
DJ
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2044(
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
c6b750e1 2060 (set) 2>&1 |
81ecdfbb
RW
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
c6b750e1 2063 sed -n \
81ecdfbb
RW
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
c6b750e1 2067 *)
81ecdfbb 2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2069 ;;
81ecdfbb
RW
2070 esac |
2071 sort
2072)
c6b750e1
DJ
2073 echo
2074
d0ac1c44 2075 $as_echo "## ----------------- ##
c6b750e1 2076## Output variables. ##
d0ac1c44 2077## ----------------- ##"
c6b750e1
DJ
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
81ecdfbb
RW
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
d0ac1c44 2090 $as_echo "## ------------------- ##
81ecdfbb 2091## File substitutions. ##
d0ac1c44 2092## ------------------- ##"
c6b750e1
DJ
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
81ecdfbb
RW
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
d0ac1c44 2106 $as_echo "## ----------- ##
c6b750e1 2107## confdefs.h. ##
d0ac1c44 2108## ----------- ##"
c6b750e1 2109 echo
81ecdfbb 2110 cat confdefs.h
c6b750e1
DJ
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
81ecdfbb
RW
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
c6b750e1 2116 } >&5
81ecdfbb
RW
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2119 exit $exit_status
81ecdfbb 2120' 0
c6b750e1 2121for ac_signal in 1 2 13 15; do
81ecdfbb 2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
c6b750e1
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
81ecdfbb
RW
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
c6b750e1
DJ
2157
2158# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
81ecdfbb
RW
2169elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2175fi
81ecdfbb
RW
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2182 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186as_fn_error $? "failed to load site script $ac_site_file
2187See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
d0ac1c44
SM
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2197 case $cache_file in
81ecdfbb
RW
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
c6b750e1
DJ
2200 esac
2201 fi
a0da8069 2202else
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
81ecdfbb 2211for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2216 case $ac_old_set,$ac_new_set in
2217 set,)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2220 ac_cache_corrupted=: ;;
2221 ,set)
81ecdfbb
RW
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
81ecdfbb 2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2264fi
81ecdfbb
RW
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
a0da8069
NN
2268
2269ac_ext=c
a0da8069 2270ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
c6b750e1
DJ
2278
2279
34a0f3cf 2280
c6b750e1 2281
1aa93c3a 2282if test x"${enable_gdb}" != x"no" -a x"${enable_src_release_build}" != x"yes"; then
043a0010
JB
2283 # For this branch, we do not support building GDB in-tree.
2284 # Try to detect whether we are in this situation or not by
2285 # searching for a couple of known files in the source directory.
2286 if test -f gnulib/update-gnulib.sh -a -f gdb/ChangeLog; then
2287 as_fn_error $? "GDB must be configured and built in a directory separate from its sources.
2288
2289To do so, create a dedicated directory for your GDB build and invoke
2290the configure script from that directory:
2291
2292 $ mkdir build
2293 $ cd build
2294 $ <full path to your sources>/gdb-VERSION/configure [etc...]
2295 $ make" "$LINENO" 5
2296 fi
2297fi
2298
5b553f7e
RW
2299progname=$0
2300# if PWD already has a value, it is probably wrong.
2301if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2302
2303# Export original configure arguments for use by sub-configures.
2304# Quote arguments with shell meta charatcers.
2305TOPLEVEL_CONFIGURE_ARGUMENTS=
2306set -- "$progname" "$@"
2307for ac_arg
2308do
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318done
2319if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2321fi
2322# Remove the initial space we just introduced and, as these will be
2323# expanded by make, quote '$'.
2324TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2325
c6b750e1
DJ
2326
2327# Find the build, host, and target systems.
a0da8069 2328ac_aux_dir=
81ecdfbb 2329for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
a0da8069
NN
2343done
2344if test -z "$ac_aux_dir"; then
d0ac1c44 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2346fi
81ecdfbb
RW
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
a0da8069 2356
c6b750e1 2357# Make sure we can run config.sub.
81ecdfbb 2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2363if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2364 $as_echo_n "(cached) " >&6
2365else
2366 ac_build_alias=$build_alias
2367test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369test "x$ac_build_alias" = x &&
d0ac1c44 2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2373
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376$as_echo "$ac_cv_build" >&6; }
2377case $ac_cv_build in
2378*-*-*) ;;
d0ac1c44 2379*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2380esac
c6b750e1 2381build=$ac_cv_build
81ecdfbb
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_build
2384shift
2385build_cpu=$1
2386build_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390build_os=$*
2391IFS=$ac_save_IFS
2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2393
a0da8069 2394
c6b750e1
DJ
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2398esac
2399
2400
cac3d6c4 2401
c6b750e1
DJ
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2405esac
2406
cac3d6c4 2407
c6b750e1
DJ
2408
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2412esac
2413
cac3d6c4 2414
c6b750e1
DJ
2415
2416
2417test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
c6b750e1 2420 program_transform_name=s,y,y,
cac3d6c4 2421
81ecdfbb
RW
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2423$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2424if ${ac_cv_host+:} false; then :
81ecdfbb 2425 $as_echo_n "(cached) " >&6
cac3d6c4 2426else
81ecdfbb
RW
2427 if test "x$host_alias" = x; then
2428 ac_cv_host=$ac_cv_build
2429else
2430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2432fi
c6b750e1
DJ
2433
2434fi
81ecdfbb
RW
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2436$as_echo "$ac_cv_host" >&6; }
2437case $ac_cv_host in
2438*-*-*) ;;
d0ac1c44 2439*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2440esac
c6b750e1 2441host=$ac_cv_host
81ecdfbb
RW
2442ac_save_IFS=$IFS; IFS='-'
2443set x $ac_cv_host
2444shift
2445host_cpu=$1
2446host_vendor=$2
2447shift; shift
2448# Remember, the first character of IFS is used to create $*,
2449# except with old shells:
2450host_os=$*
2451IFS=$ac_save_IFS
2452case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2453
2454
81ecdfbb
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2456$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2457if ${ac_cv_target+:} false; then :
81ecdfbb 2458 $as_echo_n "(cached) " >&6
c6b750e1 2459else
81ecdfbb
RW
2460 if test "x$target_alias" = x; then
2461 ac_cv_target=$ac_cv_host
2462else
2463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2465fi
c6b750e1 2466
cac3d6c4 2467fi
81ecdfbb
RW
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2469$as_echo "$ac_cv_target" >&6; }
2470case $ac_cv_target in
2471*-*-*) ;;
d0ac1c44 2472*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2473esac
c6b750e1 2474target=$ac_cv_target
81ecdfbb
RW
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_target
2477shift
2478target_cpu=$1
2479target_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483target_os=$*
2484IFS=$ac_save_IFS
2485case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2486
2487
2488# The aliases save the names the user supplied, while $host etc.
2489# will get canonicalized.
2490test -n "$target_alias" &&
2491 test "$program_prefix$program_suffix$program_transform_name" = \
2492 NONENONEs,x,x, &&
2493 program_prefix=${target_alias}-
81ecdfbb 2494
a0da8069 2495test "$program_prefix" != NONE &&
81ecdfbb 2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2497# Use a double $ so make ignores it.
2498test "$program_suffix" != NONE &&
81ecdfbb
RW
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500# Double any \ or $.
c6b750e1 2501# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2502ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2504
a0da8069
NN
2505
2506
e5c3f801
NN
2507# Get 'install' or 'install-sh' and its variants.
2508# Find a good install program. We prefer a C program (faster),
2509# so one script is as good as another. But avoid the broken or
2510# incompatible versions:
2511# SysV /etc/install, /usr/sbin/install
2512# SunOS /usr/etc/install
2513# IRIX /sbin/install
2514# AIX /bin/install
c6b750e1 2515# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2516# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2519# OS/2's system install, which has a completely different semantic
e5c3f801 2520# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2521# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2524if test -z "$INSTALL"; then
d0ac1c44 2525if ${ac_cv_path_install+:} false; then :
81ecdfbb 2526 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2527else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2533 # Account for people who put trailing slashes in PATH elements.
2534case $as_dir/ in #((
2535 ./ | .// | /[cC]/* | \
c6b750e1 2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2545 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2546 if test $ac_prog = install &&
c6b750e1 2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2548 # AIX install. It has an incompatible calling convention.
2549 :
c6b750e1
DJ
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
e5c3f801 2554 else
58c85be7
RW
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565 break 3
2566 fi
e5c3f801
NN
2567 fi
2568 fi
2569 done
c6b750e1
DJ
2570 done
2571 ;;
2572esac
81ecdfbb
RW
2573
2574 done
2575IFS=$as_save_IFS
c6b750e1 2576
58c85be7 2577rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2578
2579fi
2580 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2581 INSTALL=$ac_cv_path_install
e5c3f801 2582 else
58c85be7
RW
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
e5c3f801 2585 # break other packages using the cache if that directory is
58c85be7 2586 # removed, or if the value is a relative name.
c6b750e1 2587 INSTALL=$ac_install_sh
e5c3f801
NN
2588 fi
2589fi
81ecdfbb
RW
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2592
2593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594# It thinks the first close brace ends the variable substitution.
2595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
c6b750e1 2597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2598
2599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
81ecdfbb
RW
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2602$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2603if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2604 $as_echo_n "(cached) " >&6
656fdd47
PB
2605else
2606 rm -f conftestdata_t
2607echo >conftestdata_f
2608if ln conftestdata_f conftestdata_t 2>/dev/null
2609then
2610 acx_cv_prog_LN=ln
2611else
2612 acx_cv_prog_LN=no
2613fi
2614rm -f conftestdata_f conftestdata_t
2615
2616fi
2617if test $acx_cv_prog_LN = no; then
2618 LN="cp"
81ecdfbb
RW
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2620$as_echo "no, using $LN" >&6; }
656fdd47
PB
2621else
2622 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624$as_echo "yes" >&6; }
656fdd47
PB
2625fi
2626
81ecdfbb
RW
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2628$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2629LN_S=$as_ln_s
2630if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632$as_echo "yes" >&6; }
cac3d6c4 2633else
81ecdfbb
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2635$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2636fi
2637
8e957354
PB
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2639$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2640if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2641 $as_echo_n "(cached) " >&6
2642else
2643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2644 for ac_i in 1 2 3 4 5 6 7; do
2645 ac_script="$ac_script$as_nl$ac_script"
2646 done
2647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2648 { ac_script=; unset ac_script;}
2649 if test -z "$SED"; then
2650 ac_path_SED_found=false
2651 # Loop through the user's path and test for each of PROGNAME-LIST
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in sed gsed; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2660 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2661# Check for GNU ac_path_SED and select it if it is found.
2662 # Check for GNU $ac_path_SED
2663case `"$ac_path_SED" --version 2>&1` in
2664*GNU*)
2665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2666*)
2667 ac_count=0
2668 $as_echo_n 0123456789 >"conftest.in"
2669 while :
2670 do
2671 cat "conftest.in" "conftest.in" >"conftest.tmp"
2672 mv "conftest.tmp" "conftest.in"
2673 cp "conftest.in" "conftest.nl"
2674 $as_echo '' >> "conftest.nl"
2675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2677 as_fn_arith $ac_count + 1 && ac_count=$as_val
2678 if test $ac_count -gt ${ac_path_SED_max-0}; then
2679 # Best one so far, save it but keep looking for a better one
2680 ac_cv_path_SED="$ac_path_SED"
2681 ac_path_SED_max=$ac_count
2682 fi
2683 # 10*(2^10) chars as input seems more than enough
2684 test $ac_count -gt 10 && break
2685 done
2686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2687esac
2688
2689 $ac_path_SED_found && break 3
2690 done
2691 done
2692 done
2693IFS=$as_save_IFS
2694 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2696 fi
2697else
2698 ac_cv_path_SED=$SED
2699fi
2700
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2703$as_echo "$ac_cv_path_SED" >&6; }
2704 SED="$ac_cv_path_SED"
2705 rm -f conftest.sed
2706
2707for ac_prog in gawk mawk nawk awk
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2713if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2714 $as_echo_n "(cached) " >&6
2715else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730done
2731 done
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736AWK=$ac_cv_prog_AWK
2737if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739$as_echo "$AWK" >&6; }
2740else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
2743fi
2744
2745
2746 test -n "$AWK" && break
2747done
2748
e5c3f801 2749
0fdbe983
DJ
2750srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2751
2752# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2753# a relative path.
2754if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2755 INSTALL="${srcpwd}/install-sh -c"
2756fi
2757
a0da8069
NN
2758# Set srcdir to "." if that's what it is.
2759# This is important for multilib support.
2760pwd=`${PWDCMD-pwd}`
a0da8069
NN
2761if test "${pwd}" = "${srcpwd}" ; then
2762 srcdir=.
252b5132
RH
2763fi
2764
a0da8069 2765topsrcdir=$srcpwd
252b5132 2766
a0da8069 2767extra_host_args=
afefada0 2768
a0da8069
NN
2769### To add a new directory to the tree, first choose whether it is a target
2770### or a host dependent tool. Then put it into the appropriate list
2771### (library or tools, host or target), doing a dependency sort.
252b5132 2772
c6b750e1 2773# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2774# configdirs, or target_configdirs; see the serialization section below.
252b5132 2775
c6b750e1
DJ
2776# Dependency sorting is only needed when *configuration* must be done in
2777# a particular order. In all cases a dependency should be specified in
a0da8069 2778# the Makefile, whether or not it's implicitly specified here.
252b5132 2779
a0da8069
NN
2780# Double entries in build_configdirs, configdirs, or target_configdirs may
2781# cause circular dependencies and break everything horribly.
252b5132 2782
6a9cf61e
PB
2783# these library is used by various programs built for the build
2784# environment
2785#
1b6c0831 2786build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2787
2788# these tools are built for the build environment
a90ef4bf 2789build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2790
a0da8069 2791# these libraries are used by various programs built for the host environment
1b6c0831 2792#f
0e65dfba 2793host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2794
a0da8069
NN
2795# these tools are built for the host environment
2796# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2797# know that we are building the simulator.
2798# binutils, gas and ld appear in that order because it makes sense to run
2799# "make check" in that particular order.
e6de499b 2800# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2801host_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 2802
a0da8069
NN
2803# these libraries are built for the target environment, and are built after
2804# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2805# Note that libiberty is not a target library.
b1299c4e 2806target_libraries="target-libgcc \
2bf680c4 2807 target-libbacktrace \
a0da8069
NN
2808 target-libgloss \
2809 target-newlib \
cff87f51 2810 target-libgomp \
1b6c0831 2811 target-liboffloadmic \
bf41f30d 2812 target-libhsail-rt \
7ec59b9e 2813 target-libatomic \
d32e2926 2814 target-libitm \
b9459e83 2815 target-libstdc++-v3 \
5286fdef 2816 target-libsanitizer \
95e43135 2817 target-libvtv \
bb780410 2818 target-libssp \
e552509b 2819 target-libquadmath \
4b1cb4fe 2820 target-libgfortran \
05a13254 2821 target-libffi \
a2592b1b 2822 target-libobjc \
e552509b 2823 target-libada \
e3f56a99 2824 target-libgo"
a0da8069 2825
9c14acb8
NN
2826# these tools are built using the target libraries, and are intended to
2827# run only in the target environment
a0da8069 2828#
9c14acb8 2829# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2830# list belongs in this list.
a0da8069 2831#
a90ef4bf 2832target_tools="target-rda"
252b5132 2833
a0da8069 2834################################################################################
252b5132 2835
a0da8069
NN
2836## All tools belong in one of the four categories, and are assigned above
2837## We assign ${configdirs} this way to remove all embedded newlines. This
2838## is important because configure will choke if they ever get through.
2839## ${configdirs} is directories we build using the host tools.
2840## ${target_configdirs} is directories we build using the target tools.
a0da8069 2841configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2842target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2843build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2844
9cc8ae67
PB
2845
2846
a0da8069 2847################################################################################
252b5132 2848
a0da8069 2849srcname="gnu development package"
252b5132 2850
a0da8069
NN
2851# This gets set non-empty for some net releases of packages.
2852appdirs=""
252b5132 2853
a0da8069
NN
2854# Define is_cross_compiler to save on calls to 'test'.
2855is_cross_compiler=
2856if test x"${host}" = x"${target}" ; then
2857 is_cross_compiler=no
252b5132 2858else
a0da8069 2859 is_cross_compiler=yes
c6b750e1 2860fi
252b5132 2861
9175bfc0 2862# Find the build and target subdir names.
dd12c3a8 2863
66a79c16
DJ
2864# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2865# have matching libraries, they should use host libraries: Makefile.tpl
2866# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2867# However, they still use the build modules, because the corresponding
2868# host modules (e.g. bison) are only built for the host when bootstrap
2869# finishes. So:
2870# - build_subdir is where we find build modules, and never changes.
2871# - build_libsubdir is where we find build libraries, and can be overridden.
2872
2873# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2874build_subdir="build-${build_noncanonical}"
c6b750e1 2875
81ecdfbb
RW
2876# Check whether --with-build-libsubdir was given.
2877if test "${with_build_libsubdir+set}" = set; then :
2878 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2879else
2880 build_libsubdir="$build_subdir"
81ecdfbb
RW
2881fi
2882
b00612cc
PB
2883# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2884if ( test $srcdir = . && test -d gcc ) \
2885 || test -d $srcdir/../host-${host_noncanonical}; then
2886 host_subdir="host-${host_noncanonical}"
2887else
2888 host_subdir=.
2889fi
dd12c3a8
NN
2890# No prefix.
2891target_subdir=${target_noncanonical}
c6b750e1 2892
2fd0b40b
RW
2893# Be sure to cover against remnants of an in-tree build.
2894if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2895 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2896Use a pristine source tree when building in a separate tree" "$LINENO" 5
2897fi
252b5132 2898
a0da8069
NN
2899# Skipdirs are removed silently.
2900skipdirs=
2901# Noconfigdirs are removed loudly.
2902noconfigdirs=""
252b5132 2903
a0da8069
NN
2904use_gnu_ld=
2905# Make sure we don't let GNU ld be added if we didn't want it.
2906if test x$with_gnu_ld = xno ; then
2907 use_gnu_ld=no
93f9b408 2908 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2909fi
2910
a0da8069
NN
2911use_gnu_as=
2912# Make sure we don't let GNU as be added if we didn't want it.
2913if test x$with_gnu_as = xno ; then
2914 use_gnu_as=no
2915 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2916fi
2917
700d40ca 2918use_included_zlib=
cf39cfc5
L
2919
2920# Check whether --with-system-zlib was given.
2921if test "${with_system_zlib+set}" = set; then :
2922 withval=$with_system_zlib;
2923fi
2924
700d40ca
ILT
2925# Make sure we don't let ZLIB be added if we didn't want it.
2926if test x$with_system_zlib = xyes ; then
2927 use_included_zlib=no
2928 noconfigdirs="$noconfigdirs zlib"
2929fi
2930
69961a84
ДП
2931# Don't compile the bundled readline/libreadline.a if --with-system-readline
2932# is provided.
2933if test x$with_system_readline = xyes ; then
2934 noconfigdirs="$noconfigdirs readline"
2935fi
2936
c6b750e1 2937# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2938# it's not even worth trying to configure, much less build, that tool.
252b5132 2939
a0da8069
NN
2940case ${with_x} in
2941 yes | "") ;; # the default value for this tree is that X11 is available
2942 no)
675c6968 2943 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2944 # We won't be able to build gdbtk without X.
c6b750e1 2945 enable_gdbtk=no
a0da8069
NN
2946 ;;
2947 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2948esac
252b5132 2949
0377a422 2950# Some are only suitable for cross toolchains.
a0da8069
NN
2951# Remove these if host=target.
2952cross_only="target-libgloss target-newlib target-opcodes"
2953
2954case $is_cross_compiler in
2955 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2956esac
252b5132 2957
a0da8069
NN
2958# If both --with-headers and --with-libs are specified, default to
2959# --without-newlib.
32be62b5
RS
2960if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2961 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2962 if test x"${with_newlib}" = x ; then
2963 with_newlib=no
2964 fi
252b5132
RH
2965fi
2966
a0da8069
NN
2967# Recognize --with-newlib/--without-newlib.
2968case ${with_newlib} in
2969 no) skipdirs="${skipdirs} target-newlib" ;;
2970 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2971esac
252b5132 2972
1b6c0831
L
2973# Check whether --enable-as-accelerator-for was given.
2974if test "${enable_as_accelerator_for+set}" = set; then :
2975 enableval=$enable_as_accelerator_for;
2976fi
2977
2978
2979# Check whether --enable-offload-targets was given.
2980if test "${enable_offload_targets+set}" = set; then :
2981 enableval=$enable_offload_targets;
2982 if test x"$enable_offload_targets" = x; then
d0ac1c44 2983 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2984 fi
2985
2986else
2987 enable_offload_targets=
2988fi
2989
2990
c7791212
NC
2991# Handle --enable-gold, --enable-ld.
2992# --disable-gold [--enable-ld]
2993# Build only ld. Default option.
d3b50760
L
2994# --enable-gold [--enable-ld]
2995# Build both gold and ld. Install gold as "ld.gold", install ld
2996# as "ld.bfd" and "ld".
2997# --enable-gold=default [--enable-ld]
c7791212
NC
2998# Build both gold and ld. Install gold as "ld.gold" and "ld",
2999# install ld as "ld.bfd".
3000# --enable-gold[=default] --disable-ld
3001# Build only gold, which is then installed as both "ld.gold" and "ld".
3002# --enable-gold --enable-ld=default
d3b50760
L
3003# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3004# and ld.bfd).
c7791212
NC
3005# In other words, ld is default
3006# --enable-gold=default --enable-ld=default
3007# Error.
3008
3009default_ld=
81ecdfbb
RW
3010# Check whether --enable-gold was given.
3011if test "${enable_gold+set}" = set; then :
3012 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3013else
3014 ENABLE_GOLD=no
81ecdfbb
RW
3015fi
3016
c7791212
NC
3017case "${ENABLE_GOLD}" in
3018 yes|default)
e6de499b
NC
3019 # Check for ELF target.
3020 is_elf=no
3021 case "${target}" in
3022 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3023 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3024 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 3025 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3026 case "${target}" in
3027 *-*-linux*aout* | *-*-linux*oldld*)
3028 ;;
3029 *)
3030 is_elf=yes
3031 ;;
3032 esac
3033 esac
3034
3035 if test "$is_elf" = "yes"; then
3036 # Check for target supported by gold.
93f9b408 3037 case "${target}" in
6d26190c 3038 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3039 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3040 configdirs="$configdirs gold"
3041 if test x${ENABLE_GOLD} = xdefault; then
3042 default_ld=gold
3043 fi
e6de499b 3044 ENABLE_GOLD=yes
93f9b408
ILT
3045 ;;
3046 esac
e6de499b
NC
3047 fi
3048 ;;
3049 no)
3050 ;;
3051 *)
d0ac1c44 3052 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3053 ;;
c7791212
NC
3054esac
3055
3056# Check whether --enable-ld was given.
3057if test "${enable_ld+set}" = set; then :
3058 enableval=$enable_ld; ENABLE_LD=$enableval
3059else
3060 ENABLE_LD=yes
3061fi
3062
3063
3064case "${ENABLE_LD}" in
3065 default)
d3b50760 3066 if test x${default_ld} != x; then
d0ac1c44 3067 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3068 fi
3069 ;;
3070 yes)
3071 ;;
3072 no)
3073 if test x${ENABLE_GOLD} != xyes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3075$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3076 fi
3077 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3078 ;;
3079 *)
d0ac1c44 3080 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3081 ;;
3082esac
93f9b408 3083
edeefb67
L
3084# PR gas/19109
3085# Decide the default method for compressing debug sections.
3086# Provide a configure time option to override our default.
3087# Check whether --enable-compressed_debug_sections was given.
3088if test "${enable_compressed_debug_sections+set}" = set; then :
3089 enableval=$enable_compressed_debug_sections;
3090 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3091 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3092 fi
3093
3094else
3095 enable_compressed_debug_sections=
3096fi
3097
3098
a0da8069 3099# Configure extra directories which are host specific
252b5132 3100
a0da8069
NN
3101case "${host}" in
3102 *-cygwin*)
3103 configdirs="$configdirs libtermcap" ;;
3104esac
252b5132 3105
59f7ec45
HPN
3106# A target can indicate whether a language isn't supported for some reason.
3107# Only spaces may be used in this macro; not newlines or tabs.
3108unsupported_languages=
3109
c6b750e1 3110# Remove more programs from consideration, based on the host or
a0da8069
NN
3111# target this usually means that a port of the program doesn't
3112# exist yet.
252b5132 3113
a0da8069 3114case "${host}" in
3516a403 3115 i[3456789]86-*-msdosdjgpp*)
6a608608 3116 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3117 ;;
a0da8069 3118esac
252b5132 3119
4b1cb4fe 3120
89a1e9c3
PB
3121# Check whether --enable-libquadmath was given.
3122if test "${enable_libquadmath+set}" = set; then :
3123 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3124else
3125 ENABLE_LIBQUADMATH=yes
3126fi
3127
3128if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3129 noconfigdirs="$noconfigdirs target-libquadmath"
3130fi
3131
3132
3133# Check whether --enable-libquadmath-support was given.
3134if test "${enable_libquadmath_support+set}" = set; then :
3135 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3136else
3137 ENABLE_LIBQUADMATH_SUPPORT=yes
3138fi
3139
3140enable_libquadmath_support=
3141if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3142 enable_libquadmath_support=no
3143fi
3144
3145
81ecdfbb
RW
3146# Check whether --enable-libada was given.
3147if test "${enable_libada+set}" = set; then :
3148 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3149else
3150 ENABLE_LIBADA=yes
81ecdfbb
RW
3151fi
3152
a2592b1b 3153if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3154 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3155fi
3156
81ecdfbb
RW
3157# Check whether --enable-libssp was given.
3158if test "${enable_libssp+set}" = set; then :
3159 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3160else
3161 ENABLE_LIBSSP=yes
81ecdfbb
RW
3162fi
3163
5f128533 3164
f66a9a70
L
3165# Check whether --enable-libstdcxx was given.
3166if test "${enable_libstdcxx+set}" = set; then :
3167 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3168else
3169 ENABLE_LIBSTDCXX=default
3170fi
3171
3172if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174fi
3175
3176# If this is accelerator compiler and its target is intelmic we enable
3177# target liboffloadmic by default. If this is compiler with offloading
3178# for intelmic we enable host liboffloadmic by default. Otherwise
3179# liboffloadmic is disabled by default.
3180# Check whether --enable-liboffloadmic was given.
3181if test "${enable_liboffloadmic+set}" = set; then :
3182 enableval=$enable_liboffloadmic; case "$enableval" in
3183 no | host | target)
3184 enable_liboffloadmic=$enableval ;;
3185 *)
d0ac1c44 3186 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3187esac
3188else
3189 if test x"$enable_as_accelerator_for" != x; then
3190 case "${target}" in
3191 *-intelmic-* | *-intelmicemul-*)
3192 enable_liboffloadmic=target
3193 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3194 ;;
3195 *)
3196 enable_liboffloadmic=no
3197 ;;
3198 esac
3199else
3200 case "${enable_offload_targets}" in
3201 *-intelmic-* | *-intelmicemul-*)
3202 enable_liboffloadmic=host
3203 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3204 ;;
3205 *)
3206 enable_liboffloadmic=no
3207 ;;
3208 esac
3209fi
f66a9a70
L
3210fi
3211
1b6c0831
L
3212
3213
68996839 3214# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3215if test x$enable_libgomp = x ; then
b3ded179 3216 case "${target}" in
29383458 3217 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3218 ;;
5b806d27 3219 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3220 ;;
2479f722 3221 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3222 ;;
3223 *-*-darwin* | *-*-aix*)
3224 ;;
68996839
NC
3225 nvptx*-*-*)
3226 ;;
b3ded179
PB
3227 *)
3228 noconfigdirs="$noconfigdirs target-libgomp"
3229 ;;
3230 esac
a6df5a19 3231fi
b3ded179 3232
7ec59b9e
L
3233# Disable libatomic on unsupported systems.
3234if test -d ${srcdir}/libatomic; then
3235 if test x$enable_libatomic = x; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3237$as_echo_n "checking for libatomic support... " >&6; }
3238 if (srcdir=${srcdir}/libatomic; \
3239 . ${srcdir}/configure.tgt; \
3240 test -n "$UNSUPPORTED")
3241 then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244 noconfigdirs="$noconfigdirs target-libatomic"
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
3248 fi
3249 fi
3250fi
3251
1b6c0831
L
3252# Disable liboffloadmic on unsupported systems.
3253if test -d ${srcdir}/liboffloadmic; then
3254 if test x$enable_liboffloadmic != xno; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3256$as_echo_n "checking for liboffloadmic support... " >&6; }
3257 if (srcdir=${srcdir}/liboffloadmic; \
3258 . ${srcdir}/configure.tgt; \
3259 test -n "$UNSUPPORTED")
3260 then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263 noconfigdirs="$noconfigdirs target-liboffloadmic"
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266$as_echo "yes" >&6; }
3267 fi
3268 fi
3269fi
3270
d32e2926
RH
3271# Disable libitm on unsupported systems.
3272if test -d ${srcdir}/libitm; then
3273 if test x$enable_libitm = x; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3275$as_echo_n "checking for libitm support... " >&6; }
3276 if (srcdir=${srcdir}/libitm; \
3277 . ${srcdir}/configure.tgt; \
3278 test -n "$UNSUPPORTED")
3279 then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282 noconfigdirs="$noconfigdirs target-libitm"
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285$as_echo "yes" >&6; }
3286 fi
3287 fi
3288fi
3289
5286fdef
L
3290# Disable libsanitizer on unsupported systems.
3291if test -d ${srcdir}/libsanitizer; then
3292 if test x$enable_libsanitizer = x; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3294$as_echo_n "checking for libsanitizer support... " >&6; }
3295 if (srcdir=${srcdir}/libsanitizer; \
3296 . ${srcdir}/configure.tgt; \
3297 test -n "$UNSUPPORTED")
3298 then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301 noconfigdirs="$noconfigdirs target-libsanitizer"
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305 fi
3306 fi
3307fi
3308
95e43135
JBG
3309# Disable libvtv on unsupported systems.
3310if test -d ${srcdir}/libvtv; then
3311 if test x$enable_libvtv = x; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3313$as_echo_n "checking for libvtv support... " >&6; }
3314 if (srcdir=${srcdir}/libvtv; \
3315 . ${srcdir}/configure.tgt; \
3316 test "$VTV_SUPPORTED" != "yes")
3317 then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320 noconfigdirs="$noconfigdirs target-libvtv"
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323$as_echo "yes" >&6; }
3324 fi
3325 fi
3326fi
3327
1b6c0831 3328
bf41f30d
NC
3329# Disable libhsail-rt on unsupported systems.
3330if test -d ${srcdir}/libhsail-rt; then
3331 if test x$enable_libhsail_rt = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3333$as_echo_n "checking for libhsail-rt support... " >&6; }
3334 if (srcdir=${srcdir}/libhsail-rt; \
3335 . ${srcdir}/configure.tgt; \
3336 test -n "$UNSUPPORTED")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340 unsupported_languages="$unsupported_languages brig"
3341 # This implicitly disables also target-libhsail-rt as it won't
3342 # get added to the build without BRIG FE.
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345$as_echo "yes" >&6; }
3346 fi
3347 fi
3348fi
1b6c0831
L
3349
3350
1488e230
DE
3351# Disable libquadmath for some systems.
3352case "${target}" in
5286fdef
L
3353 avr-*-*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3355 ;;
1488e230
DE
3356 # libquadmath is unused on AIX and libquadmath build process use of
3357 # LD_LIBRARY_PATH can break AIX bootstrap.
3358 powerpc-*-aix* | rs6000-*-aix*)
3359 noconfigdirs="$noconfigdirs target-libquadmath"
3360 ;;
3361esac
3362
065a5627
JM
3363# Disable libssp for some systems.
3364case "${target}" in
3365 avr-*-*)
c5f5c3c2 3366 # No hosted I/O support.
065a5627
JM
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
99c513f6 3372 rl78-*-*)
202e2356
NC
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
99c513f6
DD
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
1b6c0831
L
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
065a5627
JM
3382esac
3383
065a5627 3384# Disable libstdc++-v3 for some systems.
f66a9a70
L
3385# Allow user to override this if they pass --enable-libstdc++-v3
3386if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
3392 arm*-wince-pe*)
3393 # the C++ libraries don't build on top of CE's C libraries
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
3396 avr-*-*)
3397 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398 ;;
969b1713
L
3399 ft32-*-*)
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
f66a9a70
L
3402 esac
3403fi
065a5627
JM
3404
3405# Disable Fortran for some systems.
3406case "${target}" in
3407 mmix-*-*)
3408 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3409 unsupported_languages="$unsupported_languages fortran"
3410 ;;
3411esac
3412
05a13254 3413# Disable libffi for some systems.
0827f9a6 3414case "${target}" in
9863d716
JM
3415 powerpc-*-darwin*)
3416 ;;
3417 i[3456789]86-*-darwin*)
3418 ;;
3419 x86_64-*-darwin[912]*)
3420 ;;
3421 *-*-darwin*)
05a13254 3422 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3423 ;;
9863d716 3424 *-*-netware*)
05a13254
NC
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-phoenix*)
3428 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3429 ;;
3430 *-*-rtems*)
05a13254 3431 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3432 ;;
3433 *-*-tpf*)
05a13254 3434 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3435 ;;
3436 *-*-uclinux*)
05a13254 3437 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3438 ;;
3439 *-*-vxworks*)
05a13254
NC
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 aarch64*-*-freebsd*)
3443 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3444 ;;
9863d716 3445 alpha*-*-*vms*)
05a13254 3446 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3447 ;;
1b6c0831 3448 arm*-*-freebsd*)
05a13254 3449 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3450 ;;
0827f9a6 3451 arm-wince-pe)
05a13254 3452 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3453 ;;
9863d716 3454 arm*-*-symbianelf*)
05a13254 3455 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3456 ;;
9863d716 3457 cris-*-* | crisv32-*-*)
9863d716
JM
3458 case "${target}" in
3459 *-*-linux*)
3460 ;;
3461 *) # See PR46792 regarding target-libffi.
05a13254 3462 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3463 esac
3464 ;;
82ae827f 3465 hppa*64*-*-hpux*)
05a13254 3466 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3467 ;;
3468 hppa*-hp-hpux11*)
3469 ;;
82ae827f 3470 hppa*-*-hpux*)
05a13254 3471 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3472 ;;
9863d716 3473 ia64*-*-*vms*)
05a13254 3474 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3475 ;;
9863d716 3476 i[3456789]86-w64-mingw*)
05a13254 3477 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3478 ;;
3479 i[3456789]86-*-mingw*)
05a13254 3480 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3481 ;;
3482 x86_64-*-mingw*)
05a13254 3483 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3484 ;;
9863d716 3485 mmix-*-*)
05a13254 3486 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3487 ;;
3488 powerpc-*-aix*)
9863d716 3489 ;;
9863d716 3490 rs6000-*-aix*)
9863d716 3491 ;;
3f8107ab 3492 ft32-*-*)
05a13254 3493 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3494 ;;
9863d716 3495 *-*-lynxos*)
05a13254 3496 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3497 ;;
9863d716
JM
3498esac
3499
1b6c0831
L
3500# Disable the go frontend on systems where it is known to not work. Please keep
3501# this in sync with contrib/config-list.mk.
3502case "${target}" in
bf41f30d 3503*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3504 unsupported_languages="$unsupported_languages go"
3505 ;;
3506esac
3507
a413f71a
ILT
3508# Disable libgo for some systems where it is known to not work.
3509# For testing, you can easily override this with --enable-libgo.
3510if test x$enable_libgo = x; then
3511 case "${target}" in
3512 *-*-darwin*)
3513 # PR 46986
3514 noconfigdirs="$noconfigdirs target-libgo"
3515 ;;
3516 *-*-cygwin* | *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libgo"
3518 ;;
a413f71a
ILT
3519 esac
3520fi
3521
691bb5a1
DD
3522# Default libgloss CPU subdirectory.
3523libgloss_dir="$target_cpu"
4b1cb4fe 3524
ff46fb8f
JM
3525case "${target}" in
3526 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3527 libgloss_dir=wince
3528 ;;
f1dd87fc
YZ
3529 aarch64*-*-* )
3530 libgloss_dir=aarch64
3531 ;;
ff46fb8f
JM
3532 arm*-*-*)
3533 libgloss_dir=arm
3534 ;;
3535 cris-*-* | crisv32-*-*)
3536 libgloss_dir=cris
3537 ;;
3538 hppa*-*-*)
3539 libgloss_dir=pa
3540 ;;
3541 i[3456789]86-*-*)
3542 libgloss_dir=i386
3543 ;;
3544 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3545 libgloss_dir=m68hc11
3546 ;;
3547 m68*-*-* | fido-*-*)
3548 libgloss_dir=m68k
3549 ;;
3550 mips*-*-*)
3551 libgloss_dir=mips
3552 ;;
3553 powerpc*-*-*)
3554 libgloss_dir=rs6000
3555 ;;
3556 sparc*-*-*)
3557 libgloss_dir=sparc
3558 ;;
3559esac
3560
c7e4b184 3561# Disable newlib and libgloss for various target OSes.
a0da8069 3562case "${target}" in
c7e4b184
JM
3563 alpha*-dec-osf*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 i[3456789]86-*-linux*)
3567 # This section makes it possible to build newlib natively on linux.
3568 # If we are using a cross compiler then don't configure newlib.
3569 if test x${is_cross_compiler} != xno ; then
3570 noconfigdirs="$noconfigdirs target-newlib"
3571 fi
3572 noconfigdirs="$noconfigdirs target-libgloss"
3573 # If we are not using a cross compiler, do configure newlib.
3574 # Note however, that newlib will only be configured in this situation
3575 # if the --with-newlib option has been given, because otherwise
3576 # 'target-newlib' will appear in skipdirs.
3577 ;;
3578 i[3456789]86-*-rdos*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 sparc-*-sunos4*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-aix*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-beos*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
a0da8069 3593 *-*-chorusos)
b2f14e4a 3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3595 ;;
c7e4b184
JM
3596 *-*-dragonfly*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-freebsd*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-mingw*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-netbsd*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-netware*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-tpf*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-uclinux*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-vxworks*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626esac
3627
3628case "${target}" in
3629 *-*-chorusos)
3630 ;;
f075eb5e
TG
3631 aarch64-*-darwin*)
3632 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
3635 arm-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3638 ;;
24741ab2 3639 powerpc-*-darwin*)
9d39db92 3640 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3641 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3642 ;;
85bd1942
TG
3643 i[3456789]86-*-darwin*)
3644 noconfigdirs="$noconfigdirs ld gprof"
3645 noconfigdirs="$noconfigdirs sim target-rda"
3646 ;;
e8a5fa9c 3647 x86_64-*-darwin[912]*)
652dec25
TG
3648 noconfigdirs="$noconfigdirs ld gas gprof"
3649 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3650 ;;
04d1ab34 3651 *-*-darwin*)
d320aacb 3652 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3653 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3654 ;;
5b806d27 3655 *-*-dragonfly*)
5b806d27 3656 ;;
de0b4a87 3657 *-*-freebsd*)
4b1cb4fe
DD
3658 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3659 && test -f /usr/local/include/gmp.h; then
3660 with_gmp=/usr/local
3661 fi
4b1cb4fe 3662 ;;
f8a495c8
NC
3663 *-*-kaos*)
3664 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3665 noconfigdirs="$noconfigdirs target-libgloss"
3666 ;;
a0da8069 3667 *-*-netbsd*)
a0da8069 3668 ;;
2a3124ca 3669 *-*-netware*)
a0da8069 3670 ;;
05a13254
NC
3671 *-*-phoenix*)
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
a0da8069 3674 *-*-rtems*)
9863d716 3675 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3676 ;;
1587117a
EC
3677 # The tpf target doesn't support gdb yet.
3678 *-*-tpf*)
c7e4b184 3679 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3680 ;;
c1968181 3681 *-*-uclinux*)
c7e4b184 3682 noconfigdirs="$noconfigdirs target-rda"
c1968181 3683 ;;
a0da8069 3684 *-*-vxworks*)
a0da8069
NN
3685 ;;
3686 alpha*-dec-osf*)
3687 # ld works, but does not support shared libraries.
a0da8069 3688 # gas doesn't generate exception information.
c7e4b184 3689 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3690 ;;
3691 alpha*-*-*vms*)
9863d716 3692 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3693 ;;
a0da8069
NN
3694 alpha*-*-*)
3695 # newlib is not 64 bit ready
9863d716 3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3697 ;;
a0da8069 3698 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3699 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3700 ;;
05a13254
NC
3701 arc*-*-*)
3702 noconfigdirs="$noconfigdirs sim"
a0da8069 3703 ;;
a0da8069 3704 arm-*-pe*)
9863d716 3705 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3706 ;;
a0da8069 3707 arm-*-riscix*)
b2f14e4a 3708 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3709 ;;
8e71395b
L
3710 avr-*-*)
3711 if test x${with_avrlibc} != xno; then
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 fi
3714 ;;
a0da8069 3715 c4x-*-* | tic4x-*-*)
b2f14e4a 3716 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3717 ;;
b2f14e4a
JM
3718 tic54x-*-*)
3719 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3720 ;;
a0da8069 3721 d10v-*-*)
b2f14e4a 3722 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3723 ;;
3724 d30v-*-*)
b2f14e4a 3725 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3726 ;;
3727 fr30-*-elf*)
9863d716 3728 noconfigdirs="$noconfigdirs gdb"
a0da8069 3729 ;;
3f8107ab
AM
3730 ft32-*-*)
3731 noconfigdirs="$noconfigdirs target-rda gprof"
3732 ;;
20135e4c 3733 moxie-*-*)
10b8fe5e 3734 noconfigdirs="$noconfigdirs"
20135e4c 3735 ;;
a0da8069 3736 h8300*-*-*)
9863d716 3737 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3738 ;;
3739 h8500-*-*)
b2f14e4a 3740 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3741 ;;
caeba88f 3742 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3743 ;;
5569a85f
JDA
3744 hppa*64*-*-hpux*)
3745 noconfigdirs="$noconfigdirs gdb"
3746 ;;
3747 hppa*-*-hpux11*)
3748 noconfigdirs="$noconfigdirs gdb ld"
3749 ;;
93cc359e 3750 hppa*64*-*-linux*)
a0da8069 3751 ;;
f0ff0f90 3752 hppa*-*-linux*)
5dcac624 3753 ;;
a0da8069 3754 hppa*-*-*elf* | \
a0da8069
NN
3755 hppa*-*-lites* | \
3756 hppa*-*-openbsd* | \
3757 hppa*64*-*-*)
4f0ef2d8 3758 ;;
691bb5a1 3759 hppa*-*-pro*)
691bb5a1 3760 ;;
a0da8069 3761 hppa*-*-*)
9863d716 3762 noconfigdirs="$noconfigdirs ld"
a0da8069 3763 ;;
b07c2aad 3764 i960-*-*)
b2f14e4a 3765 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3766 ;;
a0da8069
NN
3767 ia64*-*-elf*)
3768 # No gdb support yet.
0377a422 3769 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3770 ;;
3771 ia64*-**-hpux*)
92c9a463 3772 # No ld support yet.
5569a85f 3773 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3774 ;;
19e99079 3775 ia64*-*-*vms*)
7ec59b9e
L
3776 # No ld support yet.
3777 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3778 ;;
1f53ca9a 3779 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3780 ;;
3781 i[3456789]86-*-mingw*)
45055374 3782 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3783 ;;
a0da8069
NN
3784 *-*-cygwin*)
3785 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3786 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3787 # always build newlib if winsup directory is present.
45055374 3788 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3789 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3790 elif test -d "$srcdir/newlib"; then
45055374 3791 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3792 fi
c6b750e1 3793 ;;
ec11bdc6 3794 i[3456789]86-*-pe)
782cb41f 3795 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3796 ;;
ec11bdc6 3797 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3798 # The linker does not yet know about weak symbols in COFF,
3799 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3800 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3801 ;;
ec11bdc6 3802 i[3456789]86-*-sco*)
b2f14e4a 3803 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3804 ;;
cff32a7c 3805 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 ;;
ec11bdc6 3808 i[3456789]86-*-sysv4*)
b2f14e4a 3809 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3810 ;;
ec11bdc6 3811 i[3456789]86-*-beos*)
c7e4b184 3812 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3813 ;;
b59bea8a 3814 i[3456789]86-*-rdos*)
c7e4b184 3815 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3816 ;;
a0da8069 3817 mmix-*-*)
9863d716 3818 noconfigdirs="$noconfigdirs gdb"
a0da8069 3819 ;;
4970f871 3820 mt-*-*)
cdb9b172
AH
3821 noconfigdirs="$noconfigdirs sim"
3822 ;;
1063beb5
FT
3823 nfp-*-*)
3824 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3825 noconfigdirs="$noconfigdirs $target_libraries"
3826 ;;
a0da8069
NN
3827 powerpc-*-aix*)
3828 # copied from rs6000-*-* entry
c7e4b184 3829 noconfigdirs="$noconfigdirs gprof"
a0da8069 3830 ;;
93cc359e 3831 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3832 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3833 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3834 # always build newlib.
3835 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3836 ;;
3837 # This is temporary until we can link against shared libraries
3838 powerpcle-*-solaris*)
b2f14e4a 3839 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3840 ;;
3841 powerpc-*-beos*)
c7e4b184 3842 noconfigdirs="$noconfigdirs gdb"
a0da8069 3843 ;;
a0da8069 3844 rs6000-*-lynxos*)
c7e4b184 3845 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3846 ;;
3847 rs6000-*-aix*)
c7e4b184 3848 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3849 ;;
3850 rs6000-*-*)
9863d716 3851 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3852 ;;
3853 m68k-apollo-*)
b2f14e4a 3854 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3855 ;;
25a07265 3856 microblaze*)
9863d716 3857 noconfigdirs="$noconfigdirs gprof"
25a07265 3858 ;;
a9d58c06 3859 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3860 if test x$with_newlib = xyes; then
3861 noconfigdirs="$noconfigdirs gprof"
3862 fi
5bd8be13 3863 ;;
a0da8069 3864 mips*-*-irix5*)
b2f14e4a 3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3866 ;;
3867 mips*-*-irix6*)
9863d716 3868 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3869 ;;
a0da8069 3870 mips*-*-bsd*)
e8044f35 3871 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3872 ;;
a0da8069 3873 mips*-*-linux*)
a0da8069 3874 ;;
e8044f35
RS
3875 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3876 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3877 noconfigdirs="$noconfigdirs ld gas gprof"
3878 ;;
a0da8069 3879 mips*-*-*)
9863d716 3880 noconfigdirs="$noconfigdirs gprof"
a0da8069 3881 ;;
1b6c0831 3882 nvptx*-*-*)
1b6c0831
L
3883 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3884 ;;
05a13254 3885 sh-*-*)
e8a5fa9c
RW
3886 case "${target}" in
3887 sh*-*-elf)
9863d716 3888 ;;
e8a5fa9c 3889 *)
9863d716 3890 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3891 esac
a0da8069 3892 ;;
a0da8069 3893 sparc-*-sunos4*)
c7e4b184 3894 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3895 use_gnu_ld=no
3896 fi
3897 ;;
619a3713 3898 tic6x-*-*)
40ae9136 3899 noconfigdirs="$noconfigdirs sim"
619a3713 3900 ;;
05a13254 3901 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3902 noconfigdirs="$noconfigdirs sim"
3903 ;;
a0da8069 3904 v810-*-*)
b2f14e4a 3905 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3906 ;;
3907 vax-*-*)
9863d716 3908 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3909 ;;
b29d2641
MR
3910 wasm32-*-*)
3911 noconfigdirs="$noconfigdirs ld"
3912 ;;
a0da8069 3913esac
252b5132 3914
a0da8069
NN
3915# If we aren't building newlib, then don't build libgloss, since libgloss
3916# depends upon some newlib header files.
3917case "${noconfigdirs}" in
3918 *target-libgloss*) ;;
3919 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3920esac
3921
a0da8069 3922# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3923host_makefile_frag=/dev/null
3924if test -d ${srcdir}/config ; then
3925case "${host}" in
ec11bdc6 3926 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3927 host_makefile_frag="config/mh-djgpp"
3928 ;;
3929 *-cygwin*)
e33b51a6 3930
81ecdfbb
RW
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3932$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3933echo a >cygwin-cat-check
1f53ca9a 3934if test `cat cygwin-cat-check` = a ; then
8ade07e9 3935 rm cygwin-cat-check
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937$as_echo "yes" >&6; }
e33b51a6 3938else
8ade07e9 3939 rm cygwin-cat-check
81ecdfbb
RW
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
d0ac1c44 3942 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3943 Please either mount the build directory in binary mode or run the following
3944 commands before running any configure script:
3945set -o igncr
3946export SHELLOPTS
81ecdfbb 3947 " "$LINENO" 5
e33b51a6 3948fi
e33b51a6 3949
a0da8069
NN
3950 host_makefile_frag="config/mh-cygwin"
3951 ;;
8a1599ab 3952 *-mingw*)
84e7906e 3953 host_makefile_frag="config/mh-mingw"
2d1e8239 3954 ;;
ce6c656d
L
3955 alpha*-linux*)
3956 host_makefile_frag="config/mh-alpha-linux"
3957 ;;
da888c87 3958 hppa*-hp-hpux10*)
da888c87 3959 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3960 ;;
3516a403 3961 hppa*-hp-hpux*)
da888c87
PB
3962 host_makefile_frag="config/mh-pa"
3963 ;;
3964 hppa*-*)
3965 host_makefile_frag="config/mh-pa"
3966 ;;
e552509b
ILT
3967 *-*-darwin*)
3968 host_makefile_frag="config/mh-darwin"
0df3d27f 3969 ;;
f6d183c0
PB
3970 powerpc-*-aix*)
3971 host_makefile_frag="config/mh-ppc-aix"
3972 ;;
3973 rs6000-*-aix*)
3974 host_makefile_frag="config/mh-ppc-aix"
3975 ;;
a0da8069
NN
3976esac
3977fi
3978
9e07f89d 3979if test "${build}" != "${host}" ; then
1576798e
PB
3980 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3981 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3982 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3983 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3984 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3985 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3986 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3987 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3988 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3989 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3990 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3991 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3992else
3993 AR_FOR_BUILD="\$(AR)"
3994 AS_FOR_BUILD="\$(AS)"
512b7dfb 3995 CC_FOR_BUILD="\$(CC)"
1576798e 3996 CXX_FOR_BUILD="\$(CXX)"
1576798e 3997 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3998 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3999 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4000 LD_FOR_BUILD="\$(LD)"
4001 NM_FOR_BUILD="\$(NM)"
4002 RANLIB_FOR_BUILD="\$(RANLIB)"
4003 WINDRES_FOR_BUILD="\$(WINDRES)"
4004 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4005fi
4006
4007ac_ext=c
c6b750e1
DJ
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4014set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4017if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4018 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4019else
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
81ecdfbb 4028 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4032 break 2
4033 fi
4034done
81ecdfbb
RW
4035 done
4036IFS=$as_save_IFS
c6b750e1
DJ
4037
4038fi
4039fi
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
81ecdfbb
RW
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043$as_echo "$CC" >&6; }
c6b750e1 4044else
81ecdfbb
RW
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
c6b750e1
DJ
4047fi
4048
81ecdfbb 4049
c6b750e1
DJ
4050fi
4051if test -z "$ac_cv_prog_CC"; then
4052 ac_ct_CC=$CC
6a9cf61e 4053 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4054set dummy gcc; ac_word=$2
81ecdfbb
RW
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4057if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4058 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4059else
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
81ecdfbb 4068 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4070 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4072 break 2
4073 fi
4074done
81ecdfbb
RW
4075 done
4076IFS=$as_save_IFS
c6b750e1
DJ
4077
4078fi
4079fi
4080ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4084else
81ecdfbb
RW
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
c6b750e1
DJ
4087fi
4088
81ecdfbb
RW
4089 if test "x$ac_ct_CC" = x; then
4090 CC=""
4091 else
4092 case $cross_compiling:$ac_tool_warned in
4093yes:)
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096ac_tool_warned=yes ;;
4097esac
4098 CC=$ac_ct_CC
4099 fi
c6b750e1
DJ
4100else
4101 CC="$ac_cv_prog_CC"
4102fi
4103
4104if test -z "$CC"; then
81ecdfbb
RW
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4107set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4110if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4111 $as_echo_n "(cached) " >&6
9e07f89d
NN
4112else
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115else
c6b750e1
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
81ecdfbb 4121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4123 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4125 break 2
4126 fi
4127done
81ecdfbb
RW
4128 done
4129IFS=$as_save_IFS
c6b750e1 4130
9e07f89d
NN
4131fi
4132fi
c6b750e1 4133CC=$ac_cv_prog_CC
9e07f89d 4134if test -n "$CC"; then
81ecdfbb
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136$as_echo "$CC" >&6; }
c6b750e1 4137else
81ecdfbb
RW
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
c6b750e1
DJ
4140fi
4141
c6b750e1 4142
81ecdfbb 4143 fi
c6b750e1 4144fi
9e07f89d
NN
4145if test -z "$CC"; then
4146 # Extract the first word of "cc", so it can be a program name with args.
4147set dummy cc; ac_word=$2
81ecdfbb
RW
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4150if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4151 $as_echo_n "(cached) " >&6
9e07f89d
NN
4152else
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC="$CC" # Let the user override the test.
4155else
9e07f89d 4156 ac_prog_rejected=no
c6b750e1
DJ
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
81ecdfbb 4162 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4165 ac_prog_rejected=yes
4166 continue
4167 fi
4168 ac_cv_prog_CC="cc"
81ecdfbb 4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4170 break 2
4171 fi
4172done
81ecdfbb
RW
4173 done
4174IFS=$as_save_IFS
c6b750e1 4175
9e07f89d
NN
4176if test $ac_prog_rejected = yes; then
4177 # We found a bogon in the path, so make sure we never use it.
4178 set dummy $ac_cv_prog_CC
4179 shift
c6b750e1 4180 if test $# != 0; then
9e07f89d
NN
4181 # We chose a different compiler from the bogus one.
4182 # However, it has the same basename, so the bogon will be chosen
4183 # first if we set CC to just the basename; use the full file name.
4184 shift
c6b750e1 4185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4186 fi
4187fi
4188fi
4189fi
c6b750e1 4190CC=$ac_cv_prog_CC
9e07f89d 4191if test -n "$CC"; then
81ecdfbb
RW
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193$as_echo "$CC" >&6; }
9e07f89d 4194else
81ecdfbb
RW
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
9e07f89d
NN
4197fi
4198
81ecdfbb 4199
c6b750e1
DJ
4200fi
4201if test -z "$CC"; then
4202 if test -n "$ac_tool_prefix"; then
81ecdfbb 4203 for ac_prog in cl.exe
c6b750e1
DJ
4204 do
4205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4209if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4210 $as_echo_n "(cached) " >&6
9e07f89d
NN
4211else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214else
c6b750e1
DJ
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
81ecdfbb 4220 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4224 break 2
376a0e54 4225 fi
c6b750e1 4226done
81ecdfbb
RW
4227 done
4228IFS=$as_save_IFS
cac3d6c4 4229
c6b750e1
DJ
4230fi
4231fi
4232CC=$ac_cv_prog_CC
4233if test -n "$CC"; then
81ecdfbb
RW
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235$as_echo "$CC" >&6; }
cac3d6c4 4236else
81ecdfbb
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
9e07f89d 4239fi
cac3d6c4 4240
81ecdfbb 4241
c6b750e1
DJ
4242 test -n "$CC" && break
4243 done
cac3d6c4 4244fi
c6b750e1
DJ
4245if test -z "$CC"; then
4246 ac_ct_CC=$CC
81ecdfbb 4247 for ac_prog in cl.exe
c6b750e1
DJ
4248do
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4253if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4254 $as_echo_n "(cached) " >&6
cac3d6c4 4255else
c6b750e1
DJ
4256 if test -n "$ac_ct_CC"; then
4257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4258else
c6b750e1
DJ
4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
81ecdfbb 4264 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4266 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4268 break 2
4269 fi
4270done
81ecdfbb
RW
4271 done
4272IFS=$as_save_IFS
c6b750e1 4273
cac3d6c4
CM
4274fi
4275fi
c6b750e1
DJ
4276ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4279$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4280else
81ecdfbb
RW
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
cac3d6c4 4283fi
376a0e54 4284
81ecdfbb 4285
c6b750e1
DJ
4286 test -n "$ac_ct_CC" && break
4287done
4288
81ecdfbb
RW
4289 if test "x$ac_ct_CC" = x; then
4290 CC=""
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293yes:)
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296ac_tool_warned=yes ;;
4297esac
4298 CC=$ac_ct_CC
4299 fi
c6b750e1
DJ
4300fi
4301
4302fi
4303
4304
81ecdfbb
RW
4305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4307as_fn_error $? "no acceptable C compiler found in \$PATH
4308See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4309
4310# Provide some information about the compiler.
81ecdfbb
RW
4311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4312set X $ac_compile
4313ac_compiler=$2
4314for ac_option in --version -v -V -qversion; do
4315 { { ac_try="$ac_compiler $ac_option >&5"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4323 ac_status=$?
81ecdfbb
RW
4324 if test -s conftest.err; then
4325 sed '10a\
4326... rest of stderr output deleted ...
4327 10q' conftest.err >conftest.er1
4328 cat conftest.er1 >&5
81ecdfbb 4329 fi
d0ac1c44 4330 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }
4333done
c6b750e1 4334
81ecdfbb 4335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346ac_clean_files_save=$ac_clean_files
d0ac1c44 4347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4348# Try to create an executable without -o first, disregard a.out.
4349# It will help us diagnose broken compilers, and finding out an intuition
4350# of exeext.
d0ac1c44
SM
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4352$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4354
4355# The possible output files:
4356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357
4358ac_rmfiles=
4359for ac_file in $ac_files
4360do
4361 case $ac_file in
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4364 esac
4365done
4366rm -f $ac_rmfiles
4367
4368if { { ac_try="$ac_link_default"
4369case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374$as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_link_default") 2>&5
c6b750e1 4376 ac_status=$?
81ecdfbb
RW
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }; then :
4379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4381# in a Makefile. We should not override ac_cv_exeext if it was cached,
4382# so that the user can short-circuit this test for compilers unknown to
4383# Autoconf.
4384for ac_file in $ac_files ''
c6b750e1
DJ
4385do
4386 test -f "$ac_file" || continue
4387 case $ac_file in
81ecdfbb 4388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4389 ;;
4390 [ab].out )
4391 # We found the default executable, but exeext='' is most
4392 # certainly right.
4393 break;;
4394 *.* )
81ecdfbb
RW
4395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4396 then :; else
4397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 fi
4399 # We set ac_cv_exeext here because the later test for it is not
4400 # safe: cross compilers may not add the suffix if given an `-o'
4401 # argument, so we may need to know it at that point already.
4402 # Even if this section looks crufty: it has the advantage of
4403 # actually working.
c6b750e1
DJ
4404 break;;
4405 * )
4406 break;;
4407 esac
4408done
81ecdfbb
RW
4409test "$ac_cv_exeext" = no && ac_cv_exeext=
4410
c6b750e1 4411else
81ecdfbb
RW
4412 ac_file=''
4413fi
81ecdfbb 4414if test -z "$ac_file"; then :
d0ac1c44
SM
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
81ecdfbb
RW
4420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4422as_fn_error 77 "C compiler cannot create executables
4423See \`config.log' for more details" "$LINENO" 5; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
c6b750e1 4427fi
d0ac1c44
SM
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4429$as_echo_n "checking for C compiler default output file name... " >&6; }
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4431$as_echo "$ac_file" >&6; }
c6b750e1 4432ac_exeext=$ac_cv_exeext
c6b750e1 4433
d0ac1c44 4434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4435ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4437$as_echo_n "checking for suffix of executables... " >&6; }
4438if { { ac_try="$ac_link"
4439case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444$as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
c6b750e1 4446 ac_status=$?
81ecdfbb
RW
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; then :
c6b750e1
DJ
4449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4450# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4451# work properly (i.e., refer to `conftest.exe'), while it won't with
4452# `rm'.
4453for ac_file in conftest.exe conftest conftest.*; do
4454 test -f "$ac_file" || continue
4455 case $ac_file in
81ecdfbb 4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4458 break;;
4459 * ) break;;
4460 esac
4461done
4462else
81ecdfbb
RW
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4465as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4466See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4467fi
d0ac1c44 4468rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4470$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4471
4472rm -f conftest.$ac_ext
4473EXEEXT=$ac_cv_exeext
4474ac_exeext=$EXEEXT
d0ac1c44
SM
4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h. */
4477#include <stdio.h>
4478int
4479main ()
4480{
4481FILE *f = fopen ("conftest.out", "w");
4482 return ferror (f) || fclose (f) != 0;
4483
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488ac_clean_files="$ac_clean_files conftest.out"
4489# Check that the compiler produces executables we can run. If not, either
4490# the compiler is broken, or we cross compile.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4492$as_echo_n "checking whether we are cross compiling... " >&6; }
4493if test "$cross_compiling" != yes; then
4494 { { ac_try="$ac_link"
4495case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505 if { ac_try='./conftest$ac_cv_exeext'
4506 { { case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509esac
4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_try") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; }; then
4516 cross_compiling=no
4517 else
4518 if test "$cross_compiling" = maybe; then
4519 cross_compiling=yes
4520 else
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523as_fn_error $? "cannot run C compiled programs.
4524If you meant to cross compile, use \`--host'.
4525See \`config.log' for more details" "$LINENO" 5; }
4526 fi
4527 fi
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4530$as_echo "$cross_compiling" >&6; }
4531
4532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4533ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4535$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4536if ${ac_cv_objext+:} false; then :
81ecdfbb 4537 $as_echo_n "(cached) " >&6
c6b750e1 4538else
81ecdfbb 4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4540/* end confdefs.h. */
4541
4542int
4543main ()
4544{
4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest.o conftest.obj
81ecdfbb
RW
4551if { { ac_try="$ac_compile"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557$as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_compile") 2>&5
c6b750e1 4559 ac_status=$?
81ecdfbb
RW
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
4562 for ac_file in conftest.o conftest.obj conftest.*; do
4563 test -f "$ac_file" || continue;
c6b750e1 4564 case $ac_file in
81ecdfbb 4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567 break;;
4568 esac
4569done
cac3d6c4 4570else
81ecdfbb 4571 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
81ecdfbb
RW
4574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4576as_fn_error $? "cannot compute suffix of object files: cannot compile
4577See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4578fi
c6b750e1
DJ
4579rm -f conftest.$ac_cv_objext conftest.$ac_ext
4580fi
81ecdfbb
RW
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4582$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4583OBJEXT=$ac_cv_objext
4584ac_objext=$OBJEXT
81ecdfbb
RW
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4587if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4588 $as_echo_n "(cached) " >&6
c6b750e1 4589else
81ecdfbb 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596#ifndef __GNUC__
4597 choke me
4598#endif
4599
4600 ;
4601 return 0;
4602}
4603_ACEOF
81ecdfbb 4604if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4605 ac_compiler_gnu=yes
4606else
81ecdfbb 4607 ac_compiler_gnu=no
c6b750e1 4608fi
81ecdfbb 4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4610ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612fi
81ecdfbb
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615if test $ac_compiler_gnu = yes; then
4616 GCC=yes
4617else
4618 GCC=
4619fi
c6b750e1
DJ
4620ac_test_CFLAGS=${CFLAGS+set}
4621ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4624if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4625 $as_echo_n "(cached) " >&6
4626else
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 ac_cv_prog_cc_g=no
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4632/* end confdefs.h. */
4633
4634int
4635main ()
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
81ecdfbb 4642if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4643 ac_cv_prog_cc_g=yes
4644else
81ecdfbb
RW
4645 CFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658
4659else
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
cac3d6c4 4664
81ecdfbb
RW
4665int
4666main ()
4667{
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4677fi
81ecdfbb 4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4679fi
81ecdfbb
RW
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4685if test "$ac_test_CFLAGS" = set; then
c6b750e1 4686 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4687elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="-g -O2"
4690 else
4691 CFLAGS="-g"
4692 fi
4693else
4694 if test "$GCC" = yes; then
4695 CFLAGS="-O2"
4696 else
4697 CFLAGS=
4698 fi
4699fi
81ecdfbb
RW
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4702if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4703 $as_echo_n "(cached) " >&6
c6b750e1 4704else
81ecdfbb 4705 ac_cv_prog_cc_c89=no
c6b750e1 4706ac_save_CC=$CC
81ecdfbb 4707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4708/* end confdefs.h. */
4709#include <stdarg.h>
4710#include <stdio.h>
d0ac1c44 4711struct stat;
c6b750e1
DJ
4712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4713struct buf { int x; };
4714FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715static char *e (p, i)
4716 char **p;
4717 int i;
4718{
4719 return p[i];
4720}
4721static char *f (char * (*g) (char **, int), char **p, ...)
4722{
4723 char *s;
4724 va_list v;
4725 va_start (v,p);
4726 s = g (p, va_arg (v,int));
4727 va_end (v);
4728 return s;
4729}
4730
4731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4732 function prototypes and stuff, but not '\xHH' hex character constants.
4733 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4734 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4736 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4737 that's true only with -std. */
c6b750e1
DJ
4738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739
81ecdfbb
RW
4740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741 inside strings and character constants. */
4742#define FOO(x) 'x'
4743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
c6b750e1
DJ
4745int test (int i, double x);
4746struct s1 {int (*f) (int a);};
4747struct s2 {int (*f) (double a);};
4748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749int argc;
4750char **argv;
4751int
4752main ()
4753{
4754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 ;
4756 return 0;
4757}
4758_ACEOF
81ecdfbb
RW
4759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4761do
4762 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4765fi
81ecdfbb
RW
4766rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4768done
81ecdfbb 4769rm -f conftest.$ac_ext
c6b750e1
DJ
4770CC=$ac_save_CC
4771
4772fi
81ecdfbb
RW
4773# AC_CACHE_VAL
4774case "x$ac_cv_prog_cc_c89" in
4775 x)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777$as_echo "none needed" >&6; } ;;
4778 xno)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780$as_echo "unsupported" >&6; } ;;
c6b750e1 4781 *)
81ecdfbb
RW
4782 CC="$CC $ac_cv_prog_cc_c89"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4785esac
81ecdfbb 4786if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4787
c6b750e1
DJ
4788fi
4789
c6b750e1
DJ
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4795
81ecdfbb 4796ac_ext=cpp
18f6b6ee
PB
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4801if test -z "$CXX"; then
4802 if test -n "$CCC"; then
4803 CXX=$CCC
4804 else
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4807 do
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4812if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4813 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4814else
4815 if test -n "$CXX"; then
4816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
81ecdfbb 4823 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4827 break 2
4828 fi
4829done
81ecdfbb
RW
4830 done
4831IFS=$as_save_IFS
512b7dfb 4832
18f6b6ee
PB
4833fi
4834fi
4835CXX=$ac_cv_prog_CXX
4836if test -n "$CXX"; then
81ecdfbb
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838$as_echo "$CXX" >&6; }
18f6b6ee 4839else
81ecdfbb
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
18f6b6ee
PB
4842fi
4843
81ecdfbb 4844
18f6b6ee
PB
4845 test -n "$CXX" && break
4846 done
4847fi
4848if test -z "$CXX"; then
4849 ac_ct_CXX=$CXX
81ecdfbb 4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4851do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4856if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4857 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4858else
4859 if test -n "$ac_ct_CXX"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
81ecdfbb 4867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4871 break 2
512b7dfb 4872 fi
18f6b6ee 4873done
81ecdfbb
RW
4874 done
4875IFS=$as_save_IFS
512b7dfb 4876
18f6b6ee
PB
4877fi
4878fi
4879ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4883else
81ecdfbb
RW
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
18f6b6ee
PB
4886fi
4887
81ecdfbb 4888
18f6b6ee
PB
4889 test -n "$ac_ct_CXX" && break
4890done
18f6b6ee 4891
81ecdfbb
RW
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896yes:)
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899ac_tool_warned=yes ;;
4900esac
4901 CXX=$ac_ct_CXX
4902 fi
18f6b6ee
PB
4903fi
4904
81ecdfbb
RW
4905 fi
4906fi
18f6b6ee 4907# Provide some information about the compiler.
81ecdfbb
RW
4908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909set X $ac_compile
4910ac_compiler=$2
4911for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4920 ac_status=$?
81ecdfbb
RW
4921 if test -s conftest.err; then
4922 sed '10a\
4923... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
81ecdfbb 4926 fi
d0ac1c44 4927 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930done
18f6b6ee 4931
81ecdfbb
RW
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4934if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4935 $as_echo_n "(cached) " >&6
18f6b6ee 4936else
81ecdfbb 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4938/* end confdefs.h. */
4939
4940int
4941main ()
4942{
4943#ifndef __GNUC__
4944 choke me
4945#endif
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
81ecdfbb 4951if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4952 ac_compiler_gnu=yes
4953else
81ecdfbb 4954 ac_compiler_gnu=no
18f6b6ee 4955fi
81ecdfbb 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4958
4959fi
81ecdfbb
RW
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4962if test $ac_compiler_gnu = yes; then
4963 GXX=yes
4964else
4965 GXX=
4966fi
18f6b6ee
PB
4967ac_test_CXXFLAGS=${CXXFLAGS+set}
4968ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4971if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4972 $as_echo_n "(cached) " >&6
4973else
4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975 ac_cxx_werror_flag=yes
4976 ac_cv_prog_cxx_g=no
4977 CXXFLAGS="-g"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
81ecdfbb 4989if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4990 ac_cv_prog_cxx_g=yes
4991else
81ecdfbb
RW
4992 CXXFLAGS=""
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4994/* end confdefs.h. */
81ecdfbb 4995
18f6b6ee
PB
4996int
4997main ()
4998{
81ecdfbb 4999
18f6b6ee
PB
5000 ;
5001 return 0;
5002}
5003_ACEOF
81ecdfbb 5004if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5005
81ecdfbb
RW
5006else
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008 CXXFLAGS="-g"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5010/* end confdefs.h. */
81ecdfbb 5011
18f6b6ee
PB
5012int
5013main ()
5014{
81ecdfbb 5015
18f6b6ee
PB
5016 ;
5017 return 0;
5018}
5019_ACEOF
81ecdfbb
RW
5020if ac_fn_cxx_try_compile "$LINENO"; then :
5021 ac_cv_prog_cxx_g=yes
18f6b6ee 5022fi
81ecdfbb
RW
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031$as_echo "$ac_cv_prog_cxx_g" >&6; }
5032if test "$ac_test_CXXFLAGS" = set; then
5033 CXXFLAGS=$ac_save_CXXFLAGS
5034elif test $ac_cv_prog_cxx_g = yes; then
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-g -O2"
5037 else
5038 CXXFLAGS="-g"
5039 fi
5040else
5041 if test "$GXX" = yes; then
5042 CXXFLAGS="-O2"
5043 else
5044 CXXFLAGS=
5045 fi
18f6b6ee 5046fi
18f6b6ee
PB
5047ac_ext=c
5048ac_cpp='$CPP $CPPFLAGS'
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053
5054# We must set the default linker to the linker used by gcc for the correct
5055# operation of libtool. If LD is not defined and we are using gcc, try to
5056# set the LD default to the ld used by gcc.
5057if test -z "$LD"; then
5058 if test "$GCC" = yes; then
5059 case $build in
5060 *-*-mingw*)
5061 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5062 *)
5063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5064 esac
5065 case $gcc_prog_ld in
5066 # Accept absolute paths.
5067 [\\/]* | [A-Za-z]:[\\/]*)
5068 LD="$gcc_prog_ld" ;;
5069 esac
5070 fi
512b7dfb
PB
5071fi
5072
b3676d82
EB
5073# Check whether -static-libstdc++ -static-libgcc is supported.
5074have_static_libs=no
5075if test "$GCC" = yes; then
5076 saved_LDFLAGS="$LDFLAGS"
5077
5078 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5080$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5081 ac_ext=cpp
5082ac_cpp='$CXXCPP $CPPFLAGS'
5083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5086
5087
5088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
a882be68
EB
5090
5091#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5092#error -static-libstdc++ not implemented
5093#endif
b3676d82
EB
5094int main() {}
5095_ACEOF
5096if ac_fn_cxx_try_link "$LINENO"; then :
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098$as_echo "yes" >&6; }; have_static_libs=yes
5099else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext conftest.$ac_ext
5105 ac_ext=c
5106ac_cpp='$CPP $CPPFLAGS'
5107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
5111
5112 LDFLAGS="$saved_LDFLAGS"
5113fi
5114
512b7dfb
PB
5115
5116
5117
c6b750e1 5118if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5119 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5123if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5124 $as_echo_n "(cached) " >&6
9e07f89d 5125else
512b7dfb
PB
5126 if test -n "$GNATBIND"; then
5127 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5128else
c6b750e1
DJ
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
81ecdfbb 5134 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5136 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5138 break 2
5139 fi
5140done
81ecdfbb
RW
5141 done
5142IFS=$as_save_IFS
c6b750e1 5143
9e07f89d
NN
5144fi
5145fi
512b7dfb
PB
5146GNATBIND=$ac_cv_prog_GNATBIND
5147if test -n "$GNATBIND"; then
81ecdfbb
RW
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5149$as_echo "$GNATBIND" >&6; }
9e07f89d 5150else
81ecdfbb
RW
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
9e07f89d
NN
5153fi
5154
81ecdfbb 5155
c6b750e1 5156fi
512b7dfb
PB
5157if test -z "$ac_cv_prog_GNATBIND"; then
5158 ac_ct_GNATBIND=$GNATBIND
5159 # Extract the first word of "gnatbind", so it can be a program name with args.
5160set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5163if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5164 $as_echo_n "(cached) " >&6
9e07f89d 5165else
512b7dfb
PB
5166 if test -n "$ac_ct_GNATBIND"; then
5167 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5168else
c6b750e1
DJ
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
81ecdfbb 5174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5176 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5178 break 2
5179 fi
5180done
81ecdfbb
RW
5181 done
5182IFS=$as_save_IFS
c6b750e1 5183
9e07f89d
NN
5184fi
5185fi
512b7dfb
PB
5186ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5187if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5189$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5190else
81ecdfbb
RW
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
9e07f89d
NN
5193fi
5194
81ecdfbb
RW
5195 if test "x$ac_ct_GNATBIND" = x; then
5196 GNATBIND="no"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 GNATBIND=$ac_ct_GNATBIND
5205 fi
24ff9987 5206else
512b7dfb 5207 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5208fi
5209
7df2cd5d 5210if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5211 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5212set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5215if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5216 $as_echo_n "(cached) " >&6
7df2cd5d 5217else
512b7dfb
PB
5218 if test -n "$GNATMAKE"; then
5219 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
81ecdfbb 5226 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5228 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5230 break 2
5231 fi
5232done
81ecdfbb
RW
5233 done
5234IFS=$as_save_IFS
7df2cd5d
PB
5235
5236fi
5237fi
512b7dfb
PB
5238GNATMAKE=$ac_cv_prog_GNATMAKE
5239if test -n "$GNATMAKE"; then
81ecdfbb
RW
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5241$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5242else
81ecdfbb
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
7df2cd5d
PB
5245fi
5246
81ecdfbb 5247
7df2cd5d 5248fi
512b7dfb
PB
5249if test -z "$ac_cv_prog_GNATMAKE"; then
5250 ac_ct_GNATMAKE=$GNATMAKE
5251 # Extract the first word of "gnatmake", so it can be a program name with args.
5252set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5255if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5256 $as_echo_n "(cached) " >&6
7df2cd5d 5257else
512b7dfb
PB
5258 if test -n "$ac_ct_GNATMAKE"; then
5259 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
81ecdfbb 5266 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5268 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5270 break 2
5271 fi
5272done
81ecdfbb
RW
5273 done
5274IFS=$as_save_IFS
7df2cd5d 5275
7df2cd5d
PB
5276fi
5277fi
512b7dfb
PB
5278ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5279if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5281$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5282else
81ecdfbb
RW
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
7df2cd5d
PB
5285fi
5286
81ecdfbb
RW
5287 if test "x$ac_ct_GNATMAKE" = x; then
5288 GNATMAKE="no"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291yes:)
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294ac_tool_warned=yes ;;
5295esac
5296 GNATMAKE=$ac_ct_GNATMAKE
5297 fi
7df2cd5d 5298else
512b7dfb 5299 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5300fi
5301
81ecdfbb
RW
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5303$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5304if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5305 $as_echo_n "(cached) " >&6
9e07f89d
NN
5306else
5307 cat >conftest.adb <<EOF
5308procedure conftest is begin null; end conftest;
5309EOF
5310acx_cv_cc_gcc_supports_ada=no
5311# There is a bug in old released versions of GCC which causes the
5312# driver to exit successfully when the appropriate language module
5313# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5314# Therefore we must check for the error message as well as an
5315# unsuccessful exit.
b8908782
DD
5316# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5317# given a .adb file, but produce no object file. So we must check
5318# if an object file was really produced to guard against this.
9e07f89d 5319errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5320if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5321 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5322fi
5323rm -f conftest.*
5324fi
81ecdfbb
RW
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5326$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5327
64b986c0 5328if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5329 have_gnat=yes
5330else
5331 have_gnat=no
5332fi
5333
81ecdfbb
RW
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5335$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5336if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5337 $as_echo_n "(cached) " >&6
b8908782
DD
5338else
5339 echo abfoo >t1
5340 echo cdfoo >t2
da17fe9d 5341 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5344 :
5345 else
5346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5347 fi
5348 fi
b8908782
DD
5349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5351 :
b8908782
DD
5352 else
5353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5354 fi
5355 fi
5356 rm t1 t2
5357
5358fi
81ecdfbb
RW
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5360$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5361do_compare="$gcc_cv_prog_cmp_skip"
5362
5363
9e07f89d 5364
ffdd6afc
ILT
5365# Check whether --enable-bootstrap was given.
5366if test "${enable_bootstrap+set}" = set; then :
5367 enableval=$enable_bootstrap;
5368else
5369 enable_bootstrap=default
5370fi
5371
5372
5373# Issue errors and warnings for invalid/strange bootstrap combinations.
5374if test -r $srcdir/gcc/configure; then
5375 have_compiler=yes
5376else
5377 have_compiler=no
5378fi
5379
5380case "$have_compiler:$host:$target:$enable_bootstrap" in
5381 *:*:*:no) ;;
5382
5383 # Default behavior. Enable bootstrap if we have a compiler
5384 # and we are in a native configuration.
5385 yes:$build:$build:default)
5386 enable_bootstrap=yes ;;
5387
5388 *:*:*:default)
5389 enable_bootstrap=no ;;
5390
5391 # We have a compiler and we are in a native configuration, bootstrap is ok
5392 yes:$build:$build:yes)
5393 ;;
5394
5395 # Other configurations, but we have a compiler. Assume the user knows
5396 # what he's doing.
5397 yes:*:*:yes)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5399$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5400 ;;
5401
5402 # No compiler: if they passed --enable-bootstrap explicitly, fail
5403 no:*:*:yes)
d0ac1c44 5404 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5405
5406 # Fail if wrong command line
5407 *)
d0ac1c44 5408 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5409 ;;
5410esac
5411
ce6c656d
L
5412# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5413# C++98 compiler can still start the bootstrap.
5414if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5415 CXX="$CXX -std=gnu++98"
5416fi
5417
d5f2ee2e
KG
5418# Used for setting $lt_cv_objdir
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5420$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5421if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5422 $as_echo_n "(cached) " >&6
5423else
5424 rm -f .libs 2>/dev/null
5425mkdir .libs 2>/dev/null
5426if test -d .libs; then
5427 lt_cv_objdir=.libs
5428else
5429 # MS-DOS does not allow filenames that begin with a dot.
5430 lt_cv_objdir=_libs
5431fi
5432rmdir .libs 2>/dev/null
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5435$as_echo "$lt_cv_objdir" >&6; }
5436objdir=$lt_cv_objdir
5437
5438
5439
5440
5441
5442cat >>confdefs.h <<_ACEOF
5443#define LT_OBJDIR "$lt_cv_objdir/"
5444_ACEOF
5445
5446
5447
e8a5fa9c 5448# Check for GMP, MPFR and MPC
d9b76ff9 5449gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5450gmpinc=
4b900473 5451have_gmp=no
e8a5fa9c
RW
5452
5453# Specify a location for mpc
5454# check for this first so it ends up on the link line before mpfr.
5455
81ecdfbb
RW
5456# Check whether --with-mpc was given.
5457if test "${with_mpc+set}" = set; then :
5458 withval=$with_mpc;
5459fi
e8a5fa9c 5460
e8a5fa9c 5461
e552509b 5462# Check whether --with-mpc-include was given.
81ecdfbb
RW
5463if test "${with_mpc_include+set}" = set; then :
5464 withval=$with_mpc_include;
5465fi
e8a5fa9c 5466
e8a5fa9c 5467
e552509b 5468# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5469if test "${with_mpc_lib+set}" = set; then :
5470 withval=$with_mpc_lib;
5471fi
e8a5fa9c 5472
e8a5fa9c
RW
5473
5474if test "x$with_mpc" != x; then
d9b76ff9
KG
5475 gmplibs="-L$with_mpc/lib $gmplibs"
5476 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5477fi
5478if test "x$with_mpc_include" != x; then
d9b76ff9 5479 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5480fi
5481if test "x$with_mpc_lib" != x; then
d9b76ff9 5482 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5483fi
5484if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5485 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5486 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5487 # Do not test the mpc version. Assume that it is sufficient, since
5488 # it is in the source tree, and the library has not been built yet
5489 # but it would be included on the link line in the version check below
5490 # hence making the test fail.
d9b76ff9 5491 have_gmp=yes
e8a5fa9c 5492fi
4b900473 5493
11b04d1f
DD
5494# Specify a location for mpfr
5495# check for this first so it ends up on the link line before gmp.
c6b750e1 5496
81ecdfbb
RW
5497# Check whether --with-mpfr-dir was given.
5498if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5499 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5500Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5501fi
5502
11b04d1f
DD
5503
5504
81ecdfbb
RW
5505# Check whether --with-mpfr was given.
5506if test "${with_mpfr+set}" = set; then :
5507 withval=$with_mpfr;
5508fi
c6b750e1 5509
11b04d1f 5510
e552509b 5511# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5512if test "${with_mpfr_include+set}" = set; then :
5513 withval=$with_mpfr_include;
5514fi
c6b750e1 5515
8a0d8a5c 5516
e552509b 5517# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5518if test "${with_mpfr_lib+set}" = set; then :
5519 withval=$with_mpfr_lib;
5520fi
8a0d8a5c 5521
11b04d1f
DD
5522
5523if test "x$with_mpfr" != x; then
5524 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5525 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5526fi
8a0d8a5c 5527if test "x$with_mpfr_include" != x; then
d9b76ff9 5528 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5529fi
5530if test "x$with_mpfr_lib" != x; then
5531 gmplibs="-L$with_mpfr_lib $gmplibs"
5532fi
4b900473 5533if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5534 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5535 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5536 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5537 fi
05a13254
NC
5538 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5539 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5540 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5541 # Do not test the mpfr version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5545 have_gmp=yes
5546fi
11b04d1f 5547
4b1cb4fe 5548# Specify a location for gmp
c6b750e1 5549
81ecdfbb
RW
5550# Check whether --with-gmp-dir was given.
5551if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5552 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5553Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5554fi
5555
4b1cb4fe
DD
5556
5557
81ecdfbb
RW
5558# Check whether --with-gmp was given.
5559if test "${with_gmp+set}" = set; then :
5560 withval=$with_gmp;
5561fi
c6b750e1 5562
4b1cb4fe 5563
e552509b 5564# Check whether --with-gmp-include was given.
81ecdfbb
RW
5565if test "${with_gmp_include+set}" = set; then :
5566 withval=$with_gmp_include;
5567fi
c6b750e1 5568
8a0d8a5c 5569
e552509b 5570# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5571if test "${with_gmp_lib+set}" = set; then :
5572 withval=$with_gmp_lib;
5573fi
8a0d8a5c
PB
5574
5575
4b1cb4fe 5576
11b04d1f
DD
5577if test "x$with_gmp" != x; then
5578 gmplibs="-L$with_gmp/lib $gmplibs"
5579 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5580fi
8a0d8a5c
PB
5581if test "x$with_gmp_include" != x; then
5582 gmpinc="-I$with_gmp_include $gmpinc"
5583fi
5584if test "x$with_gmp_lib" != x; then
5585 gmplibs="-L$with_gmp_lib $gmplibs"
5586fi
4b900473 5587if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5588 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5589 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5590 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5591 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5592 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5593 # Do not test the gmp version. Assume that it is sufficient, since
5594 # it is in the source tree, and the library has not been built yet
5595 # but it would be included on the link line in the version check below
5596 # hence making the test fail.
5597 have_gmp=yes
5598fi
4b1cb4fe 5599
ceb92e78 5600if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5601 have_gmp=yes
5602 saved_CFLAGS="$CFLAGS"
5603 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5604 # Check for the recommended and required versions of GMP.
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5606$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5607
5608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5609/* end confdefs.h. */
5610#include "gmp.h"
5611int
5612main ()
5613{
5614
5615 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5616 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5617 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5618 choke me
5619 #endif
5620
5621 ;
5622 return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5627/* end confdefs.h. */
a6b5846e 5628#include <gmp.h>
c6b750e1
DJ
5629int
5630main ()
5631{
4b1cb4fe 5632
a6b5846e
KG
5633 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5634 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5635 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5636 choke me
5637 #endif
c6b750e1
DJ
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
81ecdfbb
RW
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645$as_echo "yes" >&6; }
a6b5846e
KG
5646else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5648$as_echo "buggy but acceptable" >&6; }
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5651else
81ecdfbb
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5654fi
81ecdfbb 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5656
e8a5fa9c 5657 # If we have GMP, check the MPFR version.
4b900473 5658 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5659 # Check for the recommended and required versions of MPFR.
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5661$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5663/* end confdefs.h. */
9b134994 5664#include <gmp.h>
4b900473 5665 #include <mpfr.h>
c6b750e1
DJ
5666int
5667main ()
5668{
9b134994 5669
7ec59b9e 5670 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5671 choke me
5672 #endif
c6b750e1
DJ
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
81ecdfbb
RW
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5680/* end confdefs.h. */
4b1cb4fe 5681#include <gmp.h>
4b900473 5682 #include <mpfr.h>
c6b750e1
DJ
5683int
5684main ()
5685{
9dbaa842 5686
a6b5846e 5687 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5688 choke me
5689 #endif
e8a5fa9c
RW
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
81ecdfbb
RW
5695if ac_fn_c_try_compile "$LINENO"; then :
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697$as_echo "yes" >&6; }
e8a5fa9c 5698else
81ecdfbb
RW
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5700$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5701fi
81ecdfbb 5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5703else
81ecdfbb
RW
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5706fi
81ecdfbb 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5708 fi
5709
5710 # Check for the MPC header version.
d9b76ff9 5711 if test x"$have_gmp" = xyes ; then
a6b5846e 5712 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5714$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5716/* end confdefs.h. */
5717#include <mpc.h>
5718int
5719main ()
5720{
5721
a6b5846e
KG
5722 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5723 choke me
5724 #endif
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_compile "$LINENO"; then :
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h. */
5733#include <mpc.h>
5734int
5735main ()
5736{
5737
5738 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5739 choke me
5740 #endif
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
81ecdfbb
RW
5746if ac_fn_c_try_compile "$LINENO"; then :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5748$as_echo "yes" >&6; }
a6b5846e
KG
5749else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5751$as_echo "buggy but acceptable" >&6; }
5752fi
5753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5754else
81ecdfbb 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5756$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5757fi
81ecdfbb 5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5759 fi
5760
5761 # Now check the MPFR library.
5762 if test x"$have_gmp" = xyes; then
5763 saved_LIBS="$LIBS"
5764 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5766$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5768/* end confdefs.h. */
d9b76ff9 5769#include <mpc.h>
e8a5fa9c
RW
5770int
5771main ()
5772{
5773
5774 mpfr_t n;
5775 mpfr_t x;
d9b76ff9 5776 mpc_t c;
e8a5fa9c
RW
5777 int t;
5778 mpfr_init (n);
5779 mpfr_init (x);
5780 mpfr_atan2 (n, n, x, GMP_RNDN);
5781 mpfr_erfc (n, x, GMP_RNDN);
5782 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5783 mpfr_clear(n);
5784 mpfr_clear(x);
5785 mpc_init2 (c, 53);
5786 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5787 mpc_cosh (c, c, MPC_RNDNN);
5788 mpc_pow (c, c, c, MPC_RNDNN);
5789 mpc_acosh (c, c, MPC_RNDNN);
5790 mpc_clear (c);
c6b750e1
DJ
5791
5792 ;
5793 return 0;
5794}
5795_ACEOF
81ecdfbb
RW
5796if ac_fn_c_try_link "$LINENO"; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5798$as_echo "yes" >&6; }
c6b750e1 5799else
81ecdfbb
RW
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5802fi
81ecdfbb
RW
5803rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5805 LIBS="$saved_LIBS"
5806 fi
5807
4b900473 5808 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5809
a6b5846e
KG
5810# The library versions listed in the error message below should match
5811# the HARD-minimums enforced above.
4b900473 5812 if test x$have_gmp != xyes; then
d0ac1c44 5813 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5814Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5815their locations. Source code for these libraries can be found at
5816their respective hosting sites as well as at
5817ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5818http://gcc.gnu.org/install/prerequisites.html for additional info. If
5819you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5820make sure that you have installed both the libraries and the header
5821files. They may be located in separate packages." "$LINENO" 5
4b900473 5822 fi
9dbaa842
DD
5823fi
5824
e8a5fa9c
RW
5825# Flags needed for both GMP, MPFR and/or MPC.
5826
5827
5828
4b1cb4fe
DD
5829
5830
5831
7ec59b9e 5832
b3676d82 5833# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5834
b3676d82
EB
5835# Check whether --with-stage1-libs was given.
5836if test "${with_stage1_libs+set}" = set; then :
5837 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5838 stage1_libs=
e8a5fa9c 5839 else
b3676d82 5840 stage1_libs=$withval
e8a5fa9c
RW
5841 fi
5842else
68996839 5843 stage1_libs=
81ecdfbb
RW
5844fi
5845
e8a5fa9c
RW
5846
5847
c1a5d03a
TT
5848# Whether or not to use -static-libstdc++ and -static-libgcc. The
5849# default is yes if gcc is being built; no otherwise. The reason for
5850# this default is that gdb is sometimes linked against GNU Source
5851# Highlight, which is a shared library that uses C++ exceptions. In
5852# this case, -static-libstdc++ will cause crashes.
5853
5854# Check whether --with-static-standard-libraries was given.
5855if test "${with_static_standard_libraries+set}" = set; then :
5856 withval=$with_static_standard_libraries;
5857else
5858 with_static_standard_libraries=auto
5859fi
5860
5861if test "$with_static_standard_libraries" = auto; then
5862 with_static_standard_libraries=$have_compiler
5863fi
5864
b3676d82 5865# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5866
b3676d82
EB
5867# Check whether --with-stage1-ldflags was given.
5868if test "${with_stage1_ldflags+set}" = set; then :
5869 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5870 stage1_ldflags=
e8a5fa9c 5871 else
b3676d82 5872 stage1_ldflags=$withval
e8a5fa9c
RW
5873 fi
5874else
b3676d82
EB
5875 stage1_ldflags=
5876 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5877 # if supported. But if the user explicitly specified the libraries to use,
5878 # trust that they are doing what they want.
c1a5d03a
TT
5879 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5880 -a "$have_static_libs" = yes; then
b3676d82
EB
5881 stage1_ldflags="-static-libstdc++ -static-libgcc"
5882 fi
81ecdfbb
RW
5883fi
5884
e8a5fa9c
RW
5885
5886
68996839 5887# Libraries to use for stage2 and later builds.
e8a5fa9c 5888
81ecdfbb
RW
5889# Check whether --with-boot-libs was given.
5890if test "${with_boot_libs+set}" = set; then :
5891 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5892 poststage1_libs=
5893 else
5894 poststage1_libs=$withval
5895 fi
5896else
68996839 5897 poststage1_libs=
81ecdfbb
RW
5898fi
5899
e8a5fa9c
RW
5900
5901
143754cd
NC
5902# Linker flags to use for stage2 and later builds.
5903
5904# Check whether --with-boot-ldflags was given.
5905if test "${with_boot_ldflags+set}" = set; then :
5906 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5907 poststage1_ldflags=
5908 else
5909 poststage1_ldflags=$withval
5910 fi
5911else
5912 poststage1_ldflags=
4f11b223
ILT
5913 # In stages 2 and 3, default to linking libstdc++ and libgcc
5914 # statically. But if the user explicitly specified the libraries to
5915 # use, trust that they are doing what they want.
5916 if test "$poststage1_libs" = ""; then
143754cd
NC
5917 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5918 fi
5919fi
5920
5921
5922
4849dfd8 5923# GCC GRAPHITE dependency isl.
1b6c0831 5924# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5925
5926
7ec59b9e
L
5927# Check whether --with-isl was given.
5928if test "${with_isl+set}" = set; then :
5929 withval=$with_isl;
81ecdfbb 5930fi
e28c595f 5931
e28c595f 5932
1b6c0831 5933# Treat --without-isl as a request to disable
8e71395b 5934# GRAPHITE support and skip all following checks.
1b6c0831 5935if test "x$with_isl" != "xno"; then
4849dfd8 5936 # Check for isl
8e71395b
L
5937
5938
7ec59b9e
L
5939# Check whether --with-isl-include was given.
5940if test "${with_isl_include+set}" = set; then :
5941 withval=$with_isl_include;
81ecdfbb
RW
5942fi
5943
e28c595f 5944
7ec59b9e
L
5945# Check whether --with-isl-lib was given.
5946if test "${with_isl_lib+set}" = set; then :
5947 withval=$with_isl_lib;
81ecdfbb 5948fi
e28c595f 5949
e28c595f 5950
7ec59b9e
L
5951 # Check whether --enable-isl-version-check was given.
5952if test "${enable_isl_version_check+set}" = set; then :
5953 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5954else
5955 ENABLE_ISL_CHECK=yes
b123da99
SP
5956fi
5957
5958
7ec59b9e
L
5959 # Initialize isllibs and islinc.
5960 case $with_isl in
5961 no)
5962 isllibs=
5963 islinc=
5964 ;;
5965 "" | yes)
5966 ;;
5967 *)
5968 isllibs="-L$with_isl/lib"
5969 islinc="-I$with_isl/include"
5970 ;;
5971 esac
5972 if test "x${with_isl_include}" != x ; then
5973 islinc="-I$with_isl_include"
5974 fi
5975 if test "x${with_isl_lib}" != x; then
5976 isllibs="-L$with_isl_lib"
5977 fi
5978 if test "x${islinc}" = x && test "x${isllibs}" = x \
5979 && test -d ${srcdir}/isl; then
5980 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5981 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5982 ENABLE_ISL_CHECK=no
4849dfd8
NC
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5984$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5985 fi
b123da99 5986
1b6c0831 5987 isllibs="${isllibs} -lisl"
b123da99 5988
e28c595f 5989
b3fc79f8
JBG
5990
5991 if test "${ENABLE_ISL_CHECK}" = yes ; then
5992 _isl_saved_CFLAGS=$CFLAGS
5993 _isl_saved_LDFLAGS=$LDFLAGS
5994 _isl_saved_LIBS=$LIBS
5995
5996 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5997 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5998 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5999
bf41f30d
NC
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6001$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6003/* end confdefs.h. */
bf41f30d 6004#include <isl/schedule.h>
b3fc79f8
JBG
6005int
6006main ()
6007{
bf41f30d 6008isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6009 ;
6010 return 0;
6011}
6012_ACEOF
1b6c0831 6013if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6014 gcc_cv_isl=yes
6015else
6016 gcc_cv_isl=no
6017fi
1b6c0831
L
6018rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6021$as_echo "$gcc_cv_isl" >&6; }
6022
4849dfd8 6023 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6025$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6026 fi
6027
b3fc79f8
JBG
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6031 fi
6032
6033
e28c595f 6034
e28c595f 6035
7ec59b9e
L
6036
6037
7ec59b9e
L
6038 if test "x${with_isl}" = xno; then
6039 graphite_requested=no
6040 elif test "x${with_isl}" != x \
6041 || test "x${with_isl_include}" != x \
6042 || test "x${with_isl_lib}" != x ; then
6043 graphite_requested=yes
6044 else
6045 graphite_requested=no
b123da99 6046 fi
e28c595f 6047
e28c595f
JM
6048
6049
7ec59b9e
L
6050 if test "${gcc_cv_isl}" = no ; then
6051 isllibs=
6052 islinc=
6053 fi
e28c595f 6054
7ec59b9e
L
6055 if test "${graphite_requested}" = yes \
6056 && test "x${isllibs}" = x \
6057 && test "x${islinc}" = x ; then
e28c595f 6058
d0ac1c44 6059 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6060 fi
e552509b 6061
e28c595f 6062
e552509b
ILT
6063fi
6064
4849dfd8 6065# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6066if test "x$with_isl" = xno ||
8e71395b 6067 test "x$gcc_cv_isl" = xno; then
1b6c0831 6068 noconfigdirs="$noconfigdirs isl"
8e71395b 6069 islinc=
7ec59b9e
L
6070fi
6071
8e71395b
L
6072
6073
6074
700d40ca
ILT
6075# Check for LTO support.
6076# Check whether --enable-lto was given.
6077if test "${enable_lto+set}" = set; then :
6078 enableval=$enable_lto; enable_lto=$enableval
6079else
6080 enable_lto=yes; default_enable_lto=yes
6081fi
6082
6083
143754cd 6084
e49e5c92
DK
6085
6086
6087target_elf=no
6088case $target in
6089 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6090 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6091 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6092 nvptx-*-none)
e49e5c92
DK
6093 target_elf=no
6094 ;;
6095 *)
6096 target_elf=yes
6097 ;;
6098esac
6099
6100if test $target_elf = yes; then :
74cea91b
DK
6101 # ELF platforms build the lto-plugin always.
6102 build_lto_plugin=yes
e49e5c92 6103
e49e5c92
DK
6104else
6105 if test x"$default_enable_lto" = x"yes" ; then
29821356 6106 case $target in
bf41f30d 6107 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6108 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6109 *) enable_lto=no ;;
6110 esac
e49e5c92 6111 else
29821356
RW
6112 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6113 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6114 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6115 # warn during gcc/ subconfigure; unless you're bootstrapping with
6116 # -flto it won't be needed until after installation anyway.
6117 case $target in
52cf9762 6118 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6119 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6120 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6121 fi
6122 ;;
6123 esac
6124 fi
a8eb3f0a 6125 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6126 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6127 case $target in
74cea91b 6128 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6129 *) ;;
6130 esac
74cea91b 6131
e49e5c92
DK
6132fi
6133
700d40ca 6134
1b6c0831
L
6135# Check whether --enable-linker-plugin-configure-flags was given.
6136if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6137 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6138else
6139 extra_linker_plugin_configure_flags=
6140fi
6141
6142
6143# Check whether --enable-linker-plugin-flags was given.
6144if test "${enable_linker_plugin_flags+set}" = set; then :
6145 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6146else
6147 extra_linker_plugin_flags=
6148fi
6149
6150
6151
bf41f30d
NC
6152# Enable --enable-host-shared.
6153# Checked early to determine whether jit is an 'all' language
6154# Check whether --enable-host-shared was given.
6155if test "${enable_host_shared+set}" = set; then :
6156 enableval=$enable_host_shared; host_shared=$enableval
6157else
6158 host_shared=no
6159fi
6160
6161
e28c595f 6162
7ec59b9e 6163# By default, C and C++ are the only stage 1 languages.
9b134994 6164stage1_languages=,c,
1d39f329 6165
e8a5fa9c 6166# Target libraries that we bootstrap.
2aa2364a 6167bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6168
9e07f89d
NN
6169# Figure out what language subdirectories are present.
6170# Look if the user specified --enable-languages="..."; if not, use
6171# the environment variable $LANGUAGES if defined. $LANGUAGES might
6172# go away some day.
6173# NB: embedded tabs in this IF block -- do not untabify
6174if test -d ${srcdir}/gcc; then
6175 if test x"${enable_languages+set}" != xset; then
6176 if test x"${LANGUAGES+set}" = xset; then
6177 enable_languages="${LANGUAGES}"
136bb21f 6178 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6179 else
bf41f30d 6180 enable_languages=default
9e07f89d
NN
6181 fi
6182 else
6183 if test x"${enable_languages}" = x ||
6184 test x"${enable_languages}" = xyes;
6185 then
136bb21f 6186 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6187 exit 1
6188 fi
6189 fi
6190 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6191
096f7d00
DE
6192 # 'f95' is the old name for the 'fortran' language. We issue a warning
6193 # and make the substitution.
6194 case ,${enable_languages}, in
6195 *,f95,*)
136bb21f 6196 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6198 ;;
6199 esac
6200
7ec59b9e
L
6201 # If bootstrapping, C++ must be enabled.
6202 case ",$enable_languages,:$enable_bootstrap" in
6203 *,c++,*:*) ;;
6204 *:yes)
ffdd6afc
ILT
6205 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6206 enable_languages="${enable_languages},c++"
6207 else
d0ac1c44 6208 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6209 fi
6210 ;;
6211 esac
6212
9e07f89d
NN
6213 # First scan to see if an enabled language requires some other language.
6214 # We assume that a given config-lang.in will list all the language
6215 # front ends it requires, even if some are required indirectly.
6216 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6217 case ${lang_frag} in
6218 ..) ;;
6219 # The odd quoting in the next line works around
6220 # an apparent bug in bash 1.12 on linux.
6221 ${srcdir}/gcc/[*]/config-lang.in) ;;
6222 *)
e552509b
ILT
6223 # From the config-lang.in, get $language, $lang_requires, and
6224 # $lang_requires_boot_languages.
9e07f89d
NN
6225 language=
6226 lang_requires=
e552509b 6227 lang_requires_boot_languages=
bf41f30d
NC
6228 # set srcdir during sourcing lang_frag to the gcc dir.
6229 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6230 # polutes this shell
6231 saved_srcdir=${srcdir}
6232 srcdir=${srcdir}/gcc . ${lang_frag}
6233 srcdir=${saved_srcdir}
e552509b 6234 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6235 case ,${enable_languages}, in
6236 *,$other,*) ;;
bf41f30d 6237 *,default,*) ;;
9e07f89d
NN
6238 *,all,*) ;;
6239 *,$language,*)
6240 echo " \`$other' language required by \`$language'; enabling" 1>&2
6241 enable_languages="${enable_languages},${other}"
6242 ;;
6243 esac
6244 done
e552509b
ILT
6245 for other in ${lang_requires_boot_languages} ; do
6246 if test "$other" != "c"; then
6247 case ,${enable_stage1_languages}, in
6248 *,$other,*) ;;
bf41f30d 6249 *,default,*) ;;
e552509b
ILT
6250 *,all,*) ;;
6251 *)
6252 case ,${enable_languages}, in
6253 *,$language,*)
6254 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6255 enable_stage1_languages="$enable_stage1_languages,${other}"
6256 ;;
6257 esac
6258 ;;
6259 esac
6260 fi
6261 done
9e07f89d
NN
6262 ;;
6263 esac
6264 done
6265
9b134994 6266 new_enable_languages=,c,
700d40ca
ILT
6267
6268 # If LTO is enabled, add the LTO front end.
700d40ca 6269 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6270 case ,${enable_languages}, in
6271 *,lto,*) ;;
6272 *) enable_languages="${enable_languages},lto" ;;
6273 esac
a8eb3f0a 6274 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6275 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6276 fi
6277 fi
6278
1b6c0831
L
6279 # If we're building an offloading compiler, add the LTO front end.
6280 if test x"$enable_as_accelerator_for" != x ; then
6281 case ,${enable_languages}, in
6282 *,lto,*) ;;
6283 *) enable_languages="${enable_languages},lto" ;;
6284 esac
6285 fi
700d40ca 6286
bf41f30d 6287 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6288 potential_languages=,c,
9e07f89d 6289
9e1a94f4
ILT
6290 enabled_target_libs=
6291 disabled_target_libs=
6292
9e07f89d
NN
6293 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6294 case ${lang_frag} in
6295 ..) ;;
6296 # The odd quoting in the next line works around
6297 # an apparent bug in bash 1.12 on linux.
6298 ${srcdir}/gcc/[*]/config-lang.in) ;;
6299 *)
c6b750e1 6300 # From the config-lang.in, get $language, $target_libs,
1d39f329 6301 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6302 language=
6303 target_libs=
6304 lang_dirs=
64ce424c 6305 subdir_requires=
9b134994
PB
6306 boot_language=no
6307 build_by_default=yes
bf41f30d
NC
6308 # set srcdir during sourcing. See above about save & restore
6309 saved_srcdir=${srcdir}
6310 srcdir=${srcdir}/gcc . ${lang_frag}
6311 srcdir=${saved_srcdir}
9b134994
PB
6312 if test x${language} = x; then
6313 echo "${lang_frag} doesn't set \$language." 1>&2
6314 exit 1
6315 fi
6316
ffdd6afc 6317 if test "$language" = "c++"; then
7ec59b9e 6318 boot_language=yes
e8a5fa9c
RW
6319 fi
6320
8e71395b 6321 add_this_lang=no
bf41f30d
NC
6322 # C is always enabled, so no need to add it again
6323 if test "$language" != "c"; then
6324 case ,${enable_languages}, in
6325 *,${language},*)
6326 # Language was explicitly selected; include it
7ec59b9e 6327 add_this_lang=yes
bf41f30d
NC
6328 ;;
6329 *,all,*)
6330 # All languages are enabled
6331 add_this_lang=all
6332 ;;
6333 *,default,*)
6334 # 'default' was selected, select it if it is a default language
8e71395b 6335 add_this_lang=${build_by_default}
bf41f30d
NC
6336 ;;
6337 esac
6338 fi
4b1cb4fe 6339
64ce424c 6340 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6341 for i in $subdir_requires; do
3d3adb43 6342 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6343 case ${add_this_lang} in
6344 yes)
64ce424c 6345 # Specifically requested language; tell them.
d0ac1c44 6346 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6347 ;;
bf41f30d
NC
6348 all)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6350$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6351 add_this_lang=unsupported
6352 ;;
64ce424c
PB
6353 *)
6354 # Silently disable.
9b134994 6355 add_this_lang=unsupported
64ce424c
PB
6356 ;;
6357 esac
6358 done
6359
9b134994 6360 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6361 case ${add_this_lang}:${language}:${have_gnat} in
6362 yes:ada:no)
9b134994 6363 # Specifically requested language; tell them.
d0ac1c44 6364 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6365 ;;
bf41f30d
NC
6366 all:ada:no)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6368$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6369 add_this_lang=unsupported
6370 ;;
9b134994
PB
6371 *:ada:no)
6372 # Silently disable.
6373 add_this_lang=unsupported
6374 ;;
6375 esac
6376
bf41f30d
NC
6377 # Disable jit if -enable-host-shared not specified
6378 case ${add_this_lang}:${language}:${host_shared} in
6379 yes:jit:no)
6380 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6381 as_fn_error $? "
bf41f30d
NC
6382Enabling language \"jit\" requires --enable-host-shared.
6383
6384--enable-host-shared typically slows the rest of the compiler down by
6385a few %, so you must explicitly enable it.
6386
6387If you want to build both the jit and the regular compiler, it is often
6388best to do this via two separate configure/builds, in separate
6389directories, to avoid imposing the performance cost of
6390--enable-host-shared on the regular compiler." "$LINENO" 5
6391 ;;
6392 all:jit:no)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6394$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6395 add_this_lang=unsupported
6396 ;;
6397 *:jit:no)
6398 # Silently disable.
6399 add_this_lang=unsupported
6400 ;;
6401 esac
6402
6403 # Disable a language that is unsupported by the target.
6404 case "${add_this_lang}: $unsupported_languages " in
6405 no:*) ;;
6406 unsupported:*) ;;
6407 *:*" $language "*)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6409$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6410 add_this_lang=unsupported
59f7ec45
HPN
6411 ;;
6412 esac
6413
4b1cb4fe 6414 case $add_this_lang in
9b134994 6415 unsupported)
9e07f89d 6416 # Remove language-dependent dirs.
9e1a94f4
ILT
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6419 ;;
9b134994
PB
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6424 potential_languages="${potential_languages}${language},"
6425 ;;
bf41f30d 6426 all|yes)
9b134994
PB
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
1d39f329 6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6430 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6433 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
e8a5fa9c
RW
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6440 ;;
6441 esac
6442 ;;
9e07f89d
NN
6443 esac
6444 ;;
6445 esac
6446 done
6447
9e1a94f4
ILT
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
81ecdfbb
RW
6459 # Check whether --enable-stage1-languages was given.
6460if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
81ecdfbb
RW
6489fi
6490
9b134994
PB
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
9e07f89d 6498 if test "x$missing_languages" != x; then
d0ac1c44 6499 as_fn_error $? "
27258dd4 6500The following requested languages could not be built: ${missing_languages}
81ecdfbb 6501Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6502 fi
9e07f89d
NN
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
9b134994 6505 enable_languages="$new_enable_languages"
9e07f89d 6506 fi
9b134994 6507
c6b750e1 6508
81ec575a 6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6510fi
6511
a6df5a19
PB
6512# Handle --disable-<component> generically.
6513for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519done
6520
4f0ef2d8 6521# Check for Boehm's garbage collector
81ecdfbb
RW
6522# Check whether --enable-objc-gc was given.
6523if test "${enable_objc_gc+set}" = set; then :
05a13254 6524 enableval=$enable_objc_gc;
81ecdfbb
RW
6525fi
6526
4f0ef2d8 6527
05a13254
NC
6528# Check whether --with-target-bdw-gc was given.
6529if test "${with_target_bdw_gc+set}" = set; then :
6530 withval=$with_target_bdw_gc;
6531fi
6532
6533
6534# Check whether --with-target-bdw-gc-include was given.
6535if test "${with_target_bdw_gc_include+set}" = set; then :
6536 withval=$with_target_bdw_gc_include;
6537fi
6538
6539
6540# Check whether --with-target-bdw-gc-lib was given.
6541if test "${with_target_bdw_gc_lib+set}" = set; then :
6542 withval=$with_target_bdw_gc_lib;
6543fi
6544
6545
6546case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6548$as_echo_n "checking for bdw garbage collector... " >&6; }
6549 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6551$as_echo "using bdw-gc in default locations" >&6; }
6552 else
6553 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6554 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6555 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6556 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6559$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6560 fi
05a13254 6561 fi
4f0ef2d8
CD
6562esac
6563
bf41f30d 6564# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6565case ,${enable_languages}, in
1b6c0831 6566 *,c++,*)
bf41f30d 6567 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6568 case "${noconfigdirs}" in
6569 *target-libstdc++-v3*)
bf41f30d 6570 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6571 ;;
6572 *) ;;
6573 esac
6574 ;;
7ec59b9e 6575 *)
bf41f30d 6576 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6577 ;;
6578esac
6579
caeba88f
AL
6580# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6581# $build_configdirs and $target_configdirs.
9e07f89d
NN
6582# If we have the source for $noconfigdirs entries, add them to $notsupp.
6583
6584notsupp=""
6585for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6586 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6587 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6589 if test -r $srcdir/$dirname/configure ; then
6590 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6591 true
6592 else
6593 notsupp="$notsupp $dir"
6594 fi
6595 fi
6596 fi
caeba88f
AL
6597 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6599 if test -r $srcdir/$dirname/configure ; then
6600 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6601 true
6602 else
6603 notsupp="$notsupp $dir"
6604 fi
6605 fi
6606 fi
9e07f89d
NN
6607 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6609 if test -r $srcdir/$dirname/configure ; then
6610 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6611 true
6612 else
6613 notsupp="$notsupp $dir"
6614 fi
6615 fi
6616 fi
6617done
6618
9e07f89d
NN
6619# Quietly strip out all directories which aren't configurable in this tree.
6620# This relies on all configurable subdirectories being autoconfiscated, which
6621# is now the case.
6a9cf61e
PB
6622build_configdirs_all="$build_configdirs"
6623build_configdirs=
6624for i in ${build_configdirs_all} ; do
c6b750e1 6625 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6626 if test -f ${srcdir}/$j/configure ; then
6627 build_configdirs="${build_configdirs} $i"
6628 fi
6629done
6630
9e07f89d
NN
6631configdirs_all="$configdirs"
6632configdirs=
6633for i in ${configdirs_all} ; do
6634 if test -f ${srcdir}/$i/configure ; then
6635 configdirs="${configdirs} $i"
6636 fi
6637done
6a9cf61e 6638
9e07f89d
NN
6639target_configdirs_all="$target_configdirs"
6640target_configdirs=
6641for i in ${target_configdirs_all} ; do
c6b750e1 6642 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6643 if test -f ${srcdir}/$j/configure ; then
6644 target_configdirs="${target_configdirs} $i"
6645 fi
6646done
6647
1b6c0831
L
6648# libiberty-linker-plugin is special: it doesn't have its own source directory,
6649# so we have to add it after the preceding checks.
6650if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6651then
6652 case " $configdirs " in
6653 *" libiberty "*)
6654 # If we can build libiberty, we can also build libiberty-linker-plugin.
6655 configdirs="$configdirs libiberty-linker-plugin"
6656 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6657 --with-libiberty=../libiberty-linker-plugin";;
6658 *)
d0ac1c44 6659 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6660 esac
6661fi
6662
6663# Sometimes we have special requirements for the host libiberty.
6664extra_host_libiberty_configure_flags=
e81d5d05 6665extra_host_zlib_configure_flags=
1b6c0831
L
6666case " $configdirs " in
6667 *" lto-plugin "* | *" libcc1 "*)
6668 # When these are to be built as shared libraries, the same applies to
6669 # libiberty.
6670 extra_host_libiberty_configure_flags=--enable-shared
6671 ;;
e81d5d05
L
6672 *" bfd "*)
6673 # When bfd is to be built as a shared library, the same applies to
6674 # zlib.
6675 if test "$enable_shared" = "yes"; then
6676 extra_host_zlib_configure_flags=--enable-host-shared
6677 fi
6678 ;;
1b6c0831
L
6679esac
6680
6681
e81d5d05 6682
9e07f89d
NN
6683# Produce a warning message for the subdirs we can't configure.
6684# This isn't especially interesting in the Cygnus tree, but in the individual
6685# FSF releases, it's important to let people know when their machine isn't
6686# supported by the one or two programs in a package.
6687
6688if test -n "${notsupp}" && test -z "${norecursion}" ; then
6689 # If $appdirs is non-empty, at least one of those directories must still
6690 # be configured, or we error out. (E.g., if the gas release supports a
6691 # specified target in some subdirs but not the gas subdir, we shouldn't
6692 # pretend that all is well.)
6693 if test -n "$appdirs" ; then
6694 for dir in $appdirs ; do
6695 if test -r $dir/Makefile.in ; then
6696 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6697 appdirs=""
6698 break
6699 fi
6a9cf61e 6700 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6701 appdirs=""
6702 break
6703 fi
6704 fi
6705 done
6706 if test -n "$appdirs" ; then
6707 echo "*** This configuration is not supported by this package." 1>&2
6708 exit 1
6709 fi
6710 fi
6711 # Okay, some application will build, or we don't care to check. Still
6712 # notify of subdirs not getting built.
6713 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6714 echo " ${notsupp}" 1>&2
6715 echo " (Any other directories should still work fine.)" 1>&2
6716fi
6717
6718case "$host" in
6719 *msdosdjgpp*)
6720 enable_gdbtk=no ;;
6721esac
6722
18f6b6ee
PB
6723# To find our prefix, in gcc_cv_tool_prefix.
6724
6725# The user is always right.
6726if test "${PATH_SEPARATOR+set}" != set; then
6727 echo "#! /bin/sh" >conf$$.sh
6728 echo "exit 0" >>conf$$.sh
6729 chmod +x conf$$.sh
6730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6731 PATH_SEPARATOR=';'
6732 else
6733 PATH_SEPARATOR=:
6734 fi
6735 rm -f conf$$.sh
6736fi
6737
6738
bf41f30d
NC
6739 get_gcc_base_ver="cat"
6740
6741# Check whether --with-gcc-major-version-only was given.
6742if test "${with_gcc_major_version_only+set}" = set; then :
6743 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6744 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6745 fi
6746
6747fi
6748
6749
6750
6751
6752
18f6b6ee
PB
6753
6754if test "x$exec_prefix" = xNONE; then
6755 if test "x$prefix" = xNONE; then
6756 gcc_cv_tool_prefix=$ac_default_prefix
6757 else
6758 gcc_cv_tool_prefix=$prefix
6759 fi
6760else
6761 gcc_cv_tool_prefix=$exec_prefix
6762fi
6763
6764# If there is no compiler in the tree, use the PATH only. In any
6765# case, if there is no compiler in the tree nobody should use
6766# AS_FOR_TARGET and LD_FOR_TARGET.
6767if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6768 if test x$with_gcc_major_version_only = xyes ; then
6769 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6770 else
6771 gcc_version=`cat $srcdir/gcc/BASE-VER`
6772 fi
18f6b6ee
PB
6773 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6774 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6775 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6776 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6777 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6778 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6779else
6780 gcc_cv_tool_dirs=
6781fi
6782
6783if test x$build = x$target && test -n "$md_exec_prefix"; then
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6785fi
6786
6787
6788
9e07f89d
NN
6789copy_dirs=
6790
c6b750e1 6791
81ecdfbb
RW
6792# Check whether --with-build-sysroot was given.
6793if test "${with_build_sysroot+set}" = set; then :
6794 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6795 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6796 fi
6797else
6798 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6799fi
a19b6204
MM
6800
6801
8a6ee3ab 6802
81ecdfbb
RW
6803
6804# Check whether --with-debug-prefix-map was given.
6805if test "${with_debug_prefix_map+set}" = set; then :
6806 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6807 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6808 for debug_map in $withval; do
6809 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6810 done
6811 fi
6812else
6813 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6814fi
6815
8a6ee3ab
JM
6816
6817
7f6ef0c0
PB
6818# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6819# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6820# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6821# We want to ensure that TARGET libraries (which we know are built with
6822# gcc) are built with "-O2 -g", so include those options when setting
6823# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6824if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6825 if test "x${is_cross_compiler}" = xyes; then
6826 CFLAGS_FOR_TARGET="-g -O2"
6827 else
6828 CFLAGS_FOR_TARGET=$CFLAGS
6829 case " $CFLAGS " in
6830 *" -O2 "*) ;;
6831 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6832 esac
6833 case " $CFLAGS " in
6834 *" -g "* | *" -g3 "*) ;;
6835 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6836 esac
6837 fi
7f6ef0c0
PB
6838fi
6839
6840
6841if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6842 if test "x${is_cross_compiler}" = xyes; then
6843 CXXFLAGS_FOR_TARGET="-g -O2"
6844 else
6845 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6846 case " $CXXFLAGS " in
6847 *" -O2 "*) ;;
6848 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6849 esac
6850 case " $CXXFLAGS " in
6851 *" -g "* | *" -g3 "*) ;;
6852 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6853 esac
6854 fi
7f6ef0c0
PB
6855fi
6856
6857
91c1f14c
DK
6858
6859
9e07f89d
NN
6860# Handle --with-headers=XXX. If the value is not "yes", the contents of
6861# the named directory are copied to $(tooldir)/sys-include.
6862if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6863 if test x${is_cross_compiler} = xno ; then
6864 echo 1>&2 '***' --with-headers is only supported when cross compiling
6865 exit 1
6866 fi
6867 if test x"${with_headers}" != xyes ; then
18f6b6ee 6868 x=${gcc_cv_tool_prefix}
c6b750e1 6869 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6870 fi
6871fi
6872
6873# Handle --with-libs=XXX. If the value is not "yes", the contents of
6874# the name directories are copied to $(tooldir)/lib. Multiple directories
6875# are permitted.
6876if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6877 if test x${is_cross_compiler} = xno ; then
6878 echo 1>&2 '***' --with-libs is only supported when cross compiling
6879 exit 1
6880 fi
6881 if test x"${with_libs}" != xyes ; then
6882 # Copy the libraries in reverse order, so that files in the first named
6883 # library override files in subsequent libraries.
18f6b6ee 6884 x=${gcc_cv_tool_prefix}
9e07f89d 6885 for l in ${with_libs}; do
c6b750e1 6886 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6887 done
6888 fi
6889fi
6890
700d40ca 6891# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6892#
6893# This is done by determining whether or not the appropriate directory
6894# is available, and by checking whether or not specific configurations
6895# have requested that this magic not happen.
c6b750e1
DJ
6896#
6897# The command line options always override the explicit settings in
136bb21f 6898# configure.ac, and the settings in configure.ac override this magic.
2429c060 6899#
c6b750e1 6900# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6901# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6902# --without-gnu-ld options for the configure script. Similarly, if
6903# the default is to use the included zlib and you don't want to do that,
6904# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6905
6906if test x${use_gnu_as} = x &&
6907 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6908 with_gnu_as=yes
6909 extra_host_args="$extra_host_args --with-gnu-as"
6910fi
6911
6912if test x${use_gnu_ld} = x &&
93f9b408 6913 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6914 with_gnu_ld=yes
6915 extra_host_args="$extra_host_args --with-gnu-ld"
6916fi
6917
700d40ca
ILT
6918if test x${use_included_zlib} = x &&
6919 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6920 :
6921else
6922 with_system_zlib=yes
6923 extra_host_args="$extra_host_args --with-system-zlib"
6924fi
6925
2429c060
PB
6926# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6927# can detect this case.
6928
6929if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6930 with_newlib=yes
6931 extra_host_args="$extra_host_args --with-newlib"
6932fi
6933
9e07f89d
NN
6934# Handle ${copy_dirs}
6935set fnord ${copy_dirs}
6936shift
6937while test $# != 0 ; do
6938 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6939 :
6940 else
6941 echo Copying $1 to $2
6942
6943 # Use the install script to create the directory and all required
6944 # parent directories.
6945 if test -d $2 ; then
6946 :
6947 else
6948 echo >config.temp
6949 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6950 fi
6951
6952 # Copy the directory, assuming we have tar.
6953 # FIXME: Should we use B in the second tar? Not all systems support it.
6954 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6955
6956 # It is the responsibility of the user to correctly adjust all
6957 # symlinks. If somebody can figure out how to handle them correctly
6958 # here, feel free to add the code.
6959
6960 echo $1 > $2/COPIED
6961 fi
6962 shift; shift
6963done
6964
2429c060
PB
6965# Determine a target-dependent exec_prefix that the installed
6966# gcc will search in. Keep this list sorted by triplet, with
6967# the *-*-osname triplets last.
6968md_exec_prefix=
6969case "${target}" in
521ec477 6970 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6971 md_exec_prefix=/dev/env/DJDIR/bin
6972 ;;
2429c060 6973 *-*-hpux* | \
2429c060 6974 *-*-nto-qnx* | \
1f111696 6975 *-*-solaris2*)
2429c060
PB
6976 md_exec_prefix=/usr/ccs/bin
6977 ;;
6978esac
6979
a0da8069
NN
6980extra_arflags_for_target=
6981extra_nmflags_for_target=
6982extra_ranlibflags_for_target=
6983target_makefile_frag=/dev/null
6984case "${target}" in
77d7106f
AM
6985 spu-*-*)
6986 target_makefile_frag="config/mt-spu"
6987 ;;
a9d58c06 6988 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6989 target_makefile_frag="config/mt-sde"
6990 ;;
f3b1e08e
RS
6991 mipsisa*-*-elfoabi*)
6992 target_makefile_frag="config/mt-mips-elfoabi"
6993 ;;
e7c8859c
RS
6994 mips*-*-*linux* | mips*-*-gnu*)
6995 target_makefile_frag="config/mt-mips-gnu"
6996 ;;
d9e042ac
SL
6997 nios2-*-elf*)
6998 target_makefile_frag="config/mt-nios2-elf"
6999 ;;
bf41f30d
NC
7000 *-*-linux-android*)
7001 target_makefile_frag="config/mt-android"
7002 ;;
29383458 7003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7004 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7005 ;;
7006 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7007 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7008 # commands to handle both 32-bit and 64-bit objects. These flags are
7009 # harmless if we're using GNU nm or ar.
7010 extra_arflags_for_target=" -X32_64"
7011 extra_nmflags_for_target=" -B -X32_64"
7012 ;;
a0da8069
NN
7013esac
7014
7015alphaieee_frag=/dev/null
7016case $target in
7017 alpha*-*-*)
7018 # This just makes sure to use the -mieee option to build target libs.
7019 # This should probably be set individually by each library.
7020 alphaieee_frag="config/mt-alphaieee"
7021 ;;
7022esac
7023
7024# If --enable-target-optspace always use -Os instead of -O2 to build
7025# the target libraries, similarly if it is not specified, use -Os
7026# on selected platforms.
7027ospace_frag=/dev/null
7028case "${enable_target_optspace}:${target}" in
7029 yes:*)
7030 ospace_frag="config/mt-ospace"
7031 ;;
7032 :d30v-*)
7033 ospace_frag="config/mt-d30v"
7034 ;;
16beab3d 7035 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7036 ospace_frag="config/mt-ospace"
7037 ;;
7038 no:* | :*)
7039 ;;
7040 *)
7041 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7042 ;;
7043esac
7044
a0da8069
NN
7045# Some systems (e.g., one of the i386-aix systems the gas testers are
7046# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7047tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7048build_tooldir=${tooldir}
7049
a0da8069
NN
7050# Create a .gdbinit file which runs the one in srcdir
7051# and tells GDB to look there for source files.
7052
7053if test -r ${srcdir}/.gdbinit ; then
7054 case ${srcdir} in
7055 .) ;;
7056 *) cat > ./.gdbinit <<EOF
7057# ${NO_EDIT}
7058dir ${srcdir}
7059dir .
7060source ${srcdir}/.gdbinit
7061EOF
7062 ;;
7063 esac
7064fi
7065
a0da8069
NN
7066# Make sure that the compiler is able to generate an executable. If it
7067# can't, we are probably in trouble. We don't care whether we can run the
7068# executable--we might be using a cross compiler--we only care whether it
7069# can be created. At this point the main configure script has set CC.
7070we_are_ok=no
7071echo "int main () { return 0; }" > conftest.c
7072${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7073if test $? = 0 ; then
7074 if test -s conftest || test -s conftest.exe ; then
7075 we_are_ok=yes
7076 fi
c6b750e1 7077fi
a0da8069
NN
7078case $we_are_ok in
7079 no)
7080 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7081 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7082 rm -f conftest*
7083 exit 1
7084 ;;
7085esac
7086rm -f conftest*
7087
3bbd2f8f 7088# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7089case "${host}" in
7090 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7091 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7092 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7093 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7094esac
7095
3bbd2f8f 7096# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7097# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7098# built executables to PATH.
3bbd2f8f
AL
7099if test "$RPATH_ENVVAR" = PATH; then
7100 GCC_SHLIB_SUBDIR=/shlib
7101else
7102 GCC_SHLIB_SUBDIR=
7103fi
7104
730af8ee 7105# Adjust the toplevel makefile according to whether bootstrap was selected.
7106case $enable_bootstrap in
7107 yes)
7108 bootstrap_suffix=bootstrap
7109 BUILD_CONFIG=bootstrap-debug
7110 ;;
7111 no)
7112 bootstrap_suffix=no-bootstrap
7113 BUILD_CONFIG=
7114 ;;
7115esac
7116
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7118$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7119
7120
7121# Check whether --with-build-config was given.
7122if test "${with_build_config+set}" = set; then :
7123 withval=$with_build_config; case $with_build_config in
7124 yes) with_build_config= ;;
7125 no) with_build_config= BUILD_CONFIG= ;;
7126 esac
7127fi
7128
7129
7130if test "x${with_build_config}" != x; then
7131 BUILD_CONFIG=$with_build_config
7132else
7133 case $BUILD_CONFIG in
7134 bootstrap-debug)
7135 if echo "int f (void) { return 0; }" > conftest.c &&
7136 ${CC} -c conftest.c &&
7137 mv conftest.o conftest.o.g0 &&
7138 ${CC} -c -g conftest.c &&
7139 mv conftest.o conftest.o.g &&
7140 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7141 :
7142 else
7143 BUILD_CONFIG=
7144 fi
7145 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7146 ;;
7147 esac
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7150$as_echo "$BUILD_CONFIG" >&6; }
7151
7152
7153# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7155$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7156# Check whether --enable-vtable-verify was given.
7157if test "${enable_vtable_verify+set}" = set; then :
7158 enableval=$enable_vtable_verify; case "$enableval" in
7159 yes) enable_vtable_verify=yes ;;
7160 no) enable_vtable_verify=no ;;
7161 *) enable_vtable_verify=no;;
7162 esac
7163else
7164 enable_vtable_verify=no
7165fi
7166
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7168$as_echo "$enable_vtable_verify" >&6; }
7169
a0da8069
NN
7170# Record target_configdirs and the configure arguments for target and
7171# build configuration in Makefile.
7172target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7173build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7174bootstrap_fixincludes=no
a0da8069 7175
2aa2364a
JR
7176# If we are building libgomp, bootstrap it.
7177if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7178 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7179fi
7180
730af8ee 7181# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7182# or bootstrap-ubsan, bootstrap it.
7183if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7184 case "$BUILD_CONFIG" in
7185 *bootstrap-asan* | *bootstrap-ubsan* )
7186 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7187 bootstrap_fixincludes=yes
730af8ee 7188 ;;
7189 esac
5eb08693
L
7190fi
7191
730af8ee 7192# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7193if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7194 test "$enable_vtable_verify" != no; then
95e43135
JBG
7195 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7196fi
7197
a0da8069
NN
7198# Determine whether gdb needs tk/tcl or not.
7199# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7200# and in that case we want gdb to be built without tk. Ugh!
7201# In fact I believe gdb is the *only* package directly dependent on tk,
7202# so we should be able to put the 'maybe's in unconditionally and
7203# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7204# 100% sure that that's safe though.
c180f501 7205
675c6968 7206gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7207case "$enable_gdbtk" in
7208 no)
7209 GDB_TK="" ;;
c180f501
AC
7210 yes)
7211 GDB_TK="${gdb_tk}" ;;
a0da8069 7212 *)
c180f501
AC
7213 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7214 # distro. Eventually someone will fix this and move Insight, nee
7215 # gdbtk to a separate directory.
7216 if test -d ${srcdir}/gdb/gdbtk ; then
7217 GDB_TK="${gdb_tk}"
7218 else
7219 GDB_TK=""
7220 fi
7221 ;;
a0da8069 7222esac
907be67c
DJ
7223CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7224INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7225
73cc7272
TT
7226# gdb depends on gnulib, but as nothing else does, only include it if
7227# gdb is built.
7228if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7229 # The Makefile provides the ordering, so it's enough here to add
7230 # gnulib to the list.
7231 configdirs="${configdirs} gnulib"
7232fi
7233
6bd3dfaa 7234# Strip out unwanted targets.
dd12c3a8
NN
7235
7236# While at that, we remove Makefiles if we were started for recursive
7237# configuration, so that the top-level Makefile reconfigures them,
7238# like we used to do when configure itself was recursive.
dd12c3a8 7239
06a51eac
RW
7240# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7241# but now we're fixing up the Makefile ourselves with the additional
7242# commands passed to AC_CONFIG_FILES. Use separate variables
7243# extrasub-{build,host,target} not because there is any reason to split
7244# the substitutions up that way, but only to remain below the limit of
7245# 99 commands in a script, for HP-UX sed.
4119873a
AO
7246
7247# Do not nest @if/@endif or @unless/@endunless pairs, because
7248# configure will not warn you at all.
dd12c3a8 7249
16b1ad29
RW
7250case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
d0ac1c44 7253 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7254 ;;
7255esac
7256
06a51eac 7257extrasub_build=
6a9cf61e 7258for module in ${build_configdirs} ; do
498d4a71
CF
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7263 fi
06a51eac 7264 extrasub_build="$extrasub_build
498d4a71
CF
7265/^@if build-$module\$/d
7266/^@endif build-$module\$/d
4119873a 7267/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7268/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7269/^@endif build-$module-$bootstrap_suffix\$/d
7270/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7271done
06a51eac 7272extrasub_host=
498d4a71 7273for module in ${configdirs} ; do
80911fe1 7274 if test -z "${no_recursion}"; then
8cf39b1b 7275 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7276 if test -f ${file}; then
7277 echo 1>&2 "*** removing ${file} to force reconfigure"
7278 rm -f ${file}
7279 fi
7280 done
498d4a71 7281 fi
201f096f 7282 case ${module},${bootstrap_fixincludes} in
7283 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7284 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7285 esac
06a51eac 7286 extrasub_host="$extrasub_host
498d4a71
CF
7287/^@if $module\$/d
7288/^@endif $module\$/d
4119873a 7289/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7290/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7291/^@endif $module-$host_bootstrap_suffix\$/d
7292/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7293done
06a51eac 7294extrasub_target=
498d4a71
CF
7295for module in ${target_configdirs} ; do
7296 if test -z "${no_recursion}" \
7297 && test -f ${target_subdir}/${module}/Makefile; then
7298 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7299 rm -f ${target_subdir}/${module}/Makefile
7300 fi
e8a5fa9c
RW
7301
7302 # We only bootstrap target libraries listed in bootstrap_target_libs.
7303 case $bootstrap_target_libs in
7304 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7305 *) target_bootstrap_suffix=no-bootstrap ;;
7306 esac
7307
06a51eac 7308 extrasub_target="$extrasub_target
498d4a71
CF
7309/^@if target-$module\$/d
7310/^@endif target-$module\$/d
4119873a 7311/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7312/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7313/^@endif target-$module-$target_bootstrap_suffix\$/d
7314/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7315done
7316
06a51eac
RW
7317# Do the final fixup along with target modules.
7318extrasub_target="$extrasub_target
4119873a
AO
7319/^@if /,/^@endif /d
7320/^@unless /d
7321/^@endunless /d"
a0da8069
NN
7322
7323# Create the serialization dependencies. This uses a temporary file.
7324
81ecdfbb
RW
7325# Check whether --enable-serial-configure was given.
7326if test "${enable_serial_configure+set}" = set; then :
7327 enableval=$enable_serial_configure;
7328fi
e6bfb94a
AO
7329
7330
1047cb91
DD
7331case ${enable_serial_configure} in
7332 yes)
7333 enable_serial_build_configure=yes
7334 enable_serial_host_configure=yes
7335 enable_serial_target_configure=yes
7336 ;;
7337esac
7338
a0da8069
NN
7339# These force 'configure's to be done one at a time, to avoid problems
7340# with contention over a shared config.cache.
7341rm -f serdep.tmp
e6bfb94a 7342echo '# serdep.tmp' > serdep.tmp
a0da8069 7343olditem=
1047cb91 7344test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7345for item in ${build_configdirs} ; do
7346 case ${olditem} in
7347 "") ;;
e6bfb94a 7348 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7349 esac
7350 olditem=${item}
7351done
7352olditem=
1047cb91 7353test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7354for item in ${configdirs} ; do
7355 case ${olditem} in
7356 "") ;;
e6bfb94a 7357 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7358 esac
7359 olditem=${item}
7360done
7361olditem=
1047cb91 7362test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7363for item in ${target_configdirs} ; do
7364 case ${olditem} in
7365 "") ;;
e6bfb94a 7366 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7367 esac
7368 olditem=${item}
7369done
7370serialization_dependencies=serdep.tmp
7371
7372
e6bfb94a 7373# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7374# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7375# might not want to pass down to subconfigures. The exception being
7376# --cache-file=/dev/null, which is used to turn off the use of cache
7377# files altogether, and which should be passed on to subconfigures.
7378# Also strip program-prefix, program-suffix, and program-transform-name,
7379# so that we can pass down a consistent program-transform-name.
c6b750e1 7380baseargs=
65b4571a 7381tbaseargs=
c6b750e1
DJ
7382keep_next=no
7383skip_next=no
7384eval "set -- $ac_configure_args"
18f6b6ee
PB
7385for ac_arg
7386do
c6b750e1
DJ
7387 if test X"$skip_next" = X"yes"; then
7388 skip_next=no
7389 continue
7390 fi
7391 if test X"$keep_next" = X"yes"; then
7392 case $ac_arg in
7393 *\'*)
7394 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7395 esac
7396 baseargs="$baseargs '$ac_arg'"
65b4571a 7397 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7398 keep_next=no
7399 continue
7400 fi
7401
7402 # Handle separated arguments. Based on the logic generated by
7403 # autoconf 2.59.
7404 case $ac_arg in
7405 *=* | --config-cache | -C | -disable-* | --disable-* \
7406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7408 | -with-* | --with-* | -without-* | --without-* | --x)
7409 separate_arg=no
7410 ;;
7411 -*)
7412 separate_arg=yes
7413 ;;
7414 *)
7415 separate_arg=no
7416 ;;
7417 esac
7418
65b4571a
AO
7419 skip_targ=no
7420 case $ac_arg in
7421
7422 --with-* | --without-*)
7423 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7424
7425 case $libopt in
7426 *[-_]include)
7427 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7428 ;;
7429 *[-_]lib)
7430 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 ;;
7432 *)
7433 lib=$libopt
7434 ;;
7435 esac
7436
7437
7438 case $lib in
1b6c0831 7439 mpc | mpfr | gmp | isl)
65b4571a
AO
7440 # If we're processing --with-$lib, --with-$lib-include or
7441 # --with-$lib-lib, for one of the libs above, and target is
7442 # different from host, don't pass the current argument to any
7443 # target library's configure.
7444 if test x$is_cross_compiler = xyes; then
7445 skip_targ=yes
7446 fi
7447 ;;
7448 esac
7449 ;;
7450 esac
7451
c6b750e1 7452 case "$ac_arg" in
30167e0a
NC
7453 --cache-file=/dev/null | \
7454 -cache-file=/dev/null )
7455 # Handled here to avoid the test to skip args below.
7456 baseargs="$baseargs '$ac_arg'"
65b4571a 7457 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7458 # Assert: $separate_arg should always be no.
7459 keep_next=$separate_arg
7460 ;;
c6b750e1
DJ
7461 --no*)
7462 continue
7463 ;;
7464 --c* | \
7465 --sr* | \
7466 --ho* | \
7467 --bu* | \
7468 --t* | \
7469 --program-* | \
7470 -cache_file* | \
7471 -srcdir* | \
7472 -host* | \
7473 -build* | \
7474 -target* | \
7475 -program-prefix* | \
7476 -program-suffix* | \
7477 -program-transform-name* )
7478 skip_next=$separate_arg
7479 continue
7480 ;;
7481 -*)
7482 # An option. Add it.
7483 case $ac_arg in
7484 *\'*)
7485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7486 esac
7487 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7488 if test X"$skip_targ" = Xno; then
7489 tbaseargs="$tbaseargs '$ac_arg'"
7490 fi
c6b750e1
DJ
7491 keep_next=$separate_arg
7492 ;;
7493 *)
7494 # Either a variable assignment, or a nonopt (triplet). Don't
7495 # pass it down; let the Makefile handle this.
7496 continue
7497 ;;
7498 esac
7499done
7500# Remove the initial space we just introduced and, as these will be
7501# expanded by make, quote '$'.
7502baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7503
f27d4f92
DJ
7504# Add in --program-transform-name, after --program-prefix and
7505# --program-suffix have been applied to it. Autoconf has already
7506# doubled dollar signs and backslashes in program_transform_name; we want
7507# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7508# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7509# Also, because we want to override the logic in subdir configure scripts to
7510# choose program_transform_name, replace any s,x,x, with s,y,y,.
7511sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7512${program_transform_name}
7513EOF_SED
7514gcc_transform_name=`cat conftestsed.out`
7515rm -f conftestsed.out
7516baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7517tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7518if test "$silent" = yes; then
7519 baseargs="$baseargs --silent"
65b4571a 7520 tbaseargs="$tbaseargs --silent"
2444379b 7521fi
34a0f3cf 7522baseargs="$baseargs --disable-option-checking"
65b4571a 7523tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7524
4074d5f2
RW
7525# Record and document user additions to sub configure arguments.
7526
7527
7528
7529
a0da8069
NN
7530# For the build-side libraries, we just need to pretend we're native,
7531# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7532# desired. We can't even use the same cache file for all build-side
7533# libraries, as they're compiled differently; some with C, some with
7534# C++ or with different feature-enabling options.
7535build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7536
7537# For host modules, accept cache file option, or specification as blank.
7538case "${cache_file}" in
7539"") # empty
7540 cache_file_option="" ;;
7541/* | [A-Za-z]:[\\/]* ) # absolute path
7542 cache_file_option="--cache-file=${cache_file}" ;;
7543*) # relative path
7544 cache_file_option="--cache-file=../${cache_file}" ;;
7545esac
7546
82252c06
NN
7547# Host dirs don't like to share a cache file either, horribly enough.
7548# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7549host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7550
65b4571a 7551target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7552
7553# Passing a --with-cross-host argument lets the target libraries know
7554# whether they are being built with a cross-compiler or being built
7555# native. However, it would be better to use other mechanisms to make the
7556# sorts of decisions they want to make on this basis. Please consider
7557# this option to be deprecated. FIXME.
7558if test x${is_cross_compiler} = xyes ; then
c6b750e1 7559 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7560fi
7561
afc0578d 7562# Special user-friendly check for native x86_64-linux build, if
7563# multilib is not explicitly enabled.
7564case "$target:$have_compiler:$host:$target:$enable_multilib" in
7565 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7566 # Make sure we have a development environment that handles 32-bit
afc0578d 7567 dev64=no
7568 echo "int main () { return 0; }" > conftest.c
7569 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7570 if test $? = 0 ; then
7571 if test -s conftest || test -s conftest.exe ; then
7572 dev64=yes
7573 fi
7574 fi
7575 rm -f conftest*
7576 if test x${dev64} != xyes ; then
d0ac1c44 7577 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 7578 fi
7579 ;;
7580esac
7581
938d2b74
RW
7582# Default to --enable-multilib.
7583if test x${enable_multilib} = x ; then
a0da8069 7584 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7585fi
a0da8069
NN
7586
7587# Pass --with-newlib if appropriate. Note that target_configdirs has
7588# changed from the earlier setting of with_newlib.
7589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7590 target_configargs="--with-newlib ${target_configargs}"
7591fi
7592
95036d20
NN
7593# Different target subdirs use different values of certain variables
7594# (notably CXX). Worse, multilibs use *lots* of different values.
7595# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7596# it doesn't automatically accept command-line overrides of them.
7597# This means it's not safe for target subdirs to share a cache file,
7598# which is disgusting, but there you have it. Hopefully this can be
7599# fixed in future. It's still worthwhile to use a cache file for each
7600# directory. I think.
7601
ae380b45
MS
7602# Pass the appropriate --build, --host, --target and --cache-file arguments.
7603# We need to pass --target, as newer autoconf's requires consistency
7604# for target_alias and gcc doesn't manage it consistently.
4b900473 7605target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7606
a0da8069
NN
7607FLAGS_FOR_TARGET=
7608case " $target_configdirs " in
7609 *" newlib "*)
7610 case " $target_configargs " in
7611 *" --with-newlib "*)
7612 case "$target" in
1f53ca9a 7613 *-cygwin*)
6d94c122 7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7615 ;;
a0da8069
NN
7616 esac
7617
7618 # If we're not building GCC, don't discard standard headers.
7619 if test -d ${srcdir}/gcc; then
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7621
7622 if test "${build}" != "${host}"; then
7623 # On Canadian crosses, CC_FOR_TARGET will have already been set
7624 # by `configure', so we won't have an opportunity to add -Bgcc/
7625 # to it. This is right: we don't want to search that directory
7626 # for binaries, but we want the header files in there, so add
7627 # them explicitly.
e552509b 7628 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7629
7630 # Someone might think of using the pre-installed headers on
7631 # Canadian crosses, in case the installed compiler is not fully
7632 # compatible with the compiler being built. In this case, it
7633 # would be better to flag an error than risking having
7634 # incompatible object files being constructed. We can't
7635 # guarantee that an error will be flagged, but let's hope the
7636 # compiler will do it, when presented with incompatible header
7637 # files.
7638 fi
7639 fi
7640
7641 case "${target}-${is_cross_compiler}" in
ec11bdc6 7642 i[3456789]86-*-linux*-no)
a0da8069
NN
7643 # Here host == target, so we don't need to build gcc,
7644 # so we don't want to discard standard headers.
7645 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7646 ;;
7647 *)
7648 # If we're building newlib, use its generic headers last, but search
7649 # for any libc-related directories first (so make it the last -B
7650 # switch).
7651 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
7652
7653 # If we're building libgloss, find the startup file, simulator library
7654 # and linker script.
7655 case " $target_configdirs " in
7656 *" libgloss "*)
7657 # Look for startup file, simulator library and maybe linker script.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7659 # Look for libnosys.a in case the target needs it.
7660 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7661 # Most targets have the linker script in the source directory.
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7663 ;;
7664 esac
a0da8069
NN
7665 ;;
7666 esac
7667 ;;
7668 esac
7669 ;;
7670esac
1f53ca9a 7671
45055374 7672case "$target" in
1f53ca9a
AO
7673 x86_64-*mingw* | *-w64-mingw*)
7674 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7675 # however, use a symlink named 'mingw' in ${prefix} .
7676 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7677 ;;
7678 *-mingw*)
7679 # MinGW can't be handled as Cygwin above since it does not use newlib.
7680 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'
7681 ;;
45055374 7682esac
a0da8069 7683
5fbad20a
DD
7684# Allow the user to override the flags for
7685# our build compiler if desired.
c66487f8
NC
7686if test x"${build}" = x"${host}" ; then
7687 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7688 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7689 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7690fi
5fbad20a 7691
a0da8069
NN
7692# On Canadian crosses, we'll be searching the right directories for
7693# the previously-installed cross compiler, so don't bother to add
7694# flags for directories within the install tree of the compiler
7695# being built; programs in there won't even run.
7696if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7697 # Search for pre-installed headers if nothing else fits.
bba45b8b 7698 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
7699fi
7700
7701if test "x${use_gnu_ld}" = x &&
7702 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7703 # Arrange for us to find uninstalled linker scripts.
b00612cc 7704 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7705fi
7706
a481dbb7
DD
7707# Search for other target-specific linker scripts and such.
7708case "${target}" in
4e206d7e
DB
7709 mep*)
7710 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7711 ;;
7712esac
7713
a0da8069 7714# Makefile fragments.
3e707e94
PB
7715for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7716do
7717 eval fragval=\$$frag
7718 if test $fragval != /dev/null; then
7719 eval $frag=${srcdir}/$fragval
7720 fi
7721done
a0da8069
NN
7722
7723
7724
7725
7726
7727# Miscellanea: directories, flags, etc.
7728
7729
7730
7731
7732
7733
7734
3bbd2f8f 7735
6a9cf61e 7736# Build module lists & subconfigure args.
a0da8069
NN
7737
7738
7739
be01d343
PB
7740# Host module lists & subconfigure args.
7741
7742
7743
911e63d0 7744
be01d343
PB
7745# Target module lists & subconfigure args.
7746
7747
7748
7749# Build tools.
7750
7751
7752
1576798e
PB
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
be01d343
PB
7766# Generate default definitions for YACC, M4, LEX and other programs that run
7767# on the build machine. These are used if the Makefile can't locate these
7768# programs in objdir.
7769MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7770
7771for ac_prog in 'bison -y' byacc yacc
7772do
c6b750e1 7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7774set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7777if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7778 $as_echo_n "(cached) " >&6
be01d343
PB
7779else
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7782else
c6b750e1
DJ
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
81ecdfbb 7788 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7790 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7792 break 2
7793 fi
7794done
81ecdfbb
RW
7795 done
7796IFS=$as_save_IFS
c6b750e1 7797
be01d343
PB
7798fi
7799fi
c6b750e1 7800YACC=$ac_cv_prog_YACC
be01d343 7801if test -n "$YACC"; then
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803$as_echo "$YACC" >&6; }
be01d343 7804else
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
be01d343
PB
7807fi
7808
81ecdfbb 7809
c6b750e1 7810 test -n "$YACC" && break
be01d343
PB
7811done
7812test -n "$YACC" || YACC="$MISSING bison -y"
7813
7814case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7816esac
7817
7818for ac_prog in bison
7819do
c6b750e1 7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7821set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7824if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7825 $as_echo_n "(cached) " >&6
be01d343
PB
7826else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829else
c6b750e1
DJ
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
81ecdfbb 7835 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7837 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7839 break 2
7840 fi
7841done
81ecdfbb
RW
7842 done
7843IFS=$as_save_IFS
c6b750e1 7844
be01d343
PB
7845fi
7846fi
c6b750e1 7847BISON=$ac_cv_prog_BISON
be01d343 7848if test -n "$BISON"; then
81ecdfbb
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850$as_echo "$BISON" >&6; }
be01d343 7851else
81ecdfbb
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
be01d343
PB
7854fi
7855
81ecdfbb 7856
c6b750e1 7857 test -n "$BISON" && break
be01d343
PB
7858done
7859test -n "$BISON" || BISON="$MISSING bison"
7860
7861case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7863esac
7864
7865for ac_prog in gm4 gnum4 m4
7866do
c6b750e1 7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7868set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7871if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7872 $as_echo_n "(cached) " >&6
be01d343
PB
7873else
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7876else
c6b750e1
DJ
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
81ecdfbb 7882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7884 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7886 break 2
7887 fi
7888done
81ecdfbb
RW
7889 done
7890IFS=$as_save_IFS
c6b750e1 7891
be01d343
PB
7892fi
7893fi
c6b750e1 7894M4=$ac_cv_prog_M4
be01d343 7895if test -n "$M4"; then
81ecdfbb
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897$as_echo "$M4" >&6; }
be01d343 7898else
81ecdfbb
RW
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
be01d343
PB
7901fi
7902
81ecdfbb 7903
c6b750e1 7904 test -n "$M4" && break
be01d343
PB
7905done
7906test -n "$M4" || M4="$MISSING m4"
7907
7908case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7910esac
7911
7912for ac_prog in flex lex
7913do
c6b750e1 7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7915set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7918if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 7919 $as_echo_n "(cached) " >&6
be01d343
PB
7920else
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7923else
c6b750e1
DJ
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
81ecdfbb 7929 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7931 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7933 break 2
7934 fi
7935done
81ecdfbb
RW
7936 done
7937IFS=$as_save_IFS
c6b750e1 7938
be01d343
PB
7939fi
7940fi
c6b750e1 7941LEX=$ac_cv_prog_LEX
be01d343 7942if test -n "$LEX"; then
81ecdfbb
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944$as_echo "$LEX" >&6; }
be01d343 7945else
81ecdfbb
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
be01d343
PB
7948fi
7949
81ecdfbb 7950
c6b750e1 7951 test -n "$LEX" && break
be01d343
PB
7952done
7953test -n "$LEX" || LEX="$MISSING flex"
7954
7955case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7958esac
7959
7960for ac_prog in flex
7961do
c6b750e1 7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7963set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7966if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 7967 $as_echo_n "(cached) " >&6
be01d343
PB
7968else
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7971else
c6b750e1
DJ
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
81ecdfbb 7977 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7979 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7981 break 2
7982 fi
7983done
81ecdfbb
RW
7984 done
7985IFS=$as_save_IFS
c6b750e1 7986
be01d343
PB
7987fi
7988fi
c6b750e1 7989FLEX=$ac_cv_prog_FLEX
be01d343 7990if test -n "$FLEX"; then
81ecdfbb
RW
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992$as_echo "$FLEX" >&6; }
be01d343 7993else
81ecdfbb
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
be01d343
PB
7996fi
7997
81ecdfbb 7998
c6b750e1 7999 test -n "$FLEX" && break
be01d343
PB
8000done
8001test -n "$FLEX" || FLEX="$MISSING flex"
8002
8003case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8005esac
8006
8007for ac_prog in makeinfo
8008do
c6b750e1 8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8010set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8013if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8014 $as_echo_n "(cached) " >&6
be01d343
PB
8015else
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8018else
c6b750e1
DJ
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
81ecdfbb 8024 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8026 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8028 break 2
8029 fi
8030done
81ecdfbb
RW
8031 done
8032IFS=$as_save_IFS
c6b750e1 8033
be01d343
PB
8034fi
8035fi
c6b750e1 8036MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8037if test -n "$MAKEINFO"; then
81ecdfbb
RW
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039$as_echo "$MAKEINFO" >&6; }
be01d343 8040else
81ecdfbb
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
be01d343
PB
8043fi
8044
81ecdfbb 8045
c6b750e1 8046 test -n "$MAKEINFO" && break
be01d343
PB
8047done
8048test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8049
8050case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8052 *)
8053
10ad8ef3 8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
10ad8ef3 8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8058 :
8059 else
8060 MAKEINFO="$MISSING makeinfo"
8061 fi
8062 ;;
8063
8064esac
a0da8069 8065
be01d343 8066# FIXME: expect and dejagnu may become build tools?
a0da8069 8067
be01d343
PB
8068for ac_prog in expect
8069do
c6b750e1 8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8071set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8074if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8075 $as_echo_n "(cached) " >&6
be01d343
PB
8076else
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8079else
c6b750e1
DJ
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
81ecdfbb 8085 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8087 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8089 break 2
8090 fi
8091done
81ecdfbb
RW
8092 done
8093IFS=$as_save_IFS
c6b750e1 8094
be01d343
PB
8095fi
8096fi
c6b750e1 8097EXPECT=$ac_cv_prog_EXPECT
be01d343 8098if test -n "$EXPECT"; then
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100$as_echo "$EXPECT" >&6; }
be01d343 8101else
81ecdfbb
RW
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
be01d343 8104fi
a0da8069 8105
81ecdfbb 8106
c6b750e1 8107 test -n "$EXPECT" && break
be01d343
PB
8108done
8109test -n "$EXPECT" || EXPECT="expect"
a0da8069 8110
be01d343
PB
8111case " $configdirs " in
8112 *" expect "*)
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8114 ;;
8115esac
a0da8069 8116
be01d343
PB
8117for ac_prog in runtest
8118do
c6b750e1 8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8120set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8123if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8124 $as_echo_n "(cached) " >&6
be01d343
PB
8125else
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8128else
c6b750e1
DJ
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
81ecdfbb 8134 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8136 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8138 break 2
8139 fi
8140done
81ecdfbb
RW
8141 done
8142IFS=$as_save_IFS
c6b750e1 8143
be01d343
PB
8144fi
8145fi
c6b750e1 8146RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8147if test -n "$RUNTEST"; then
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149$as_echo "$RUNTEST" >&6; }
be01d343 8150else
81ecdfbb
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
be01d343 8153fi
a0da8069 8154
81ecdfbb 8155
c6b750e1 8156 test -n "$RUNTEST" && break
be01d343
PB
8157done
8158test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8159
be01d343
PB
8160case " $configdirs " in
8161 *" dejagnu "*)
6b89cc21 8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8163 ;;
8164esac
a0da8069
NN
8165
8166
a0da8069 8167# Host tools.
859789af
AC
8168ncn_tool_prefix=
8169test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170ncn_target_tool_prefix=
8171test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172
9a819804
AO
8173
8174
8175if test -n "$AR"; then
8176 ac_cv_prog_AR=$AR
8177elif test -n "$ac_cv_prog_AR"; then
8178 AR=$ac_cv_prog_AR
8179fi
8180
8181if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8187if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8188 $as_echo_n "(cached) " >&6
9a819804
AO
8189else
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
81ecdfbb 8198 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8200 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8202 break 2
8203 fi
8204done
81ecdfbb
RW
8205 done
8206IFS=$as_save_IFS
9a819804
AO
8207
8208fi
8209fi
8210AR=$ac_cv_prog_AR
8211if test -n "$AR"; then
81ecdfbb
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213$as_echo "$AR" >&6; }
9a819804 8214else
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
9a819804
AO
8217fi
8218
81ecdfbb 8219
9a819804
AO
8220 done
8221fi
8222
8223for ncn_progname in ar; do
05cbd757
PB
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8229if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8230 $as_echo_n "(cached) " >&6
859789af
AC
8231else
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8234else
c6b750e1
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb 8240 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
c6b750e1 8249
859789af
AC
8250fi
8251fi
c6b750e1 8252AR=$ac_cv_prog_AR
859789af 8253if test -n "$AR"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255$as_echo "$AR" >&6; }
859789af 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
859789af
AC
8259fi
8260
81ecdfbb 8261
05cbd757
PB
8262 fi
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8268if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8269 $as_echo_n "(cached) " >&6
859789af 8270else
05cbd757
PB
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8273else
c6b750e1
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
81ecdfbb 8279 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8281 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8283 break 2
8284 fi
8285done
81ecdfbb
RW
8286 done
8287IFS=$as_save_IFS
c6b750e1 8288
859789af
AC
8289fi
8290fi
c6b750e1 8291AR=$ac_cv_prog_AR
05cbd757 8292if test -n "$AR"; then
81ecdfbb
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294$as_echo "$AR" >&6; }
859789af 8295else
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
859789af 8298fi
c6b750e1 8299
81ecdfbb 8300
05cbd757
PB
8301 fi
8302 test -n "$ac_cv_prog_AR" && break
8303done
8304
8305if test -z "$ac_cv_prog_AR" ; then
8306 set dummy ar
8307 if test $build = $host ; then
8308 AR="$2"
859789af 8309 else
05cbd757 8310 AR="${ncn_tool_prefix}$2"
859789af 8311 fi
859789af
AC
8312fi
8313
9a819804
AO
8314
8315
8316if test -n "$AS"; then
8317 ac_cv_prog_AS=$AS
8318elif test -n "$ac_cv_prog_AS"; then
8319 AS=$ac_cv_prog_AS
8320fi
8321
8322if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8328if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8329 $as_echo_n "(cached) " >&6
9a819804
AO
8330else
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
81ecdfbb 8339 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8341 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8343 break 2
8344 fi
8345done
81ecdfbb
RW
8346 done
8347IFS=$as_save_IFS
9a819804
AO
8348
8349fi
8350fi
8351AS=$ac_cv_prog_AS
8352if test -n "$AS"; then
81ecdfbb
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354$as_echo "$AS" >&6; }
9a819804 8355else
81ecdfbb
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
9a819804
AO
8358fi
8359
81ecdfbb 8360
9a819804
AO
8361 done
8362fi
8363
8364for ncn_progname in as; do
05cbd757
PB
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8370if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8371 $as_echo_n "(cached) " >&6
859789af
AC
8372else
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
81ecdfbb 8381 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8385 break 2
8386 fi
8387done
81ecdfbb
RW
8388 done
8389IFS=$as_save_IFS
c6b750e1 8390
859789af
AC
8391fi
8392fi
c6b750e1 8393AS=$ac_cv_prog_AS
859789af 8394if test -n "$AS"; then
81ecdfbb
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396$as_echo "$AS" >&6; }
859789af 8397else
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
859789af
AC
8400fi
8401
81ecdfbb 8402
05cbd757
PB
8403 fi
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8409if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8410 $as_echo_n "(cached) " >&6
859789af 8411else
05cbd757
PB
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8414else
c6b750e1
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
81ecdfbb 8420 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8422 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8424 break 2
8425 fi
8426done
81ecdfbb
RW
8427 done
8428IFS=$as_save_IFS
c6b750e1 8429
859789af
AC
8430fi
8431fi
c6b750e1 8432AS=$ac_cv_prog_AS
05cbd757 8433if test -n "$AS"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435$as_echo "$AS" >&6; }
859789af 8436else
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
859789af 8439fi
c6b750e1 8440
81ecdfbb 8441
05cbd757
PB
8442 fi
8443 test -n "$ac_cv_prog_AS" && break
8444done
8445
8446if test -z "$ac_cv_prog_AS" ; then
8447 set dummy as
8448 if test $build = $host ; then
8449 AS="$2"
859789af 8450 else
05cbd757 8451 AS="${ncn_tool_prefix}$2"
859789af 8452 fi
859789af
AC
8453fi
8454
9a819804
AO
8455
8456
8457if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461fi
8462
8463if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8469if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8470 $as_echo_n "(cached) " >&6
9a819804
AO
8471else
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
81ecdfbb 8480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8484 break 2
8485 fi
8486done
81ecdfbb
RW
8487 done
8488IFS=$as_save_IFS
9a819804
AO
8489
8490fi
8491fi
8492DLLTOOL=$ac_cv_prog_DLLTOOL
8493if test -n "$DLLTOOL"; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495$as_echo "$DLLTOOL" >&6; }
9a819804 8496else
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
9a819804
AO
8499fi
8500
81ecdfbb 8501
9a819804
AO
8502 done
8503fi
8504
8505for ncn_progname in dlltool; do
05cbd757
PB
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8511if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8512 $as_echo_n "(cached) " >&6
859789af
AC
8513else
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
81ecdfbb 8522 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8526 break 2
8527 fi
8528done
81ecdfbb
RW
8529 done
8530IFS=$as_save_IFS
c6b750e1 8531
859789af
AC
8532fi
8533fi
c6b750e1 8534DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8535if test -n "$DLLTOOL"; then
81ecdfbb
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537$as_echo "$DLLTOOL" >&6; }
859789af 8538else
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
859789af
AC
8541fi
8542
81ecdfbb 8543
05cbd757
PB
8544 fi
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8550if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8551 $as_echo_n "(cached) " >&6
859789af 8552else
05cbd757
PB
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8555else
c6b750e1
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
81ecdfbb 8561 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8565 break 2
8566 fi
8567done
81ecdfbb
RW
8568 done
8569IFS=$as_save_IFS
c6b750e1 8570
859789af
AC
8571fi
8572fi
c6b750e1 8573DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8574if test -n "$DLLTOOL"; then
81ecdfbb
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576$as_echo "$DLLTOOL" >&6; }
859789af 8577else
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
859789af 8580fi
c6b750e1 8581
81ecdfbb 8582
05cbd757
PB
8583 fi
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8585done
8586
8587if test -z "$ac_cv_prog_DLLTOOL" ; then
8588 set dummy dlltool
8589 if test $build = $host ; then
8590 DLLTOOL="$2"
859789af 8591 else
05cbd757 8592 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8593 fi
859789af
AC
8594fi
8595
9a819804
AO
8596
8597
8598if test -n "$LD"; then
8599 ac_cv_prog_LD=$LD
8600elif test -n "$ac_cv_prog_LD"; then
8601 LD=$ac_cv_prog_LD
8602fi
8603
8604if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8610if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8611 $as_echo_n "(cached) " >&6
9a819804
AO
8612else
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
81ecdfbb 8621 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8623 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8625 break 2
8626 fi
8627done
81ecdfbb
RW
8628 done
8629IFS=$as_save_IFS
9a819804
AO
8630
8631fi
8632fi
8633LD=$ac_cv_prog_LD
8634if test -n "$LD"; then
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636$as_echo "$LD" >&6; }
9a819804 8637else
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
9a819804
AO
8640fi
8641
81ecdfbb 8642
9a819804
AO
8643 done
8644fi
8645
8646for ncn_progname in ld; do
05cbd757
PB
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8652if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8653 $as_echo_n "(cached) " >&6
859789af
AC
8654else
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8657else
c6b750e1
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
81ecdfbb 8663 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8667 break 2
8668 fi
8669done
81ecdfbb
RW
8670 done
8671IFS=$as_save_IFS
c6b750e1 8672
859789af
AC
8673fi
8674fi
c6b750e1 8675LD=$ac_cv_prog_LD
859789af 8676if test -n "$LD"; then
81ecdfbb
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678$as_echo "$LD" >&6; }
859789af 8679else
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
859789af
AC
8682fi
8683
81ecdfbb 8684
05cbd757
PB
8685 fi
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8691if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8692 $as_echo_n "(cached) " >&6
859789af 8693else
05cbd757
PB
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8696else
c6b750e1
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
81ecdfbb 8702 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8704 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8706 break 2
8707 fi
8708done
81ecdfbb
RW
8709 done
8710IFS=$as_save_IFS
c6b750e1 8711
859789af
AC
8712fi
8713fi
c6b750e1 8714LD=$ac_cv_prog_LD
05cbd757 8715if test -n "$LD"; then
81ecdfbb
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717$as_echo "$LD" >&6; }
859789af 8718else
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
859789af 8721fi
c6b750e1 8722
81ecdfbb 8723
05cbd757
PB
8724 fi
8725 test -n "$ac_cv_prog_LD" && break
8726done
8727
8728if test -z "$ac_cv_prog_LD" ; then
8729 set dummy ld
8730 if test $build = $host ; then
8731 LD="$2"
859789af 8732 else
05cbd757 8733 LD="${ncn_tool_prefix}$2"
859789af 8734 fi
859789af
AC
8735fi
8736
9a819804
AO
8737
8738
8739if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8743fi
8744
8745if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8751if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8752 $as_echo_n "(cached) " >&6
9a819804
AO
8753else
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8756else
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
81ecdfbb 8762 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8764 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8766 break 2
8767 fi
8768done
81ecdfbb
RW
8769 done
8770IFS=$as_save_IFS
9a819804
AO
8771
8772fi
8773fi
8774LIPO=$ac_cv_prog_LIPO
8775if test -n "$LIPO"; then
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777$as_echo "$LIPO" >&6; }
9a819804 8778else
81ecdfbb
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
9a819804
AO
8781fi
8782
81ecdfbb 8783
9a819804
AO
8784 done
8785fi
8786
8787for ncn_progname in lipo; do
be01d343
PB
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8793if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8794 $as_echo_n "(cached) " >&6
be01d343
PB
8795else
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8798else
c6b750e1
DJ
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
81ecdfbb 8804 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8808 break 2
8809 fi
8810done
81ecdfbb
RW
8811 done
8812IFS=$as_save_IFS
c6b750e1 8813
be01d343
PB
8814fi
8815fi
c6b750e1 8816LIPO=$ac_cv_prog_LIPO
be01d343 8817if test -n "$LIPO"; then
81ecdfbb
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819$as_echo "$LIPO" >&6; }
be01d343 8820else
81ecdfbb
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
be01d343
PB
8823fi
8824
81ecdfbb 8825
be01d343
PB
8826 fi
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8832if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8833 $as_echo_n "(cached) " >&6
be01d343
PB
8834else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837else
c6b750e1
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
81ecdfbb 8843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8845 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8847 break 2
8848 fi
8849done
81ecdfbb
RW
8850 done
8851IFS=$as_save_IFS
c6b750e1 8852
be01d343
PB
8853fi
8854fi
c6b750e1 8855LIPO=$ac_cv_prog_LIPO
be01d343 8856if test -n "$LIPO"; then
81ecdfbb
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858$as_echo "$LIPO" >&6; }
be01d343 8859else
81ecdfbb
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
be01d343 8862fi
c6b750e1 8863
81ecdfbb 8864
be01d343
PB
8865 fi
8866 test -n "$ac_cv_prog_LIPO" && break
8867done
8868
8869if test -z "$ac_cv_prog_LIPO" ; then
8870 set dummy lipo
8871 if test $build = $host ; then
8872 LIPO="$2"
8873 else
8874 LIPO="${ncn_tool_prefix}$2"
8875 fi
8876fi
8877
9a819804
AO
8878
8879
8880if test -n "$NM"; then
8881 ac_cv_prog_NM=$NM
8882elif test -n "$ac_cv_prog_NM"; then
8883 NM=$ac_cv_prog_NM
8884fi
8885
8886if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8892if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8893 $as_echo_n "(cached) " >&6
859789af
AC
8894else
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8897else
c6b750e1
DJ
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
81ecdfbb 8903 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8905 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8907 break 2
8908 fi
8909done
81ecdfbb
RW
8910 done
8911IFS=$as_save_IFS
c6b750e1 8912
859789af
AC
8913fi
8914fi
c6b750e1 8915NM=$ac_cv_prog_NM
859789af 8916if test -n "$NM"; then
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918$as_echo "$NM" >&6; }
859789af 8919else
81ecdfbb
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
859789af
AC
8922fi
8923
81ecdfbb 8924
9a819804
AO
8925 done
8926fi
8927
8928for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8934if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8935 $as_echo_n "(cached) " >&6
859789af 8936else
05cbd757
PB
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8939else
c6b750e1
DJ
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
81ecdfbb 8945 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8949 break 2
8950 fi
8951done
81ecdfbb
RW
8952 done
8953IFS=$as_save_IFS
c6b750e1 8954
859789af
AC
8955fi
8956fi
c6b750e1 8957NM=$ac_cv_prog_NM
05cbd757 8958if test -n "$NM"; then
81ecdfbb
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960$as_echo "$NM" >&6; }
859789af 8961else
81ecdfbb
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
859789af 8964fi
c6b750e1 8965
81ecdfbb 8966
05cbd757 8967 fi
9a819804
AO
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8973if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8974 $as_echo_n "(cached) " >&6
9a819804
AO
8975else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
81ecdfbb 8984 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8986 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8988 break 2
8989 fi
8990done
81ecdfbb
RW
8991 done
8992IFS=$as_save_IFS
9a819804
AO
8993
8994fi
8995fi
8996NM=$ac_cv_prog_NM
8997if test -n "$NM"; then
81ecdfbb
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999$as_echo "$NM" >&6; }
9a819804 9000else
81ecdfbb
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
9a819804
AO
9003fi
9004
81ecdfbb 9005
9a819804
AO
9006 fi
9007 test -n "$ac_cv_prog_NM" && break
9008done
9009
9010if test -z "$ac_cv_prog_NM" ; then
9011 set dummy nm
9012 if test $build = $host ; then
9013 NM="$2"
9014 else
9015 NM="${ncn_tool_prefix}$2"
9016 fi
9017fi
9018
9019
9020
9021if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9025fi
9026
9027if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9033if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9034 $as_echo_n "(cached) " >&6
9a819804
AO
9035else
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
81ecdfbb 9044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9046 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9048 break 2
9049 fi
9050done
81ecdfbb
RW
9051 done
9052IFS=$as_save_IFS
9a819804
AO
9053
9054fi
9055fi
9056RANLIB=$ac_cv_prog_RANLIB
9057if test -n "$RANLIB"; then
81ecdfbb
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059$as_echo "$RANLIB" >&6; }
9a819804 9060else
81ecdfbb
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
9a819804
AO
9063fi
9064
81ecdfbb 9065
9a819804
AO
9066 done
9067fi
859789af 9068
9a819804 9069for ncn_progname in ranlib; do
05cbd757
PB
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9075if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9076 $as_echo_n "(cached) " >&6
859789af
AC
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
c6b750e1
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
81ecdfbb 9086 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9090 break 2
9091 fi
9092done
81ecdfbb
RW
9093 done
9094IFS=$as_save_IFS
c6b750e1 9095
859789af
AC
9096fi
9097fi
c6b750e1 9098RANLIB=$ac_cv_prog_RANLIB
859789af 9099if test -n "$RANLIB"; then
81ecdfbb
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101$as_echo "$RANLIB" >&6; }
859789af 9102else
81ecdfbb
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
859789af
AC
9105fi
9106
81ecdfbb 9107
05cbd757
PB
9108 fi
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9114if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9115 $as_echo_n "(cached) " >&6
859789af 9116else
05cbd757
PB
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9119else
c6b750e1
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
81ecdfbb 9125 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9127 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9129 break 2
9130 fi
9131done
81ecdfbb
RW
9132 done
9133IFS=$as_save_IFS
c6b750e1 9134
859789af
AC
9135fi
9136fi
c6b750e1 9137RANLIB=$ac_cv_prog_RANLIB
05cbd757 9138if test -n "$RANLIB"; then
81ecdfbb
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140$as_echo "$RANLIB" >&6; }
859789af 9141else
81ecdfbb
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
859789af 9144fi
c6b750e1 9145
81ecdfbb 9146
859789af 9147 fi
05cbd757
PB
9148 test -n "$ac_cv_prog_RANLIB" && break
9149done
9150
9151if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9152 RANLIB="true"
859789af
AC
9153fi
9154
9a819804
AO
9155
9156
9157if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9161fi
9162
9163if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9169if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9170 $as_echo_n "(cached) " >&6
9a819804
AO
9171else
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9174else
9175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
81ecdfbb 9180 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9182 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9184 break 2
9185 fi
9186done
81ecdfbb
RW
9187 done
9188IFS=$as_save_IFS
9a819804
AO
9189
9190fi
9191fi
9192STRIP=$ac_cv_prog_STRIP
9193if test -n "$STRIP"; then
81ecdfbb
RW
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195$as_echo "$STRIP" >&6; }
9a819804 9196else
81ecdfbb
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9a819804
AO
9199fi
9200
81ecdfbb 9201
9a819804
AO
9202 done
9203fi
9204
9205for ncn_progname in strip; do
be01d343
PB
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9211if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9212 $as_echo_n "(cached) " >&6
be01d343
PB
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
c6b750e1
DJ
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
81ecdfbb 9222 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9226 break 2
9227 fi
9228done
81ecdfbb
RW
9229 done
9230IFS=$as_save_IFS
c6b750e1 9231
be01d343
PB
9232fi
9233fi
c6b750e1 9234STRIP=$ac_cv_prog_STRIP
be01d343 9235if test -n "$STRIP"; then
81ecdfbb
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237$as_echo "$STRIP" >&6; }
be01d343 9238else
81ecdfbb
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
be01d343
PB
9241fi
9242
81ecdfbb 9243
be01d343
PB
9244 fi
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9250if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9251 $as_echo_n "(cached) " >&6
be01d343
PB
9252else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255else
c6b750e1
DJ
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
81ecdfbb 9261 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9263 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9265 break 2
9266 fi
9267done
81ecdfbb
RW
9268 done
9269IFS=$as_save_IFS
c6b750e1 9270
be01d343
PB
9271fi
9272fi
c6b750e1 9273STRIP=$ac_cv_prog_STRIP
be01d343 9274if test -n "$STRIP"; then
81ecdfbb
RW
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276$as_echo "$STRIP" >&6; }
be01d343 9277else
81ecdfbb
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
be01d343 9280fi
c6b750e1 9281
81ecdfbb 9282
be01d343
PB
9283 fi
9284 test -n "$ac_cv_prog_STRIP" && break
9285done
9286
9287if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9288 STRIP="true"
be01d343
PB
9289fi
9290
9a819804
AO
9291
9292
9293if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9297fi
9298
9299if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9305if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9306 $as_echo_n "(cached) " >&6
9a819804
AO
9307else
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
81ecdfbb 9316 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9318 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9320 break 2
9321 fi
9322done
81ecdfbb
RW
9323 done
9324IFS=$as_save_IFS
9a819804
AO
9325
9326fi
9327fi
9328WINDRES=$ac_cv_prog_WINDRES
9329if test -n "$WINDRES"; then
81ecdfbb
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331$as_echo "$WINDRES" >&6; }
9a819804 9332else
81ecdfbb
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9a819804
AO
9335fi
9336
81ecdfbb 9337
9a819804
AO
9338 done
9339fi
9340
9341for ncn_progname in windres; do
05cbd757
PB
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9347if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9348 $as_echo_n "(cached) " >&6
859789af
AC
9349else
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9352else
c6b750e1
DJ
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
81ecdfbb 9358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9362 break 2
9363 fi
9364done
81ecdfbb
RW
9365 done
9366IFS=$as_save_IFS
c6b750e1 9367
859789af
AC
9368fi
9369fi
c6b750e1 9370WINDRES=$ac_cv_prog_WINDRES
859789af 9371if test -n "$WINDRES"; then
81ecdfbb
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373$as_echo "$WINDRES" >&6; }
859789af 9374else
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
859789af
AC
9377fi
9378
81ecdfbb 9379
05cbd757
PB
9380 fi
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9386if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9387 $as_echo_n "(cached) " >&6
859789af 9388else
05cbd757
PB
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9391else
c6b750e1
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
81ecdfbb 9397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9399 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9401 break 2
9402 fi
9403done
81ecdfbb
RW
9404 done
9405IFS=$as_save_IFS
c6b750e1 9406
859789af
AC
9407fi
9408fi
c6b750e1 9409WINDRES=$ac_cv_prog_WINDRES
05cbd757 9410if test -n "$WINDRES"; then
81ecdfbb
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412$as_echo "$WINDRES" >&6; }
859789af 9413else
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
859789af 9416fi
c6b750e1 9417
81ecdfbb 9418
05cbd757
PB
9419 fi
9420 test -n "$ac_cv_prog_WINDRES" && break
9421done
9422
9423if test -z "$ac_cv_prog_WINDRES" ; then
9424 set dummy windres
9425 if test $build = $host ; then
9426 WINDRES="$2"
859789af 9427 else
05cbd757 9428 WINDRES="${ncn_tool_prefix}$2"
859789af 9429 fi
859789af
AC
9430fi
9431
9a819804
AO
9432
9433
0c24b341
NC
9434if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9438fi
9439
9440if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9446if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9447 $as_echo_n "(cached) " >&6
0c24b341
NC
9448else
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
81ecdfbb 9457 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9459 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9461 break 2
9462 fi
9463done
81ecdfbb
RW
9464 done
9465IFS=$as_save_IFS
0c24b341
NC
9466
9467fi
9468fi
9469WINDMC=$ac_cv_prog_WINDMC
9470if test -n "$WINDMC"; then
81ecdfbb
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472$as_echo "$WINDMC" >&6; }
0c24b341 9473else
81ecdfbb
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
0c24b341
NC
9476fi
9477
81ecdfbb 9478
0c24b341
NC
9479 done
9480fi
9481
9482for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9488if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9489 $as_echo_n "(cached) " >&6
0c24b341
NC
9490else
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9493else
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
81ecdfbb 9499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9503 break 2
9504 fi
9505done
81ecdfbb
RW
9506 done
9507IFS=$as_save_IFS
0c24b341
NC
9508
9509fi
9510fi
9511WINDMC=$ac_cv_prog_WINDMC
9512if test -n "$WINDMC"; then
81ecdfbb
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514$as_echo "$WINDMC" >&6; }
0c24b341 9515else
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
0c24b341
NC
9518fi
9519
81ecdfbb 9520
0c24b341
NC
9521 fi
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9527if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9528 $as_echo_n "(cached) " >&6
0c24b341
NC
9529else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
81ecdfbb 9538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9540 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9542 break 2
9543 fi
9544done
81ecdfbb
RW
9545 done
9546IFS=$as_save_IFS
0c24b341
NC
9547
9548fi
9549fi
9550WINDMC=$ac_cv_prog_WINDMC
9551if test -n "$WINDMC"; then
81ecdfbb
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553$as_echo "$WINDMC" >&6; }
0c24b341 9554else
81ecdfbb
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
0c24b341
NC
9557fi
9558
81ecdfbb 9559
0c24b341
NC
9560 fi
9561 test -n "$ac_cv_prog_WINDMC" && break
9562done
9563
9564if test -z "$ac_cv_prog_WINDMC" ; then
9565 set dummy windmc
9566 if test $build = $host ; then
9567 WINDMC="$2"
9568 else
9569 WINDMC="${ncn_tool_prefix}$2"
9570 fi
9571fi
9572
9573
9574
9a819804
AO
9575if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579fi
9580
9581if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9587if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9588 $as_echo_n "(cached) " >&6
9a819804
AO
9589else
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
81ecdfbb 9598 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9602 break 2
9603 fi
9604done
81ecdfbb
RW
9605 done
9606IFS=$as_save_IFS
9a819804
AO
9607
9608fi
9609fi
9610OBJCOPY=$ac_cv_prog_OBJCOPY
9611if test -n "$OBJCOPY"; then
81ecdfbb
RW
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613$as_echo "$OBJCOPY" >&6; }
9a819804 9614else
81ecdfbb
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9a819804
AO
9617fi
9618
81ecdfbb 9619
9a819804
AO
9620 done
9621fi
9622
9623for ncn_progname in objcopy; do
05cbd757
PB
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9629if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9630 $as_echo_n "(cached) " >&6
859789af
AC
9631else
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9634else
c6b750e1
DJ
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
81ecdfbb 9640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9644 break 2
9645 fi
9646done
81ecdfbb
RW
9647 done
9648IFS=$as_save_IFS
c6b750e1 9649
859789af
AC
9650fi
9651fi
c6b750e1 9652OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9653if test -n "$OBJCOPY"; then
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655$as_echo "$OBJCOPY" >&6; }
859789af 9656else
81ecdfbb
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
859789af
AC
9659fi
9660
81ecdfbb 9661
05cbd757
PB
9662 fi
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9668if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9669 $as_echo_n "(cached) " >&6
859789af 9670else
05cbd757
PB
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9673else
c6b750e1
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
81ecdfbb 9679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9683 break 2
9684 fi
9685done
81ecdfbb
RW
9686 done
9687IFS=$as_save_IFS
c6b750e1 9688
859789af
AC
9689fi
9690fi
c6b750e1 9691OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9692if test -n "$OBJCOPY"; then
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694$as_echo "$OBJCOPY" >&6; }
859789af 9695else
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
859789af 9698fi
c6b750e1 9699
81ecdfbb 9700
05cbd757
PB
9701 fi
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9703done
9704
9705if test -z "$ac_cv_prog_OBJCOPY" ; then
9706 set dummy objcopy
9707 if test $build = $host ; then
9708 OBJCOPY="$2"
859789af 9709 else
05cbd757 9710 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9711 fi
859789af
AC
9712fi
9713
9a819804
AO
9714
9715
9716if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720fi
9721
9722if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9728if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9729 $as_echo_n "(cached) " >&6
9a819804
AO
9730else
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
81ecdfbb 9739 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9743 break 2
9744 fi
9745done
81ecdfbb
RW
9746 done
9747IFS=$as_save_IFS
9a819804
AO
9748
9749fi
9750fi
9751OBJDUMP=$ac_cv_prog_OBJDUMP
9752if test -n "$OBJDUMP"; then
81ecdfbb
RW
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754$as_echo "$OBJDUMP" >&6; }
9a819804 9755else
81ecdfbb
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9a819804
AO
9758fi
9759
81ecdfbb 9760
9a819804
AO
9761 done
9762fi
9763
9764for ncn_progname in objdump; do
05cbd757
PB
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9770if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9771 $as_echo_n "(cached) " >&6
859789af
AC
9772else
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9775else
c6b750e1
DJ
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
81ecdfbb 9781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9785 break 2
9786 fi
9787done
81ecdfbb
RW
9788 done
9789IFS=$as_save_IFS
c6b750e1 9790
859789af
AC
9791fi
9792fi
c6b750e1 9793OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9794if test -n "$OBJDUMP"; then
81ecdfbb
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796$as_echo "$OBJDUMP" >&6; }
859789af 9797else
81ecdfbb
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
859789af
AC
9800fi
9801
81ecdfbb 9802
05cbd757
PB
9803 fi
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9809if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9810 $as_echo_n "(cached) " >&6
859789af 9811else
05cbd757
PB
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9814else
c6b750e1
DJ
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
81ecdfbb 9820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9824 break 2
9825 fi
9826done
81ecdfbb
RW
9827 done
9828IFS=$as_save_IFS
c6b750e1 9829
859789af
AC
9830fi
9831fi
c6b750e1 9832OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9833if test -n "$OBJDUMP"; then
81ecdfbb
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835$as_echo "$OBJDUMP" >&6; }
859789af 9836else
81ecdfbb
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
859789af 9839fi
c6b750e1 9840
81ecdfbb 9841
05cbd757
PB
9842 fi
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9844done
9845
9846if test -z "$ac_cv_prog_OBJDUMP" ; then
9847 set dummy objdump
9848 if test $build = $host ; then
9849 OBJDUMP="$2"
859789af 9850 else
05cbd757 9851 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9852 fi
859789af
AC
9853fi
9854
a0da8069
NN
9855
9856
b121d7d4
DD
9857if test -n "$READELF"; then
9858 ac_cv_prog_READELF=$READELF
9859elif test -n "$ac_cv_prog_READELF"; then
9860 READELF=$ac_cv_prog_READELF
9861fi
9862
9863if test -n "$ac_cv_prog_READELF"; then
9864 for ncn_progname in readelf; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866set dummy ${ncn_progname}; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9869if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9870 $as_echo_n "(cached) " >&6
9871else
9872 if test -n "$READELF"; then
9873 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9882 ac_cv_prog_READELF="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887 done
9888IFS=$as_save_IFS
9889
9890fi
9891fi
9892READELF=$ac_cv_prog_READELF
9893if test -n "$READELF"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9895$as_echo "$READELF" >&6; }
9896else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900
9901
9902 done
9903fi
9904
9905for ncn_progname in readelf; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9911if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$READELF"; then
9915 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9924 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929 done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934READELF=$ac_cv_prog_READELF
9935if test -n "$READELF"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9937$as_echo "$READELF" >&6; }
9938else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_progname}; ac_word=$2
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9950if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9963 ac_cv_prog_READELF="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968 done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973READELF=$ac_cv_prog_READELF
9974if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976$as_echo "$READELF" >&6; }
9977else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983 fi
9984 test -n "$ac_cv_prog_READELF" && break
9985done
9986
9987if test -z "$ac_cv_prog_READELF" ; then
9988 set dummy readelf
9989 if test $build = $host ; then
9990 READELF="$2"
9991 else
9992 READELF="${ncn_tool_prefix}$2"
9993 fi
9994fi
9995
9996
9997
a0da8069
NN
9998
9999
10000
be01d343 10001# Target tools.
c6b750e1 10002
81ecdfbb
RW
10003# Check whether --with-build-time-tools was given.
10004if test "${with_build_time_tools+set}" = set; then :
10005 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10006 x/*) ;;
10007 *)
10008 with_build_time_tools=
81ecdfbb
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10010$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10011 ;;
10012 esac
859789af 10013else
2429c060 10014 with_build_time_tools=
81ecdfbb
RW
10015fi
10016
859789af 10017
9a819804
AO
10018
10019
10020if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10022elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10024fi
10025
10026if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10027 for ncn_progname in cc gcc; do
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10032if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10033 $as_echo_n "(cached) " >&6
9a819804
AO
10034else
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10037else
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
81ecdfbb 10043 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10047 break 2
10048 fi
10049done
81ecdfbb
RW
10050 done
10051IFS=$as_save_IFS
9a819804
AO
10052
10053fi
10054fi
10055CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10059else
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
9a819804
AO
10062fi
10063
81ecdfbb 10064
9a819804
AO
10065 done
10066fi
10067
10068if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10069 for ncn_progname in cc gcc; do
81ecdfbb
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10071$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10072 if test -x $with_build_time_tools/${ncn_progname}; then
10073 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075$as_echo "yes" >&6; }
cac3d6c4 10076 break
2429c060 10077 else
81ecdfbb
RW
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
cac3d6c4
CM
10080 fi
10081 done
55db4b87
PB
10082fi
10083
2429c060
PB
10084if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10085 for ncn_progname in cc gcc; do
10086 if test -n "$ncn_target_tool_prefix"; then
10087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10088set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10091if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10092 $as_echo_n "(cached) " >&6
55db4b87
PB
10093else
10094 if test -n "$CC_FOR_TARGET"; then
10095 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10096else
c6b750e1
DJ
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
81ecdfbb 10102 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10104 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10106 break 2
10107 fi
10108done
81ecdfbb
RW
10109 done
10110IFS=$as_save_IFS
c6b750e1 10111
55db4b87
PB
10112fi
10113fi
c6b750e1 10114CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10115if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10117$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10118else
81ecdfbb
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
55db4b87
PB
10121fi
10122
81ecdfbb 10123
2429c060
PB
10124 fi
10125 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10130if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10131 $as_echo_n "(cached) " >&6
55db4b87 10132else
05cbd757
PB
10133 if test -n "$CC_FOR_TARGET"; then
10134 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10135else
c6b750e1
DJ
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
81ecdfbb 10141 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10143 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10145 break 2
10146 fi
10147done
81ecdfbb
RW
10148 done
10149IFS=$as_save_IFS
c6b750e1 10150
55db4b87
PB
10151fi
10152fi
c6b750e1 10153CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10154if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10156$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10157else
81ecdfbb
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
55db4b87 10160fi
c6b750e1 10161
81ecdfbb 10162
2429c060
PB
10163 fi
10164 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10165 done
10166fi
c6b750e1 10167
05cbd757
PB
10168if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10169 set dummy cc gcc
10170 if test $build = $target ; then
10171 CC_FOR_TARGET="$2"
55db4b87 10172 else
05cbd757 10173 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10174 fi
d3f5afc4
MS
10175else
10176 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10177fi
10178
9a819804
AO
10179
10180
10181if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10183elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10185fi
10186
10187if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10188 for ncn_progname in c++ g++ cxx gxx; do
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10193if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10194 $as_echo_n "(cached) " >&6
9a819804
AO
10195else
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
81ecdfbb 10204 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10208 break 2
10209 fi
10210done
81ecdfbb
RW
10211 done
10212IFS=$as_save_IFS
9a819804
AO
10213
10214fi
10215fi
10216CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10220else
81ecdfbb
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
9a819804
AO
10223fi
10224
81ecdfbb 10225
9a819804
AO
10226 done
10227fi
10228
10229if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10230 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10232$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10233 if test -x $with_build_time_tools/${ncn_progname}; then
10234 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236$as_echo "yes" >&6; }
2429c060
PB
10237 break
10238 else
81ecdfbb
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
2429c060
PB
10241 fi
10242 done
10243fi
10244
10245if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10246 for ncn_progname in c++ g++ cxx gxx; do
10247 if test -n "$ncn_target_tool_prefix"; then
10248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10252if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10253 $as_echo_n "(cached) " >&6
55db4b87
PB
10254else
10255 if test -n "$CXX_FOR_TARGET"; then
10256 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10257else
c6b750e1
DJ
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
81ecdfbb 10263 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10265 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10267 break 2
10268 fi
10269done
81ecdfbb
RW
10270 done
10271IFS=$as_save_IFS
c6b750e1 10272
55db4b87
PB
10273fi
10274fi
c6b750e1 10275CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10276if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10278$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10279else
81ecdfbb
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
55db4b87
PB
10282fi
10283
81ecdfbb 10284
2429c060
PB
10285 fi
10286 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10288set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10291if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10292 $as_echo_n "(cached) " >&6
55db4b87 10293else
05cbd757
PB
10294 if test -n "$CXX_FOR_TARGET"; then
10295 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10296else
c6b750e1
DJ
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
81ecdfbb 10302 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10304 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10306 break 2
10307 fi
10308done
81ecdfbb
RW
10309 done
10310IFS=$as_save_IFS
c6b750e1 10311
55db4b87
PB
10312fi
10313fi
c6b750e1 10314CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10315if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10317$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10318else
81ecdfbb
RW
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
55db4b87 10321fi
c6b750e1 10322
81ecdfbb 10323
2429c060
PB
10324 fi
10325 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10326 done
10327fi
c6b750e1 10328
05cbd757
PB
10329if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10330 set dummy c++ g++ cxx gxx
10331 if test $build = $target ; then
10332 CXX_FOR_TARGET="$2"
55db4b87 10333 else
05cbd757 10334 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10335 fi
d3f5afc4
MS
10336else
10337 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10338fi
10339
9a819804
AO
10340
10341
10342if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10344elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10346fi
10347
10348if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10349 for ncn_progname in gcc; do
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10354if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10355 $as_echo_n "(cached) " >&6
9a819804
AO
10356else
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
81ecdfbb 10365 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10369 break 2
10370 fi
10371done
81ecdfbb
RW
10372 done
10373IFS=$as_save_IFS
9a819804
AO
10374
10375fi
10376fi
10377GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10381else
81ecdfbb
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
9a819804
AO
10384fi
10385
81ecdfbb 10386
9a819804
AO
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10391 for ncn_progname in gcc; do
81ecdfbb
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397$as_echo "yes" >&6; }
2429c060
PB
10398 break
10399 else
81ecdfbb
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
2429c060
PB
10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10407 for ncn_progname in gcc; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10413if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10414 $as_echo_n "(cached) " >&6
859789af 10415else
2429c060
PB
10416 if test -n "$GCC_FOR_TARGET"; then
10417 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10418else
c6b750e1
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
81ecdfbb 10424 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10426 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10428 break 2
10429 fi
10430done
81ecdfbb
RW
10431 done
10432IFS=$as_save_IFS
c6b750e1 10433
55db4b87
PB
10434fi
10435fi
c6b750e1 10436GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10437if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10439$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10440else
81ecdfbb
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
55db4b87
PB
10443fi
10444
81ecdfbb 10445
2429c060
PB
10446 fi
10447 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10449set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10452if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10453 $as_echo_n "(cached) " >&6
55db4b87 10454else
05cbd757
PB
10455 if test -n "$GCC_FOR_TARGET"; then
10456 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10457else
c6b750e1
DJ
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
81ecdfbb 10463 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10465 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10467 break 2
10468 fi
10469done
81ecdfbb
RW
10470 done
10471IFS=$as_save_IFS
c6b750e1 10472
55db4b87
PB
10473fi
10474fi
c6b750e1 10475GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10476if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10478$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10479else
81ecdfbb
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
55db4b87 10482fi
c6b750e1 10483
81ecdfbb 10484
2429c060
PB
10485 fi
10486 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10487 done
10488fi
c6b750e1 10489
05cbd757
PB
10490if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10491 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10492else
10493 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10494fi
10495
9a819804
AO
10496
10497
9a819804
AO
10498if test -n "$GFORTRAN_FOR_TARGET"; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10500elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10501 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10502fi
10503
9a819804
AO
10504if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10505 for ncn_progname in gfortran; do
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10507set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10510if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10511 $as_echo_n "(cached) " >&6
55db4b87 10512else
9a819804
AO
10513 if test -n "$GFORTRAN_FOR_TARGET"; then
10514 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10515else
c6b750e1
DJ
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
81ecdfbb 10521 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10523 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10525 break 2
10526 fi
10527done
81ecdfbb
RW
10528 done
10529IFS=$as_save_IFS
c6b750e1 10530
55db4b87
PB
10531fi
10532fi
9a819804
AO
10533GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10534if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10536$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10537else
81ecdfbb
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
55db4b87 10540fi
c6b750e1 10541
81ecdfbb 10542
2429c060
PB
10543 done
10544fi
c6b750e1 10545
9a819804 10546if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10547 for ncn_progname in gfortran; do
81ecdfbb
RW
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10549$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10550 if test -x $with_build_time_tools/${ncn_progname}; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553$as_echo "yes" >&6; }
2429c060
PB
10554 break
10555 else
81ecdfbb
RW
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
2429c060
PB
10558 fi
10559 done
10560fi
10561
10562if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10563 for ncn_progname in gfortran; do
10564 if test -n "$ncn_target_tool_prefix"; then
10565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10569if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10570 $as_echo_n "(cached) " >&6
55db4b87
PB
10571else
10572 if test -n "$GFORTRAN_FOR_TARGET"; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10574else
c6b750e1
DJ
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
81ecdfbb 10580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10584 break 2
10585 fi
10586done
81ecdfbb
RW
10587 done
10588IFS=$as_save_IFS
c6b750e1 10589
55db4b87
PB
10590fi
10591fi
c6b750e1 10592GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10593if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10595$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10596else
81ecdfbb
RW
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
55db4b87
PB
10599fi
10600
81ecdfbb 10601
2429c060
PB
10602 fi
10603 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10605set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10608if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10609 $as_echo_n "(cached) " >&6
55db4b87 10610else
05cbd757 10611 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10612 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
81ecdfbb 10619 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10621 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10623 break 2
10624 fi
10625done
81ecdfbb
RW
10626 done
10627IFS=$as_save_IFS
c6b750e1 10628
55db4b87
PB
10629fi
10630fi
c6b750e1 10631GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10632if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10634$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10635else
81ecdfbb
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
55db4b87 10638fi
c6b750e1 10639
81ecdfbb 10640
2429c060
PB
10641 fi
10642 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10643 done
10644fi
c6b750e1 10645
05cbd757
PB
10646if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10647 set dummy gfortran
10648 if test $build = $target ; then
10649 GFORTRAN_FOR_TARGET="$2"
55db4b87 10650 else
05cbd757 10651 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10652 fi
d3f5afc4
MS
10653else
10654 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10655fi
10656
2429c060
PB
10657
10658
e552509b
ILT
10659if test -n "$GOC_FOR_TARGET"; then
10660 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10661elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10662 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10663fi
10664
10665if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10666 for ncn_progname in gccgo; do
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668set dummy ${ncn_progname}; ac_word=$2
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10671if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10672 $as_echo_n "(cached) " >&6
10673else
10674 if test -n "$GOC_FOR_TARGET"; then
10675 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10676else
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10684 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688done
10689 done
10690IFS=$as_save_IFS
10691
10692fi
10693fi
10694GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10695if test -n "$GOC_FOR_TARGET"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10697$as_echo "$GOC_FOR_TARGET" >&6; }
10698else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
10701fi
10702
10703
10704 done
10705fi
10706
10707if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10708 for ncn_progname in gccgo; do
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10710$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10711 if test -x $with_build_time_tools/${ncn_progname}; then
10712 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10714$as_echo "yes" >&6; }
10715 break
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
10719 fi
10720 done
10721fi
10722
10723if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10724 for ncn_progname in gccgo; do
10725 if test -n "$ncn_target_tool_prefix"; then
10726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10727set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10730if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10731 $as_echo_n "(cached) " >&6
10732else
10733 if test -n "$GOC_FOR_TARGET"; then
10734 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10735else
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10743 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747done
10748 done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10754if test -n "$GOC_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10756$as_echo "$GOC_FOR_TARGET" >&6; }
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760fi
10761
10762
10763 fi
10764 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10766set dummy ${ncn_progname}; ac_word=$2
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10769if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10770 $as_echo_n "(cached) " >&6
10771else
10772 if test -n "$GOC_FOR_TARGET"; then
10773 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10774else
10775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776for as_dir in $PATH
10777do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10782 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10785 fi
10786done
10787 done
10788IFS=$as_save_IFS
10789
10790fi
10791fi
10792GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10793if test -n "$GOC_FOR_TARGET"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10795$as_echo "$GOC_FOR_TARGET" >&6; }
10796else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
10799fi
10800
10801
10802 fi
10803 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10804 done
10805fi
10806
10807if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10808 set dummy gccgo
10809 if test $build = $target ; then
10810 GOC_FOR_TARGET="$2"
10811 else
10812 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10813 fi
10814else
10815 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10816fi
10817
10818
10819
2429c060
PB
10820cat > conftest.c << \EOF
10821#ifdef __GNUC__
10822 gcc_yay;
10823#endif
10824EOF
10825if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10826 have_gcc_for_target=yes
859789af 10827else
2429c060
PB
10828 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10829 have_gcc_for_target=no
859789af 10830fi
2429c060
PB
10831rm conftest.c
10832
10833
10834
859789af 10835
2429c060
PB
10836if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10837 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10839$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10840 if test -x $with_build_time_tools/ar; then
10841 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10842 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10844$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10845 else
81ecdfbb
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
3a35eeb3 10848 fi
2429c060
PB
10849 elif test $build != $host && test $have_gcc_for_target = yes; then
10850 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10851 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10852 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10853 fi
2429c060 10854fi
c6b750e1 10855if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10856 # Extract the first word of "ar", so it can be a program name with args.
10857set dummy ar; ac_word=$2
81ecdfbb
RW
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10860if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 10861 $as_echo_n "(cached) " >&6
859789af 10862else
c6b750e1
DJ
10863 case $AR_FOR_TARGET in
10864 [\\/]* | ?:[\\/]*)
2429c060
PB
10865 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10866 ;;
2429c060 10867 *)
c6b750e1
DJ
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $gcc_cv_tool_dirs
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
81ecdfbb 10873 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10875 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10877 break 2
10878 fi
10879done
81ecdfbb
RW
10880 done
10881IFS=$as_save_IFS
c6b750e1 10882
2429c060
PB
10883 ;;
10884esac
859789af 10885fi
c6b750e1 10886AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10887if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10889$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10890else
81ecdfbb
RW
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
859789af 10893fi
05cbd757 10894
81ecdfbb 10895
2429c060
PB
10896fi
10897if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10898
10899
10900if test -n "$AR_FOR_TARGET"; then
10901 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10902elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10903 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10904fi
10905
10906if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10907 for ncn_progname in ar; do
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10912if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10913 $as_echo_n "(cached) " >&6
9a819804
AO
10914else
10915 if test -n "$AR_FOR_TARGET"; then
10916 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
81ecdfbb 10923 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10925 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10927 break 2
10928 fi
10929done
81ecdfbb
RW
10930 done
10931IFS=$as_save_IFS
9a819804
AO
10932
10933fi
10934fi
10935AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10936if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10938$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10939else
81ecdfbb
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
9a819804
AO
10942fi
10943
81ecdfbb 10944
9a819804
AO
10945 done
10946fi
10947
10948if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10949 for ncn_progname in ar; do
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10952 if test -x $with_build_time_tools/${ncn_progname}; then
10953 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955$as_echo "yes" >&6; }
2429c060
PB
10956 break
10957 else
81ecdfbb
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
2429c060
PB
10960 fi
10961 done
859789af
AC
10962fi
10963
2429c060
PB
10964if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10965 for ncn_progname in ar; do
10966 if test -n "$ncn_target_tool_prefix"; then
10967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10968set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10971if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10972 $as_echo_n "(cached) " >&6
7e0f7140 10973else
2429c060
PB
10974 if test -n "$AR_FOR_TARGET"; then
10975 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10976else
c6b750e1
DJ
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
81ecdfbb 10982 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10984 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10986 break 2
10987 fi
10988done
81ecdfbb
RW
10989 done
10990IFS=$as_save_IFS
c6b750e1 10991
7e0f7140
GK
10992fi
10993fi
c6b750e1 10994AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10995if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10998else
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
7e0f7140
GK
11001fi
11002
81ecdfbb 11003
2429c060
PB
11004 fi
11005 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11007set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11010if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11011 $as_echo_n "(cached) " >&6
7e0f7140 11012else
2429c060
PB
11013 if test -n "$AR_FOR_TARGET"; then
11014 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11015else
c6b750e1
DJ
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
81ecdfbb 11021 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11023 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11025 break 2
11026 fi
11027done
81ecdfbb
RW
11028 done
11029IFS=$as_save_IFS
c6b750e1 11030
7e0f7140
GK
11031fi
11032fi
c6b750e1 11033AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11034if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11037else
81ecdfbb
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
7e0f7140 11040fi
c6b750e1 11041
81ecdfbb 11042
2429c060
PB
11043 fi
11044 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11045 done
11046fi
c6b750e1 11047
2429c060
PB
11048if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11049 set dummy ar
7e0f7140 11050 if test $build = $target ; then
2429c060 11051 AR_FOR_TARGET="$2"
7e0f7140 11052 else
2429c060 11053 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11054 fi
d3f5afc4
MS
11055else
11056 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11057fi
11058
3a35eeb3
PB
11059else
11060 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11061fi
11062
11063
11064
11065
11066if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11067 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11069$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11070 if test -x $with_build_time_tools/as; then
11071 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11072 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11074$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11075 else
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
3a35eeb3 11078 fi
2429c060
PB
11079 elif test $build != $host && test $have_gcc_for_target = yes; then
11080 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11081 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11082 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11083 fi
11084fi
c6b750e1 11085if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11086 # Extract the first word of "as", so it can be a program name with args.
11087set dummy as; ac_word=$2
81ecdfbb
RW
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11090if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11091 $as_echo_n "(cached) " >&6
2429c060 11092else
c6b750e1
DJ
11093 case $AS_FOR_TARGET in
11094 [\\/]* | ?:[\\/]*)
2429c060
PB
11095 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11096 ;;
2429c060 11097 *)
c6b750e1
DJ
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $gcc_cv_tool_dirs
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
81ecdfbb 11103 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11105 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11107 break 2
11108 fi
11109done
81ecdfbb
RW
11110 done
11111IFS=$as_save_IFS
c6b750e1 11112
2429c060
PB
11113 ;;
11114esac
11115fi
c6b750e1 11116AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11117if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11119$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11120else
81ecdfbb
RW
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
2429c060
PB
11123fi
11124
81ecdfbb 11125
2429c060
PB
11126fi
11127if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11128
11129
11130if test -n "$AS_FOR_TARGET"; then
11131 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11132elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11133 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11134fi
11135
11136if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11137 for ncn_progname in as; do
11138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11142if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11143 $as_echo_n "(cached) " >&6
9a819804
AO
11144else
11145 if test -n "$AS_FOR_TARGET"; then
11146 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
81ecdfbb 11153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11155 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11157 break 2
11158 fi
11159done
81ecdfbb
RW
11160 done
11161IFS=$as_save_IFS
9a819804
AO
11162
11163fi
11164fi
11165AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11166if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11168$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11169else
81ecdfbb
RW
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
9a819804
AO
11172fi
11173
81ecdfbb 11174
9a819804
AO
11175 done
11176fi
11177
11178if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11179 for ncn_progname in as; do
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11182 if test -x $with_build_time_tools/${ncn_progname}; then
11183 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185$as_echo "yes" >&6; }
2429c060
PB
11186 break
11187 else
81ecdfbb
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
2429c060
PB
11190 fi
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11195 for ncn_progname in as; do
11196 if test -n "$ncn_target_tool_prefix"; then
11197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11201if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11202 $as_echo_n "(cached) " >&6
2429c060
PB
11203else
11204 if test -n "$AS_FOR_TARGET"; then
11205 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11206else
c6b750e1
DJ
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
81ecdfbb 11212 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11214 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11216 break 2
11217 fi
11218done
81ecdfbb
RW
11219 done
11220IFS=$as_save_IFS
c6b750e1 11221
2429c060
PB
11222fi
11223fi
c6b750e1 11224AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11225if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11228else
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
2429c060
PB
11231fi
11232
81ecdfbb 11233
2429c060
PB
11234 fi
11235 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11240if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11241 $as_echo_n "(cached) " >&6
2429c060
PB
11242else
11243 if test -n "$AS_FOR_TARGET"; then
11244 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11245else
c6b750e1
DJ
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
81ecdfbb 11251 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11253 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11255 break 2
11256 fi
11257done
81ecdfbb
RW
11258 done
11259IFS=$as_save_IFS
c6b750e1 11260
2429c060
PB
11261fi
11262fi
c6b750e1 11263AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11264if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11267else
81ecdfbb
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
2429c060 11270fi
c6b750e1 11271
81ecdfbb 11272
2429c060
PB
11273 fi
11274 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11275 done
11276fi
c6b750e1 11277
2429c060
PB
11278if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11279 set dummy as
11280 if test $build = $target ; then
11281 AS_FOR_TARGET="$2"
11282 else
11283 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11284 fi
d3f5afc4
MS
11285else
11286 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11287fi
11288
3a35eeb3
PB
11289else
11290 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11291fi
11292
11293
11294
11295
11296if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11297 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11299$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11300 if test -x $with_build_time_tools/dlltool; then
11301 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11302 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11304$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11305 else
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
3a35eeb3 11308 fi
2429c060
PB
11309 elif test $build != $host && test $have_gcc_for_target = yes; then
11310 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11311 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11312 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11313 fi
11314fi
c6b750e1 11315if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11316 # Extract the first word of "dlltool", so it can be a program name with args.
11317set dummy dlltool; ac_word=$2
81ecdfbb
RW
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11320if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11321 $as_echo_n "(cached) " >&6
2429c060 11322else
c6b750e1
DJ
11323 case $DLLTOOL_FOR_TARGET in
11324 [\\/]* | ?:[\\/]*)
2429c060
PB
11325 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11326 ;;
2429c060 11327 *)
c6b750e1
DJ
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $gcc_cv_tool_dirs
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
81ecdfbb 11333 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11335 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11337 break 2
11338 fi
11339done
81ecdfbb
RW
11340 done
11341IFS=$as_save_IFS
c6b750e1 11342
2429c060
PB
11343 ;;
11344esac
11345fi
c6b750e1 11346DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11347if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11349$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11350else
81ecdfbb
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
2429c060
PB
11353fi
11354
81ecdfbb 11355
2429c060
PB
11356fi
11357if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11358
11359
11360if test -n "$DLLTOOL_FOR_TARGET"; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11362elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11363 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11364fi
11365
11366if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11367 for ncn_progname in dlltool; do
11368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11372if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11373 $as_echo_n "(cached) " >&6
9a819804
AO
11374else
11375 if test -n "$DLLTOOL_FOR_TARGET"; then
11376 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
81ecdfbb 11383 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11385 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11387 break 2
11388 fi
11389done
81ecdfbb
RW
11390 done
11391IFS=$as_save_IFS
9a819804
AO
11392
11393fi
11394fi
11395DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11396if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11398$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11399else
81ecdfbb
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
9a819804
AO
11402fi
11403
81ecdfbb 11404
9a819804
AO
11405 done
11406fi
11407
11408if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11409 for ncn_progname in dlltool; do
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11412 if test -x $with_build_time_tools/${ncn_progname}; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
2429c060
PB
11416 break
11417 else
81ecdfbb
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
2429c060
PB
11420 fi
11421 done
11422fi
11423
11424if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11425 for ncn_progname in dlltool; do
11426 if test -n "$ncn_target_tool_prefix"; then
11427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11431if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11432 $as_echo_n "(cached) " >&6
2429c060
PB
11433else
11434 if test -n "$DLLTOOL_FOR_TARGET"; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11436else
c6b750e1
DJ
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
81ecdfbb 11442 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11444 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11446 break 2
11447 fi
11448done
81ecdfbb
RW
11449 done
11450IFS=$as_save_IFS
c6b750e1 11451
2429c060
PB
11452fi
11453fi
c6b750e1 11454DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11455if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11458else
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
2429c060
PB
11461fi
11462
81ecdfbb 11463
2429c060
PB
11464 fi
11465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11470if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11471 $as_echo_n "(cached) " >&6
2429c060
PB
11472else
11473 if test -n "$DLLTOOL_FOR_TARGET"; then
11474 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11475else
c6b750e1
DJ
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
81ecdfbb 11481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11483 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11485 break 2
11486 fi
11487done
81ecdfbb
RW
11488 done
11489IFS=$as_save_IFS
c6b750e1 11490
2429c060
PB
11491fi
11492fi
c6b750e1 11493DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11494if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11497else
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
2429c060 11500fi
c6b750e1 11501
81ecdfbb 11502
2429c060
PB
11503 fi
11504 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11505 done
11506fi
c6b750e1 11507
2429c060
PB
11508if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11509 set dummy dlltool
11510 if test $build = $target ; then
11511 DLLTOOL_FOR_TARGET="$2"
11512 else
11513 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 fi
d3f5afc4
MS
11515else
11516 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11517fi
11518
3a35eeb3
PB
11519else
11520 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11521fi
11522
11523
11524
11525
11526if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11527 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11529$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11530 if test -x $with_build_time_tools/ld; then
11531 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11532 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11534$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11535 else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
3a35eeb3 11538 fi
2429c060
PB
11539 elif test $build != $host && test $have_gcc_for_target = yes; then
11540 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11541 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11542 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11543 fi
11544fi
c6b750e1 11545if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11546 # Extract the first word of "ld", so it can be a program name with args.
11547set dummy ld; ac_word=$2
81ecdfbb
RW
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11550if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11551 $as_echo_n "(cached) " >&6
2429c060 11552else
c6b750e1
DJ
11553 case $LD_FOR_TARGET in
11554 [\\/]* | ?:[\\/]*)
2429c060
PB
11555 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11556 ;;
2429c060 11557 *)
c6b750e1
DJ
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $gcc_cv_tool_dirs
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
81ecdfbb 11563 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11565 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11567 break 2
11568 fi
11569done
81ecdfbb
RW
11570 done
11571IFS=$as_save_IFS
c6b750e1 11572
2429c060
PB
11573 ;;
11574esac
11575fi
c6b750e1 11576LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11577if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11579$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11580else
81ecdfbb
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
2429c060
PB
11583fi
11584
81ecdfbb 11585
2429c060
PB
11586fi
11587if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11588
11589
11590if test -n "$LD_FOR_TARGET"; then
11591 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11592elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11593 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11594fi
11595
11596if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11597 for ncn_progname in ld; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11602if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11603 $as_echo_n "(cached) " >&6
9a819804
AO
11604else
11605 if test -n "$LD_FOR_TARGET"; then
11606 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
81ecdfbb 11613 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11615 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11617 break 2
11618 fi
11619done
81ecdfbb
RW
11620 done
11621IFS=$as_save_IFS
9a819804
AO
11622
11623fi
11624fi
11625LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11626if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11628$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11629else
81ecdfbb
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
9a819804
AO
11632fi
11633
81ecdfbb 11634
9a819804
AO
11635 done
11636fi
11637
11638if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11639 for ncn_progname in ld; do
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11642 if test -x $with_build_time_tools/${ncn_progname}; then
11643 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
2429c060
PB
11646 break
11647 else
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
2429c060
PB
11650 fi
11651 done
11652fi
11653
11654if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11655 for ncn_progname in ld; do
11656 if test -n "$ncn_target_tool_prefix"; then
11657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11658set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11661if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11662 $as_echo_n "(cached) " >&6
2429c060
PB
11663else
11664 if test -n "$LD_FOR_TARGET"; then
11665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11666else
c6b750e1
DJ
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
81ecdfbb 11672 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11674 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11676 break 2
11677 fi
11678done
81ecdfbb
RW
11679 done
11680IFS=$as_save_IFS
c6b750e1 11681
2429c060
PB
11682fi
11683fi
c6b750e1 11684LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11685if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11688else
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
2429c060
PB
11691fi
11692
81ecdfbb 11693
2429c060
PB
11694 fi
11695 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11700if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11701 $as_echo_n "(cached) " >&6
2429c060
PB
11702else
11703 if test -n "$LD_FOR_TARGET"; then
11704 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11705else
c6b750e1
DJ
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
81ecdfbb 11711 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11713 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11715 break 2
11716 fi
11717done
81ecdfbb
RW
11718 done
11719IFS=$as_save_IFS
c6b750e1 11720
2429c060
PB
11721fi
11722fi
c6b750e1 11723LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11724if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11727else
81ecdfbb
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
2429c060 11730fi
c6b750e1 11731
81ecdfbb 11732
2429c060
PB
11733 fi
11734 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11735 done
11736fi
c6b750e1 11737
2429c060
PB
11738if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11739 set dummy ld
11740 if test $build = $target ; then
11741 LD_FOR_TARGET="$2"
11742 else
11743 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744 fi
d3f5afc4
MS
11745else
11746 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11747fi
11748
3a35eeb3
PB
11749else
11750 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11751fi
11752
11753
11754
11755
11756if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11757 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11759$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11760 if test -x $with_build_time_tools/lipo; then
11761 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11762 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11764$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11765 else
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
3a35eeb3 11768 fi
2429c060
PB
11769 elif test $build != $host && test $have_gcc_for_target = yes; then
11770 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11771 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11772 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11773 fi
11774fi
9a819804
AO
11775if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11776 # Extract the first word of "lipo", so it can be a program name with args.
11777set dummy lipo; ac_word=$2
81ecdfbb
RW
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11780if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11781 $as_echo_n "(cached) " >&6
9a819804
AO
11782else
11783 case $LIPO_FOR_TARGET in
11784 [\\/]* | ?:[\\/]*)
11785 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11786 ;;
11787 *)
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $gcc_cv_tool_dirs
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
81ecdfbb 11793 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11795 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11797 break 2
11798 fi
11799done
81ecdfbb
RW
11800 done
11801IFS=$as_save_IFS
9a819804
AO
11802
11803 ;;
11804esac
11805fi
11806LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11807if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11809$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11810else
81ecdfbb
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
9a819804
AO
11813fi
11814
81ecdfbb 11815
9a819804
AO
11816fi
11817if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11818
11819
11820if test -n "$LIPO_FOR_TARGET"; then
11821 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11822elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11823 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11824fi
11825
11826if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11827 for ncn_progname in lipo; do
11828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11832if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11833 $as_echo_n "(cached) " >&6
2429c060 11834else
9a819804
AO
11835 if test -n "$LIPO_FOR_TARGET"; then
11836 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
c6b750e1
DJ
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
81ecdfbb 11843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11845 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11847 break 2
11848 fi
11849done
81ecdfbb
RW
11850 done
11851IFS=$as_save_IFS
c6b750e1 11852
2429c060 11853fi
9a819804
AO
11854fi
11855LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11856if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11858$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11859else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
2429c060
PB
11862fi
11863
81ecdfbb 11864
9a819804 11865 done
2429c060 11866fi
9a819804
AO
11867
11868if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11869 for ncn_progname in lipo; do
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11872 if test -x $with_build_time_tools/${ncn_progname}; then
11873 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875$as_echo "yes" >&6; }
2429c060
PB
11876 break
11877 else
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
2429c060
PB
11880 fi
11881 done
11882fi
11883
11884if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11885 for ncn_progname in lipo; do
11886 if test -n "$ncn_target_tool_prefix"; then
11887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11888set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11891if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11892 $as_echo_n "(cached) " >&6
2429c060
PB
11893else
11894 if test -n "$LIPO_FOR_TARGET"; then
11895 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11896else
c6b750e1
DJ
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
81ecdfbb 11902 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11904 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11906 break 2
11907 fi
11908done
81ecdfbb
RW
11909 done
11910IFS=$as_save_IFS
c6b750e1 11911
2429c060
PB
11912fi
11913fi
c6b750e1 11914LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11915if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11918else
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
2429c060
PB
11921fi
11922
81ecdfbb 11923
2429c060
PB
11924 fi
11925 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11927set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11930if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11931 $as_echo_n "(cached) " >&6
2429c060
PB
11932else
11933 if test -n "$LIPO_FOR_TARGET"; then
11934 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11935else
c6b750e1
DJ
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
81ecdfbb 11941 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11943 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11945 break 2
11946 fi
11947done
81ecdfbb
RW
11948 done
11949IFS=$as_save_IFS
c6b750e1 11950
2429c060
PB
11951fi
11952fi
c6b750e1 11953LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11954if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11957else
81ecdfbb
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
2429c060 11960fi
c6b750e1 11961
81ecdfbb 11962
2429c060
PB
11963 fi
11964 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11965 done
11966fi
c6b750e1 11967
2429c060
PB
11968if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11969 set dummy lipo
11970 if test $build = $target ; then
11971 LIPO_FOR_TARGET="$2"
11972 else
11973 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 fi
d3f5afc4
MS
11975else
11976 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11977fi
11978
3a35eeb3
PB
11979else
11980 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11981fi
11982
11983
11984
11985
11986if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11987 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11989$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11990 if test -x $with_build_time_tools/nm; then
11991 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11992 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11994$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11995 else
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
3a35eeb3 11998 fi
2429c060
PB
11999 elif test $build != $host && test $have_gcc_for_target = yes; then
12000 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12001 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12002 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12003 fi
12004fi
c6b750e1 12005if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12006 # Extract the first word of "nm", so it can be a program name with args.
12007set dummy nm; ac_word=$2
81ecdfbb
RW
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12010if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12011 $as_echo_n "(cached) " >&6
2429c060 12012else
c6b750e1
DJ
12013 case $NM_FOR_TARGET in
12014 [\\/]* | ?:[\\/]*)
2429c060
PB
12015 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12016 ;;
2429c060 12017 *)
c6b750e1
DJ
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $gcc_cv_tool_dirs
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
81ecdfbb 12023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12025 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12027 break 2
12028 fi
12029done
81ecdfbb
RW
12030 done
12031IFS=$as_save_IFS
c6b750e1 12032
2429c060
PB
12033 ;;
12034esac
12035fi
c6b750e1 12036NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12037if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12039$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12040else
81ecdfbb
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
2429c060
PB
12043fi
12044
81ecdfbb 12045
2429c060
PB
12046fi
12047if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12048
12049
12050if test -n "$NM_FOR_TARGET"; then
12051 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12052elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12053 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12054fi
12055
12056if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12057 for ncn_progname in nm; do
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12062if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12063 $as_echo_n "(cached) " >&6
9a819804
AO
12064else
12065 if test -n "$NM_FOR_TARGET"; then
12066 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
81ecdfbb 12073 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12075 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12077 break 2
12078 fi
12079done
81ecdfbb
RW
12080 done
12081IFS=$as_save_IFS
9a819804
AO
12082
12083fi
12084fi
12085NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12086if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12088$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12089else
81ecdfbb
RW
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
9a819804
AO
12092fi
12093
81ecdfbb 12094
9a819804
AO
12095 done
12096fi
12097
12098if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12099 for ncn_progname in nm; do
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12102 if test -x $with_build_time_tools/${ncn_progname}; then
12103 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105$as_echo "yes" >&6; }
2429c060
PB
12106 break
12107 else
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
2429c060
PB
12110 fi
12111 done
12112fi
12113
12114if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12115 for ncn_progname in nm; do
12116 if test -n "$ncn_target_tool_prefix"; then
12117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12121if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12122 $as_echo_n "(cached) " >&6
859789af 12123else
55db4b87
PB
12124 if test -n "$NM_FOR_TARGET"; then
12125 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12126else
c6b750e1
DJ
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
81ecdfbb 12132 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12134 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12136 break 2
12137 fi
12138done
81ecdfbb
RW
12139 done
12140IFS=$as_save_IFS
c6b750e1 12141
859789af
AC
12142fi
12143fi
c6b750e1 12144NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12145if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12148else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
859789af
AC
12151fi
12152
81ecdfbb 12153
2429c060
PB
12154 fi
12155 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12160if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12161 $as_echo_n "(cached) " >&6
859789af 12162else
05cbd757
PB
12163 if test -n "$NM_FOR_TARGET"; then
12164 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12165else
c6b750e1
DJ
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
81ecdfbb 12171 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12173 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12175 break 2
12176 fi
12177done
81ecdfbb
RW
12178 done
12179IFS=$as_save_IFS
c6b750e1 12180
859789af
AC
12181fi
12182fi
c6b750e1 12183NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12184if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12187else
81ecdfbb
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
859789af 12190fi
c6b750e1 12191
81ecdfbb 12192
2429c060
PB
12193 fi
12194 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12195 done
12196fi
c6b750e1 12197
05cbd757
PB
12198if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12199 set dummy nm
12200 if test $build = $target ; then
12201 NM_FOR_TARGET="$2"
859789af 12202 else
05cbd757 12203 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12204 fi
d3f5afc4
MS
12205else
12206 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12207fi
12208
3a35eeb3
PB
12209else
12210 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12211fi
12212
12213
12214
12215
6b91c541
AP
12216if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12217 if test -n "$with_build_time_tools"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12219$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12220 if test -x $with_build_time_tools/objcopy; then
12221 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12222 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12224$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228 fi
12229 elif test $build != $host && test $have_gcc_for_target = yes; then
12230 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12231 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12232 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12233 fi
12234fi
12235if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236 # Extract the first word of "objcopy", so it can be a program name with args.
12237set dummy objcopy; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12240if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12241 $as_echo_n "(cached) " >&6
12242else
12243 case $OBJCOPY_FOR_TARGET in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $gcc_cv_tool_dirs
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12255 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259done
12260 done
12261IFS=$as_save_IFS
12262
12263 ;;
12264esac
12265fi
12266OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12267if test -n "$OBJCOPY_FOR_TARGET"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12269$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12278
12279
12280if test -n "$OBJCOPY_FOR_TARGET"; then
12281 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12282elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12283 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12284fi
12285
12286if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12287 for ncn_progname in objcopy; do
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289set dummy ${ncn_progname}; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12292if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12293 $as_echo_n "(cached) " >&6
12294else
12295 if test -n "$OBJCOPY_FOR_TARGET"; then
12296 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12305 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309done
12310 done
12311IFS=$as_save_IFS
12312
12313fi
12314fi
12315OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12316if test -n "$OBJCOPY_FOR_TARGET"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12318$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12319else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
12322fi
12323
12324
12325 done
12326fi
12327
12328if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329 for ncn_progname in objcopy; do
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12332 if test -x $with_build_time_tools/${ncn_progname}; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; }
12336 break
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
12340 fi
12341 done
12342fi
12343
12344if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12345 for ncn_progname in objcopy; do
12346 if test -n "$ncn_target_tool_prefix"; then
12347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12351if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12352 $as_echo_n "(cached) " >&6
12353else
12354 if test -n "$OBJCOPY_FOR_TARGET"; then
12355 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12364 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368done
12369 done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12375if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384 fi
12385 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387set dummy ${ncn_progname}; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12390if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12391 $as_echo_n "(cached) " >&6
12392else
12393 if test -n "$OBJCOPY_FOR_TARGET"; then
12394 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12403 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407done
12408 done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12414if test -n "$OBJCOPY_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12416$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12417else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422
12423 fi
12424 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12429 set dummy objcopy
12430 if test $build = $target ; then
12431 OBJCOPY_FOR_TARGET="$2"
12432 else
12433 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 fi
12435else
12436 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12437fi
12438
12439else
12440 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12441fi
12442
12443
12444
12445
2429c060
PB
12446if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12447 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12449$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12450 if test -x $with_build_time_tools/objdump; then
12451 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12452 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12454$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12455 else
81ecdfbb
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457$as_echo "no" >&6; }
3a35eeb3 12458 fi
2429c060
PB
12459 elif test $build != $host && test $have_gcc_for_target = yes; then
12460 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12461 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12462 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12463 fi
12464fi
c6b750e1 12465if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12466 # Extract the first word of "objdump", so it can be a program name with args.
12467set dummy objdump; ac_word=$2
81ecdfbb
RW
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12470if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12471 $as_echo_n "(cached) " >&6
2429c060 12472else
c6b750e1
DJ
12473 case $OBJDUMP_FOR_TARGET in
12474 [\\/]* | ?:[\\/]*)
2429c060
PB
12475 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12476 ;;
2429c060 12477 *)
c6b750e1
DJ
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $gcc_cv_tool_dirs
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
81ecdfbb 12483 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12485 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12487 break 2
12488 fi
12489done
81ecdfbb
RW
12490 done
12491IFS=$as_save_IFS
c6b750e1 12492
2429c060
PB
12493 ;;
12494esac
12495fi
c6b750e1 12496OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12497if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12499$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12500else
81ecdfbb
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
2429c060
PB
12503fi
12504
81ecdfbb 12505
2429c060
PB
12506fi
12507if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12508
12509
12510if test -n "$OBJDUMP_FOR_TARGET"; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12512elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12513 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12514fi
12515
12516if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12517 for ncn_progname in objdump; do
12518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12519set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12522if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12523 $as_echo_n "(cached) " >&6
9a819804
AO
12524else
12525 if test -n "$OBJDUMP_FOR_TARGET"; then
12526 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12527else
12528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529for as_dir in $PATH
12530do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
81ecdfbb 12533 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12535 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12537 break 2
12538 fi
12539done
81ecdfbb
RW
12540 done
12541IFS=$as_save_IFS
9a819804
AO
12542
12543fi
12544fi
12545OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12546if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12548$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12549else
81ecdfbb
RW
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
9a819804
AO
12552fi
12553
81ecdfbb 12554
9a819804
AO
12555 done
12556fi
12557
12558if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12559 for ncn_progname in objdump; do
81ecdfbb
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12561$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12562 if test -x $with_build_time_tools/${ncn_progname}; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12565$as_echo "yes" >&6; }
2429c060
PB
12566 break
12567 else
81ecdfbb
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
2429c060
PB
12570 fi
12571 done
12572fi
12573
12574if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12575 for ncn_progname in objdump; do
12576 if test -n "$ncn_target_tool_prefix"; then
12577 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12578set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12581if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12582 $as_echo_n "(cached) " >&6
5ae72758
DJ
12583else
12584 if test -n "$OBJDUMP_FOR_TARGET"; then
12585 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12586else
c6b750e1
DJ
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
81ecdfbb 12592 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12594 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12596 break 2
12597 fi
12598done
81ecdfbb
RW
12599 done
12600IFS=$as_save_IFS
c6b750e1 12601
5ae72758
DJ
12602fi
12603fi
c6b750e1 12604OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12605if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12608else
81ecdfbb
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
5ae72758
DJ
12611fi
12612
81ecdfbb 12613
2429c060
PB
12614 fi
12615 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12617set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12620if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12621 $as_echo_n "(cached) " >&6
5ae72758
DJ
12622else
12623 if test -n "$OBJDUMP_FOR_TARGET"; then
12624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12625else
c6b750e1
DJ
12626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
81ecdfbb 12631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12635 break 2
12636 fi
12637done
81ecdfbb
RW
12638 done
12639IFS=$as_save_IFS
c6b750e1 12640
5ae72758
DJ
12641fi
12642fi
c6b750e1 12643OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12644if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12646$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12647else
81ecdfbb
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
5ae72758 12650fi
c6b750e1 12651
81ecdfbb 12652
2429c060
PB
12653 fi
12654 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12655 done
12656fi
c6b750e1 12657
5ae72758
DJ
12658if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12659 set dummy objdump
12660 if test $build = $target ; then
12661 OBJDUMP_FOR_TARGET="$2"
12662 else
12663 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12664 fi
d3f5afc4
MS
12665else
12666 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12667fi
12668
3a35eeb3
PB
12669else
12670 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12671fi
12672
12673
12674
12675
12676if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12677 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12679$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12680 if test -x $with_build_time_tools/ranlib; then
12681 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12682 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12684$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12685 else
81ecdfbb
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
3a35eeb3 12688 fi
2429c060
PB
12689 elif test $build != $host && test $have_gcc_for_target = yes; then
12690 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12691 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12692 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12693 fi
12694fi
c6b750e1 12695if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12696 # Extract the first word of "ranlib", so it can be a program name with args.
12697set dummy ranlib; ac_word=$2
81ecdfbb
RW
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12700if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12701 $as_echo_n "(cached) " >&6
2429c060 12702else
c6b750e1
DJ
12703 case $RANLIB_FOR_TARGET in
12704 [\\/]* | ?:[\\/]*)
2429c060
PB
12705 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12706 ;;
2429c060 12707 *)
c6b750e1
DJ
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709for as_dir in $gcc_cv_tool_dirs
12710do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
81ecdfbb 12713 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12715 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12717 break 2
12718 fi
12719done
81ecdfbb
RW
12720 done
12721IFS=$as_save_IFS
c6b750e1 12722
2429c060
PB
12723 ;;
12724esac
12725fi
c6b750e1 12726RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12727if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12729$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12730else
81ecdfbb
RW
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
2429c060
PB
12733fi
12734
81ecdfbb 12735
2429c060
PB
12736fi
12737if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12738
12739
12740if test -n "$RANLIB_FOR_TARGET"; then
12741 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12742elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12743 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12744fi
12745
12746if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12747 for ncn_progname in ranlib; do
12748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12749set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12752if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12753 $as_echo_n "(cached) " >&6
9a819804
AO
12754else
12755 if test -n "$RANLIB_FOR_TARGET"; then
12756 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12757else
12758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
81ecdfbb 12763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12765 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12767 break 2
12768 fi
12769done
81ecdfbb
RW
12770 done
12771IFS=$as_save_IFS
9a819804
AO
12772
12773fi
12774fi
12775RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12776if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12778$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12779else
81ecdfbb
RW
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
9a819804
AO
12782fi
12783
81ecdfbb 12784
9a819804
AO
12785 done
12786fi
12787
12788if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12789 for ncn_progname in ranlib; do
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12791$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12792 if test -x $with_build_time_tools/${ncn_progname}; then
12793 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795$as_echo "yes" >&6; }
2429c060
PB
12796 break
12797 else
81ecdfbb
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
2429c060
PB
12800 fi
12801 done
12802fi
12803
12804if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12805 for ncn_progname in ranlib; do
12806 if test -n "$ncn_target_tool_prefix"; then
12807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12808set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12811if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12812 $as_echo_n "(cached) " >&6
859789af 12813else
55db4b87
PB
12814 if test -n "$RANLIB_FOR_TARGET"; then
12815 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12816else
c6b750e1
DJ
12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
81ecdfbb 12822 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12824 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12826 break 2
12827 fi
12828done
81ecdfbb
RW
12829 done
12830IFS=$as_save_IFS
c6b750e1 12831
859789af
AC
12832fi
12833fi
c6b750e1 12834RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12835if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12838else
81ecdfbb
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
859789af
AC
12841fi
12842
81ecdfbb 12843
2429c060
PB
12844 fi
12845 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12847set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12850if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12851 $as_echo_n "(cached) " >&6
859789af 12852else
05cbd757
PB
12853 if test -n "$RANLIB_FOR_TARGET"; then
12854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12855else
c6b750e1
DJ
12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
81ecdfbb 12861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12865 break 2
12866 fi
12867done
81ecdfbb
RW
12868 done
12869IFS=$as_save_IFS
c6b750e1 12870
859789af
AC
12871fi
12872fi
c6b750e1 12873RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12874if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12876$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12877else
81ecdfbb
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
859789af 12880fi
c6b750e1 12881
81ecdfbb 12882
2429c060
PB
12883 fi
12884 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12885 done
12886fi
c6b750e1 12887
2429c060
PB
12888if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12889 set dummy ranlib
12890 if test $build = $target ; then
12891 RANLIB_FOR_TARGET="$2"
12892 else
12893 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12894 fi
d3f5afc4
MS
12895else
12896 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12897fi
05cbd757 12898
3a35eeb3
PB
12899else
12900 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12901fi
12902
2429c060
PB
12903
12904
12905
b121d7d4
DD
12906if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12907 if test -n "$with_build_time_tools"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12909$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12910 if test -x $with_build_time_tools/readelf; then
12911 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12912 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12914$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917$as_echo "no" >&6; }
12918 fi
12919 elif test $build != $host && test $have_gcc_for_target = yes; then
12920 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12921 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12922 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12923 fi
12924fi
12925if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12926 # Extract the first word of "readelf", so it can be a program name with args.
12927set dummy readelf; ac_word=$2
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12930if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12931 $as_echo_n "(cached) " >&6
12932else
12933 case $READELF_FOR_TARGET in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12936 ;;
12937 *)
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $gcc_cv_tool_dirs
12940do
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12945 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949done
12950 done
12951IFS=$as_save_IFS
12952
12953 ;;
12954esac
12955fi
12956READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12957if test -n "$READELF_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12959$as_echo "$READELF_FOR_TARGET" >&6; }
12960else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963fi
12964
12965
12966fi
12967if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12968
12969
12970if test -n "$READELF_FOR_TARGET"; then
12971 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12972elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12973 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12974fi
12975
12976if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12977 for ncn_progname in readelf; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979set dummy ${ncn_progname}; ac_word=$2
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12982if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12983 $as_echo_n "(cached) " >&6
12984else
12985 if test -n "$READELF_FOR_TARGET"; then
12986 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12987else
12988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989for as_dir in $PATH
12990do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12995 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999done
13000 done
13001IFS=$as_save_IFS
13002
13003fi
13004fi
13005READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13006if test -n "$READELF_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13008$as_echo "$READELF_FOR_TARGET" >&6; }
13009else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011$as_echo "no" >&6; }
13012fi
13013
13014
13015 done
13016fi
13017
13018if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in readelf; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025$as_echo "yes" >&6; }
13026 break
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
13030 fi
13031 done
13032fi
13033
13034if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13035 for ncn_progname in readelf; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13041if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13042 $as_echo_n "(cached) " >&6
13043else
13044 if test -n "$READELF_FOR_TARGET"; then
13045 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13054 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058done
13059 done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13065if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067$as_echo "$READELF_FOR_TARGET" >&6; }
13068else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077set dummy ${ncn_progname}; ac_word=$2
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13080if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13081 $as_echo_n "(cached) " >&6
13082else
13083 if test -n "$READELF_FOR_TARGET"; then
13084 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13085else
13086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087for as_dir in $PATH
13088do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13093 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097done
13098 done
13099IFS=$as_save_IFS
13100
13101fi
13102fi
13103READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13104if test -n "$READELF_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13106$as_echo "$READELF_FOR_TARGET" >&6; }
13107else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
13110fi
13111
13112
13113 fi
13114 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13115 done
13116fi
13117
13118if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13119 set dummy readelf
13120 if test $build = $target ; then
13121 READELF_FOR_TARGET="$2"
13122 else
13123 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13124 fi
13125else
13126 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13127fi
13128
13129else
13130 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13131fi
13132
13133
13134
13135
2429c060
PB
13136if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13137 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13139$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13140 if test -x $with_build_time_tools/strip; then
13141 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13142 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13144$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13145 else
81ecdfbb
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
3a35eeb3 13148 fi
2429c060
PB
13149 elif test $build != $host && test $have_gcc_for_target = yes; then
13150 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13151 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13152 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13153 fi
13154fi
c6b750e1 13155if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13156 # Extract the first word of "strip", so it can be a program name with args.
13157set dummy strip; ac_word=$2
81ecdfbb
RW
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13160if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13161 $as_echo_n "(cached) " >&6
2429c060 13162else
c6b750e1
DJ
13163 case $STRIP_FOR_TARGET in
13164 [\\/]* | ?:[\\/]*)
2429c060
PB
13165 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13166 ;;
2429c060 13167 *)
c6b750e1
DJ
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $gcc_cv_tool_dirs
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
81ecdfbb 13173 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13175 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13177 break 2
13178 fi
13179done
81ecdfbb
RW
13180 done
13181IFS=$as_save_IFS
c6b750e1 13182
2429c060
PB
13183 ;;
13184esac
13185fi
c6b750e1 13186STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13187if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13189$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13190else
81ecdfbb
RW
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192$as_echo "no" >&6; }
2429c060
PB
13193fi
13194
81ecdfbb 13195
2429c060
PB
13196fi
13197if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13198
13199
13200if test -n "$STRIP_FOR_TARGET"; then
13201 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13202elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13203 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13204fi
13205
13206if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13207 for ncn_progname in strip; do
13208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13209set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13212if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13213 $as_echo_n "(cached) " >&6
9a819804
AO
13214else
13215 if test -n "$STRIP_FOR_TARGET"; then
13216 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13217else
13218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219for as_dir in $PATH
13220do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
81ecdfbb 13223 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13225 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13227 break 2
13228 fi
13229done
81ecdfbb
RW
13230 done
13231IFS=$as_save_IFS
9a819804
AO
13232
13233fi
13234fi
13235STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13236if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13238$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13239else
81ecdfbb
RW
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241$as_echo "no" >&6; }
9a819804
AO
13242fi
13243
81ecdfbb 13244
9a819804
AO
13245 done
13246fi
13247
13248if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13249 for ncn_progname in strip; do
81ecdfbb
RW
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13251$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13252 if test -x $with_build_time_tools/${ncn_progname}; then
13253 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13255$as_echo "yes" >&6; }
2429c060
PB
13256 break
13257 else
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
2429c060
PB
13260 fi
13261 done
13262fi
13263
13264if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13265 for ncn_progname in strip; do
13266 if test -n "$ncn_target_tool_prefix"; then
13267 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13268set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13271if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13272 $as_echo_n "(cached) " >&6
7e0f7140
GK
13273else
13274 if test -n "$STRIP_FOR_TARGET"; then
13275 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13276else
13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278for as_dir in $PATH
13279do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
81ecdfbb 13282 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13284 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13286 break 2
13287 fi
13288done
81ecdfbb
RW
13289 done
13290IFS=$as_save_IFS
c6b750e1 13291
7e0f7140
GK
13292fi
13293fi
c6b750e1 13294STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13295if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13298else
81ecdfbb
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
7e0f7140
GK
13301fi
13302
81ecdfbb 13303
2429c060
PB
13304 fi
13305 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13307set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13310if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13311 $as_echo_n "(cached) " >&6
7e0f7140
GK
13312else
13313 if test -n "$STRIP_FOR_TARGET"; then
13314 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13315else
c6b750e1
DJ
13316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317for as_dir in $PATH
13318do
13319 IFS=$as_save_IFS
13320 test -z "$as_dir" && as_dir=.
81ecdfbb 13321 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13323 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13325 break 2
13326 fi
13327done
81ecdfbb
RW
13328 done
13329IFS=$as_save_IFS
c6b750e1 13330
7e0f7140
GK
13331fi
13332fi
c6b750e1 13333STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13334if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13336$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13337else
81ecdfbb
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339$as_echo "no" >&6; }
7e0f7140 13340fi
c6b750e1 13341
81ecdfbb 13342
2429c060
PB
13343 fi
13344 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13345 done
13346fi
c6b750e1 13347
7e0f7140
GK
13348if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13349 set dummy strip
13350 if test $build = $target ; then
13351 STRIP_FOR_TARGET="$2"
13352 else
13353 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13354 fi
d3f5afc4
MS
13355else
13356 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13357fi
13358
3a35eeb3
PB
13359else
13360 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13361fi
13362
13363
13364
13365
13366if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13367 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13369$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13370 if test -x $with_build_time_tools/windres; then
13371 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13372 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13374$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13375 else
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
3a35eeb3 13378 fi
2429c060
PB
13379 elif test $build != $host && test $have_gcc_for_target = yes; then
13380 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13381 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13382 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13383 fi
13384fi
c6b750e1 13385if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13386 # Extract the first word of "windres", so it can be a program name with args.
13387set dummy windres; ac_word=$2
81ecdfbb
RW
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13390if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13391 $as_echo_n "(cached) " >&6
2429c060 13392else
c6b750e1
DJ
13393 case $WINDRES_FOR_TARGET in
13394 [\\/]* | ?:[\\/]*)
2429c060
PB
13395 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13396 ;;
2429c060 13397 *)
c6b750e1
DJ
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $gcc_cv_tool_dirs
13400do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
81ecdfbb 13403 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13405 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13407 break 2
13408 fi
13409done
81ecdfbb
RW
13410 done
13411IFS=$as_save_IFS
c6b750e1 13412
2429c060
PB
13413 ;;
13414esac
13415fi
c6b750e1 13416WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13417if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13419$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13420else
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422$as_echo "no" >&6; }
2429c060
PB
13423fi
13424
81ecdfbb 13425
2429c060
PB
13426fi
13427if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13428
13429
13430if test -n "$WINDRES_FOR_TARGET"; then
13431 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13432elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13433 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13434fi
13435
13436if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13437 for ncn_progname in windres; do
13438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13439set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13442if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13443 $as_echo_n "(cached) " >&6
9a819804
AO
13444else
13445 if test -n "$WINDRES_FOR_TARGET"; then
13446 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
81ecdfbb 13453 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13455 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13457 break 2
13458 fi
13459done
81ecdfbb
RW
13460 done
13461IFS=$as_save_IFS
9a819804
AO
13462
13463fi
13464fi
13465WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13466if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13468$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13469else
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471$as_echo "no" >&6; }
9a819804
AO
13472fi
13473
81ecdfbb 13474
9a819804
AO
13475 done
13476fi
13477
13478if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13479 for ncn_progname in windres; do
81ecdfbb
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13481$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13482 if test -x $with_build_time_tools/${ncn_progname}; then
13483 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485$as_echo "yes" >&6; }
2429c060
PB
13486 break
13487 else
81ecdfbb
RW
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
2429c060
PB
13490 fi
13491 done
13492fi
13493
13494if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13495 for ncn_progname in windres; do
13496 if test -n "$ncn_target_tool_prefix"; then
13497 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13498set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13501if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13502 $as_echo_n "(cached) " >&6
859789af 13503else
55db4b87
PB
13504 if test -n "$WINDRES_FOR_TARGET"; then
13505 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13506else
c6b750e1
DJ
13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $PATH
13509do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
81ecdfbb 13512 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13514 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13516 break 2
13517 fi
13518done
81ecdfbb
RW
13519 done
13520IFS=$as_save_IFS
c6b750e1 13521
859789af
AC
13522fi
13523fi
c6b750e1 13524WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13525if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13528else
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
859789af
AC
13531fi
13532
81ecdfbb 13533
2429c060
PB
13534 fi
13535 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13537set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13540if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13541 $as_echo_n "(cached) " >&6
859789af 13542else
05cbd757
PB
13543 if test -n "$WINDRES_FOR_TARGET"; then
13544 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13545else
c6b750e1
DJ
13546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547for as_dir in $PATH
13548do
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
81ecdfbb 13551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13555 break 2
13556 fi
13557done
81ecdfbb
RW
13558 done
13559IFS=$as_save_IFS
c6b750e1 13560
859789af
AC
13561fi
13562fi
c6b750e1 13563WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13564if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13566$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13567else
81ecdfbb
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
859789af 13570fi
c6b750e1 13571
81ecdfbb 13572
2429c060
PB
13573 fi
13574 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13575 done
13576fi
c6b750e1 13577
05cbd757
PB
13578if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13579 set dummy windres
13580 if test $build = $target ; then
13581 WINDRES_FOR_TARGET="$2"
859789af 13582 else
05cbd757 13583 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13584 fi
d3f5afc4
MS
13585else
13586 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13587fi
13588
3a35eeb3
PB
13589else
13590 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13591fi
13592
852e5f18 13593
0c24b341
NC
13594
13595
13596if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13597 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13599$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13600 if test -x $with_build_time_tools/windmc; then
13601 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13602 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13604$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13605 else
81ecdfbb
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607$as_echo "no" >&6; }
0c24b341
NC
13608 fi
13609 elif test $build != $host && test $have_gcc_for_target = yes; then
13610 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13611 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13612 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13613 fi
13614fi
13615if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13616 # Extract the first word of "windmc", so it can be a program name with args.
13617set dummy windmc; ac_word=$2
81ecdfbb
RW
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13620if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13621 $as_echo_n "(cached) " >&6
0c24b341
NC
13622else
13623 case $WINDMC_FOR_TARGET in
13624 [\\/]* | ?:[\\/]*)
13625 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13626 ;;
13627 *)
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $gcc_cv_tool_dirs
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
81ecdfbb 13633 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13635 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13637 break 2
13638 fi
13639done
81ecdfbb
RW
13640 done
13641IFS=$as_save_IFS
0c24b341
NC
13642
13643 ;;
13644esac
13645fi
13646WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13647if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13649$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13650else
81ecdfbb
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652$as_echo "no" >&6; }
0c24b341
NC
13653fi
13654
81ecdfbb 13655
0c24b341
NC
13656fi
13657if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13658
13659
13660if test -n "$WINDMC_FOR_TARGET"; then
13661 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13662elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13663 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13664fi
13665
13666if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13667 for ncn_progname in windmc; do
13668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13669set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13672if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13673 $as_echo_n "(cached) " >&6
0c24b341
NC
13674else
13675 if test -n "$WINDMC_FOR_TARGET"; then
13676 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13677else
13678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679for as_dir in $PATH
13680do
13681 IFS=$as_save_IFS
13682 test -z "$as_dir" && as_dir=.
81ecdfbb 13683 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13685 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13687 break 2
13688 fi
13689done
81ecdfbb
RW
13690 done
13691IFS=$as_save_IFS
0c24b341
NC
13692
13693fi
13694fi
13695WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13696if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13698$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13699else
81ecdfbb
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701$as_echo "no" >&6; }
0c24b341
NC
13702fi
13703
81ecdfbb 13704
0c24b341
NC
13705 done
13706fi
13707
13708if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13709 for ncn_progname in windmc; do
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13711$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13712 if test -x $with_build_time_tools/${ncn_progname}; then
13713 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715$as_echo "yes" >&6; }
0c24b341
NC
13716 break
13717 else
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
0c24b341
NC
13720 fi
13721 done
13722fi
13723
13724if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13725 for ncn_progname in windmc; do
13726 if test -n "$ncn_target_tool_prefix"; then
13727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13728set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13731if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13732 $as_echo_n "(cached) " >&6
0c24b341
NC
13733else
13734 if test -n "$WINDMC_FOR_TARGET"; then
13735 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13736else
13737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738for as_dir in $PATH
13739do
13740 IFS=$as_save_IFS
13741 test -z "$as_dir" && as_dir=.
81ecdfbb 13742 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13744 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13746 break 2
13747 fi
13748done
81ecdfbb
RW
13749 done
13750IFS=$as_save_IFS
0c24b341
NC
13751
13752fi
13753fi
13754WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13755if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13758else
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
0c24b341
NC
13761fi
13762
81ecdfbb 13763
0c24b341
NC
13764 fi
13765 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13770if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13771 $as_echo_n "(cached) " >&6
0c24b341
NC
13772else
13773 if test -n "$WINDMC_FOR_TARGET"; then
13774 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13775else
13776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777for as_dir in $PATH
13778do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
81ecdfbb 13781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13783 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13785 break 2
13786 fi
13787done
81ecdfbb
RW
13788 done
13789IFS=$as_save_IFS
0c24b341
NC
13790
13791fi
13792fi
13793WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13794if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13796$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13797else
81ecdfbb
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799$as_echo "no" >&6; }
0c24b341
NC
13800fi
13801
81ecdfbb 13802
0c24b341
NC
13803 fi
13804 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13805 done
13806fi
13807
13808if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13809 set dummy windmc
13810 if test $build = $target ; then
13811 WINDMC_FOR_TARGET="$2"
13812 else
13813 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13814 fi
13815else
13816 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13817fi
13818
13819else
13820 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13821fi
13822
13823
be01d343
PB
13824RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13825
81ecdfbb
RW
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13827$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13828if test "x${build}" != "x${host}" ; then
2429c060
PB
13829 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
b8025f34 13831 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13834 else
13835 # Canadian cross, just use what we found
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837$as_echo "pre-installed" >&6; }
2429c060 13838 fi
be01d343
PB
13839else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" binutils "*) ;;
13843 *) ok=no ;;
13844 esac
c6b750e1 13845
be01d343
PB
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850$as_echo "just compiled" >&6; }
2429c060
PB
13851 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
b8025f34 13853 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860$as_echo "host tool" >&6; }
be01d343
PB
13861 else
13862 # We need a cross tool
81ecdfbb
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864$as_echo "pre-installed" >&6; }
be01d343
PB
13865 fi
13866fi
4b900473 13867
81ecdfbb
RW
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13869$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13870if test "x${build}" != "x${host}" ; then
2429c060
PB
13871 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
b8025f34 13873 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13876 else
13877 # Canadian cross, just use what we found
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879$as_echo "pre-installed" >&6; }
2429c060 13880 fi
be01d343
PB
13881else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" gas "*) ;;
13885 *) ok=no ;;
13886 esac
c6b750e1 13887
be01d343
PB
13888 if test $ok = yes; then
13889 # An in-tree tool is available and we can use it
13890 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13892$as_echo "just compiled" >&6; }
2429c060
PB
13893 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
b8025f34 13895 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13898 elif test "x$target" = "x$host"; then
13899 # We can use an host tool
13900 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13902$as_echo "host tool" >&6; }
be01d343
PB
13903 else
13904 # We need a cross tool
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906$as_echo "pre-installed" >&6; }
be01d343
PB
13907 fi
13908fi
4b900473 13909
81ecdfbb
RW
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13911$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13912if test "x${build}" != "x${host}" ; then
2429c060
PB
13913 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13914 # We already found the complete path
b8025f34 13915 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13917$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13918 else
13919 # Canadian cross, just use what we found
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921$as_echo "pre-installed" >&6; }
2429c060 13922 fi
be01d343
PB
13923else
13924 ok=yes
13925 case " ${configdirs} " in
13926 *" gcc "*) ;;
13927 *) ok=no ;;
13928 esac
c6b750e1 13929
be01d343
PB
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934$as_echo "just compiled" >&6; }
2429c060
PB
13935 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
b8025f34 13937 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944$as_echo "host tool" >&6; }
be01d343
PB
13945 else
13946 # We need a cross tool
81ecdfbb
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
be01d343
PB
13949 fi
13950fi
4b900473 13951
81ecdfbb
RW
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13953$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13954if test "x${build}" != "x${host}" ; then
2429c060
PB
13955 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
b8025f34 13957 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13960 else
13961 # Canadian cross, just use what we found
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963$as_echo "pre-installed" >&6; }
2429c060 13964 fi
be01d343
PB
13965else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" gcc "*) ;;
13969 *) ok=no ;;
13970 esac
13971 case ,${enable_languages}, in
13972 *,c++,*) ;;
13973 *) ok=no ;;
13974 esac
13975 if test $ok = yes; then
13976 # An in-tree tool is available and we can use it
95e43135 13977 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
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979$as_echo "just compiled" >&6; }
2429c060
PB
13980 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
b8025f34 13982 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13985 elif test "x$target" = "x$host"; then
13986 # We can use an host tool
13987 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989$as_echo "host tool" >&6; }
be01d343
PB
13990 else
13991 # We need a cross tool
81ecdfbb
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993$as_echo "pre-installed" >&6; }
be01d343
PB
13994 fi
13995fi
4b900473 13996
81ecdfbb
RW
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13998$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13999if test "x${build}" != "x${host}" ; then
2429c060
PB
14000 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
b8025f34 14002 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14005 else
14006 # Canadian cross, just use what we found
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008$as_echo "pre-installed" >&6; }
2429c060 14009 fi
be01d343
PB
14010else
14011 ok=yes
14012 case " ${configdirs} " in
14013 *" gcc "*) ;;
14014 *) ok=no ;;
14015 esac
14016 case ,${enable_languages}, in
14017 *,c++,*) ;;
14018 *) ok=no ;;
14019 esac
14020 if test $ok = yes; then
14021 # An in-tree tool is available and we can use it
95e43135 14022 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
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14024$as_echo "just compiled" >&6; }
2429c060
PB
14025 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
b8025f34 14027 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14030 elif test "x$target" = "x$host"; then
14031 # We can use an host tool
14032 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034$as_echo "host tool" >&6; }
be01d343
PB
14035 else
14036 # We need a cross tool
81ecdfbb
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
be01d343
PB
14039 fi
14040fi
4b900473 14041
81ecdfbb
RW
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14043$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14044if test "x${build}" != "x${host}" ; then
2429c060
PB
14045 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
b8025f34 14047 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14050 else
14051 # Canadian cross, just use what we found
81ecdfbb
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053$as_echo "pre-installed" >&6; }
2429c060 14054 fi
be01d343
PB
14055else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
c6b750e1 14061
be01d343
PB
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066$as_echo "just compiled" >&6; }
2429c060
PB
14067 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
b8025f34 14069 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076$as_echo "host tool" >&6; }
be01d343
PB
14077 else
14078 # We need a cross tool
81ecdfbb
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
be01d343
PB
14081 fi
14082fi
4b900473 14083
81ecdfbb
RW
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14085$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14086if test "x${build}" != "x${host}" ; then
2429c060
PB
14087 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
b8025f34 14089 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14092 else
14093 # Canadian cross, just use what we found
81ecdfbb
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095$as_echo "pre-installed" >&6; }
2429c060 14096 fi
be01d343
PB
14097else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" gcc "*) ;;
14101 *) ok=no ;;
14102 esac
c6b750e1 14103
be01d343
PB
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108$as_echo "just compiled" >&6; }
2429c060
PB
14109 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
b8025f34 14111 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118$as_echo "host tool" >&6; }
be01d343
PB
14119 else
14120 # We need a cross tool
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
be01d343
PB
14123 fi
14124fi
4b900473 14125
81ecdfbb
RW
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14127$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14128if test "x${build}" != "x${host}" ; then
2429c060
PB
14129 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
b8025f34 14131 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14134 else
14135 # Canadian cross, just use what we found
81ecdfbb
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137$as_echo "pre-installed" >&6; }
2429c060 14138 fi
be01d343
PB
14139else
14140 ok=yes
14141 case " ${configdirs} " in
14142 *" gcc "*) ;;
14143 *) ok=no ;;
14144 esac
14145 case ,${enable_languages}, in
14146 *,fortran,*) ;;
14147 *) ok=no ;;
14148 esac
14149 if test $ok = yes; then
14150 # An in-tree tool is available and we can use it
14151 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14153$as_echo "just compiled" >&6; }
2429c060
PB
14154 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14155 # We already found the complete path
b8025f34 14156 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14158$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14159 elif test "x$target" = "x$host"; then
14160 # We can use an host tool
14161 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14163$as_echo "host tool" >&6; }
be01d343
PB
14164 else
14165 # We need a cross tool
81ecdfbb
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167$as_echo "pre-installed" >&6; }
be01d343
PB
14168 fi
14169fi
4b900473 14170
e552509b
ILT
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14172$as_echo_n "checking where to find the target gccgo... " >&6; }
14173if test "x${build}" != "x${host}" ; then
14174 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14175 # We already found the complete path
14176 ac_dir=`dirname $GOC_FOR_TARGET`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14178$as_echo "pre-installed in $ac_dir" >&6; }
14179 else
14180 # Canadian cross, just use what we found
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182$as_echo "pre-installed" >&6; }
14183 fi
14184else
14185 ok=yes
14186 case " ${configdirs} " in
14187 *" gcc "*) ;;
14188 *) ok=no ;;
14189 esac
14190 case ,${enable_languages}, in
14191 *,go,*) ;;
14192 *) ok=no ;;
14193 esac
14194 if test $ok = yes; then
14195 # An in-tree tool is available and we can use it
14196 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14198$as_echo "just compiled" >&6; }
14199 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $GOC_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203$as_echo "pre-installed in $ac_dir" >&6; }
14204 elif test "x$target" = "x$host"; then
14205 # We can use an host tool
14206 GOC_FOR_TARGET='$(GOC)'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14208$as_echo "host tool" >&6; }
14209 else
14210 # We need a cross tool
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212$as_echo "pre-installed" >&6; }
14213 fi
14214fi
14215
81ecdfbb
RW
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14217$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14218if test "x${build}" != "x${host}" ; then
2429c060
PB
14219 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
b8025f34 14221 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14224 else
14225 # Canadian cross, just use what we found
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227$as_echo "pre-installed" >&6; }
2429c060 14228 fi
be01d343
PB
14229else
14230 ok=yes
14231 case " ${configdirs} " in
14232 *" ld "*) ;;
14233 *) ok=no ;;
14234 esac
c6b750e1 14235
be01d343
PB
14236 if test $ok = yes; then
14237 # An in-tree tool is available and we can use it
14238 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14240$as_echo "just compiled" >&6; }
2429c060
PB
14241 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
b8025f34 14243 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14246 elif test "x$target" = "x$host"; then
14247 # We can use an host tool
14248 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14250$as_echo "host tool" >&6; }
be01d343
PB
14251 else
14252 # We need a cross tool
81ecdfbb
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254$as_echo "pre-installed" >&6; }
be01d343
PB
14255 fi
14256fi
4b900473 14257
81ecdfbb
RW
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14259$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14260if test "x${build}" != "x${host}" ; then
2429c060
PB
14261 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
b8025f34 14263 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14266 else
14267 # Canadian cross, just use what we found
81ecdfbb
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269$as_echo "pre-installed" >&6; }
2429c060 14270 fi
be01d343 14271else
2429c060
PB
14272 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
b8025f34 14274 ac_dir=`dirname $LIPO_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; }
2429c060 14277 elif test "x$target" = "x$host"; then
be01d343
PB
14278 # We can use an host tool
14279 LIPO_FOR_TARGET='$(LIPO)'
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
81ecdfbb
RW
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14290$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14291if test "x${build}" != "x${host}" ; then
2429c060
PB
14292 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
b8025f34 14294 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14297 else
14298 # Canadian cross, just use what we found
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
2429c060 14301 fi
be01d343
PB
14302else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" binutils "*) ;;
14306 *) ok=no ;;
14307 esac
c6b750e1 14308
be01d343
PB
14309 if test $ok = yes; then
14310 # An in-tree tool is available and we can use it
14311 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14313$as_echo "just compiled" >&6; }
2429c060
PB
14314 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
b8025f34 14316 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14319 elif test "x$target" = "x$host"; then
14320 # We can use an host tool
14321 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14323$as_echo "host tool" >&6; }
be01d343
PB
14324 else
14325 # We need a cross tool
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327$as_echo "pre-installed" >&6; }
be01d343
PB
14328 fi
14329fi
4b900473 14330
6b91c541
AP
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14332$as_echo_n "checking where to find the target objcopy... " >&6; }
14333if test "x${build}" != "x${host}" ; then
14334 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
14336 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338$as_echo "pre-installed in $ac_dir" >&6; }
14339 else
14340 # Canadian cross, just use what we found
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342$as_echo "pre-installed" >&6; }
14343 fi
14344else
14345 ok=yes
14346 case " ${configdirs} " in
14347 *" binutils "*) ;;
14348 *) ok=no ;;
14349 esac
14350
14351 if test $ok = yes; then
14352 # An in-tree tool is available and we can use it
14353 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14355$as_echo "just compiled" >&6; }
14356 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
14361 elif test "x$target" = "x$host"; then
14362 # We can use an host tool
1b6c0831 14363 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14365$as_echo "host tool" >&6; }
14366 else
14367 # We need a cross tool
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
14370 fi
14371fi
14372
81ecdfbb
RW
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14374$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14375if test "x${build}" != "x${host}" ; then
2429c060
PB
14376 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14377 # We already found the complete path
b8025f34 14378 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14380$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14381 else
14382 # Canadian cross, just use what we found
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384$as_echo "pre-installed" >&6; }
2429c060 14385 fi
be01d343
PB
14386else
14387 ok=yes
14388 case " ${configdirs} " in
14389 *" binutils "*) ;;
14390 *) ok=no ;;
14391 esac
c6b750e1 14392
be01d343
PB
14393 if test $ok = yes; then
14394 # An in-tree tool is available and we can use it
14395 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14397$as_echo "just compiled" >&6; }
2429c060
PB
14398 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
b8025f34 14400 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14403 elif test "x$target" = "x$host"; then
14404 # We can use an host tool
14405 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14407$as_echo "host tool" >&6; }
be01d343
PB
14408 else
14409 # We need a cross tool
81ecdfbb
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411$as_echo "pre-installed" >&6; }
be01d343
PB
14412 fi
14413fi
4b900473 14414
81ecdfbb
RW
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14416$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14417if test "x${build}" != "x${host}" ; then
2429c060
PB
14418 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
b8025f34 14420 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14423 else
14424 # Canadian cross, just use what we found
81ecdfbb
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426$as_echo "pre-installed" >&6; }
2429c060 14427 fi
be01d343
PB
14428else
14429 ok=yes
14430 case " ${configdirs} " in
14431 *" binutils "*) ;;
14432 *) ok=no ;;
14433 esac
c6b750e1 14434
be01d343
PB
14435 if test $ok = yes; then
14436 # An in-tree tool is available and we can use it
14437 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14439$as_echo "just compiled" >&6; }
2429c060
PB
14440 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
b8025f34 14442 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449$as_echo "host tool" >&6; }
be01d343
PB
14450 else
14451 # We need a cross tool
81ecdfbb
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
be01d343
PB
14454 fi
14455fi
4b900473 14456
b121d7d4
DD
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14458$as_echo_n "checking where to find the target readelf... " >&6; }
14459if test "x${build}" != "x${host}" ; then
14460 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14461 # We already found the complete path
14462 ac_dir=`dirname $READELF_FOR_TARGET`
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464$as_echo "pre-installed in $ac_dir" >&6; }
14465 else
14466 # Canadian cross, just use what we found
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468$as_echo "pre-installed" >&6; }
14469 fi
14470else
14471 ok=yes
14472 case " ${configdirs} " in
14473 *" binutils "*) ;;
14474 *) ok=no ;;
14475 esac
14476
14477 if test $ok = yes; then
14478 # An in-tree tool is available and we can use it
14479 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14481$as_echo "just compiled" >&6; }
14482 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
14484 ac_dir=`dirname $READELF_FOR_TARGET`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486$as_echo "pre-installed in $ac_dir" >&6; }
14487 elif test "x$target" = "x$host"; then
14488 # We can use an host tool
14489 READELF_FOR_TARGET='$(READELF)'
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14491$as_echo "host tool" >&6; }
14492 else
14493 # We need a cross tool
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
14496 fi
14497fi
14498
81ecdfbb
RW
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14500$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14501if test "x${build}" != "x${host}" ; then
2429c060
PB
14502 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14503 # We already found the complete path
b8025f34 14504 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14507 else
14508 # Canadian cross, just use what we found
81ecdfbb
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510$as_echo "pre-installed" >&6; }
2429c060 14511 fi
be01d343
PB
14512else
14513 ok=yes
14514 case " ${configdirs} " in
14515 *" binutils "*) ;;
14516 *) ok=no ;;
14517 esac
c6b750e1 14518
be01d343
PB
14519 if test $ok = yes; then
14520 # An in-tree tool is available and we can use it
9b980aa1 14521 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14523$as_echo "just compiled" >&6; }
2429c060
PB
14524 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
b8025f34 14526 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14529 elif test "x$target" = "x$host"; then
14530 # We can use an host tool
14531 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14533$as_echo "host tool" >&6; }
be01d343
PB
14534 else
14535 # We need a cross tool
81ecdfbb
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
be01d343
PB
14538 fi
14539fi
4b900473 14540
81ecdfbb
RW
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14542$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14543if test "x${build}" != "x${host}" ; then
2429c060
PB
14544 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14545 # We already found the complete path
b8025f34 14546 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14549 else
14550 # Canadian cross, just use what we found
81ecdfbb
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552$as_echo "pre-installed" >&6; }
2429c060 14553 fi
be01d343
PB
14554else
14555 ok=yes
14556 case " ${configdirs} " in
14557 *" binutils "*) ;;
14558 *) ok=no ;;
14559 esac
c6b750e1 14560
be01d343
PB
14561 if test $ok = yes; then
14562 # An in-tree tool is available and we can use it
14563 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14565$as_echo "just compiled" >&6; }
2429c060
PB
14566 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14567 # We already found the complete path
b8025f34 14568 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14570$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14571 elif test "x$target" = "x$host"; then
14572 # We can use an host tool
14573 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14575$as_echo "host tool" >&6; }
be01d343
PB
14576 else
14577 # We need a cross tool
81ecdfbb
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
be01d343 14580 fi
a0da8069 14581fi
54752a6b 14582
81ecdfbb
RW
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14584$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14585if test "x${build}" != "x${host}" ; then
14586 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14587 # We already found the complete path
14588 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14591 else
14592 # Canadian cross, just use what we found
81ecdfbb
RW
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594$as_echo "pre-installed" >&6; }
0c24b341
NC
14595 fi
14596else
14597 ok=yes
14598 case " ${configdirs} " in
14599 *" binutils "*) ;;
14600 *) ok=no ;;
14601 esac
14602
14603 if test $ok = yes; then
14604 # An in-tree tool is available and we can use it
14605 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14607$as_echo "just compiled" >&6; }
0c24b341
NC
14608 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14609 # We already found the complete path
14610 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14612$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14613 elif test "x$target" = "x$host"; then
14614 # We can use an host tool
14615 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14617$as_echo "host tool" >&6; }
0c24b341
NC
14618 else
14619 # We need a cross tool
81ecdfbb
RW
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
0c24b341
NC
14622 fi
14623fi
14624
54752a6b
NN
14625
14626
be01d343 14627
4b900473 14628
a0da8069
NN
14629# Certain tools may need extra flags.
14630AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14631RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14632NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14633
be01d343
PB
14634# When building target libraries, except in a Canadian cross, we use
14635# the same toolchain as the compiler we just built.
14636COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14637COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14638COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14639if test $host = $build; then
14640 case " $configdirs " in
14641 *" gcc "*)
14642 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14643 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14644 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14645 ;;
14646 esac
14647fi
14648
14649
14650
14651
14652
81ecdfbb
RW
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14654$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14655# Check whether --enable-maintainer-mode was given.
14656if test "${enable_maintainer_mode+set}" = set; then :
14657 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14658else
14659 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14660fi
14661
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14663$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14664
14665
14666if test "$USE_MAINTAINER_MODE" = yes; then
14667 MAINTAINER_MODE_TRUE=
14668 MAINTAINER_MODE_FALSE='#'
14669else
14670 MAINTAINER_MODE_TRUE='#'
14671 MAINTAINER_MODE_FALSE=
c6b750e1 14672fi
3d5e36ae
AO
14673MAINT=$MAINTAINER_MODE_TRUE
14674
1d39f329
NN
14675# ---------------------
14676# GCC bootstrap support
14677# ---------------------
14678
14679# Stage specific cflags for build.
14680stage1_cflags="-g"
14681case $build in
14682 vax-*-*)
14683 case ${GCC} in
14684 yes) stage1_cflags="-g -Wa,-J" ;;
14685 *) stage1_cflags="-g -J" ;;
14686 esac ;;
1d39f329
NN
14687esac
14688
1d89b610 14689
1d39f329 14690
8a0d8a5c 14691# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14692# Check whether --enable-stage1-checking was given.
14693if test "${enable_stage1_checking+set}" = set; then :
14694 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14695else
5566c1fa 14696 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14697 # For --disable-checking or implicit --enable-checking=release, avoid
14698 # setting --enable-checking=gc in the default stage1 checking for LTO
14699 # bootstraps. See PR62077.
ce6c656d
L
14700 case $BUILD_CONFIG in
14701 *lto*)
05a13254
NC
14702 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14703 *)
14704 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14705 esac
05a13254
NC
14706 if test "x$enable_checking" = x && \
14707 test -d ${srcdir}/gcc && \
14708 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14709 stage1_checking=--enable-checking=yes,types,extra
14710 fi
8a0d8a5c 14711else
5566c1fa 14712 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14713fi
81ecdfbb 14714fi
8a0d8a5c
PB
14715
14716
c6b750e1 14717
81ecdfbb
RW
14718# Enable -Werror in bootstrap stage2 and later.
14719# Check whether --enable-werror was given.
14720if test "${enable_werror+set}" = set; then :
14721 enableval=$enable_werror;
1a6f2dc7
NN
14722case ${enable_werror} in
14723 yes) stage2_werror_flag="--enable-werror-always" ;;
14724 *) stage2_werror_flag="" ;;
1d39f329
NN
14725esac
14726
82033c9b 14727else
82033c9b 14728
bf41f30d
NC
14729if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14730 case $BUILD_CONFIG in
14731 bootstrap-debug)
14732 stage2_werror_flag="--enable-werror-always" ;;
14733 "")
14734 stage2_werror_flag="--enable-werror-always" ;;
14735 esac
14736fi
82033c9b 14737
bf41f30d 14738fi
82033c9b 14739
1b6c0831 14740
1b6c0831 14741
1b6c0831 14742
e8a5fa9c
RW
14743# Specify what files to not compare during bootstrap.
14744
14745compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14746case "$target" in
14747 hppa*64*-*-hpux*) ;;
bf41f30d 14748 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14749 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14750esac
14751
14752
81ecdfbb
RW
14753ac_config_files="$ac_config_files Makefile"
14754
c6b750e1 14755cat >confcache <<\_ACEOF
a0da8069
NN
14756# This file is a shell script that caches the results of configure
14757# tests run on this system so they can be shared between configure
c6b750e1
DJ
14758# scripts and configure runs, see configure's option --config-cache.
14759# It is not useful on other systems. If it contains results you don't
14760# want to keep, you may remove or edit it.
a0da8069 14761#
c6b750e1
DJ
14762# config.status only pays attention to the cache file if you give it
14763# the --recheck option to rerun configure.
a0da8069 14764#
c6b750e1
DJ
14765# `ac_cv_env_foo' variables (set or unset) will be overridden when
14766# loading this file, other *unset* `ac_cv_foo' will be assigned the
14767# following values.
14768
14769_ACEOF
14770
a0da8069
NN
14771# The following way of writing the cache mishandles newlines in values,
14772# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14773# So, we kill variables containing newlines.
a0da8069
NN
14774# Ultrix sh set writes to stderr and can't be redirected directly,
14775# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14776(
14777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14778 eval ac_val=\$$ac_var
14779 case $ac_val in #(
14780 *${as_nl}*)
14781 case $ac_var in #(
14782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14783$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14784 esac
14785 case $ac_var in #(
14786 _ | IFS | as_nl) ;; #(
14787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14788 *) { eval $ac_var=; unset $ac_var;} ;;
14789 esac ;;
14790 esac
14791 done
14792
c6b750e1 14793 (set) 2>&1 |
81ecdfbb
RW
14794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14795 *${as_nl}ac_space=\ *)
14796 # `set' does not quote correctly, so add quotes: double-quote
14797 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14798 sed -n \
14799 "s/'/'\\\\''/g;
14800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14801 ;; #(
c6b750e1
DJ
14802 *)
14803 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14805 ;;
81ecdfbb
RW
14806 esac |
14807 sort
14808) |
c6b750e1 14809 sed '
81ecdfbb 14810 /^ac_cv_env_/b end
c6b750e1 14811 t clear
81ecdfbb 14812 :clear
c6b750e1
DJ
14813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14814 t end
81ecdfbb
RW
14815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14816 :end' >>confcache
14817if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14818 if test -w "$cache_file"; then
d0ac1c44 14819 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14821$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14822 if test ! -f "$cache_file" || test -h "$cache_file"; then
14823 cat confcache >"$cache_file"
14824 else
14825 case $cache_file in #(
14826 */* | ?:*)
14827 mv -f confcache "$cache_file"$$ &&
14828 mv -f "$cache_file"$$ "$cache_file" ;; #(
14829 *)
14830 mv -f confcache "$cache_file" ;;
14831 esac
14832 fi
14833 fi
a0da8069 14834 else
81ecdfbb
RW
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14836$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14837 fi
852e5f18 14838fi
a0da8069 14839rm -f confcache
852e5f18 14840
a0da8069
NN
14841test "x$prefix" = xNONE && prefix=$ac_default_prefix
14842# Let make expand exec_prefix.
14843test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14844
a0da8069
NN
14845# Transform confdefs.h into DEFS.
14846# Protect against shell expansion while executing Makefile rules.
14847# Protect against Makefile macro expansion.
c6b750e1
DJ
14848#
14849# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14850# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14851# look for a macro that doesn't take arguments.
81ecdfbb
RW
14852ac_script='
14853:mline
14854/\\$/{
14855 N
14856 s,\\\n,,
14857 b mline
14858}
c6b750e1 14859t clear
81ecdfbb
RW
14860:clear
14861s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14862t quote
81ecdfbb 14863s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14864t quote
81ecdfbb
RW
14865b any
14866:quote
14867s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14868s/\[/\\&/g
14869s/\]/\\&/g
14870s/\$/$$/g
14871H
14872:any
14873${
14874 g
14875 s/^\n//
14876 s/\n/ /g
14877 p
14878}
14879'
14880DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14881
14882
14883ac_libobjs=
14884ac_ltlibobjs=
d0ac1c44 14885U=
c6b750e1
DJ
14886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14887 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14889 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14891 # will be set to the directory where LIBOBJS objects are built.
14892 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14893 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14894done
14895LIBOBJS=$ac_libobjs
852e5f18 14896
c6b750e1 14897LTLIBOBJS=$ac_ltlibobjs
376a0e54 14898
cac3d6c4 14899
c6b750e1 14900
d0ac1c44 14901: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14902ac_write_fail=0
c6b750e1
DJ
14903ac_clean_files_save=$ac_clean_files
14904ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14906$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14907as_write_fail=0
14908cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14909#! $SHELL
14910# Generated by $as_me.
a0da8069 14911# Run this file to recreate the current configuration.
a0da8069 14912# Compiler output produced by configure, useful for debugging
c6b750e1 14913# configure, is in config.log if it exists.
376a0e54 14914
c6b750e1
DJ
14915debug=false
14916ac_cs_recheck=false
14917ac_cs_silent=false
c6b750e1 14918
81ecdfbb
RW
14919SHELL=\${CONFIG_SHELL-$SHELL}
14920export SHELL
14921_ASEOF
14922cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14923## -------------------- ##
14924## M4sh Initialization. ##
14925## -------------------- ##
14926
14927# Be more Bourne compatible
14928DUALCASE=1; export DUALCASE # for MKS sh
14929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14930 emulate sh
14931 NULLCMD=:
81ecdfbb 14932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14933 # is contrary to our usage. Disable this feature.
14934 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14935 setopt NO_GLOB_SUBST
14936else
14937 case `(set -o) 2>/dev/null` in #(
14938 *posix*) :
14939 set -o posix ;; #(
14940 *) :
14941 ;;
14942esac
c6b750e1 14943fi
c6b750e1 14944
81ecdfbb
RW
14945
14946as_nl='
14947'
14948export as_nl
14949# Printing a long string crashes Solaris 7 /usr/bin/printf.
14950as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14953# Prefer a ksh shell builtin over an external printf program on Solaris,
14954# but without wasting forks for bash or zsh.
14955if test -z "$BASH_VERSION$ZSH_VERSION" \
14956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='print -r --'
14958 as_echo_n='print -rn --'
14959elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14960 as_echo='printf %s\n'
14961 as_echo_n='printf %s'
14962else
14963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14965 as_echo_n='/usr/ucb/echo -n'
14966 else
14967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14968 as_echo_n_body='eval
14969 arg=$1;
14970 case $arg in #(
14971 *"$as_nl"*)
14972 expr "X$arg" : "X\\(.*\\)$as_nl";
14973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14974 esac;
14975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14976 '
14977 export as_echo_n_body
14978 as_echo_n='sh -c $as_echo_n_body as_echo'
14979 fi
14980 export as_echo_body
14981 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14982fi
14983
81ecdfbb
RW
14984# The user is always right.
14985if test "${PATH_SEPARATOR+set}" != set; then
14986 PATH_SEPARATOR=:
14987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14989 PATH_SEPARATOR=';'
14990 }
14991fi
14992
14993
14994# IFS
14995# We need space, tab and new line, in precisely that order. Quoting is
14996# there to prevent editors from complaining about space-tab.
14997# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14998# splitting by setting IFS to empty value.)
14999IFS=" "" $as_nl"
15000
15001# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15002as_myself=
81ecdfbb
RW
15003case $0 in #((
15004 *[\\/]* ) as_myself=$0 ;;
15005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006for as_dir in $PATH
15007do
15008 IFS=$as_save_IFS
15009 test -z "$as_dir" && as_dir=.
15010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15011 done
15012IFS=$as_save_IFS
15013
15014 ;;
15015esac
15016# We did not find ourselves, most probably we were run as `sh COMMAND'
15017# in which case we are not to be found in the path.
15018if test "x$as_myself" = x; then
15019 as_myself=$0
15020fi
15021if test ! -f "$as_myself"; then
15022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15023 exit 1
15024fi
c6b750e1 15025
81ecdfbb
RW
15026# Unset variables that we do not need and which cause bugs (e.g. in
15027# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15028# suppresses any "Segmentation fault" message there. '((' could
15029# trigger a bug in pdksh 5.2.14.
15030for as_var in BASH_ENV ENV MAIL MAILPATH
15031do eval test x\${$as_var+set} = xset \
15032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15033done
c6b750e1
DJ
15034PS1='$ '
15035PS2='> '
15036PS4='+ '
15037
15038# NLS nuisances.
81ecdfbb
RW
15039LC_ALL=C
15040export LC_ALL
15041LANGUAGE=C
15042export LANGUAGE
15043
15044# CDPATH.
15045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15046
15047
d0ac1c44
SM
15048# as_fn_error STATUS ERROR [LINENO LOG_FD]
15049# ----------------------------------------
81ecdfbb
RW
15050# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15051# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15052# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15053as_fn_error ()
15054{
d0ac1c44
SM
15055 as_status=$1; test $as_status -eq 0 && as_status=1
15056 if test "$4"; then
15057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15059 fi
d0ac1c44 15060 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15061 as_fn_exit $as_status
15062} # as_fn_error
15063
15064
15065# as_fn_set_status STATUS
15066# -----------------------
15067# Set $? to STATUS, without forking.
15068as_fn_set_status ()
15069{
15070 return $1
15071} # as_fn_set_status
15072
15073# as_fn_exit STATUS
15074# -----------------
15075# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15076as_fn_exit ()
15077{
15078 set +e
15079 as_fn_set_status $1
15080 exit $1
15081} # as_fn_exit
15082
15083# as_fn_unset VAR
15084# ---------------
15085# Portably unset VAR.
15086as_fn_unset ()
15087{
15088 { eval $1=; unset $1;}
15089}
15090as_unset=as_fn_unset
15091# as_fn_append VAR VALUE
15092# ----------------------
15093# Append the text in VALUE to the end of the definition contained in VAR. Take
15094# advantage of any shell optimizations that allow amortized linear growth over
15095# repeated appends, instead of the typical quadratic growth present in naive
15096# implementations.
15097if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15098 eval 'as_fn_append ()
15099 {
15100 eval $1+=\$2
15101 }'
15102else
15103 as_fn_append ()
15104 {
15105 eval $1=\$$1\$2
15106 }
15107fi # as_fn_append
15108
15109# as_fn_arith ARG...
15110# ------------------
15111# Perform arithmetic evaluation on the ARGs, and store the result in the
15112# global $as_val. Take advantage of shells that can avoid forks. The arguments
15113# must be portable across $(()) and expr.
15114if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15115 eval 'as_fn_arith ()
15116 {
15117 as_val=$(( $* ))
15118 }'
15119else
15120 as_fn_arith ()
15121 {
15122 as_val=`expr "$@" || test $? -eq 1`
15123 }
15124fi # as_fn_arith
15125
c6b750e1 15126
81ecdfbb
RW
15127if expr a : '\(a\)' >/dev/null 2>&1 &&
15128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15129 as_expr=expr
15130else
15131 as_expr=false
15132fi
15133
81ecdfbb 15134if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15135 as_basename=basename
15136else
15137 as_basename=false
15138fi
15139
81ecdfbb
RW
15140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15141 as_dirname=dirname
15142else
15143 as_dirname=false
15144fi
c6b750e1 15145
81ecdfbb 15146as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15148 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15150$as_echo X/"$0" |
15151 sed '/^.*\/\([^/][^/]*\)\/*$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\/\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\/\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
c6b750e1 15164
c6b750e1
DJ
15165# Avoid depending upon Character Ranges.
15166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15169as_cr_digits='0123456789'
15170as_cr_alnum=$as_cr_Letters$as_cr_digits
15171
81ecdfbb
RW
15172ECHO_C= ECHO_N= ECHO_T=
15173case `echo -n x` in #(((((
15174-n*)
15175 case `echo 'xy\c'` in
15176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15177 xy) ECHO_C='\c';;
15178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15179 ECHO_T=' ';;
15180 esac;;
15181*)
15182 ECHO_N='-n';;
c6b750e1
DJ
15183esac
15184
81ecdfbb
RW
15185rm -f conf$$ conf$$.exe conf$$.file
15186if test -d conf$$.dir; then
15187 rm -f conf$$.dir/conf$$.file
c6b750e1 15188else
81ecdfbb
RW
15189 rm -f conf$$.dir
15190 mkdir conf$$.dir 2>/dev/null
c6b750e1 15191fi
81ecdfbb
RW
15192if (echo >conf$$.file) 2>/dev/null; then
15193 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15194 as_ln_s='ln -s'
81ecdfbb
RW
15195 # ... but there are two gotchas:
15196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15198 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15200 as_ln_s='cp -pR'
81ecdfbb
RW
15201 elif ln conf$$.file conf$$ 2>/dev/null; then
15202 as_ln_s=ln
15203 else
d0ac1c44 15204 as_ln_s='cp -pR'
c6b750e1 15205 fi
c6b750e1 15206else
d0ac1c44 15207 as_ln_s='cp -pR'
c6b750e1 15208fi
81ecdfbb
RW
15209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15210rmdir conf$$.dir 2>/dev/null
15211
15212
15213# as_fn_mkdir_p
15214# -------------
15215# Create "$as_dir" as a directory, including parents if necessary.
15216as_fn_mkdir_p ()
15217{
15218
15219 case $as_dir in #(
15220 -*) as_dir=./$as_dir;;
15221 esac
15222 test -d "$as_dir" || eval $as_mkdir_p || {
15223 as_dirs=
15224 while :; do
15225 case $as_dir in #(
15226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15227 *) as_qdir=$as_dir;;
15228 esac
15229 as_dirs="'$as_qdir' $as_dirs"
15230 as_dir=`$as_dirname -- "$as_dir" ||
15231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15232 X"$as_dir" : 'X\(//\)[^/]' \| \
15233 X"$as_dir" : 'X\(//\)$' \| \
15234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15235$as_echo X"$as_dir" |
15236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\/\)[^/].*/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\/\)$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\).*/{
15249 s//\1/
15250 q
15251 }
15252 s/.*/./; q'`
15253 test -d "$as_dir" && break
15254 done
15255 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15257
c6b750e1 15258
81ecdfbb 15259} # as_fn_mkdir_p
c6b750e1 15260if mkdir -p . 2>/dev/null; then
81ecdfbb 15261 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15262else
15263 test -d ./-p && rmdir ./-p
15264 as_mkdir_p=false
15265fi
15266
d0ac1c44
SM
15267
15268# as_fn_executable_p FILE
15269# -----------------------
15270# Test if FILE is an executable regular file.
15271as_fn_executable_p ()
15272{
15273 test -f "$1" && test -x "$1"
15274} # as_fn_executable_p
15275as_test_x='test -x'
15276as_executable_p=as_fn_executable_p
c6b750e1
DJ
15277
15278# Sed expression to map a string onto a valid CPP name.
15279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15280
15281# Sed expression to map a string onto a valid variable name.
15282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15283
15284
c6b750e1 15285exec 6>&1
81ecdfbb
RW
15286## ----------------------------------- ##
15287## Main body of $CONFIG_STATUS script. ##
15288## ----------------------------------- ##
15289_ASEOF
15290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15291
15292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15294# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15295# values after options handling.
15296ac_log="
c6b750e1 15297This file was extended by $as_me, which was
d0ac1c44 15298generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15299
15300 CONFIG_FILES = $CONFIG_FILES
15301 CONFIG_HEADERS = $CONFIG_HEADERS
15302 CONFIG_LINKS = $CONFIG_LINKS
15303 CONFIG_COMMANDS = $CONFIG_COMMANDS
15304 $ $0 $@
15305
81ecdfbb
RW
15306on `(hostname || uname -n) 2>/dev/null | sed 1q`
15307"
15308
c6b750e1
DJ
15309_ACEOF
15310
81ecdfbb
RW
15311case $ac_config_files in *"
15312"*) set x $ac_config_files; shift; ac_config_files=$*;;
15313esac
c6b750e1 15314
c6b750e1 15315
c6b750e1 15316
81ecdfbb
RW
15317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318# Files that config.status was made for.
15319config_files="$ac_config_files"
c6b750e1 15320
81ecdfbb 15321_ACEOF
c6b750e1 15322
81ecdfbb 15323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15324ac_cs_usage="\
81ecdfbb
RW
15325\`$as_me' instantiates files and other configuration actions
15326from templates according to the current configuration. Unless the files
15327and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15328
81ecdfbb 15329Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15330
15331 -h, --help print this help, then exit
81ecdfbb 15332 -V, --version print version number and configuration settings, then exit
d0ac1c44 15333 --config print configuration, then exit
81ecdfbb
RW
15334 -q, --quiet, --silent
15335 do not print progress messages
c6b750e1
DJ
15336 -d, --debug don't remove temporary files
15337 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15338 --file=FILE[:TEMPLATE]
15339 instantiate the configuration file FILE
c6b750e1
DJ
15340
15341Configuration files:
15342$config_files
15343
81ecdfbb 15344Report bugs to the package provider."
c6b750e1 15345
81ecdfbb
RW
15346_ACEOF
15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15348ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15349ac_cs_version="\\
15350config.status
d0ac1c44
SM
15351configured by $0, generated by GNU Autoconf 2.69,
15352 with options \\"\$ac_cs_config\\"
c6b750e1 15353
d0ac1c44 15354Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15355This config.status script is free software; the Free Software Foundation
15356gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15357
15358ac_pwd='$ac_pwd'
15359srcdir='$srcdir'
15360INSTALL='$INSTALL'
8e957354 15361AWK='$AWK'
81ecdfbb 15362test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15363_ACEOF
15364
81ecdfbb
RW
15365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15366# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15367ac_need_defaults=:
15368while test $# != 0
a0da8069 15369do
c6b750e1 15370 case $1 in
d0ac1c44 15371 --*=?*)
81ecdfbb
RW
15372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15374 ac_shift=:
15375 ;;
d0ac1c44
SM
15376 --*=)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=
15379 ac_shift=:
15380 ;;
81ecdfbb 15381 *)
c6b750e1
DJ
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15385 ;;
c6b750e1
DJ
15386 esac
15387
15388 case $ac_option in
15389 # Handling of the options.
a0da8069 15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15391 ac_cs_recheck=: ;;
81ecdfbb
RW
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15394 --config | --confi | --conf | --con | --co | --c )
15395 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15396 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15397 debug=: ;;
15398 --file | --fil | --fi | --f )
15399 $ac_shift
81ecdfbb
RW
15400 case $ac_optarg in
15401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15402 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15403 esac
15404 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15405 ac_need_defaults=false;;
81ecdfbb
RW
15406 --he | --h | --help | --hel | -h )
15407 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15410 ac_cs_silent=: ;;
15411
15412 # This is an error.
d0ac1c44 15413 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15414Try \`$0 --help' for more information." ;;
c6b750e1 15415
81ecdfbb
RW
15416 *) as_fn_append ac_config_targets " $1"
15417 ac_need_defaults=false ;;
c6b750e1 15418
376a0e54 15419 esac
c6b750e1 15420 shift
376a0e54
CM
15421done
15422
c6b750e1 15423ac_configure_extra_args=
376a0e54 15424
c6b750e1
DJ
15425if $ac_cs_silent; then
15426 exec 6>/dev/null
15427 ac_configure_extra_args="$ac_configure_extra_args --silent"
15428fi
376a0e54 15429
c6b750e1 15430_ACEOF
81ecdfbb 15431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15432if \$ac_cs_recheck; then
d0ac1c44 15433 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15434 shift
15435 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15436 CONFIG_SHELL='$SHELL'
15437 export CONFIG_SHELL
15438 exec "\$@"
c6b750e1
DJ
15439fi
15440
15441_ACEOF
81ecdfbb
RW
15442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443exec 5>>config.log
15444{
15445 echo
15446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15447## Running $as_me. ##
15448_ASBOX
15449 $as_echo "$ac_log"
15450} >&5
c6b750e1 15451
81ecdfbb
RW
15452_ACEOF
15453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15454#
15455# INIT-COMMANDS
15456#
15457extrasub_build="$extrasub_build"
15458 extrasub_host="$extrasub_host"
15459 extrasub_target="$extrasub_target"
15460
81ecdfbb 15461_ACEOF
c6b750e1 15462
81ecdfbb 15463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15464
81ecdfbb 15465# Handling of arguments.
c6b750e1
DJ
15466for ac_config_target in $ac_config_targets
15467do
81ecdfbb
RW
15468 case $ac_config_target in
15469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15470
d0ac1c44 15471 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15472 esac
15473done
15474
81ecdfbb 15475
c6b750e1
DJ
15476# If the user did not use the arguments to specify the items to instantiate,
15477# then the envvar interface is used. Set only those that are not.
15478# We use the long form for the default assignment because of an extremely
15479# bizarre bug on SunOS 4.1.3.
15480if $ac_need_defaults; then
15481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15482fi
15483
15484# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15485# simply because there is no reason against having it here, and in addition,
c6b750e1 15486# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15487# Hook for its removal unless debugging.
15488# Note that there is a small window in which the directory will not be cleaned:
15489# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15490$debug ||
15491{
d0ac1c44 15492 tmp= ac_tmp=
81ecdfbb 15493 trap 'exit_status=$?
d0ac1c44
SM
15494 : "${ac_tmp:=$tmp}"
15495 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15496' 0
15497 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15498}
c6b750e1
DJ
15499# Create a (secure) tmp directory for tmp files.
15500
15501{
81ecdfbb 15502 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15503 test -d "$tmp"
c6b750e1
DJ
15504} ||
15505{
81ecdfbb
RW
15506 tmp=./conf$$-$RANDOM
15507 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15508} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15509ac_tmp=$tmp
81ecdfbb
RW
15510
15511# Set up the scripts for CONFIG_FILES section.
15512# No need to generate them if there are no CONFIG_FILES.
15513# This happens for instance with `./config.status config.h'.
15514if test -n "$CONFIG_FILES"; then
15515
15516if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15517 ac_cs_awk_getline=:
15518 ac_cs_awk_pipe_init=
15519 ac_cs_awk_read_file='
15520 while ((getline aline < (F[key])) > 0)
15521 print(aline)
15522 close(F[key])'
15523 ac_cs_awk_pipe_fini=
15524else
15525 ac_cs_awk_getline=false
15526 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15527 ac_cs_awk_read_file='
15528 print "|#_!!_#|"
15529 print "cat " F[key] " &&"
15530 '$ac_cs_awk_pipe_init
15531 # The final `:' finishes the AND list.
15532 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15533fi
15534ac_cr=`echo X | tr X '\015'`
15535# On cygwin, bash can eat \r inside `` if the user requested igncr.
15536# But we know of no other shell where ac_cr would be empty at this
15537# point, so we can use a bashism as a fallback.
15538if test "x$ac_cr" = x; then
15539 eval ac_cr=\$\'\\r\'
15540fi
15541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15543 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15544else
15545 ac_cs_awk_cr=$ac_cr
15546fi
15547
d0ac1c44 15548echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15549_ACEOF
15550
15551# Create commands to substitute file output variables.
c6b750e1 15552{
81ecdfbb 15553 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15554 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15555 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15556 echo "_ACAWK" &&
15557 echo "_ACEOF"
15558} >conf$$files.sh &&
15559. ./conf$$files.sh ||
d0ac1c44 15560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15561rm -f conf$$files.sh
c6b750e1 15562
81ecdfbb
RW
15563{
15564 echo "cat >conf$$subs.awk <<_ACEOF" &&
15565 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15566 echo "_ACEOF"
15567} >conf$$subs.sh ||
d0ac1c44
SM
15568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15569ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15570ac_delim='%!_!# '
15571for ac_last_try in false false false false false :; do
15572 . ./conf$$subs.sh ||
d0ac1c44 15573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15574
15575 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15576 if test $ac_delim_n = $ac_delim_num; then
15577 break
15578 elif $ac_last_try; then
d0ac1c44 15579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15580 else
15581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15582 fi
15583done
15584rm -f conf$$subs.sh
15585
15586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15587cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15588_ACEOF
81ecdfbb
RW
15589sed -n '
15590h
15591s/^/S["/; s/!.*/"]=/
15592p
15593g
15594s/^[^!]*!//
15595:repl
15596t repl
15597s/'"$ac_delim"'$//
15598t delim
15599:nl
15600h
d0ac1c44 15601s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15602t more1
15603s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15604p
15605n
15606b repl
15607:more1
15608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15609p
15610g
15611s/.\{148\}//
15612t nl
15613:delim
15614h
d0ac1c44 15615s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15616t more2
15617s/["\\]/\\&/g; s/^/"/; s/$/"/
15618p
15619b
15620:more2
15621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15622p
15623g
15624s/.\{148\}//
15625t delim
15626' <conf$$subs.awk | sed '
15627/^[^""]/{
15628 N
15629 s/\n//
15630}
15631' >>$CONFIG_STATUS || ac_write_fail=1
15632rm -f conf$$subs.awk
15633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634_ACAWK
d0ac1c44 15635cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15636 for (key in S) S_is_set[key] = 1
15637 FS = "\a"
15638 \$ac_cs_awk_pipe_init
15639}
15640{
15641 line = $ 0
15642 nfields = split(line, field, "@")
15643 substed = 0
15644 len = length(field[1])
15645 for (i = 2; i < nfields; i++) {
15646 key = field[i]
15647 keylen = length(key)
15648 if (S_is_set[key]) {
15649 value = S[key]
15650 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15651 len += length(value) + length(field[++i])
15652 substed = 1
15653 } else
15654 len += 1 + keylen
15655 }
15656 if (nfields == 3 && !substed) {
15657 key = field[2]
15658 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15659 \$ac_cs_awk_read_file
15660 next
15661 }
15662 }
15663 print line
15664}
15665\$ac_cs_awk_pipe_fini
15666_ACAWK
15667_ACEOF
15668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15671else
15672 cat
d0ac1c44
SM
15673fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15675_ACEOF
15676
d0ac1c44
SM
15677# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15678# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15679# trailing colons and then remove the whole line if VPATH becomes empty
15680# (actually we leave an empty line to preserve line numbers).
15681if test "x$srcdir" = x.; then
d0ac1c44
SM
15682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15683h
15684s///
15685s/^/:/
15686s/[ ]*$/:/
15687s/:\$(srcdir):/:/g
15688s/:\${srcdir}:/:/g
15689s/:@srcdir@:/:/g
15690s/^:*//
81ecdfbb 15691s/:*$//
d0ac1c44
SM
15692x
15693s/\(=[ ]*\).*/\1/
15694G
15695s/\n//
81ecdfbb
RW
15696s/^[^=]*=[ ]*$//
15697}'
15698fi
c6b750e1 15699
81ecdfbb
RW
15700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701fi # test -n "$CONFIG_FILES"
c6b750e1 15702
c6b750e1 15703
81ecdfbb
RW
15704eval set X " :F $CONFIG_FILES "
15705shift
15706for ac_tag
15707do
15708 case $ac_tag in
15709 :[FHLC]) ac_mode=$ac_tag; continue;;
15710 esac
15711 case $ac_mode$ac_tag in
15712 :[FHL]*:*);;
d0ac1c44 15713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15714 :[FH]-) ac_tag=-:-;;
15715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15716 esac
15717 ac_save_IFS=$IFS
15718 IFS=:
15719 set x $ac_tag
15720 IFS=$ac_save_IFS
15721 shift
15722 ac_file=$1
15723 shift
252b5132 15724
81ecdfbb
RW
15725 case $ac_mode in
15726 :L) ac_source=$1;;
15727 :[FH])
15728 ac_file_inputs=
15729 for ac_f
15730 do
15731 case $ac_f in
d0ac1c44 15732 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15733 *) # Look for the file first in the build tree, then in the source tree
15734 # (if the path is not absolute). The absolute path cannot be DOS-style,
15735 # because $ac_f cannot contain `:'.
15736 test -f "$ac_f" ||
15737 case $ac_f in
15738 [\\/$]*) false;;
15739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15740 esac ||
d0ac1c44 15741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15742 esac
15743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15744 as_fn_append ac_file_inputs " '$ac_f'"
15745 done
c6b750e1 15746
81ecdfbb
RW
15747 # Let's still pretend it is `configure' which instantiates (i.e., don't
15748 # use $as_me), people would be surprised to read:
15749 # /* config.h. Generated by config.status. */
15750 configure_input='Generated from '`
15751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15752 `' by configure.'
15753 if test x"$ac_file" != x-; then
15754 configure_input="$ac_file. $configure_input"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15756$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15757 fi
81ecdfbb
RW
15758 # Neutralize special characters interpreted by sed in replacement strings.
15759 case $configure_input in #(
15760 *\&* | *\|* | *\\* )
15761 ac_sed_conf_input=`$as_echo "$configure_input" |
15762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15763 *) ac_sed_conf_input=$configure_input;;
15764 esac
cac3d6c4 15765
81ecdfbb 15766 case $ac_tag in
d0ac1c44
SM
15767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15769 esac
15770 ;;
a0da8069 15771 esac
252b5132 15772
81ecdfbb 15773 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775 X"$ac_file" : 'X\(//\)[^/]' \| \
15776 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15778$as_echo X"$ac_file" |
15779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\/\)[^/].*/{
15784 s//\1/
15785 q
15786 }
15787 /^X\(\/\/\)$/{
15788 s//\1/
15789 q
15790 }
15791 /^X\(\/\).*/{
15792 s//\1/
15793 q
15794 }
15795 s/.*/./; q'`
15796 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15797 ac_builddir=.
252b5132 15798
81ecdfbb
RW
15799case "$ac_dir" in
15800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15801*)
15802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15803 # A ".." for each directory in $ac_dir_suffix.
15804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15805 case $ac_top_builddir_sub in
15806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15808 esac ;;
15809esac
15810ac_abs_top_builddir=$ac_pwd
15811ac_abs_builddir=$ac_pwd$ac_dir_suffix
15812# for backward compatibility:
15813ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15814
15815case $srcdir in
81ecdfbb 15816 .) # We are building in place.
c6b750e1 15817 ac_srcdir=.
81ecdfbb
RW
15818 ac_top_srcdir=$ac_top_builddir_sub
15819 ac_abs_top_srcdir=$ac_pwd ;;
15820 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15821 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15822 ac_top_srcdir=$srcdir
15823 ac_abs_top_srcdir=$srcdir ;;
15824 *) # Relative name.
15825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15826 ac_top_srcdir=$ac_top_build_prefix$srcdir
15827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15828esac
81ecdfbb 15829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15830
252b5132 15831
81ecdfbb
RW
15832 case $ac_mode in
15833 :F)
15834 #
15835 # CONFIG_FILE
15836 #
c6b750e1
DJ
15837
15838 case $INSTALL in
15839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15841 esac
81ecdfbb 15842_ACEOF
252b5132 15843
81ecdfbb
RW
15844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845# If the template does not know about datarootdir, expand it.
15846# FIXME: This hack should be removed a few years after 2.60.
15847ac_datarootdir_hack=; ac_datarootdir_seen=
15848ac_sed_dataroot='
15849/datarootdir/ {
15850 p
15851 q
15852}
15853/@datadir@/p
15854/@docdir@/p
15855/@infodir@/p
15856/@localedir@/p
15857/@mandir@/p'
15858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15859*datarootdir*) ac_datarootdir_seen=yes;;
15860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15862$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15863_ACEOF
81ecdfbb
RW
15864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 ac_datarootdir_hack='
15866 s&@datadir@&$datadir&g
15867 s&@docdir@&$docdir&g
15868 s&@infodir@&$infodir&g
15869 s&@localedir@&$localedir&g
15870 s&@mandir@&$mandir&g
15871 s&\\\${datarootdir}&$datarootdir&g' ;;
15872esac
15873_ACEOF
15874
15875# Neutralize VPATH when `$srcdir' = `.'.
15876# Shell code in configure.ac might set extrasub.
15877# FIXME: do we really want to maintain this feature?
15878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15880$extrasub
15881_ACEOF
81ecdfbb 15882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15883:t
15884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15885s|@configure_input@|$ac_sed_conf_input|;t t
15886s&@top_builddir@&$ac_top_builddir_sub&;t t
15887s&@top_build_prefix@&$ac_top_build_prefix&;t t
15888s&@srcdir@&$ac_srcdir&;t t
15889s&@abs_srcdir@&$ac_abs_srcdir&;t t
15890s&@top_srcdir@&$ac_top_srcdir&;t t
15891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15892s&@builddir@&$ac_builddir&;t t
15893s&@abs_builddir@&$ac_abs_builddir&;t t
15894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15895s&@INSTALL@&$ac_INSTALL&;t t
15896$ac_datarootdir_hack
15897"
15898eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15899if $ac_cs_awk_getline; then
d0ac1c44 15900 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 15901else
d0ac1c44
SM
15902 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15903fi \
15904 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15905
15906test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15907 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15908 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15909 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15911which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15912$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15913which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15914
d0ac1c44 15915 rm -f "$ac_tmp/stdin"
81ecdfbb 15916 case $ac_file in
d0ac1c44
SM
15917 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15918 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15919 esac \
d0ac1c44 15920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15921 ;;
c148b4cb 15922
c148b4cb 15923
c148b4cb 15924
81ecdfbb
RW
15925 esac
15926
06a51eac
RW
15927
15928 case $ac_file$ac_mode in
15929 "Makefile":F) sed "$extrasub_build" Makefile |
15930 sed "$extrasub_host" |
15931 sed "$extrasub_target" > mf$$
15932 mv -f mf$$ Makefile ;;
15933
15934 esac
81ecdfbb
RW
15935done # for ac_tag
15936
15937
15938as_fn_exit 0
c6b750e1 15939_ACEOF
c6b750e1
DJ
15940ac_clean_files=$ac_clean_files_save
15941
81ecdfbb 15942test $ac_write_fail = 0 ||
d0ac1c44 15943 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15944
c6b750e1
DJ
15945
15946# configure is writing to config.log, and then calls config.status.
15947# config.status does its own redirection, appending to config.log.
15948# Unfortunately, on DOS this fails, as config.log is still kept open
15949# by configure, so config.status won't be able to write to it; its
15950# output is simply discarded. So we exec the FD to /dev/null,
15951# effectively closing config.log, so it can be properly (re)opened and
15952# appended to by config.status. When coming back to configure, we
15953# need to make the FD available again.
15954if test "$no_create" != yes; then
15955 ac_cs_success=:
15956 ac_config_status_args=
15957 test "$silent" = yes &&
15958 ac_config_status_args="$ac_config_status_args --quiet"
15959 exec 5>/dev/null
15960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15961 exec 5>>config.log
15962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15963 # would make configure fail if this is the last instruction.
d0ac1c44 15964 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15965fi
15966if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15968$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15969fi
c148b4cb 15970
This page took 2.123518 seconds and 4 git commands to generate.