Correct negs aliasing on AArch64.
[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
b3676d82 805with_stage1_ldflags
81ecdfbb 806with_boot_libs
143754cd 807with_boot_ldflags
7ec59b9e
L
808with_isl
809with_isl_include
810with_isl_lib
811enable_isl_version_check
700d40ca 812enable_lto
1b6c0831
L
813enable_linker_plugin_configure_flags
814enable_linker_plugin_flags
bf41f30d 815enable_host_shared
81ecdfbb
RW
816enable_stage1_languages
817enable_objc_gc
05a13254
NC
818with_target_bdw_gc
819with_target_bdw_gc_include
820with_target_bdw_gc_lib
bf41f30d 821with_gcc_major_version_only
81ecdfbb
RW
822with_build_sysroot
823with_debug_prefix_map
96655cc4 824with_build_config
730af8ee 825enable_vtable_verify
81ecdfbb
RW
826enable_serial_configure
827with_build_time_tools
828enable_maintainer_mode
829enable_stage1_checking
830enable_werror
81ecdfbb
RW
831'
832 ac_precious_vars='build_alias
833host_alias
834target_alias
835CC
836CFLAGS
837LDFLAGS
838LIBS
839CPPFLAGS
840CXX
841CXXFLAGS
842CCC
4074d5f2
RW
843build_configargs
844host_configargs
845target_configargs
81ecdfbb
RW
846AR
847AS
848DLLTOOL
849LD
850LIPO
851NM
852RANLIB
853STRIP
854WINDRES
855WINDMC
856OBJCOPY
857OBJDUMP
b121d7d4 858READELF
81ecdfbb
RW
859CC_FOR_TARGET
860CXX_FOR_TARGET
861GCC_FOR_TARGET
81ecdfbb 862GFORTRAN_FOR_TARGET
e552509b 863GOC_FOR_TARGET
81ecdfbb
RW
864AR_FOR_TARGET
865AS_FOR_TARGET
866DLLTOOL_FOR_TARGET
867LD_FOR_TARGET
868LIPO_FOR_TARGET
869NM_FOR_TARGET
6b91c541 870OBJCOPY_FOR_TARGET
81ecdfbb
RW
871OBJDUMP_FOR_TARGET
872RANLIB_FOR_TARGET
b121d7d4 873READELF_FOR_TARGET
81ecdfbb
RW
874STRIP_FOR_TARGET
875WINDRES_FOR_TARGET
876WINDMC_FOR_TARGET'
877
a0da8069
NN
878
879# Initialize some variables set by options.
c6b750e1
DJ
880ac_init_help=
881ac_init_version=false
81ecdfbb
RW
882ac_unrecognized_opts=
883ac_unrecognized_sep=
a0da8069
NN
884# The variables have the same names as the options, with
885# dashes changed to underlines.
c6b750e1 886cache_file=/dev/null
a0da8069 887exec_prefix=NONE
a0da8069 888no_create=
a0da8069
NN
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
a0da8069
NN
897verbose=
898x_includes=NONE
899x_libraries=NONE
c6b750e1
DJ
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 906# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
a0da8069
NN
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
a0da8069
NN
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
81ecdfbb
RW
917docdir='${datarootdir}/doc/${PACKAGE}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
252b5132 926
a0da8069 927ac_prev=
81ecdfbb 928ac_dashdash=
a0da8069
NN
929for ac_option
930do
a0da8069
NN
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
81ecdfbb 933 eval $ac_prev=\$ac_option
a0da8069
NN
934 ac_prev=
935 continue
936 fi
252b5132 937
81ecdfbb 938 case $ac_option in
d0ac1c44
SM
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
81ecdfbb 942 esac
a0da8069
NN
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
81ecdfbb
RW
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
a0da8069
NN
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 953 bindir=$ac_optarg ;;
a0da8069
NN
954
955 -build | --build | --buil | --bui | --bu)
c6b750e1 956 ac_prev=build_alias ;;
a0da8069 957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 958 build_alias=$ac_optarg ;;
a0da8069
NN
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
a0da8069 969
81ecdfbb 970 -datadir | --datadir | --datadi | --datad)
a0da8069 971 ac_prev=datadir ;;
81ecdfbb 972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 973 datadir=$ac_optarg ;;
a0da8069 974
81ecdfbb
RW
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
a0da8069 982 -disable-* | --disable-*)
81ecdfbb 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 984 # Reject names that are not valid shell variable names.
81ecdfbb 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 986 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
a0da8069
NN
1007
1008 -enable-* | --enable-*)
81ecdfbb 1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1010 # Reject names that are not valid shell variable names.
81ecdfbb 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1012 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
a0da8069 1021 esac
81ecdfbb 1022 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
c6b750e1 1031 exec_prefix=$ac_optarg ;;
a0da8069
NN
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
c6b750e1
DJ
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
a0da8069
NN
1043
1044 -host | --host | --hos | --ho)
c6b750e1 1045 ac_prev=host_alias ;;
a0da8069 1046 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1047 host_alias=$ac_optarg ;;
a0da8069 1048
81ecdfbb
RW
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
a0da8069
NN
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1060 includedir=$ac_optarg ;;
a0da8069
NN
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1065 infodir=$ac_optarg ;;
a0da8069
NN
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1070 libdir=$ac_optarg ;;
a0da8069
NN
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1077 libexecdir=$ac_optarg ;;
a0da8069 1078
81ecdfbb
RW
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
a0da8069 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1085 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1089 localstatedir=$ac_optarg ;;
a0da8069
NN
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1094 mandir=$ac_optarg ;;
a0da8069
NN
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1101 | --no-cr | --no-c | -n)
a0da8069
NN
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1115 oldincludedir=$ac_optarg ;;
a0da8069
NN
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1120 prefix=$ac_optarg ;;
a0da8069
NN
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1127 program_prefix=$ac_optarg ;;
a0da8069
NN
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1134 program_suffix=$ac_optarg ;;
a0da8069
NN
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1151 program_transform_name=$ac_optarg ;;
a0da8069 1152
81ecdfbb
RW
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
a0da8069
NN
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
c6b750e1 1171 sbindir=$ac_optarg ;;
a0da8069
NN
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
c6b750e1 1182 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
c6b750e1 1187 site=$ac_optarg ;;
a0da8069
NN
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1192 srcdir=$ac_optarg ;;
a0da8069
NN
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1199 sysconfdir=$ac_optarg ;;
a0da8069
NN
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1202 ac_prev=target_alias ;;
a0da8069 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1204 target_alias=$ac_optarg ;;
a0da8069
NN
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
c6b750e1
DJ
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
a0da8069
NN
1211
1212 -with-* | --with-*)
81ecdfbb 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1214 # Reject names that are not valid shell variable names.
81ecdfbb 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1216 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
a0da8069 1225 esac
81ecdfbb 1226 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1227
1228 -without-* | --without-*)
81ecdfbb 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1230 # Reject names that are not valid shell variable names.
81ecdfbb 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1232 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237"with_$ac_useropt"
1238"*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
a0da8069
NN
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1253 x_includes=$ac_optarg ;;
a0da8069
NN
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1260 x_libraries=$ac_optarg ;;
a0da8069 1261
d0ac1c44
SM
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
a0da8069
NN
1264 ;;
1265
c6b750e1
DJ
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1272 esac
1273 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1274 export $ac_envvar ;;
1275
a0da8069 1276 *)
c6b750e1 1277 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1282 ;;
1283
1284 esac
1285done
1286
1287if test -n "$ac_prev"; then
c6b750e1 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1289 as_fn_error $? "missing argument to $ac_option"
a0da8069 1290fi
a0da8069 1291
81ecdfbb
RW
1292if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
d0ac1c44 1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1297 esac
81ecdfbb 1298fi
a0da8069 1299
81ecdfbb
RW
1300# Check all directory arguments for consistency.
1301for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
a0da8069 1305do
81ecdfbb
RW
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
c6b750e1 1314 case $ac_val in
81ecdfbb
RW
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1317 esac
d0ac1c44 1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1319done
1320
c6b750e1
DJ
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
376a0e54 1327
c6b750e1
DJ
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
c6b750e1
DJ
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
a0da8069 1341
a0da8069 1342
81ecdfbb
RW
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1346 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1348 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1349
1350
a0da8069
NN
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
81ecdfbb
RW
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
a0da8069 1378 srcdir=$ac_confdir
81ecdfbb 1379 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1380 srcdir=..
1381 fi
1382else
1383 ac_srcdir_defaulted=no
1384fi
81ecdfbb
RW
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
d0ac1c44 1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1392 pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
6d0cd39e
AM
1403case $srcdir in
1404 *" "*)
d0ac1c44 1405 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1406 ;;
1407esac
9cc8ae67
PB
1408ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1409
81ecdfbb
RW
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
c6b750e1
DJ
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
d0ac1c44 1438 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
c6b750e1
DJ
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1446 [$ac_default_prefix]
c6b750e1 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1448 [PREFIX]
c6b750e1
DJ
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
81ecdfbb
RW
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490_ACEOF
a0da8069 1491fi
a0da8069 1492
c6b750e1
DJ
1493if test -n "$ac_init_help"; then
1494
1495 cat <<\_ACEOF
1496
1497Optional Features:
81ecdfbb 1498 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1501 --enable-as-accelerator-for=ARG
1502 build as offload target compiler. Specify offload
1503 host triple by ARG
1504 --enable-offload-targets=LIST
1505 enable offloading to devices from comma-separated
1506 LIST of TARGET[=DIR]. Use optional path to find
1507 offload target compiler during the build
c7791212 1508 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1509 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1510 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1511 Enable compressed debug sections for gas, gold or ld
1512 by default
89a1e9c3
PB
1513 --disable-libquadmath do not build libquadmath directory
1514 --disable-libquadmath-support
1515 disable libquadmath support for Fortran
521ec477
DD
1516 --enable-libada build libada directory
1517 --enable-libssp build libssp directory
f66a9a70 1518 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1519 --enable-liboffloadmic=ARG
1520 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1521 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1522 --disable-isl-version-check
4849dfd8 1523 disable check for isl version
700d40ca 1524 --enable-lto enable link time optimization support
1b6c0831
L
1525 --enable-linker-plugin-configure-flags=FLAGS
1526 additional flags for configuring linker plugins
1527 [none]
1528 --enable-linker-plugin-flags=FLAGS
1529 additional flags for configuring and building linker
1530 plugins [none]
bf41f30d 1531 --enable-host-shared build host code as shared libraries
7837304f
AS
1532 --enable-stage1-languages[=all]
1533 choose additional languages to build during stage1.
1534 Mostly useful for compiler development
1535 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1536 Objective-C runtime
ce6c656d 1537 --enable-vtable-verify Enable vtable verification feature
521ec477 1538 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1539 force sequential configuration of sub-packages for
1540 the host, target or build machine, or all
1541 sub-packages
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-stage1-checking[=all]
1546 choose additional checking for stage1 of the
1547 compiler
c6b750e1
DJ
1548 --enable-werror enable -Werror in bootstrap stage2 and later
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1554 --with-system-zlib use installed libz
7837304f
AS
1555 --with-mpc=PATH specify prefix directory for installed MPC package.
1556 Equivalent to --with-mpc-include=PATH/include plus
1557 --with-mpc-lib=PATH/lib
1558 --with-mpc-include=PATH specify directory for installed MPC include files
1559 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1560 --with-mpfr-dir=PATH this option has been REMOVED
1561 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1562 Equivalent to --with-mpfr-include=PATH/include plus
1563 --with-mpfr-lib=PATH/lib
c6b750e1 1564 --with-mpfr-include=PATH
521ec477
DD
1565 specify directory for installed MPFR include files
1566 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1567 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1568 --with-gmp=PATH specify prefix directory for the installed GMP
1569 package. Equivalent to
1570 --with-gmp-include=PATH/include plus
1571 --with-gmp-lib=PATH/lib
521ec477
DD
1572 --with-gmp-include=PATH specify directory for installed GMP include files
1573 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1574 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1575 --with-stage1-ldflags=FLAGS
1576 linker flags for stage1
7837304f
AS
1577 --with-boot-libs=LIBS libraries for stage2 and later
1578 --with-boot-ldflags=FLAGS
1579 linker flags for stage2 and later
4849dfd8 1580 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1581 package. Equivalent to
7ec59b9e
L
1582 --with-isl-include=PATH/include plus
1583 --with-isl-lib=PATH/lib
4849dfd8
NC
1584 --with-isl-include=PATH Specify directory for installed isl include files
1585 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1586 --with-target-bdw-gc=PATHLIST
1587 specify prefix directory for installed bdw-gc
1588 package. Equivalent to
1589 --with-target-bdw-gc-include=PATH/include plus
1590 --with-target-bdw-gc-lib=PATH/lib
1591 --with-target-bdw-gc-include=PATHLIST
1592 specify directories for installed bdw-gc include
1593 files
1594 --with-target-bdw-gc-lib=PATHLIST
1595 specify directories for installed bdw-gc library
bf41f30d
NC
1596 --with-gcc-major-version-only
1597 use only GCC major number in filesystem paths
521ec477 1598 --with-build-sysroot=SYSROOT
c6b750e1 1599 use sysroot as the system root during the build
8a6ee3ab 1600 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1601 map A to B, C to D ... in debug information
1602 --with-build-config='NAME NAME2...'
1603 use config/NAME.mk build configuration
521ec477 1604 --with-build-time-tools=PATH
c6b750e1 1605 use given path to find target tools during the build
c6b750e1
DJ
1606
1607Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
81ecdfbb 1612 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1614 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
4074d5f2
RW
1617 build_configargs
1618 additional configure arguments for build directories
1619 host_configargs
1620 additional configure arguments for host directories
1621 target_configargs
1622 additional configure arguments for target directories
9a819804
AO
1623 AR AR for the host
1624 AS AS for the host
1625 DLLTOOL DLLTOOL for the host
1626 LD LD for the host
1627 LIPO LIPO for the host
1628 NM NM for the host
1629 RANLIB RANLIB for the host
1630 STRIP STRIP for the host
1631 WINDRES WINDRES for the host
0c24b341 1632 WINDMC WINDMC for the host
9a819804
AO
1633 OBJCOPY OBJCOPY for the host
1634 OBJDUMP OBJDUMP for the host
b121d7d4 1635 READELF READELF for the host
9a819804
AO
1636 CC_FOR_TARGET
1637 CC for the target
1638 CXX_FOR_TARGET
1639 CXX for the target
1640 GCC_FOR_TARGET
1641 GCC for the target
9a819804
AO
1642 GFORTRAN_FOR_TARGET
1643 GFORTRAN for the target
e552509b
ILT
1644 GOC_FOR_TARGET
1645 GOC for the target
9a819804
AO
1646 AR_FOR_TARGET
1647 AR for the target
1648 AS_FOR_TARGET
1649 AS for the target
1650 DLLTOOL_FOR_TARGET
1651 DLLTOOL for the target
1652 LD_FOR_TARGET
1653 LD for the target
1654 LIPO_FOR_TARGET
1655 LIPO for the target
1656 NM_FOR_TARGET
1657 NM for the target
6b91c541
AP
1658 OBJCOPY_FOR_TARGET
1659 OBJCOPY for the target
9a819804
AO
1660 OBJDUMP_FOR_TARGET
1661 OBJDUMP for the target
1662 RANLIB_FOR_TARGET
1663 RANLIB for the target
b121d7d4
DD
1664 READELF_FOR_TARGET
1665 READELF for the target
9a819804
AO
1666 STRIP_FOR_TARGET
1667 STRIP for the target
1668 WINDRES_FOR_TARGET
1669 WINDRES for the target
0c24b341
NC
1670 WINDMC_FOR_TARGET
1671 WINDMC for the target
c6b750e1
DJ
1672
1673Use these variables to override the choices made by `configure' or to help
1674it to find libraries and programs with nonstandard names/locations.
1675
81ecdfbb 1676Report bugs to the package provider.
c6b750e1 1677_ACEOF
81ecdfbb 1678ac_status=$?
c6b750e1
DJ
1679fi
1680
1681if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
c6b750e1 1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
c6b750e1
DJ
1687 ac_builddir=.
1688
81ecdfbb
RW
1689case "$ac_dir" in
1690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691*)
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699esac
1700ac_abs_top_builddir=$ac_pwd
1701ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702# for backward compatibility:
1703ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1704
1705case $srcdir in
81ecdfbb 1706 .) # We are building in place.
c6b750e1 1707 ac_srcdir=.
81ecdfbb
RW
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1711 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1718esac
81ecdfbb
RW
1719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1729 else
81ecdfbb
RW
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1733 done
1734fi
1735
81ecdfbb 1736test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1737if $ac_init_version; then
1738 cat <<\_ACEOF
81ecdfbb 1739configure
d0ac1c44 1740generated by GNU Autoconf 2.69
c6b750e1 1741
d0ac1c44 1742Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745_ACEOF
81ecdfbb 1746 exit
c6b750e1 1747fi
81ecdfbb
RW
1748
1749## ------------------------ ##
1750## Autoconf initialization. ##
1751## ------------------------ ##
1752
1753# ac_fn_c_try_compile LINENO
1754# --------------------------
1755# Try to compile conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_compile ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
d0ac1c44
SM
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
81ecdfbb
RW
1788
1789} # ac_fn_c_try_compile
1790
1791# ac_fn_cxx_try_compile LINENO
1792# ----------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_cxx_try_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
d0ac1c44
SM
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
81ecdfbb
RW
1826
1827} # ac_fn_cxx_try_compile
1828
b3676d82
EB
1829# ac_fn_cxx_try_link LINENO
1830# -------------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
d0ac1c44 1856 test -x conftest$ac_exeext
b3676d82
EB
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
b3676d82
EB
1872
1873} # ac_fn_cxx_try_link
1874
81ecdfbb
RW
1875# ac_fn_c_try_link LINENO
1876# -----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_c_try_link ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
d0ac1c44 1902 test -x conftest$ac_exeext
81ecdfbb
RW
1903 }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
81ecdfbb
RW
1918
1919} # ac_fn_c_try_link
1920cat >config.log <<_ACEOF
c6b750e1
DJ
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
1924It was created by $as_me, which was
d0ac1c44 1925generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1926
1927 $ $0 $@
1928
1929_ACEOF
81ecdfbb 1930exec 5>>config.log
c6b750e1
DJ
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1961 $as_echo "PATH: $as_dir"
1962 done
1963IFS=$as_save_IFS
c6b750e1
DJ
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
c6b750e1
DJ
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
81ecdfbb
RW
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1997 esac
1998 case $ac_pass in
81ecdfbb 1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2000 2)
81ecdfbb 2001 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
81ecdfbb 2017 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2018 ;;
2019 esac
2020 done
2021done
81ecdfbb
RW
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log. We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
81ecdfbb
RW
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2030trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
d0ac1c44 2035 $as_echo "## ---------------- ##
c6b750e1 2036## Cache variables. ##
d0ac1c44 2037## ---------------- ##"
c6b750e1
DJ
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
c6b750e1 2056 (set) 2>&1 |
81ecdfbb
RW
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
c6b750e1 2059 sed -n \
81ecdfbb
RW
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
c6b750e1 2063 *)
81ecdfbb 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2065 ;;
81ecdfbb
RW
2066 esac |
2067 sort
2068)
c6b750e1
DJ
2069 echo
2070
d0ac1c44 2071 $as_echo "## ----------------- ##
c6b750e1 2072## Output variables. ##
d0ac1c44 2073## ----------------- ##"
c6b750e1
DJ
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
81ecdfbb
RW
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
d0ac1c44 2086 $as_echo "## ------------------- ##
81ecdfbb 2087## File substitutions. ##
d0ac1c44 2088## ------------------- ##"
c6b750e1
DJ
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
81ecdfbb
RW
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
d0ac1c44 2102 $as_echo "## ----------- ##
c6b750e1 2103## confdefs.h. ##
d0ac1c44 2104## ----------- ##"
c6b750e1 2105 echo
81ecdfbb 2106 cat confdefs.h
c6b750e1
DJ
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
81ecdfbb
RW
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
c6b750e1 2112 } >&5
81ecdfbb
RW
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2115 exit $exit_status
81ecdfbb 2116' 0
c6b750e1 2117for ac_signal in 1 2 13 15; do
81ecdfbb 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
c6b750e1
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
81ecdfbb
RW
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
c6b750e1
DJ
2153
2154# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
81ecdfbb
RW
2165elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2171fi
81ecdfbb
RW
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2178 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
2183See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2184 fi
2185done
2186
2187if test -r "$cache_file"; then
d0ac1c44
SM
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2193 case $cache_file in
81ecdfbb
RW
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
c6b750e1
DJ
2196 esac
2197 fi
a0da8069 2198else
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2201 >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
81ecdfbb 2207for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2212 case $ac_old_set,$ac_new_set in
2213 set,)
81ecdfbb
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2216 ac_cache_corrupted=: ;;
2217 ,set)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
81ecdfbb 2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2251 esac
2252 fi
2253done
2254if $ac_cache_corrupted; then
81ecdfbb
RW
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2260fi
81ecdfbb
RW
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
a0da8069
NN
2264
2265ac_ext=c
a0da8069 2266ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
c6b750e1
DJ
2274
2275
34a0f3cf 2276
c6b750e1 2277
5b553f7e
RW
2278
2279progname=$0
2280# if PWD already has a value, it is probably wrong.
2281if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2282
2283# Export original configure arguments for use by sub-configures.
2284# Quote arguments with shell meta charatcers.
2285TOPLEVEL_CONFIGURE_ARGUMENTS=
2286set -- "$progname" "$@"
2287for ac_arg
2288do
2289 case "$ac_arg" in
2290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2292 # if the argument is of the form -foo=baz, quote the baz part only
2293 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2294 *) ;;
2295 esac
2296 # Add the quoted argument to the list.
2297 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2298done
2299if test "$silent" = yes; then
2300 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2301fi
2302# Remove the initial space we just introduced and, as these will be
2303# expanded by make, quote '$'.
2304TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2305
c6b750e1
DJ
2306
2307# Find the build, host, and target systems.
a0da8069 2308ac_aux_dir=
81ecdfbb 2309for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2322 fi
a0da8069
NN
2323done
2324if test -z "$ac_aux_dir"; then
d0ac1c44 2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2326fi
81ecdfbb
RW
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
a0da8069 2336
c6b750e1 2337# Make sure we can run config.sub.
81ecdfbb 2338$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2339 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2340
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2342$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2343if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2344 $as_echo_n "(cached) " >&6
2345else
2346 ac_build_alias=$build_alias
2347test "x$ac_build_alias" = x &&
2348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349test "x$ac_build_alias" = x &&
d0ac1c44 2350 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2351ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2353
2354fi
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2356$as_echo "$ac_cv_build" >&6; }
2357case $ac_cv_build in
2358*-*-*) ;;
d0ac1c44 2359*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2360esac
c6b750e1 2361build=$ac_cv_build
81ecdfbb
RW
2362ac_save_IFS=$IFS; IFS='-'
2363set x $ac_cv_build
2364shift
2365build_cpu=$1
2366build_vendor=$2
2367shift; shift
2368# Remember, the first character of IFS is used to create $*,
2369# except with old shells:
2370build_os=$*
2371IFS=$ac_save_IFS
2372case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2373
a0da8069 2374
c6b750e1
DJ
2375 case ${build_alias} in
2376 "") build_noncanonical=${build} ;;
2377 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2378esac
2379
2380
cac3d6c4 2381
c6b750e1
DJ
2382 case ${host_alias} in
2383 "") host_noncanonical=${build_noncanonical} ;;
2384 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2385esac
2386
cac3d6c4 2387
c6b750e1
DJ
2388
2389 case ${target_alias} in
2390 "") target_noncanonical=${host_noncanonical} ;;
2391 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2392esac
2393
cac3d6c4 2394
c6b750e1
DJ
2395
2396
2397test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2398 test "$program_prefix$program_suffix$program_transform_name" = \
2399 NONENONEs,x,x, &&
c6b750e1 2400 program_transform_name=s,y,y,
cac3d6c4 2401
81ecdfbb
RW
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2403$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2404if ${ac_cv_host+:} false; then :
81ecdfbb 2405 $as_echo_n "(cached) " >&6
cac3d6c4 2406else
81ecdfbb
RW
2407 if test "x$host_alias" = x; then
2408 ac_cv_host=$ac_cv_build
2409else
2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2412fi
c6b750e1
DJ
2413
2414fi
81ecdfbb
RW
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2416$as_echo "$ac_cv_host" >&6; }
2417case $ac_cv_host in
2418*-*-*) ;;
d0ac1c44 2419*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2420esac
c6b750e1 2421host=$ac_cv_host
81ecdfbb
RW
2422ac_save_IFS=$IFS; IFS='-'
2423set x $ac_cv_host
2424shift
2425host_cpu=$1
2426host_vendor=$2
2427shift; shift
2428# Remember, the first character of IFS is used to create $*,
2429# except with old shells:
2430host_os=$*
2431IFS=$ac_save_IFS
2432case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2433
2434
81ecdfbb
RW
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2436$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2437if ${ac_cv_target+:} false; then :
81ecdfbb 2438 $as_echo_n "(cached) " >&6
c6b750e1 2439else
81ecdfbb
RW
2440 if test "x$target_alias" = x; then
2441 ac_cv_target=$ac_cv_host
2442else
2443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2445fi
c6b750e1 2446
cac3d6c4 2447fi
81ecdfbb
RW
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2449$as_echo "$ac_cv_target" >&6; }
2450case $ac_cv_target in
2451*-*-*) ;;
d0ac1c44 2452*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2453esac
c6b750e1 2454target=$ac_cv_target
81ecdfbb
RW
2455ac_save_IFS=$IFS; IFS='-'
2456set x $ac_cv_target
2457shift
2458target_cpu=$1
2459target_vendor=$2
2460shift; shift
2461# Remember, the first character of IFS is used to create $*,
2462# except with old shells:
2463target_os=$*
2464IFS=$ac_save_IFS
2465case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2466
2467
2468# The aliases save the names the user supplied, while $host etc.
2469# will get canonicalized.
2470test -n "$target_alias" &&
2471 test "$program_prefix$program_suffix$program_transform_name" = \
2472 NONENONEs,x,x, &&
2473 program_prefix=${target_alias}-
81ecdfbb 2474
a0da8069 2475test "$program_prefix" != NONE &&
81ecdfbb 2476 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2477# Use a double $ so make ignores it.
2478test "$program_suffix" != NONE &&
81ecdfbb
RW
2479 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2480# Double any \ or $.
c6b750e1 2481# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2482ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2483program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2484
a0da8069
NN
2485
2486
e5c3f801
NN
2487# Get 'install' or 'install-sh' and its variants.
2488# Find a good install program. We prefer a C program (faster),
2489# so one script is as good as another. But avoid the broken or
2490# incompatible versions:
2491# SysV /etc/install, /usr/sbin/install
2492# SunOS /usr/etc/install
2493# IRIX /sbin/install
2494# AIX /bin/install
c6b750e1 2495# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2496# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2499# OS/2's system install, which has a completely different semantic
e5c3f801 2500# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2501# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2504if test -z "$INSTALL"; then
d0ac1c44 2505if ${ac_cv_path_install+:} false; then :
81ecdfbb 2506 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2507else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2513 # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
c6b750e1 2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2526 if test $ac_prog = install &&
c6b750e1 2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2528 # AIX install. It has an incompatible calling convention.
2529 :
c6b750e1
DJ
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
e5c3f801 2534 else
58c85be7
RW
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
e5c3f801
NN
2547 fi
2548 fi
2549 done
c6b750e1
DJ
2550 done
2551 ;;
2552esac
81ecdfbb
RW
2553
2554 done
2555IFS=$as_save_IFS
c6b750e1 2556
58c85be7 2557rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2558
2559fi
2560 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2561 INSTALL=$ac_cv_path_install
e5c3f801 2562 else
58c85be7
RW
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
e5c3f801 2565 # break other packages using the cache if that directory is
58c85be7 2566 # removed, or if the value is a relative name.
c6b750e1 2567 INSTALL=$ac_install_sh
e5c3f801
NN
2568 fi
2569fi
81ecdfbb
RW
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2572
2573# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574# It thinks the first close brace ends the variable substitution.
2575test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
c6b750e1 2577test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2578
2579test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
81ecdfbb
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2582$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2583if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2584 $as_echo_n "(cached) " >&6
656fdd47
PB
2585else
2586 rm -f conftestdata_t
2587echo >conftestdata_f
2588if ln conftestdata_f conftestdata_t 2>/dev/null
2589then
2590 acx_cv_prog_LN=ln
2591else
2592 acx_cv_prog_LN=no
2593fi
2594rm -f conftestdata_f conftestdata_t
2595
2596fi
2597if test $acx_cv_prog_LN = no; then
2598 LN="cp"
81ecdfbb
RW
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2600$as_echo "no, using $LN" >&6; }
656fdd47
PB
2601else
2602 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604$as_echo "yes" >&6; }
656fdd47
PB
2605fi
2606
81ecdfbb
RW
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2608$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2609LN_S=$as_ln_s
2610if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612$as_echo "yes" >&6; }
cac3d6c4 2613else
81ecdfbb
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2615$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2616fi
2617
8e957354
PB
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2619$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2620if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2621 $as_echo_n "(cached) " >&6
2622else
2623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2624 for ac_i in 1 2 3 4 5 6 7; do
2625 ac_script="$ac_script$as_nl$ac_script"
2626 done
2627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2628 { ac_script=; unset ac_script;}
2629 if test -z "$SED"; then
2630 ac_path_SED_found=false
2631 # Loop through the user's path and test for each of PROGNAME-LIST
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_prog in sed gsed; do
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2640 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2641# Check for GNU ac_path_SED and select it if it is found.
2642 # Check for GNU $ac_path_SED
2643case `"$ac_path_SED" --version 2>&1` in
2644*GNU*)
2645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2646*)
2647 ac_count=0
2648 $as_echo_n 0123456789 >"conftest.in"
2649 while :
2650 do
2651 cat "conftest.in" "conftest.in" >"conftest.tmp"
2652 mv "conftest.tmp" "conftest.in"
2653 cp "conftest.in" "conftest.nl"
2654 $as_echo '' >> "conftest.nl"
2655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2657 as_fn_arith $ac_count + 1 && ac_count=$as_val
2658 if test $ac_count -gt ${ac_path_SED_max-0}; then
2659 # Best one so far, save it but keep looking for a better one
2660 ac_cv_path_SED="$ac_path_SED"
2661 ac_path_SED_max=$ac_count
2662 fi
2663 # 10*(2^10) chars as input seems more than enough
2664 test $ac_count -gt 10 && break
2665 done
2666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2667esac
2668
2669 $ac_path_SED_found && break 3
2670 done
2671 done
2672 done
2673IFS=$as_save_IFS
2674 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2676 fi
2677else
2678 ac_cv_path_SED=$SED
2679fi
2680
2681fi
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2683$as_echo "$ac_cv_path_SED" >&6; }
2684 SED="$ac_cv_path_SED"
2685 rm -f conftest.sed
2686
2687for ac_prog in gawk mawk nawk awk
2688do
2689 # Extract the first word of "$ac_prog", so it can be a program name with args.
2690set dummy $ac_prog; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2693if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2694 $as_echo_n "(cached) " >&6
2695else
2696 if test -n "$AWK"; then
2697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2706 ac_cv_prog_AWK="$ac_prog"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711 done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716AWK=$ac_cv_prog_AWK
2717if test -n "$AWK"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2719$as_echo "$AWK" >&6; }
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725
2726 test -n "$AWK" && break
2727done
2728
e5c3f801 2729
0fdbe983
DJ
2730srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2731
2732# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2733# a relative path.
2734if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2735 INSTALL="${srcpwd}/install-sh -c"
2736fi
2737
a0da8069
NN
2738# Set srcdir to "." if that's what it is.
2739# This is important for multilib support.
2740pwd=`${PWDCMD-pwd}`
a0da8069
NN
2741if test "${pwd}" = "${srcpwd}" ; then
2742 srcdir=.
252b5132
RH
2743fi
2744
a0da8069 2745topsrcdir=$srcpwd
252b5132 2746
a0da8069 2747extra_host_args=
afefada0 2748
a0da8069
NN
2749### To add a new directory to the tree, first choose whether it is a target
2750### or a host dependent tool. Then put it into the appropriate list
2751### (library or tools, host or target), doing a dependency sort.
252b5132 2752
c6b750e1 2753# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2754# configdirs, or target_configdirs; see the serialization section below.
252b5132 2755
c6b750e1
DJ
2756# Dependency sorting is only needed when *configuration* must be done in
2757# a particular order. In all cases a dependency should be specified in
a0da8069 2758# the Makefile, whether or not it's implicitly specified here.
252b5132 2759
a0da8069
NN
2760# Double entries in build_configdirs, configdirs, or target_configdirs may
2761# cause circular dependencies and break everything horribly.
252b5132 2762
6a9cf61e
PB
2763# these library is used by various programs built for the build
2764# environment
2765#
1b6c0831 2766build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2767
2768# these tools are built for the build environment
a90ef4bf 2769build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2770
a0da8069 2771# these libraries are used by various programs built for the host environment
1b6c0831
L
2772#f
2773host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2774
a0da8069
NN
2775# these tools are built for the host environment
2776# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2777# know that we are building the simulator.
2778# binutils, gas and ld appear in that order because it makes sense to run
2779# "make check" in that particular order.
e6de499b 2780# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2781host_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 2782
a0da8069
NN
2783# these libraries are built for the target environment, and are built after
2784# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2785# Note that libiberty is not a target library.
b1299c4e 2786target_libraries="target-libgcc \
2bf680c4 2787 target-libbacktrace \
a0da8069
NN
2788 target-libgloss \
2789 target-newlib \
cff87f51 2790 target-libgomp \
1b6c0831 2791 target-liboffloadmic \
bf41f30d 2792 target-libhsail-rt \
7ec59b9e 2793 target-libatomic \
d32e2926 2794 target-libitm \
b9459e83 2795 target-libstdc++-v3 \
5286fdef 2796 target-libsanitizer \
95e43135 2797 target-libvtv \
bb780410 2798 target-libssp \
e552509b 2799 target-libquadmath \
4b1cb4fe 2800 target-libgfortran \
05a13254 2801 target-libffi \
a2592b1b 2802 target-libobjc \
e552509b
ILT
2803 target-libada \
2804 target-libgo"
a0da8069 2805
9c14acb8
NN
2806# these tools are built using the target libraries, and are intended to
2807# run only in the target environment
a0da8069 2808#
9c14acb8 2809# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2810# list belongs in this list.
a0da8069 2811#
a90ef4bf 2812target_tools="target-rda"
252b5132 2813
a0da8069 2814################################################################################
252b5132 2815
a0da8069
NN
2816## All tools belong in one of the four categories, and are assigned above
2817## We assign ${configdirs} this way to remove all embedded newlines. This
2818## is important because configure will choke if they ever get through.
2819## ${configdirs} is directories we build using the host tools.
2820## ${target_configdirs} is directories we build using the target tools.
a0da8069 2821configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2822target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2823build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2824
9cc8ae67
PB
2825
2826
a0da8069 2827################################################################################
252b5132 2828
a0da8069 2829srcname="gnu development package"
252b5132 2830
a0da8069
NN
2831# This gets set non-empty for some net releases of packages.
2832appdirs=""
252b5132 2833
a0da8069
NN
2834# Define is_cross_compiler to save on calls to 'test'.
2835is_cross_compiler=
2836if test x"${host}" = x"${target}" ; then
2837 is_cross_compiler=no
252b5132 2838else
a0da8069 2839 is_cross_compiler=yes
c6b750e1 2840fi
252b5132 2841
9175bfc0 2842# Find the build and target subdir names.
dd12c3a8 2843
66a79c16
DJ
2844# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2845# have matching libraries, they should use host libraries: Makefile.tpl
2846# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2847# However, they still use the build modules, because the corresponding
2848# host modules (e.g. bison) are only built for the host when bootstrap
2849# finishes. So:
2850# - build_subdir is where we find build modules, and never changes.
2851# - build_libsubdir is where we find build libraries, and can be overridden.
2852
2853# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2854build_subdir="build-${build_noncanonical}"
c6b750e1 2855
81ecdfbb
RW
2856# Check whether --with-build-libsubdir was given.
2857if test "${with_build_libsubdir+set}" = set; then :
2858 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2859else
2860 build_libsubdir="$build_subdir"
81ecdfbb
RW
2861fi
2862
b00612cc
PB
2863# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2864if ( test $srcdir = . && test -d gcc ) \
2865 || test -d $srcdir/../host-${host_noncanonical}; then
2866 host_subdir="host-${host_noncanonical}"
2867else
2868 host_subdir=.
2869fi
dd12c3a8
NN
2870# No prefix.
2871target_subdir=${target_noncanonical}
c6b750e1 2872
2fd0b40b
RW
2873# Be sure to cover against remnants of an in-tree build.
2874if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2875 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2876Use a pristine source tree when building in a separate tree" "$LINENO" 5
2877fi
252b5132 2878
a0da8069
NN
2879# Skipdirs are removed silently.
2880skipdirs=
2881# Noconfigdirs are removed loudly.
2882noconfigdirs=""
252b5132 2883
a0da8069
NN
2884use_gnu_ld=
2885# Make sure we don't let GNU ld be added if we didn't want it.
2886if test x$with_gnu_ld = xno ; then
2887 use_gnu_ld=no
93f9b408 2888 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2889fi
2890
a0da8069
NN
2891use_gnu_as=
2892# Make sure we don't let GNU as be added if we didn't want it.
2893if test x$with_gnu_as = xno ; then
2894 use_gnu_as=no
2895 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2896fi
2897
700d40ca 2898use_included_zlib=
cf39cfc5
L
2899
2900# Check whether --with-system-zlib was given.
2901if test "${with_system_zlib+set}" = set; then :
2902 withval=$with_system_zlib;
2903fi
2904
700d40ca
ILT
2905# Make sure we don't let ZLIB be added if we didn't want it.
2906if test x$with_system_zlib = xyes ; then
2907 use_included_zlib=no
2908 noconfigdirs="$noconfigdirs zlib"
2909fi
2910
c6b750e1 2911# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2912# it's not even worth trying to configure, much less build, that tool.
252b5132 2913
a0da8069
NN
2914case ${with_x} in
2915 yes | "") ;; # the default value for this tree is that X11 is available
2916 no)
675c6968 2917 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2918 # We won't be able to build gdbtk without X.
c6b750e1 2919 enable_gdbtk=no
a0da8069
NN
2920 ;;
2921 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2922esac
252b5132 2923
0377a422 2924# Some are only suitable for cross toolchains.
a0da8069
NN
2925# Remove these if host=target.
2926cross_only="target-libgloss target-newlib target-opcodes"
2927
2928case $is_cross_compiler in
2929 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2930esac
252b5132 2931
a0da8069
NN
2932# If both --with-headers and --with-libs are specified, default to
2933# --without-newlib.
32be62b5
RS
2934if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2935 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2936 if test x"${with_newlib}" = x ; then
2937 with_newlib=no
2938 fi
252b5132
RH
2939fi
2940
a0da8069
NN
2941# Recognize --with-newlib/--without-newlib.
2942case ${with_newlib} in
2943 no) skipdirs="${skipdirs} target-newlib" ;;
2944 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2945esac
252b5132 2946
1b6c0831
L
2947# Check whether --enable-as-accelerator-for was given.
2948if test "${enable_as_accelerator_for+set}" = set; then :
2949 enableval=$enable_as_accelerator_for;
2950fi
2951
2952
2953# Check whether --enable-offload-targets was given.
2954if test "${enable_offload_targets+set}" = set; then :
2955 enableval=$enable_offload_targets;
2956 if test x"$enable_offload_targets" = x; then
d0ac1c44 2957 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2958 fi
2959
2960else
2961 enable_offload_targets=
2962fi
2963
2964
c7791212
NC
2965# Handle --enable-gold, --enable-ld.
2966# --disable-gold [--enable-ld]
2967# Build only ld. Default option.
d3b50760
L
2968# --enable-gold [--enable-ld]
2969# Build both gold and ld. Install gold as "ld.gold", install ld
2970# as "ld.bfd" and "ld".
2971# --enable-gold=default [--enable-ld]
c7791212
NC
2972# Build both gold and ld. Install gold as "ld.gold" and "ld",
2973# install ld as "ld.bfd".
2974# --enable-gold[=default] --disable-ld
2975# Build only gold, which is then installed as both "ld.gold" and "ld".
2976# --enable-gold --enable-ld=default
d3b50760
L
2977# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2978# and ld.bfd).
c7791212
NC
2979# In other words, ld is default
2980# --enable-gold=default --enable-ld=default
2981# Error.
2982
2983default_ld=
81ecdfbb
RW
2984# Check whether --enable-gold was given.
2985if test "${enable_gold+set}" = set; then :
2986 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2987else
2988 ENABLE_GOLD=no
81ecdfbb
RW
2989fi
2990
c7791212
NC
2991case "${ENABLE_GOLD}" in
2992 yes|default)
e6de499b
NC
2993 # Check for ELF target.
2994 is_elf=no
2995 case "${target}" in
2996 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2997 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2998 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 2999 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3000 case "${target}" in
3001 *-*-linux*aout* | *-*-linux*oldld*)
3002 ;;
3003 *)
3004 is_elf=yes
3005 ;;
3006 esac
3007 esac
3008
3009 if test "$is_elf" = "yes"; then
3010 # Check for target supported by gold.
93f9b408 3011 case "${target}" in
6d26190c 3012 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3013 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3014 configdirs="$configdirs gold"
3015 if test x${ENABLE_GOLD} = xdefault; then
3016 default_ld=gold
3017 fi
e6de499b 3018 ENABLE_GOLD=yes
93f9b408
ILT
3019 ;;
3020 esac
e6de499b
NC
3021 fi
3022 ;;
3023 no)
3024 ;;
3025 *)
d0ac1c44 3026 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3027 ;;
c7791212
NC
3028esac
3029
3030# Check whether --enable-ld was given.
3031if test "${enable_ld+set}" = set; then :
3032 enableval=$enable_ld; ENABLE_LD=$enableval
3033else
3034 ENABLE_LD=yes
3035fi
3036
3037
3038case "${ENABLE_LD}" in
3039 default)
d3b50760 3040 if test x${default_ld} != x; then
d0ac1c44 3041 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3042 fi
3043 ;;
3044 yes)
3045 ;;
3046 no)
3047 if test x${ENABLE_GOLD} != xyes; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3049$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3050 fi
3051 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3052 ;;
3053 *)
d0ac1c44 3054 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3055 ;;
3056esac
93f9b408 3057
edeefb67
L
3058# PR gas/19109
3059# Decide the default method for compressing debug sections.
3060# Provide a configure time option to override our default.
3061# Check whether --enable-compressed_debug_sections was given.
3062if test "${enable_compressed_debug_sections+set}" = set; then :
3063 enableval=$enable_compressed_debug_sections;
3064 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3065 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3066 fi
3067
3068else
3069 enable_compressed_debug_sections=
3070fi
3071
3072
a0da8069 3073# Configure extra directories which are host specific
252b5132 3074
a0da8069
NN
3075case "${host}" in
3076 *-cygwin*)
3077 configdirs="$configdirs libtermcap" ;;
3078esac
252b5132 3079
59f7ec45
HPN
3080# A target can indicate whether a language isn't supported for some reason.
3081# Only spaces may be used in this macro; not newlines or tabs.
3082unsupported_languages=
3083
c6b750e1 3084# Remove more programs from consideration, based on the host or
a0da8069
NN
3085# target this usually means that a port of the program doesn't
3086# exist yet.
252b5132 3087
a0da8069 3088case "${host}" in
3516a403 3089 i[3456789]86-*-msdosdjgpp*)
6a608608 3090 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3091 ;;
a0da8069 3092esac
252b5132 3093
4b1cb4fe 3094
89a1e9c3
PB
3095# Check whether --enable-libquadmath was given.
3096if test "${enable_libquadmath+set}" = set; then :
3097 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3098else
3099 ENABLE_LIBQUADMATH=yes
3100fi
3101
3102if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3103 noconfigdirs="$noconfigdirs target-libquadmath"
3104fi
3105
3106
3107# Check whether --enable-libquadmath-support was given.
3108if test "${enable_libquadmath_support+set}" = set; then :
3109 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3110else
3111 ENABLE_LIBQUADMATH_SUPPORT=yes
3112fi
3113
3114enable_libquadmath_support=
3115if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3116 enable_libquadmath_support=no
3117fi
3118
3119
81ecdfbb
RW
3120# Check whether --enable-libada was given.
3121if test "${enable_libada+set}" = set; then :
3122 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3123else
3124 ENABLE_LIBADA=yes
81ecdfbb
RW
3125fi
3126
a2592b1b 3127if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3128 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3129fi
3130
81ecdfbb
RW
3131# Check whether --enable-libssp was given.
3132if test "${enable_libssp+set}" = set; then :
3133 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3134else
3135 ENABLE_LIBSSP=yes
81ecdfbb
RW
3136fi
3137
5f128533 3138
f66a9a70
L
3139# Check whether --enable-libstdcxx was given.
3140if test "${enable_libstdcxx+set}" = set; then :
3141 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3142else
3143 ENABLE_LIBSTDCXX=default
3144fi
3145
3146if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3147 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3148fi
3149
3150# If this is accelerator compiler and its target is intelmic we enable
3151# target liboffloadmic by default. If this is compiler with offloading
3152# for intelmic we enable host liboffloadmic by default. Otherwise
3153# liboffloadmic is disabled by default.
3154# Check whether --enable-liboffloadmic was given.
3155if test "${enable_liboffloadmic+set}" = set; then :
3156 enableval=$enable_liboffloadmic; case "$enableval" in
3157 no | host | target)
3158 enable_liboffloadmic=$enableval ;;
3159 *)
d0ac1c44 3160 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3161esac
3162else
3163 if test x"$enable_as_accelerator_for" != x; then
3164 case "${target}" in
3165 *-intelmic-* | *-intelmicemul-*)
3166 enable_liboffloadmic=target
3167 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3168 ;;
3169 *)
3170 enable_liboffloadmic=no
3171 ;;
3172 esac
3173else
3174 case "${enable_offload_targets}" in
3175 *-intelmic-* | *-intelmicemul-*)
3176 enable_liboffloadmic=host
3177 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3178 ;;
3179 *)
3180 enable_liboffloadmic=no
3181 ;;
3182 esac
3183fi
f66a9a70
L
3184fi
3185
1b6c0831
L
3186
3187
68996839 3188# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3189if test x$enable_libgomp = x ; then
b3ded179 3190 case "${target}" in
29383458 3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3192 ;;
5b806d27 3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3194 ;;
2479f722 3195 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3196 ;;
3197 *-*-darwin* | *-*-aix*)
3198 ;;
68996839
NC
3199 nvptx*-*-*)
3200 ;;
b3ded179
PB
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
a6df5a19 3205fi
b3ded179 3206
7ec59b9e
L
3207# Disable libatomic on unsupported systems.
3208if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211$as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221$as_echo "yes" >&6; }
3222 fi
3223 fi
3224fi
3225
1b6c0831
L
3226# Disable liboffloadmic on unsupported systems.
3227if test -d ${srcdir}/liboffloadmic; then
3228 if test x$enable_liboffloadmic != xno; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3230$as_echo_n "checking for liboffloadmic support... " >&6; }
3231 if (srcdir=${srcdir}/liboffloadmic; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-liboffloadmic"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 fi
3242 fi
3243fi
3244
d32e2926
RH
3245# Disable libitm on unsupported systems.
3246if test -d ${srcdir}/libitm; then
3247 if test x$enable_libitm = x; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3249$as_echo_n "checking for libitm support... " >&6; }
3250 if (srcdir=${srcdir}/libitm; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-libitm"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
3260 fi
3261 fi
3262fi
3263
5286fdef
L
3264# Disable libsanitizer on unsupported systems.
3265if test -d ${srcdir}/libsanitizer; then
3266 if test x$enable_libsanitizer = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3268$as_echo_n "checking for libsanitizer support... " >&6; }
3269 if (srcdir=${srcdir}/libsanitizer; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libsanitizer"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278$as_echo "yes" >&6; }
3279 fi
3280 fi
3281fi
3282
95e43135
JBG
3283# Disable libvtv on unsupported systems.
3284if test -d ${srcdir}/libvtv; then
3285 if test x$enable_libvtv = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3287$as_echo_n "checking for libvtv support... " >&6; }
3288 if (srcdir=${srcdir}/libvtv; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$VTV_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libvtv"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
1b6c0831 3302
bf41f30d
NC
3303# Disable libhsail-rt on unsupported systems.
3304if test -d ${srcdir}/libhsail-rt; then
3305 if test x$enable_libhsail_rt = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3307$as_echo_n "checking for libhsail-rt support... " >&6; }
3308 if (srcdir=${srcdir}/libhsail-rt; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314 unsupported_languages="$unsupported_languages brig"
3315 # This implicitly disables also target-libhsail-rt as it won't
3316 # get added to the build without BRIG FE.
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319$as_echo "yes" >&6; }
3320 fi
3321 fi
3322fi
1b6c0831
L
3323
3324
1488e230
DE
3325# Disable libquadmath for some systems.
3326case "${target}" in
5286fdef
L
3327 avr-*-*)
3328 noconfigdirs="$noconfigdirs target-libquadmath"
3329 ;;
1488e230
DE
3330 # libquadmath is unused on AIX and libquadmath build process use of
3331 # LD_LIBRARY_PATH can break AIX bootstrap.
3332 powerpc-*-aix* | rs6000-*-aix*)
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3334 ;;
3335esac
3336
065a5627
JM
3337# Disable libssp for some systems.
3338case "${target}" in
3339 avr-*-*)
c5f5c3c2 3340 # No hosted I/O support.
065a5627
JM
3341 noconfigdirs="$noconfigdirs target-libssp"
3342 ;;
3343 powerpc-*-aix* | rs6000-*-aix*)
3344 noconfigdirs="$noconfigdirs target-libssp"
3345 ;;
99c513f6 3346 rl78-*-*)
202e2356
NC
3347 # libssp uses a misaligned load to trigger a fault, but the RL78
3348 # doesn't fault for those - instead, it gives a build-time error
3349 # for explicit misaligned loads.
99c513f6
DD
3350 noconfigdirs="$noconfigdirs target-libssp"
3351 ;;
1b6c0831
L
3352 visium-*-*)
3353 # No hosted I/O support.
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
065a5627
JM
3356esac
3357
065a5627 3358# Disable libstdc++-v3 for some systems.
f66a9a70
L
3359# Allow user to override this if they pass --enable-libstdc++-v3
3360if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3361 case "${target}" in
3362 *-*-vxworks*)
3363 # VxWorks uses the Dinkumware C++ library.
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365 ;;
3366 arm*-wince-pe*)
3367 # the C++ libraries don't build on top of CE's C libraries
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 avr-*-*)
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 ;;
969b1713
L
3373 ft32-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375 ;;
f66a9a70
L
3376 esac
3377fi
065a5627
JM
3378
3379# Disable Fortran for some systems.
3380case "${target}" in
3381 mmix-*-*)
3382 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3383 unsupported_languages="$unsupported_languages fortran"
3384 ;;
3385esac
3386
05a13254 3387# Disable libffi for some systems.
0827f9a6 3388case "${target}" in
9863d716
JM
3389 powerpc-*-darwin*)
3390 ;;
3391 i[3456789]86-*-darwin*)
3392 ;;
3393 x86_64-*-darwin[912]*)
3394 ;;
3395 *-*-darwin*)
05a13254 3396 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3397 ;;
9863d716 3398 *-*-netware*)
05a13254
NC
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 *-*-phoenix*)
3402 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3403 ;;
3404 *-*-rtems*)
05a13254 3405 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3406 ;;
3407 *-*-tpf*)
05a13254 3408 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3409 ;;
3410 *-*-uclinux*)
05a13254 3411 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3412 ;;
3413 *-*-vxworks*)
05a13254
NC
3414 noconfigdirs="$noconfigdirs target-libffi"
3415 ;;
3416 aarch64*-*-freebsd*)
3417 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3418 ;;
9863d716 3419 alpha*-*-*vms*)
05a13254 3420 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3421 ;;
1b6c0831 3422 arm*-*-freebsd*)
05a13254 3423 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3424 ;;
0827f9a6 3425 arm-wince-pe)
05a13254 3426 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3427 ;;
9863d716 3428 arm*-*-symbianelf*)
05a13254 3429 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3430 ;;
9863d716 3431 cris-*-* | crisv32-*-*)
9863d716
JM
3432 case "${target}" in
3433 *-*-linux*)
3434 ;;
3435 *) # See PR46792 regarding target-libffi.
05a13254 3436 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3437 esac
3438 ;;
82ae827f 3439 hppa*64*-*-hpux*)
05a13254 3440 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3441 ;;
3442 hppa*-hp-hpux11*)
3443 ;;
82ae827f 3444 hppa*-*-hpux*)
05a13254 3445 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3446 ;;
9863d716 3447 ia64*-*-*vms*)
05a13254 3448 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3449 ;;
9863d716 3450 i[3456789]86-w64-mingw*)
05a13254 3451 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3452 ;;
3453 i[3456789]86-*-mingw*)
05a13254 3454 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3455 ;;
3456 x86_64-*-mingw*)
05a13254 3457 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3458 ;;
9863d716 3459 mmix-*-*)
05a13254 3460 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3461 ;;
3462 powerpc-*-aix*)
9863d716 3463 ;;
9863d716 3464 rs6000-*-aix*)
9863d716 3465 ;;
3f8107ab 3466 ft32-*-*)
05a13254 3467 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3468 ;;
9863d716 3469 *-*-lynxos*)
05a13254 3470 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3471 ;;
9863d716
JM
3472esac
3473
1b6c0831
L
3474# Disable the go frontend on systems where it is known to not work. Please keep
3475# this in sync with contrib/config-list.mk.
3476case "${target}" in
bf41f30d 3477*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3478 unsupported_languages="$unsupported_languages go"
3479 ;;
3480esac
3481
a413f71a
ILT
3482# Disable libgo for some systems where it is known to not work.
3483# For testing, you can easily override this with --enable-libgo.
3484if test x$enable_libgo = x; then
3485 case "${target}" in
3486 *-*-darwin*)
3487 # PR 46986
3488 noconfigdirs="$noconfigdirs target-libgo"
3489 ;;
3490 *-*-cygwin* | *-*-mingw*)
3491 noconfigdirs="$noconfigdirs target-libgo"
3492 ;;
a413f71a
ILT
3493 esac
3494fi
3495
691bb5a1
DD
3496# Default libgloss CPU subdirectory.
3497libgloss_dir="$target_cpu"
4b1cb4fe 3498
ff46fb8f
JM
3499case "${target}" in
3500 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3501 libgloss_dir=wince
3502 ;;
f1dd87fc
YZ
3503 aarch64*-*-* )
3504 libgloss_dir=aarch64
3505 ;;
ff46fb8f
JM
3506 arm*-*-*)
3507 libgloss_dir=arm
3508 ;;
3509 cris-*-* | crisv32-*-*)
3510 libgloss_dir=cris
3511 ;;
3512 hppa*-*-*)
3513 libgloss_dir=pa
3514 ;;
3515 i[3456789]86-*-*)
3516 libgloss_dir=i386
3517 ;;
3518 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3519 libgloss_dir=m68hc11
3520 ;;
3521 m68*-*-* | fido-*-*)
3522 libgloss_dir=m68k
3523 ;;
3524 mips*-*-*)
3525 libgloss_dir=mips
3526 ;;
3527 powerpc*-*-*)
3528 libgloss_dir=rs6000
3529 ;;
3530 sparc*-*-*)
3531 libgloss_dir=sparc
3532 ;;
3533esac
3534
c7e4b184 3535# Disable newlib and libgloss for various target OSes.
a0da8069 3536case "${target}" in
c7e4b184
JM
3537 alpha*-dec-osf*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 i[3456789]86-*-linux*)
3541 # This section makes it possible to build newlib natively on linux.
3542 # If we are using a cross compiler then don't configure newlib.
3543 if test x${is_cross_compiler} != xno ; then
3544 noconfigdirs="$noconfigdirs target-newlib"
3545 fi
3546 noconfigdirs="$noconfigdirs target-libgloss"
3547 # If we are not using a cross compiler, do configure newlib.
3548 # Note however, that newlib will only be configured in this situation
3549 # if the --with-newlib option has been given, because otherwise
3550 # 'target-newlib' will appear in skipdirs.
3551 ;;
3552 i[3456789]86-*-rdos*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 sparc-*-sunos4*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-aix*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-beos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
a0da8069 3567 *-*-chorusos)
b2f14e4a 3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3569 ;;
c7e4b184
JM
3570 *-*-dragonfly*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-freebsd*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-lynxos*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-mingw*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 *-*-netbsd*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 *-*-netware*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-tpf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-uclinux*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-vxworks*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600esac
3601
3602case "${target}" in
3603 *-*-chorusos)
3604 ;;
f075eb5e
TG
3605 aarch64-*-darwin*)
3606 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3607 noconfigdirs="$noconfigdirs sim target-rda"
3608 ;;
3609 arm-*-darwin*)
3610 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3611 noconfigdirs="$noconfigdirs sim target-rda"
3612 ;;
24741ab2 3613 powerpc-*-darwin*)
9d39db92 3614 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3615 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3616 ;;
85bd1942
TG
3617 i[3456789]86-*-darwin*)
3618 noconfigdirs="$noconfigdirs ld gprof"
3619 noconfigdirs="$noconfigdirs sim target-rda"
3620 ;;
e8a5fa9c 3621 x86_64-*-darwin[912]*)
652dec25
TG
3622 noconfigdirs="$noconfigdirs ld gas gprof"
3623 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3624 ;;
04d1ab34 3625 *-*-darwin*)
d320aacb 3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3627 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3628 ;;
5b806d27 3629 *-*-dragonfly*)
5b806d27 3630 ;;
de0b4a87 3631 *-*-freebsd*)
4b1cb4fe
DD
3632 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3633 && test -f /usr/local/include/gmp.h; then
3634 with_gmp=/usr/local
3635 fi
4b1cb4fe 3636 ;;
f8a495c8
NC
3637 *-*-kaos*)
3638 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3639 noconfigdirs="$noconfigdirs target-libgloss"
3640 ;;
a0da8069 3641 *-*-netbsd*)
a0da8069 3642 ;;
2a3124ca 3643 *-*-netware*)
a0da8069 3644 ;;
05a13254
NC
3645 *-*-phoenix*)
3646 noconfigdirs="$noconfigdirs target-libgloss"
3647 ;;
a0da8069 3648 *-*-rtems*)
9863d716 3649 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3650 ;;
1587117a
EC
3651 # The tpf target doesn't support gdb yet.
3652 *-*-tpf*)
c7e4b184 3653 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3654 ;;
c1968181 3655 *-*-uclinux*)
c7e4b184 3656 noconfigdirs="$noconfigdirs target-rda"
c1968181 3657 ;;
a0da8069 3658 *-*-vxworks*)
a0da8069
NN
3659 ;;
3660 alpha*-dec-osf*)
3661 # ld works, but does not support shared libraries.
a0da8069 3662 # gas doesn't generate exception information.
c7e4b184 3663 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3664 ;;
3665 alpha*-*-*vms*)
9863d716 3666 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3667 ;;
a0da8069
NN
3668 alpha*-*-*)
3669 # newlib is not 64 bit ready
9863d716 3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3671 ;;
a0da8069 3672 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3673 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3674 ;;
05a13254
NC
3675 arc*-*-*)
3676 noconfigdirs="$noconfigdirs sim"
a0da8069 3677 ;;
a0da8069 3678 arm-*-pe*)
9863d716 3679 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3680 ;;
a0da8069 3681 arm-*-riscix*)
b2f14e4a 3682 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3683 ;;
8e71395b
L
3684 avr-*-*)
3685 if test x${with_avrlibc} != xno; then
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 fi
3688 ;;
a0da8069 3689 c4x-*-* | tic4x-*-*)
b2f14e4a 3690 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3691 ;;
b2f14e4a
JM
3692 tic54x-*-*)
3693 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3694 ;;
a0da8069 3695 d10v-*-*)
b2f14e4a 3696 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3697 ;;
3698 d30v-*-*)
b2f14e4a 3699 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3700 ;;
3701 fr30-*-elf*)
9863d716 3702 noconfigdirs="$noconfigdirs gdb"
a0da8069 3703 ;;
3f8107ab
AM
3704 ft32-*-*)
3705 noconfigdirs="$noconfigdirs target-rda gprof"
3706 ;;
20135e4c 3707 moxie-*-*)
10b8fe5e 3708 noconfigdirs="$noconfigdirs"
20135e4c 3709 ;;
a0da8069 3710 h8300*-*-*)
9863d716 3711 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3712 ;;
3713 h8500-*-*)
b2f14e4a 3714 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3715 ;;
caeba88f 3716 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3717 ;;
5569a85f
JDA
3718 hppa*64*-*-hpux*)
3719 noconfigdirs="$noconfigdirs gdb"
3720 ;;
3721 hppa*-*-hpux11*)
3722 noconfigdirs="$noconfigdirs gdb ld"
3723 ;;
93cc359e 3724 hppa*64*-*-linux*)
a0da8069 3725 ;;
f0ff0f90 3726 hppa*-*-linux*)
5dcac624 3727 ;;
a0da8069 3728 hppa*-*-*elf* | \
a0da8069
NN
3729 hppa*-*-lites* | \
3730 hppa*-*-openbsd* | \
3731 hppa*64*-*-*)
4f0ef2d8 3732 ;;
691bb5a1 3733 hppa*-*-pro*)
691bb5a1 3734 ;;
a0da8069 3735 hppa*-*-*)
9863d716 3736 noconfigdirs="$noconfigdirs ld"
a0da8069 3737 ;;
b07c2aad 3738 i960-*-*)
b2f14e4a 3739 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3740 ;;
a0da8069
NN
3741 ia64*-*-elf*)
3742 # No gdb support yet.
0377a422 3743 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3744 ;;
3745 ia64*-**-hpux*)
92c9a463 3746 # No ld support yet.
5569a85f 3747 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3748 ;;
19e99079 3749 ia64*-*-*vms*)
7ec59b9e
L
3750 # No ld support yet.
3751 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3752 ;;
1f53ca9a 3753 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3754 ;;
3755 i[3456789]86-*-mingw*)
45055374 3756 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3757 ;;
a0da8069
NN
3758 *-*-cygwin*)
3759 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3760 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3761 # always build newlib if winsup directory is present.
45055374 3762 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3763 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3764 elif test -d "$srcdir/newlib"; then
45055374 3765 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3766 fi
c6b750e1 3767 ;;
ec11bdc6 3768 i[3456789]86-*-pe)
782cb41f 3769 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3770 ;;
ec11bdc6 3771 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3772 # The linker does not yet know about weak symbols in COFF,
3773 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3774 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3775 ;;
ec11bdc6 3776 i[3456789]86-*-sco*)
b2f14e4a 3777 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3778 ;;
cff32a7c 3779 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
ec11bdc6 3782 i[3456789]86-*-sysv4*)
b2f14e4a 3783 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3784 ;;
ec11bdc6 3785 i[3456789]86-*-beos*)
c7e4b184 3786 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3787 ;;
b59bea8a 3788 i[3456789]86-*-rdos*)
c7e4b184 3789 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3790 ;;
a0da8069 3791 mmix-*-*)
9863d716 3792 noconfigdirs="$noconfigdirs gdb"
a0da8069 3793 ;;
4970f871 3794 mt-*-*)
cdb9b172
AH
3795 noconfigdirs="$noconfigdirs sim"
3796 ;;
1063beb5
FT
3797 nfp-*-*)
3798 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3799 noconfigdirs="$noconfigdirs $target_libraries"
3800 ;;
a0da8069
NN
3801 powerpc-*-aix*)
3802 # copied from rs6000-*-* entry
c7e4b184 3803 noconfigdirs="$noconfigdirs gprof"
a0da8069 3804 ;;
93cc359e 3805 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3806 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3807 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3808 # always build newlib.
3809 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3810 ;;
3811 # This is temporary until we can link against shared libraries
3812 powerpcle-*-solaris*)
b2f14e4a 3813 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3814 ;;
3815 powerpc-*-beos*)
c7e4b184 3816 noconfigdirs="$noconfigdirs gdb"
a0da8069 3817 ;;
a0da8069 3818 rs6000-*-lynxos*)
c7e4b184 3819 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3820 ;;
3821 rs6000-*-aix*)
c7e4b184 3822 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3823 ;;
3824 rs6000-*-*)
9863d716 3825 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3826 ;;
3827 m68k-apollo-*)
b2f14e4a 3828 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3829 ;;
25a07265 3830 microblaze*)
9863d716 3831 noconfigdirs="$noconfigdirs gprof"
25a07265 3832 ;;
a9d58c06 3833 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3834 if test x$with_newlib = xyes; then
3835 noconfigdirs="$noconfigdirs gprof"
3836 fi
5bd8be13 3837 ;;
a0da8069 3838 mips*-*-irix5*)
b2f14e4a 3839 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3840 ;;
3841 mips*-*-irix6*)
9863d716 3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3843 ;;
a0da8069 3844 mips*-*-bsd*)
e8044f35 3845 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3846 ;;
a0da8069 3847 mips*-*-linux*)
a0da8069 3848 ;;
e8044f35
RS
3849 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3850 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3851 noconfigdirs="$noconfigdirs ld gas gprof"
3852 ;;
a0da8069 3853 mips*-*-*)
9863d716 3854 noconfigdirs="$noconfigdirs gprof"
a0da8069 3855 ;;
1b6c0831 3856 nvptx*-*-*)
1b6c0831
L
3857 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3858 ;;
05a13254 3859 sh-*-*)
e8a5fa9c
RW
3860 case "${target}" in
3861 sh*-*-elf)
9863d716 3862 ;;
e8a5fa9c 3863 *)
9863d716 3864 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3865 esac
a0da8069 3866 ;;
a0da8069 3867 sparc-*-sunos4*)
c7e4b184 3868 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3869 use_gnu_ld=no
3870 fi
3871 ;;
619a3713 3872 tic6x-*-*)
40ae9136 3873 noconfigdirs="$noconfigdirs sim"
619a3713 3874 ;;
05a13254 3875 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3876 noconfigdirs="$noconfigdirs sim"
3877 ;;
a0da8069 3878 v810-*-*)
b2f14e4a 3879 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3880 ;;
3881 vax-*-*)
9863d716 3882 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3883 ;;
b29d2641
MR
3884 wasm32-*-*)
3885 noconfigdirs="$noconfigdirs ld"
3886 ;;
a0da8069 3887esac
252b5132 3888
a0da8069
NN
3889# If we aren't building newlib, then don't build libgloss, since libgloss
3890# depends upon some newlib header files.
3891case "${noconfigdirs}" in
3892 *target-libgloss*) ;;
3893 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3894esac
3895
a0da8069 3896# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3897host_makefile_frag=/dev/null
3898if test -d ${srcdir}/config ; then
3899case "${host}" in
ec11bdc6 3900 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3901 host_makefile_frag="config/mh-djgpp"
3902 ;;
3903 *-cygwin*)
e33b51a6 3904
81ecdfbb
RW
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3906$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3907echo a >cygwin-cat-check
1f53ca9a 3908if test `cat cygwin-cat-check` = a ; then
8ade07e9 3909 rm cygwin-cat-check
81ecdfbb
RW
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911$as_echo "yes" >&6; }
e33b51a6 3912else
8ade07e9 3913 rm cygwin-cat-check
81ecdfbb
RW
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
d0ac1c44 3916 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3917 Please either mount the build directory in binary mode or run the following
3918 commands before running any configure script:
3919set -o igncr
3920export SHELLOPTS
81ecdfbb 3921 " "$LINENO" 5
e33b51a6 3922fi
e33b51a6 3923
a0da8069
NN
3924 host_makefile_frag="config/mh-cygwin"
3925 ;;
8a1599ab 3926 *-mingw*)
84e7906e 3927 host_makefile_frag="config/mh-mingw"
2d1e8239 3928 ;;
ce6c656d
L
3929 alpha*-linux*)
3930 host_makefile_frag="config/mh-alpha-linux"
3931 ;;
da888c87 3932 hppa*-hp-hpux10*)
da888c87 3933 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3934 ;;
3516a403 3935 hppa*-hp-hpux*)
da888c87
PB
3936 host_makefile_frag="config/mh-pa"
3937 ;;
3938 hppa*-*)
3939 host_makefile_frag="config/mh-pa"
3940 ;;
e552509b
ILT
3941 *-*-darwin*)
3942 host_makefile_frag="config/mh-darwin"
0df3d27f 3943 ;;
f6d183c0
PB
3944 powerpc-*-aix*)
3945 host_makefile_frag="config/mh-ppc-aix"
3946 ;;
3947 rs6000-*-aix*)
3948 host_makefile_frag="config/mh-ppc-aix"
3949 ;;
a0da8069
NN
3950esac
3951fi
3952
9e07f89d 3953if test "${build}" != "${host}" ; then
1576798e
PB
3954 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3955 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3956 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3957 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3958 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3959 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3960 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3961 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3962 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3963 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3964 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3965 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3966else
3967 AR_FOR_BUILD="\$(AR)"
3968 AS_FOR_BUILD="\$(AS)"
512b7dfb 3969 CC_FOR_BUILD="\$(CC)"
1576798e 3970 CXX_FOR_BUILD="\$(CXX)"
1576798e 3971 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3972 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3973 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3974 LD_FOR_BUILD="\$(LD)"
3975 NM_FOR_BUILD="\$(NM)"
3976 RANLIB_FOR_BUILD="\$(RANLIB)"
3977 WINDRES_FOR_BUILD="\$(WINDRES)"
3978 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3979fi
3980
3981ac_ext=c
c6b750e1
DJ
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3988set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3991if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3992 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3993else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
81ecdfbb 4002 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4006 break 2
4007 fi
4008done
81ecdfbb
RW
4009 done
4010IFS=$as_save_IFS
c6b750e1
DJ
4011
4012fi
4013fi
4014CC=$ac_cv_prog_CC
4015if test -n "$CC"; then
81ecdfbb
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017$as_echo "$CC" >&6; }
c6b750e1 4018else
81ecdfbb
RW
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
c6b750e1
DJ
4021fi
4022
81ecdfbb 4023
c6b750e1
DJ
4024fi
4025if test -z "$ac_cv_prog_CC"; then
4026 ac_ct_CC=$CC
6a9cf61e 4027 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4028set dummy gcc; ac_word=$2
81ecdfbb
RW
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4031if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4032 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4033else
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036else
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
81ecdfbb 4042 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4044 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4046 break 2
4047 fi
4048done
81ecdfbb
RW
4049 done
4050IFS=$as_save_IFS
c6b750e1
DJ
4051
4052fi
4053fi
4054ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4058else
81ecdfbb
RW
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
c6b750e1
DJ
4061fi
4062
81ecdfbb
RW
4063 if test "x$ac_ct_CC" = x; then
4064 CC=""
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067yes:)
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070ac_tool_warned=yes ;;
4071esac
4072 CC=$ac_ct_CC
4073 fi
c6b750e1
DJ
4074else
4075 CC="$ac_cv_prog_CC"
4076fi
4077
4078if test -z "$CC"; then
81ecdfbb
RW
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4081set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4084if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4085 $as_echo_n "(cached) " >&6
9e07f89d
NN
4086else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089else
c6b750e1
DJ
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
81ecdfbb 4095 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4097 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4099 break 2
4100 fi
4101done
81ecdfbb
RW
4102 done
4103IFS=$as_save_IFS
c6b750e1 4104
9e07f89d
NN
4105fi
4106fi
c6b750e1 4107CC=$ac_cv_prog_CC
9e07f89d 4108if test -n "$CC"; then
81ecdfbb
RW
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110$as_echo "$CC" >&6; }
c6b750e1 4111else
81ecdfbb
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
c6b750e1
DJ
4114fi
4115
c6b750e1 4116
81ecdfbb 4117 fi
c6b750e1 4118fi
9e07f89d
NN
4119if test -z "$CC"; then
4120 # Extract the first word of "cc", so it can be a program name with args.
4121set dummy cc; ac_word=$2
81ecdfbb
RW
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4124if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4125 $as_echo_n "(cached) " >&6
9e07f89d
NN
4126else
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129else
9e07f89d 4130 ac_prog_rejected=no
c6b750e1
DJ
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
81ecdfbb 4136 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139 ac_prog_rejected=yes
4140 continue
4141 fi
4142 ac_cv_prog_CC="cc"
81ecdfbb 4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4144 break 2
4145 fi
4146done
81ecdfbb
RW
4147 done
4148IFS=$as_save_IFS
c6b750e1 4149
9e07f89d
NN
4150if test $ac_prog_rejected = yes; then
4151 # We found a bogon in the path, so make sure we never use it.
4152 set dummy $ac_cv_prog_CC
4153 shift
c6b750e1 4154 if test $# != 0; then
9e07f89d
NN
4155 # We chose a different compiler from the bogus one.
4156 # However, it has the same basename, so the bogon will be chosen
4157 # first if we set CC to just the basename; use the full file name.
4158 shift
c6b750e1 4159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4160 fi
4161fi
4162fi
4163fi
c6b750e1 4164CC=$ac_cv_prog_CC
9e07f89d 4165if test -n "$CC"; then
81ecdfbb
RW
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167$as_echo "$CC" >&6; }
9e07f89d 4168else
81ecdfbb
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
9e07f89d
NN
4171fi
4172
81ecdfbb 4173
c6b750e1
DJ
4174fi
4175if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
81ecdfbb 4177 for ac_prog in cl.exe
c6b750e1
DJ
4178 do
4179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4183if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4184 $as_echo_n "(cached) " >&6
9e07f89d
NN
4185else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
c6b750e1
DJ
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
81ecdfbb 4194 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4198 break 2
376a0e54 4199 fi
c6b750e1 4200done
81ecdfbb
RW
4201 done
4202IFS=$as_save_IFS
cac3d6c4 4203
c6b750e1
DJ
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
81ecdfbb
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209$as_echo "$CC" >&6; }
cac3d6c4 4210else
81ecdfbb
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
9e07f89d 4213fi
cac3d6c4 4214
81ecdfbb 4215
c6b750e1
DJ
4216 test -n "$CC" && break
4217 done
cac3d6c4 4218fi
c6b750e1
DJ
4219if test -z "$CC"; then
4220 ac_ct_CC=$CC
81ecdfbb 4221 for ac_prog in cl.exe
c6b750e1
DJ
4222do
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4227if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4228 $as_echo_n "(cached) " >&6
cac3d6c4 4229else
c6b750e1
DJ
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4232else
c6b750e1
DJ
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
81ecdfbb 4238 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4240 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4242 break 2
4243 fi
4244done
81ecdfbb
RW
4245 done
4246IFS=$as_save_IFS
c6b750e1 4247
cac3d6c4
CM
4248fi
4249fi
c6b750e1
DJ
4250ac_ct_CC=$ac_cv_prog_ac_ct_CC
4251if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4253$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4254else
81ecdfbb
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
cac3d6c4 4257fi
376a0e54 4258
81ecdfbb 4259
c6b750e1
DJ
4260 test -n "$ac_ct_CC" && break
4261done
4262
81ecdfbb
RW
4263 if test "x$ac_ct_CC" = x; then
4264 CC=""
4265 else
4266 case $cross_compiling:$ac_tool_warned in
4267yes:)
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270ac_tool_warned=yes ;;
4271esac
4272 CC=$ac_ct_CC
4273 fi
c6b750e1
DJ
4274fi
4275
4276fi
4277
4278
81ecdfbb
RW
4279test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4281as_fn_error $? "no acceptable C compiler found in \$PATH
4282See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4283
4284# Provide some information about the compiler.
81ecdfbb
RW
4285$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4286set X $ac_compile
4287ac_compiler=$2
4288for ac_option in --version -v -V -qversion; do
4289 { { ac_try="$ac_compiler $ac_option >&5"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295$as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4297 ac_status=$?
81ecdfbb
RW
4298 if test -s conftest.err; then
4299 sed '10a\
4300... rest of stderr output deleted ...
4301 10q' conftest.err >conftest.er1
4302 cat conftest.er1 >&5
81ecdfbb 4303 fi
d0ac1c44 4304 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }
4307done
c6b750e1 4308
81ecdfbb 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4310/* end confdefs.h. */
4311
4312int
4313main ()
4314{
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320ac_clean_files_save=$ac_clean_files
d0ac1c44 4321ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4322# Try to create an executable without -o first, disregard a.out.
4323# It will help us diagnose broken compilers, and finding out an intuition
4324# of exeext.
d0ac1c44
SM
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4326$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4327ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4328
4329# The possible output files:
4330ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4331
4332ac_rmfiles=
4333for ac_file in $ac_files
4334do
4335 case $ac_file in
4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4337 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4338 esac
4339done
4340rm -f $ac_rmfiles
4341
4342if { { ac_try="$ac_link_default"
4343case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348$as_echo "$ac_try_echo"; } >&5
4349 (eval "$ac_link_default") 2>&5
c6b750e1 4350 ac_status=$?
81ecdfbb
RW
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; }; then :
4353 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355# in a Makefile. We should not override ac_cv_exeext if it was cached,
4356# so that the user can short-circuit this test for compilers unknown to
4357# Autoconf.
4358for ac_file in $ac_files ''
c6b750e1
DJ
4359do
4360 test -f "$ac_file" || continue
4361 case $ac_file in
81ecdfbb 4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4363 ;;
4364 [ab].out )
4365 # We found the default executable, but exeext='' is most
4366 # certainly right.
4367 break;;
4368 *.* )
81ecdfbb
RW
4369 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4370 then :; else
4371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372 fi
4373 # We set ac_cv_exeext here because the later test for it is not
4374 # safe: cross compilers may not add the suffix if given an `-o'
4375 # argument, so we may need to know it at that point already.
4376 # Even if this section looks crufty: it has the advantage of
4377 # actually working.
c6b750e1
DJ
4378 break;;
4379 * )
4380 break;;
4381 esac
4382done
81ecdfbb
RW
4383test "$ac_cv_exeext" = no && ac_cv_exeext=
4384
c6b750e1 4385else
81ecdfbb
RW
4386 ac_file=''
4387fi
81ecdfbb 4388if test -z "$ac_file"; then :
d0ac1c44
SM
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
4391$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4392sed 's/^/| /' conftest.$ac_ext >&5
4393
81ecdfbb
RW
4394{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4396as_fn_error 77 "C compiler cannot create executables
4397See \`config.log' for more details" "$LINENO" 5; }
4398else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400$as_echo "yes" >&6; }
c6b750e1 4401fi
d0ac1c44
SM
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4403$as_echo_n "checking for C compiler default output file name... " >&6; }
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4405$as_echo "$ac_file" >&6; }
c6b750e1 4406ac_exeext=$ac_cv_exeext
c6b750e1 4407
d0ac1c44 4408rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4409ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4411$as_echo_n "checking for suffix of executables... " >&6; }
4412if { { ac_try="$ac_link"
4413case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418$as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_link") 2>&5
c6b750e1 4420 ac_status=$?
81ecdfbb
RW
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; then :
c6b750e1
DJ
4423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4424# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4425# work properly (i.e., refer to `conftest.exe'), while it won't with
4426# `rm'.
4427for ac_file in conftest.exe conftest conftest.*; do
4428 test -f "$ac_file" || continue
4429 case $ac_file in
81ecdfbb 4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4432 break;;
4433 * ) break;;
4434 esac
4435done
4436else
81ecdfbb
RW
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4439as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4440See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4441fi
d0ac1c44 4442rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4444$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4445
4446rm -f conftest.$ac_ext
4447EXEEXT=$ac_cv_exeext
4448ac_exeext=$EXEEXT
d0ac1c44
SM
4449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h. */
4451#include <stdio.h>
4452int
4453main ()
4454{
4455FILE *f = fopen ("conftest.out", "w");
4456 return ferror (f) || fclose (f) != 0;
4457
4458 ;
4459 return 0;
4460}
4461_ACEOF
4462ac_clean_files="$ac_clean_files conftest.out"
4463# Check that the compiler produces executables we can run. If not, either
4464# the compiler is broken, or we cross compile.
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4466$as_echo_n "checking whether we are cross compiling... " >&6; }
4467if test "$cross_compiling" != yes; then
4468 { { ac_try="$ac_link"
4469case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474$as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_link") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }
4479 if { ac_try='./conftest$ac_cv_exeext'
4480 { { case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485$as_echo "$ac_try_echo"; } >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }; }; then
4490 cross_compiling=no
4491 else
4492 if test "$cross_compiling" = maybe; then
4493 cross_compiling=yes
4494 else
4495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497as_fn_error $? "cannot run C compiled programs.
4498If you meant to cross compile, use \`--host'.
4499See \`config.log' for more details" "$LINENO" 5; }
4500 fi
4501 fi
4502fi
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4504$as_echo "$cross_compiling" >&6; }
4505
4506rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4507ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4509$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4510if ${ac_cv_objext+:} false; then :
81ecdfbb 4511 $as_echo_n "(cached) " >&6
c6b750e1 4512else
81ecdfbb 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4514/* end confdefs.h. */
4515
4516int
4517main ()
4518{
4519
4520 ;
4521 return 0;
4522}
4523_ACEOF
4524rm -f conftest.o conftest.obj
81ecdfbb
RW
4525if { { ac_try="$ac_compile"
4526case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
4530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531$as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_compile") 2>&5
c6b750e1 4533 ac_status=$?
81ecdfbb
RW
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
4536 for ac_file in conftest.o conftest.obj conftest.*; do
4537 test -f "$ac_file" || continue;
c6b750e1 4538 case $ac_file in
81ecdfbb 4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4541 break;;
4542 esac
4543done
cac3d6c4 4544else
81ecdfbb 4545 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
81ecdfbb
RW
4548{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4550as_fn_error $? "cannot compute suffix of object files: cannot compile
4551See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4552fi
c6b750e1
DJ
4553rm -f conftest.$ac_cv_objext conftest.$ac_ext
4554fi
81ecdfbb
RW
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4556$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4557OBJEXT=$ac_cv_objext
4558ac_objext=$OBJEXT
81ecdfbb
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4560$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4561if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4562 $as_echo_n "(cached) " >&6
c6b750e1 4563else
81ecdfbb 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4565/* end confdefs.h. */
4566
4567int
4568main ()
4569{
4570#ifndef __GNUC__
4571 choke me
4572#endif
4573
4574 ;
4575 return 0;
4576}
4577_ACEOF
81ecdfbb 4578if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4579 ac_compiler_gnu=yes
4580else
81ecdfbb 4581 ac_compiler_gnu=no
c6b750e1 4582fi
81ecdfbb 4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4584ac_cv_c_compiler_gnu=$ac_compiler_gnu
4585
4586fi
81ecdfbb
RW
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4588$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4589if test $ac_compiler_gnu = yes; then
4590 GCC=yes
4591else
4592 GCC=
4593fi
c6b750e1
DJ
4594ac_test_CFLAGS=${CFLAGS+set}
4595ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4597$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4598if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4599 $as_echo_n "(cached) " >&6
4600else
4601 ac_save_c_werror_flag=$ac_c_werror_flag
4602 ac_c_werror_flag=yes
4603 ac_cv_prog_cc_g=no
4604 CFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4606/* end confdefs.h. */
4607
4608int
4609main ()
4610{
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
81ecdfbb 4616if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4617 ac_cv_prog_cc_g=yes
4618else
81ecdfbb
RW
4619 CFLAGS=""
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
4622
4623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then :
4632
4633else
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635 CFLAGS="-g"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
cac3d6c4 4638
81ecdfbb
RW
4639int
4640main ()
4641{
4642
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_g=yes
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4651fi
81ecdfbb 4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4653fi
81ecdfbb
RW
4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_c_werror_flag=$ac_save_c_werror_flag
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4658$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4659if test "$ac_test_CFLAGS" = set; then
c6b750e1 4660 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4661elif test $ac_cv_prog_cc_g = yes; then
4662 if test "$GCC" = yes; then
4663 CFLAGS="-g -O2"
4664 else
4665 CFLAGS="-g"
4666 fi
4667else
4668 if test "$GCC" = yes; then
4669 CFLAGS="-O2"
4670 else
4671 CFLAGS=
4672 fi
4673fi
81ecdfbb
RW
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4675$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4676if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4677 $as_echo_n "(cached) " >&6
c6b750e1 4678else
81ecdfbb 4679 ac_cv_prog_cc_c89=no
c6b750e1 4680ac_save_CC=$CC
81ecdfbb 4681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4682/* end confdefs.h. */
4683#include <stdarg.h>
4684#include <stdio.h>
d0ac1c44 4685struct stat;
c6b750e1
DJ
4686/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4687struct buf { int x; };
4688FILE * (*rcsopen) (struct buf *, struct stat *, int);
4689static char *e (p, i)
4690 char **p;
4691 int i;
4692{
4693 return p[i];
4694}
4695static char *f (char * (*g) (char **, int), char **p, ...)
4696{
4697 char *s;
4698 va_list v;
4699 va_start (v,p);
4700 s = g (p, va_arg (v,int));
4701 va_end (v);
4702 return s;
4703}
4704
4705/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4706 function prototypes and stuff, but not '\xHH' hex character constants.
4707 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4708 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4710 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4711 that's true only with -std. */
c6b750e1
DJ
4712int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4713
81ecdfbb
RW
4714/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4715 inside strings and character constants. */
4716#define FOO(x) 'x'
4717int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4718
c6b750e1
DJ
4719int test (int i, double x);
4720struct s1 {int (*f) (int a);};
4721struct s2 {int (*f) (double a);};
4722int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4723int argc;
4724char **argv;
4725int
4726main ()
4727{
4728return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4729 ;
4730 return 0;
4731}
4732_ACEOF
81ecdfbb
RW
4733for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4735do
4736 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4739fi
81ecdfbb
RW
4740rm -f core conftest.err conftest.$ac_objext
4741 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4742done
81ecdfbb 4743rm -f conftest.$ac_ext
c6b750e1
DJ
4744CC=$ac_save_CC
4745
4746fi
81ecdfbb
RW
4747# AC_CACHE_VAL
4748case "x$ac_cv_prog_cc_c89" in
4749 x)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4751$as_echo "none needed" >&6; } ;;
4752 xno)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4754$as_echo "unsupported" >&6; } ;;
c6b750e1 4755 *)
81ecdfbb
RW
4756 CC="$CC $ac_cv_prog_cc_c89"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4758$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4759esac
81ecdfbb 4760if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4761
c6b750e1
DJ
4762fi
4763
c6b750e1
DJ
4764ac_ext=c
4765ac_cpp='$CPP $CPPFLAGS'
4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4769
81ecdfbb 4770ac_ext=cpp
18f6b6ee
PB
4771ac_cpp='$CXXCPP $CPPFLAGS'
4772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4775if test -z "$CXX"; then
4776 if test -n "$CCC"; then
4777 CXX=$CCC
4778 else
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4781 do
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4786if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4787 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4788else
4789 if test -n "$CXX"; then
4790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
81ecdfbb 4797 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4801 break 2
4802 fi
4803done
81ecdfbb
RW
4804 done
4805IFS=$as_save_IFS
512b7dfb 4806
18f6b6ee
PB
4807fi
4808fi
4809CXX=$ac_cv_prog_CXX
4810if test -n "$CXX"; then
81ecdfbb
RW
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4812$as_echo "$CXX" >&6; }
18f6b6ee 4813else
81ecdfbb
RW
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
18f6b6ee
PB
4816fi
4817
81ecdfbb 4818
18f6b6ee
PB
4819 test -n "$CXX" && break
4820 done
4821fi
4822if test -z "$CXX"; then
4823 ac_ct_CXX=$CXX
81ecdfbb 4824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4825do
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4830if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4831 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4832else
4833 if test -n "$ac_ct_CXX"; then
4834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
81ecdfbb 4841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4843 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4845 break 2
512b7dfb 4846 fi
18f6b6ee 4847done
81ecdfbb
RW
4848 done
4849IFS=$as_save_IFS
512b7dfb 4850
18f6b6ee
PB
4851fi
4852fi
4853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4854if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4856$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4857else
81ecdfbb
RW
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
18f6b6ee
PB
4860fi
4861
81ecdfbb 4862
18f6b6ee
PB
4863 test -n "$ac_ct_CXX" && break
4864done
18f6b6ee 4865
81ecdfbb
RW
4866 if test "x$ac_ct_CXX" = x; then
4867 CXX="g++"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870yes:)
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873ac_tool_warned=yes ;;
4874esac
4875 CXX=$ac_ct_CXX
4876 fi
18f6b6ee
PB
4877fi
4878
81ecdfbb
RW
4879 fi
4880fi
18f6b6ee 4881# Provide some information about the compiler.
81ecdfbb
RW
4882$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4883set X $ac_compile
4884ac_compiler=$2
4885for ac_option in --version -v -V -qversion; do
4886 { { ac_try="$ac_compiler $ac_option >&5"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
4891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4892$as_echo "$ac_try_echo"; } >&5
4893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4894 ac_status=$?
81ecdfbb
RW
4895 if test -s conftest.err; then
4896 sed '10a\
4897... rest of stderr output deleted ...
4898 10q' conftest.err >conftest.er1
4899 cat conftest.er1 >&5
81ecdfbb 4900 fi
d0ac1c44 4901 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; }
4904done
18f6b6ee 4905
81ecdfbb
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4907$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4908if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4909 $as_echo_n "(cached) " >&6
18f6b6ee 4910else
81ecdfbb 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4912/* end confdefs.h. */
4913
4914int
4915main ()
4916{
4917#ifndef __GNUC__
4918 choke me
4919#endif
4920
4921 ;
4922 return 0;
4923}
4924_ACEOF
81ecdfbb 4925if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4926 ac_compiler_gnu=yes
4927else
81ecdfbb 4928 ac_compiler_gnu=no
18f6b6ee 4929fi
81ecdfbb 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4931ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4932
4933fi
81ecdfbb
RW
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4935$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4936if test $ac_compiler_gnu = yes; then
4937 GXX=yes
4938else
4939 GXX=
4940fi
18f6b6ee
PB
4941ac_test_CXXFLAGS=${CXXFLAGS+set}
4942ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4944$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4945if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4946 $as_echo_n "(cached) " >&6
4947else
4948 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4949 ac_cxx_werror_flag=yes
4950 ac_cv_prog_cxx_g=no
4951 CXXFLAGS="-g"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4953/* end confdefs.h. */
4954
4955int
4956main ()
4957{
4958
4959 ;
4960 return 0;
4961}
4962_ACEOF
81ecdfbb 4963if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4964 ac_cv_prog_cxx_g=yes
4965else
81ecdfbb
RW
4966 CXXFLAGS=""
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4968/* end confdefs.h. */
81ecdfbb 4969
18f6b6ee
PB
4970int
4971main ()
4972{
81ecdfbb 4973
18f6b6ee
PB
4974 ;
4975 return 0;
4976}
4977_ACEOF
81ecdfbb 4978if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4979
81ecdfbb
RW
4980else
4981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4982 CXXFLAGS="-g"
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4984/* end confdefs.h. */
81ecdfbb 4985
18f6b6ee
PB
4986int
4987main ()
4988{
81ecdfbb 4989
18f6b6ee
PB
4990 ;
4991 return 0;
4992}
4993_ACEOF
81ecdfbb
RW
4994if ac_fn_cxx_try_compile "$LINENO"; then :
4995 ac_cv_prog_cxx_g=yes
18f6b6ee 4996fi
81ecdfbb
RW
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998fi
4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000fi
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5005$as_echo "$ac_cv_prog_cxx_g" >&6; }
5006if test "$ac_test_CXXFLAGS" = set; then
5007 CXXFLAGS=$ac_save_CXXFLAGS
5008elif test $ac_cv_prog_cxx_g = yes; then
5009 if test "$GXX" = yes; then
5010 CXXFLAGS="-g -O2"
5011 else
5012 CXXFLAGS="-g"
5013 fi
5014else
5015 if test "$GXX" = yes; then
5016 CXXFLAGS="-O2"
5017 else
5018 CXXFLAGS=
5019 fi
18f6b6ee 5020fi
18f6b6ee
PB
5021ac_ext=c
5022ac_cpp='$CPP $CPPFLAGS'
5023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027
5028# We must set the default linker to the linker used by gcc for the correct
5029# operation of libtool. If LD is not defined and we are using gcc, try to
5030# set the LD default to the ld used by gcc.
5031if test -z "$LD"; then
5032 if test "$GCC" = yes; then
5033 case $build in
5034 *-*-mingw*)
5035 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5036 *)
5037 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5038 esac
5039 case $gcc_prog_ld in
5040 # Accept absolute paths.
5041 [\\/]* | [A-Za-z]:[\\/]*)
5042 LD="$gcc_prog_ld" ;;
5043 esac
5044 fi
512b7dfb
PB
5045fi
5046
b3676d82
EB
5047# Check whether -static-libstdc++ -static-libgcc is supported.
5048have_static_libs=no
5049if test "$GCC" = yes; then
5050 saved_LDFLAGS="$LDFLAGS"
5051
5052 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5054$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5055 ac_ext=cpp
5056ac_cpp='$CXXCPP $CPPFLAGS'
5057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060
5061
5062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063/* end confdefs.h. */
a882be68
EB
5064
5065#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5066#error -static-libstdc++ not implemented
5067#endif
b3676d82
EB
5068int main() {}
5069_ACEOF
5070if ac_fn_cxx_try_link "$LINENO"; then :
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072$as_echo "yes" >&6; }; have_static_libs=yes
5073else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077rm -f core conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5079 ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086 LDFLAGS="$saved_LDFLAGS"
5087fi
5088
512b7dfb
PB
5089
5090
5091
c6b750e1 5092if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5093 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5097if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5098 $as_echo_n "(cached) " >&6
9e07f89d 5099else
512b7dfb
PB
5100 if test -n "$GNATBIND"; then
5101 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5102else
c6b750e1
DJ
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
81ecdfbb 5108 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5110 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5112 break 2
5113 fi
5114done
81ecdfbb
RW
5115 done
5116IFS=$as_save_IFS
c6b750e1 5117
9e07f89d
NN
5118fi
5119fi
512b7dfb
PB
5120GNATBIND=$ac_cv_prog_GNATBIND
5121if test -n "$GNATBIND"; then
81ecdfbb
RW
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5123$as_echo "$GNATBIND" >&6; }
9e07f89d 5124else
81ecdfbb
RW
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
9e07f89d
NN
5127fi
5128
81ecdfbb 5129
c6b750e1 5130fi
512b7dfb
PB
5131if test -z "$ac_cv_prog_GNATBIND"; then
5132 ac_ct_GNATBIND=$GNATBIND
5133 # Extract the first word of "gnatbind", so it can be a program name with args.
5134set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5137if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5138 $as_echo_n "(cached) " >&6
9e07f89d 5139else
512b7dfb
PB
5140 if test -n "$ac_ct_GNATBIND"; then
5141 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5142else
c6b750e1
DJ
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
81ecdfbb 5148 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5150 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5152 break 2
5153 fi
5154done
81ecdfbb
RW
5155 done
5156IFS=$as_save_IFS
c6b750e1 5157
9e07f89d
NN
5158fi
5159fi
512b7dfb
PB
5160ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5161if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5163$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5164else
81ecdfbb
RW
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
9e07f89d
NN
5167fi
5168
81ecdfbb
RW
5169 if test "x$ac_ct_GNATBIND" = x; then
5170 GNATBIND="no"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173yes:)
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176ac_tool_warned=yes ;;
5177esac
5178 GNATBIND=$ac_ct_GNATBIND
5179 fi
24ff9987 5180else
512b7dfb 5181 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5182fi
5183
7df2cd5d 5184if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5185 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5186set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5189if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5190 $as_echo_n "(cached) " >&6
7df2cd5d 5191else
512b7dfb
PB
5192 if test -n "$GNATMAKE"; then
5193 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
81ecdfbb 5200 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5202 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5204 break 2
5205 fi
5206done
81ecdfbb
RW
5207 done
5208IFS=$as_save_IFS
7df2cd5d
PB
5209
5210fi
5211fi
512b7dfb
PB
5212GNATMAKE=$ac_cv_prog_GNATMAKE
5213if test -n "$GNATMAKE"; then
81ecdfbb
RW
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5215$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5216else
81ecdfbb
RW
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
7df2cd5d
PB
5219fi
5220
81ecdfbb 5221
7df2cd5d 5222fi
512b7dfb
PB
5223if test -z "$ac_cv_prog_GNATMAKE"; then
5224 ac_ct_GNATMAKE=$GNATMAKE
5225 # Extract the first word of "gnatmake", so it can be a program name with args.
5226set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5229if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5230 $as_echo_n "(cached) " >&6
7df2cd5d 5231else
512b7dfb
PB
5232 if test -n "$ac_ct_GNATMAKE"; then
5233 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
81ecdfbb 5240 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5242 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5244 break 2
5245 fi
5246done
81ecdfbb
RW
5247 done
5248IFS=$as_save_IFS
7df2cd5d 5249
7df2cd5d
PB
5250fi
5251fi
512b7dfb
PB
5252ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5253if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5255$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5256else
81ecdfbb
RW
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
7df2cd5d
PB
5259fi
5260
81ecdfbb
RW
5261 if test "x$ac_ct_GNATMAKE" = x; then
5262 GNATMAKE="no"
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265yes:)
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268ac_tool_warned=yes ;;
5269esac
5270 GNATMAKE=$ac_ct_GNATMAKE
5271 fi
7df2cd5d 5272else
512b7dfb 5273 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5274fi
5275
81ecdfbb
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5277$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5278if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5279 $as_echo_n "(cached) " >&6
9e07f89d
NN
5280else
5281 cat >conftest.adb <<EOF
5282procedure conftest is begin null; end conftest;
5283EOF
5284acx_cv_cc_gcc_supports_ada=no
5285# There is a bug in old released versions of GCC which causes the
5286# driver to exit successfully when the appropriate language module
5287# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5288# Therefore we must check for the error message as well as an
5289# unsuccessful exit.
b8908782
DD
5290# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5291# given a .adb file, but produce no object file. So we must check
5292# if an object file was really produced to guard against this.
9e07f89d 5293errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5294if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5295 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5296fi
5297rm -f conftest.*
5298fi
81ecdfbb
RW
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5300$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5301
64b986c0 5302if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5303 have_gnat=yes
5304else
5305 have_gnat=no
5306fi
5307
81ecdfbb
RW
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5309$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5310if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5311 $as_echo_n "(cached) " >&6
b8908782
DD
5312else
5313 echo abfoo >t1
5314 echo cdfoo >t2
da17fe9d 5315 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5316 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5317 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5318 :
5319 else
5320 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5321 fi
5322 fi
b8908782
DD
5323 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5324 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5325 :
b8908782
DD
5326 else
5327 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5328 fi
5329 fi
5330 rm t1 t2
5331
5332fi
81ecdfbb
RW
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5334$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5335do_compare="$gcc_cv_prog_cmp_skip"
5336
5337
9e07f89d 5338
ffdd6afc
ILT
5339# Check whether --enable-bootstrap was given.
5340if test "${enable_bootstrap+set}" = set; then :
5341 enableval=$enable_bootstrap;
5342else
5343 enable_bootstrap=default
5344fi
5345
5346
5347# Issue errors and warnings for invalid/strange bootstrap combinations.
5348if test -r $srcdir/gcc/configure; then
5349 have_compiler=yes
5350else
5351 have_compiler=no
5352fi
5353
5354case "$have_compiler:$host:$target:$enable_bootstrap" in
5355 *:*:*:no) ;;
5356
5357 # Default behavior. Enable bootstrap if we have a compiler
5358 # and we are in a native configuration.
5359 yes:$build:$build:default)
5360 enable_bootstrap=yes ;;
5361
5362 *:*:*:default)
5363 enable_bootstrap=no ;;
5364
5365 # We have a compiler and we are in a native configuration, bootstrap is ok
5366 yes:$build:$build:yes)
5367 ;;
5368
5369 # Other configurations, but we have a compiler. Assume the user knows
5370 # what he's doing.
5371 yes:*:*:yes)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5373$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5374 ;;
5375
5376 # No compiler: if they passed --enable-bootstrap explicitly, fail
5377 no:*:*:yes)
d0ac1c44 5378 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5379
5380 # Fail if wrong command line
5381 *)
d0ac1c44 5382 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5383 ;;
5384esac
5385
ce6c656d
L
5386# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5387# C++98 compiler can still start the bootstrap.
5388if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5389 CXX="$CXX -std=gnu++98"
5390fi
5391
d5f2ee2e
KG
5392# Used for setting $lt_cv_objdir
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5394$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5395if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5396 $as_echo_n "(cached) " >&6
5397else
5398 rm -f .libs 2>/dev/null
5399mkdir .libs 2>/dev/null
5400if test -d .libs; then
5401 lt_cv_objdir=.libs
5402else
5403 # MS-DOS does not allow filenames that begin with a dot.
5404 lt_cv_objdir=_libs
5405fi
5406rmdir .libs 2>/dev/null
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5409$as_echo "$lt_cv_objdir" >&6; }
5410objdir=$lt_cv_objdir
5411
5412
5413
5414
5415
5416cat >>confdefs.h <<_ACEOF
5417#define LT_OBJDIR "$lt_cv_objdir/"
5418_ACEOF
5419
5420
5421
e8a5fa9c 5422# Check for GMP, MPFR and MPC
d9b76ff9 5423gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5424gmpinc=
4b900473 5425have_gmp=no
e8a5fa9c
RW
5426
5427# Specify a location for mpc
5428# check for this first so it ends up on the link line before mpfr.
5429
81ecdfbb
RW
5430# Check whether --with-mpc was given.
5431if test "${with_mpc+set}" = set; then :
5432 withval=$with_mpc;
5433fi
e8a5fa9c 5434
e8a5fa9c 5435
e552509b 5436# Check whether --with-mpc-include was given.
81ecdfbb
RW
5437if test "${with_mpc_include+set}" = set; then :
5438 withval=$with_mpc_include;
5439fi
e8a5fa9c 5440
e8a5fa9c 5441
e552509b 5442# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5443if test "${with_mpc_lib+set}" = set; then :
5444 withval=$with_mpc_lib;
5445fi
e8a5fa9c 5446
e8a5fa9c
RW
5447
5448if test "x$with_mpc" != x; then
d9b76ff9
KG
5449 gmplibs="-L$with_mpc/lib $gmplibs"
5450 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5451fi
5452if test "x$with_mpc_include" != x; then
d9b76ff9 5453 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5454fi
5455if test "x$with_mpc_lib" != x; then
d9b76ff9 5456 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5457fi
5458if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5459 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5460 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5461 # Do not test the mpc version. Assume that it is sufficient, since
5462 # it is in the source tree, and the library has not been built yet
5463 # but it would be included on the link line in the version check below
5464 # hence making the test fail.
d9b76ff9 5465 have_gmp=yes
e8a5fa9c 5466fi
4b900473 5467
11b04d1f
DD
5468# Specify a location for mpfr
5469# check for this first so it ends up on the link line before gmp.
c6b750e1 5470
81ecdfbb
RW
5471# Check whether --with-mpfr-dir was given.
5472if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5473 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5474Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5475fi
5476
11b04d1f
DD
5477
5478
81ecdfbb
RW
5479# Check whether --with-mpfr was given.
5480if test "${with_mpfr+set}" = set; then :
5481 withval=$with_mpfr;
5482fi
c6b750e1 5483
11b04d1f 5484
e552509b 5485# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5486if test "${with_mpfr_include+set}" = set; then :
5487 withval=$with_mpfr_include;
5488fi
c6b750e1 5489
8a0d8a5c 5490
e552509b 5491# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5492if test "${with_mpfr_lib+set}" = set; then :
5493 withval=$with_mpfr_lib;
5494fi
8a0d8a5c 5495
11b04d1f
DD
5496
5497if test "x$with_mpfr" != x; then
5498 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5499 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5500fi
8a0d8a5c 5501if test "x$with_mpfr_include" != x; then
d9b76ff9 5502 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5503fi
5504if test "x$with_mpfr_lib" != x; then
5505 gmplibs="-L$with_mpfr_lib $gmplibs"
5506fi
4b900473 5507if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5508 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5509 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5510 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5511 fi
05a13254
NC
5512 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5513 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5514 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5515 # Do not test the mpfr version. Assume that it is sufficient, since
5516 # it is in the source tree, and the library has not been built yet
5517 # but it would be included on the link line in the version check below
5518 # hence making the test fail.
5519 have_gmp=yes
5520fi
11b04d1f 5521
4b1cb4fe 5522# Specify a location for gmp
c6b750e1 5523
81ecdfbb
RW
5524# Check whether --with-gmp-dir was given.
5525if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5526 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5527Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5528fi
5529
4b1cb4fe
DD
5530
5531
81ecdfbb
RW
5532# Check whether --with-gmp was given.
5533if test "${with_gmp+set}" = set; then :
5534 withval=$with_gmp;
5535fi
c6b750e1 5536
4b1cb4fe 5537
e552509b 5538# Check whether --with-gmp-include was given.
81ecdfbb
RW
5539if test "${with_gmp_include+set}" = set; then :
5540 withval=$with_gmp_include;
5541fi
c6b750e1 5542
8a0d8a5c 5543
e552509b 5544# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5545if test "${with_gmp_lib+set}" = set; then :
5546 withval=$with_gmp_lib;
5547fi
8a0d8a5c
PB
5548
5549
4b1cb4fe 5550
11b04d1f
DD
5551if test "x$with_gmp" != x; then
5552 gmplibs="-L$with_gmp/lib $gmplibs"
5553 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5554fi
8a0d8a5c
PB
5555if test "x$with_gmp_include" != x; then
5556 gmpinc="-I$with_gmp_include $gmpinc"
5557fi
5558if test "x$with_gmp_lib" != x; then
5559 gmplibs="-L$with_gmp_lib $gmplibs"
5560fi
4b900473 5561if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5562 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5563 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5564 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5565 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5566 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5567 # Do not test the gmp version. Assume that it is sufficient, since
5568 # it is in the source tree, and the library has not been built yet
5569 # but it would be included on the link line in the version check below
5570 # hence making the test fail.
5571 have_gmp=yes
5572fi
4b1cb4fe 5573
ceb92e78 5574if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5575 have_gmp=yes
5576 saved_CFLAGS="$CFLAGS"
5577 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5578 # Check for the recommended and required versions of GMP.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5580$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5581
5582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5583/* end confdefs.h. */
5584#include "gmp.h"
5585int
5586main ()
5587{
5588
5589 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5590 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5591 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5592 choke me
5593 #endif
5594
5595 ;
5596 return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5601/* end confdefs.h. */
a6b5846e 5602#include <gmp.h>
c6b750e1
DJ
5603int
5604main ()
5605{
4b1cb4fe 5606
a6b5846e
KG
5607 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5608 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5609 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5610 choke me
5611 #endif
c6b750e1
DJ
5612
5613 ;
5614 return 0;
5615}
5616_ACEOF
81ecdfbb
RW
5617if ac_fn_c_try_compile "$LINENO"; then :
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619$as_echo "yes" >&6; }
a6b5846e
KG
5620else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5622$as_echo "buggy but acceptable" >&6; }
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5625else
81ecdfbb
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5628fi
81ecdfbb 5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5630
e8a5fa9c 5631 # If we have GMP, check the MPFR version.
4b900473 5632 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5633 # Check for the recommended and required versions of MPFR.
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5635$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5637/* end confdefs.h. */
9b134994 5638#include <gmp.h>
4b900473 5639 #include <mpfr.h>
c6b750e1
DJ
5640int
5641main ()
5642{
9b134994 5643
7ec59b9e 5644 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5645 choke me
5646 #endif
c6b750e1
DJ
5647
5648 ;
5649 return 0;
5650}
5651_ACEOF
81ecdfbb
RW
5652if ac_fn_c_try_compile "$LINENO"; then :
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5654/* end confdefs.h. */
4b1cb4fe 5655#include <gmp.h>
4b900473 5656 #include <mpfr.h>
c6b750e1
DJ
5657int
5658main ()
5659{
9dbaa842 5660
a6b5846e 5661 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5662 choke me
5663 #endif
e8a5fa9c
RW
5664
5665 ;
5666 return 0;
5667}
5668_ACEOF
81ecdfbb
RW
5669if ac_fn_c_try_compile "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671$as_echo "yes" >&6; }
e8a5fa9c 5672else
81ecdfbb
RW
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5674$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5675fi
81ecdfbb 5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5677else
81ecdfbb
RW
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5680fi
81ecdfbb 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5682 fi
5683
5684 # Check for the MPC header version.
d9b76ff9 5685 if test x"$have_gmp" = xyes ; then
a6b5846e 5686 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5688$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5690/* end confdefs.h. */
5691#include <mpc.h>
5692int
5693main ()
5694{
5695
a6b5846e
KG
5696 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5697 choke me
5698 #endif
5699
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_compile "$LINENO"; then :
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h. */
5707#include <mpc.h>
5708int
5709main ()
5710{
5711
5712 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5713 choke me
5714 #endif
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
81ecdfbb
RW
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5722$as_echo "yes" >&6; }
a6b5846e
KG
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5725$as_echo "buggy but acceptable" >&6; }
5726fi
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5728else
81ecdfbb 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5730$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5731fi
81ecdfbb 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5733 fi
5734
5735 # Now check the MPFR library.
5736 if test x"$have_gmp" = xyes; then
5737 saved_LIBS="$LIBS"
5738 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5740$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5742/* end confdefs.h. */
d9b76ff9 5743#include <mpc.h>
e8a5fa9c
RW
5744int
5745main ()
5746{
5747
5748 mpfr_t n;
5749 mpfr_t x;
d9b76ff9 5750 mpc_t c;
e8a5fa9c
RW
5751 int t;
5752 mpfr_init (n);
5753 mpfr_init (x);
5754 mpfr_atan2 (n, n, x, GMP_RNDN);
5755 mpfr_erfc (n, x, GMP_RNDN);
5756 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5757 mpfr_clear(n);
5758 mpfr_clear(x);
5759 mpc_init2 (c, 53);
5760 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5761 mpc_cosh (c, c, MPC_RNDNN);
5762 mpc_pow (c, c, c, MPC_RNDNN);
5763 mpc_acosh (c, c, MPC_RNDNN);
5764 mpc_clear (c);
c6b750e1
DJ
5765
5766 ;
5767 return 0;
5768}
5769_ACEOF
81ecdfbb
RW
5770if ac_fn_c_try_link "$LINENO"; then :
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772$as_echo "yes" >&6; }
c6b750e1 5773else
81ecdfbb
RW
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5776fi
81ecdfbb
RW
5777rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5779 LIBS="$saved_LIBS"
5780 fi
5781
4b900473 5782 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5783
a6b5846e
KG
5784# The library versions listed in the error message below should match
5785# the HARD-minimums enforced above.
4b900473 5786 if test x$have_gmp != xyes; then
d0ac1c44 5787 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5788Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5789their locations. Source code for these libraries can be found at
5790their respective hosting sites as well as at
5791ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5792http://gcc.gnu.org/install/prerequisites.html for additional info. If
5793you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5794make sure that you have installed both the libraries and the header
5795files. They may be located in separate packages." "$LINENO" 5
4b900473 5796 fi
9dbaa842
DD
5797fi
5798
e8a5fa9c
RW
5799# Flags needed for both GMP, MPFR and/or MPC.
5800
5801
5802
4b1cb4fe
DD
5803
5804
5805
7ec59b9e 5806
b3676d82 5807# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5808
b3676d82
EB
5809# Check whether --with-stage1-libs was given.
5810if test "${with_stage1_libs+set}" = set; then :
5811 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5812 stage1_libs=
e8a5fa9c 5813 else
b3676d82 5814 stage1_libs=$withval
e8a5fa9c
RW
5815 fi
5816else
68996839 5817 stage1_libs=
81ecdfbb
RW
5818fi
5819
e8a5fa9c
RW
5820
5821
b3676d82 5822# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5823
b3676d82
EB
5824# Check whether --with-stage1-ldflags was given.
5825if test "${with_stage1_ldflags+set}" = set; then :
5826 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5827 stage1_ldflags=
e8a5fa9c 5828 else
b3676d82 5829 stage1_ldflags=$withval
e8a5fa9c
RW
5830 fi
5831else
b3676d82
EB
5832 stage1_ldflags=
5833 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5834 # if supported. But if the user explicitly specified the libraries to use,
5835 # trust that they are doing what they want.
5836 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5837 stage1_ldflags="-static-libstdc++ -static-libgcc"
5838 fi
81ecdfbb
RW
5839fi
5840
e8a5fa9c
RW
5841
5842
68996839 5843# Libraries to use for stage2 and later builds.
e8a5fa9c 5844
81ecdfbb
RW
5845# Check whether --with-boot-libs was given.
5846if test "${with_boot_libs+set}" = set; then :
5847 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5848 poststage1_libs=
5849 else
5850 poststage1_libs=$withval
5851 fi
5852else
68996839 5853 poststage1_libs=
81ecdfbb
RW
5854fi
5855
e8a5fa9c
RW
5856
5857
143754cd
NC
5858# Linker flags to use for stage2 and later builds.
5859
5860# Check whether --with-boot-ldflags was given.
5861if test "${with_boot_ldflags+set}" = set; then :
5862 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5863 poststage1_ldflags=
5864 else
5865 poststage1_ldflags=$withval
5866 fi
5867else
5868 poststage1_ldflags=
4f11b223
ILT
5869 # In stages 2 and 3, default to linking libstdc++ and libgcc
5870 # statically. But if the user explicitly specified the libraries to
5871 # use, trust that they are doing what they want.
5872 if test "$poststage1_libs" = ""; then
143754cd
NC
5873 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5874 fi
5875fi
5876
5877
5878
4849dfd8 5879# GCC GRAPHITE dependency isl.
1b6c0831 5880# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5881
5882
7ec59b9e
L
5883# Check whether --with-isl was given.
5884if test "${with_isl+set}" = set; then :
5885 withval=$with_isl;
81ecdfbb 5886fi
e28c595f 5887
e28c595f 5888
1b6c0831 5889# Treat --without-isl as a request to disable
8e71395b 5890# GRAPHITE support and skip all following checks.
1b6c0831 5891if test "x$with_isl" != "xno"; then
4849dfd8 5892 # Check for isl
8e71395b
L
5893
5894
7ec59b9e
L
5895# Check whether --with-isl-include was given.
5896if test "${with_isl_include+set}" = set; then :
5897 withval=$with_isl_include;
81ecdfbb
RW
5898fi
5899
e28c595f 5900
7ec59b9e
L
5901# Check whether --with-isl-lib was given.
5902if test "${with_isl_lib+set}" = set; then :
5903 withval=$with_isl_lib;
81ecdfbb 5904fi
e28c595f 5905
e28c595f 5906
7ec59b9e
L
5907 # Check whether --enable-isl-version-check was given.
5908if test "${enable_isl_version_check+set}" = set; then :
5909 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5910else
5911 ENABLE_ISL_CHECK=yes
b123da99
SP
5912fi
5913
5914
7ec59b9e
L
5915 # Initialize isllibs and islinc.
5916 case $with_isl in
5917 no)
5918 isllibs=
5919 islinc=
5920 ;;
5921 "" | yes)
5922 ;;
5923 *)
5924 isllibs="-L$with_isl/lib"
5925 islinc="-I$with_isl/include"
5926 ;;
5927 esac
5928 if test "x${with_isl_include}" != x ; then
5929 islinc="-I$with_isl_include"
5930 fi
5931 if test "x${with_isl_lib}" != x; then
5932 isllibs="-L$with_isl_lib"
5933 fi
5934 if test "x${islinc}" = x && test "x${isllibs}" = x \
5935 && test -d ${srcdir}/isl; then
5936 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5937 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5938 ENABLE_ISL_CHECK=no
4849dfd8
NC
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5940$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5941 fi
b123da99 5942
1b6c0831 5943 isllibs="${isllibs} -lisl"
b123da99 5944
e28c595f 5945
b3fc79f8
JBG
5946
5947 if test "${ENABLE_ISL_CHECK}" = yes ; then
5948 _isl_saved_CFLAGS=$CFLAGS
5949 _isl_saved_LDFLAGS=$LDFLAGS
5950 _isl_saved_LIBS=$LIBS
5951
5952 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5953 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5954 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5955
bf41f30d
NC
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5957$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 5959/* end confdefs.h. */
bf41f30d 5960#include <isl/schedule.h>
b3fc79f8
JBG
5961int
5962main ()
5963{
bf41f30d 5964isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
5965 ;
5966 return 0;
5967}
5968_ACEOF
1b6c0831 5969if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
5970 gcc_cv_isl=yes
5971else
5972 gcc_cv_isl=no
5973fi
1b6c0831
L
5974rm -f core conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5977$as_echo "$gcc_cv_isl" >&6; }
5978
4849dfd8 5979 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5981$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
5982 fi
5983
b3fc79f8
JBG
5984 CFLAGS=$_isl_saved_CFLAGS
5985 LDFLAGS=$_isl_saved_LDFLAGS
5986 LIBS=$_isl_saved_LIBS
5987 fi
5988
5989
e28c595f 5990
e28c595f 5991
7ec59b9e
L
5992
5993
7ec59b9e
L
5994 if test "x${with_isl}" = xno; then
5995 graphite_requested=no
5996 elif test "x${with_isl}" != x \
5997 || test "x${with_isl_include}" != x \
5998 || test "x${with_isl_lib}" != x ; then
5999 graphite_requested=yes
6000 else
6001 graphite_requested=no
b123da99 6002 fi
e28c595f 6003
e28c595f
JM
6004
6005
7ec59b9e
L
6006 if test "${gcc_cv_isl}" = no ; then
6007 isllibs=
6008 islinc=
6009 fi
e28c595f 6010
7ec59b9e
L
6011 if test "${graphite_requested}" = yes \
6012 && test "x${isllibs}" = x \
6013 && test "x${islinc}" = x ; then
e28c595f 6014
d0ac1c44 6015 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6016 fi
e552509b 6017
e28c595f 6018
e552509b
ILT
6019fi
6020
4849dfd8 6021# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6022if test "x$with_isl" = xno ||
8e71395b 6023 test "x$gcc_cv_isl" = xno; then
1b6c0831 6024 noconfigdirs="$noconfigdirs isl"
8e71395b 6025 islinc=
7ec59b9e
L
6026fi
6027
8e71395b
L
6028
6029
6030
700d40ca
ILT
6031# Check for LTO support.
6032# Check whether --enable-lto was given.
6033if test "${enable_lto+set}" = set; then :
6034 enableval=$enable_lto; enable_lto=$enableval
6035else
6036 enable_lto=yes; default_enable_lto=yes
6037fi
6038
6039
143754cd 6040
e49e5c92
DK
6041
6042
6043target_elf=no
6044case $target in
6045 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6046 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6047 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6048 nvptx-*-none)
e49e5c92
DK
6049 target_elf=no
6050 ;;
6051 *)
6052 target_elf=yes
6053 ;;
6054esac
6055
6056if test $target_elf = yes; then :
74cea91b
DK
6057 # ELF platforms build the lto-plugin always.
6058 build_lto_plugin=yes
e49e5c92 6059
e49e5c92
DK
6060else
6061 if test x"$default_enable_lto" = x"yes" ; then
29821356 6062 case $target in
bf41f30d 6063 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6064 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6065 *) enable_lto=no ;;
6066 esac
e49e5c92 6067 else
29821356
RW
6068 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6069 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6070 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6071 # warn during gcc/ subconfigure; unless you're bootstrapping with
6072 # -flto it won't be needed until after installation anyway.
6073 case $target in
52cf9762 6074 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6075 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6076 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6077 fi
6078 ;;
6079 esac
6080 fi
a8eb3f0a 6081 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6082 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6083 case $target in
74cea91b 6084 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6085 *) ;;
6086 esac
74cea91b 6087
e49e5c92
DK
6088fi
6089
700d40ca 6090
1b6c0831
L
6091# Check whether --enable-linker-plugin-configure-flags was given.
6092if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6093 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6094else
6095 extra_linker_plugin_configure_flags=
6096fi
6097
6098
6099# Check whether --enable-linker-plugin-flags was given.
6100if test "${enable_linker_plugin_flags+set}" = set; then :
6101 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6102else
6103 extra_linker_plugin_flags=
6104fi
6105
6106
6107
bf41f30d
NC
6108# Enable --enable-host-shared.
6109# Checked early to determine whether jit is an 'all' language
6110# Check whether --enable-host-shared was given.
6111if test "${enable_host_shared+set}" = set; then :
6112 enableval=$enable_host_shared; host_shared=$enableval
6113else
6114 host_shared=no
6115fi
6116
6117
e28c595f 6118
7ec59b9e 6119# By default, C and C++ are the only stage 1 languages.
9b134994 6120stage1_languages=,c,
1d39f329 6121
e8a5fa9c 6122# Target libraries that we bootstrap.
2aa2364a 6123bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6124
9e07f89d
NN
6125# Figure out what language subdirectories are present.
6126# Look if the user specified --enable-languages="..."; if not, use
6127# the environment variable $LANGUAGES if defined. $LANGUAGES might
6128# go away some day.
6129# NB: embedded tabs in this IF block -- do not untabify
6130if test -d ${srcdir}/gcc; then
6131 if test x"${enable_languages+set}" != xset; then
6132 if test x"${LANGUAGES+set}" = xset; then
6133 enable_languages="${LANGUAGES}"
136bb21f 6134 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6135 else
bf41f30d 6136 enable_languages=default
9e07f89d
NN
6137 fi
6138 else
6139 if test x"${enable_languages}" = x ||
6140 test x"${enable_languages}" = xyes;
6141 then
136bb21f 6142 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6143 exit 1
6144 fi
6145 fi
6146 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6147
096f7d00
DE
6148 # 'f95' is the old name for the 'fortran' language. We issue a warning
6149 # and make the substitution.
6150 case ,${enable_languages}, in
6151 *,f95,*)
136bb21f 6152 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6153 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6154 ;;
6155 esac
6156
7ec59b9e
L
6157 # If bootstrapping, C++ must be enabled.
6158 case ",$enable_languages,:$enable_bootstrap" in
6159 *,c++,*:*) ;;
6160 *:yes)
ffdd6afc
ILT
6161 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6162 enable_languages="${enable_languages},c++"
6163 else
d0ac1c44 6164 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6165 fi
6166 ;;
6167 esac
6168
9e07f89d
NN
6169 # First scan to see if an enabled language requires some other language.
6170 # We assume that a given config-lang.in will list all the language
6171 # front ends it requires, even if some are required indirectly.
6172 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6173 case ${lang_frag} in
6174 ..) ;;
6175 # The odd quoting in the next line works around
6176 # an apparent bug in bash 1.12 on linux.
6177 ${srcdir}/gcc/[*]/config-lang.in) ;;
6178 *)
e552509b
ILT
6179 # From the config-lang.in, get $language, $lang_requires, and
6180 # $lang_requires_boot_languages.
9e07f89d
NN
6181 language=
6182 lang_requires=
e552509b 6183 lang_requires_boot_languages=
bf41f30d
NC
6184 # set srcdir during sourcing lang_frag to the gcc dir.
6185 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6186 # polutes this shell
6187 saved_srcdir=${srcdir}
6188 srcdir=${srcdir}/gcc . ${lang_frag}
6189 srcdir=${saved_srcdir}
e552509b 6190 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6191 case ,${enable_languages}, in
6192 *,$other,*) ;;
bf41f30d 6193 *,default,*) ;;
9e07f89d
NN
6194 *,all,*) ;;
6195 *,$language,*)
6196 echo " \`$other' language required by \`$language'; enabling" 1>&2
6197 enable_languages="${enable_languages},${other}"
6198 ;;
6199 esac
6200 done
e552509b
ILT
6201 for other in ${lang_requires_boot_languages} ; do
6202 if test "$other" != "c"; then
6203 case ,${enable_stage1_languages}, in
6204 *,$other,*) ;;
bf41f30d 6205 *,default,*) ;;
e552509b
ILT
6206 *,all,*) ;;
6207 *)
6208 case ,${enable_languages}, in
6209 *,$language,*)
6210 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6211 enable_stage1_languages="$enable_stage1_languages,${other}"
6212 ;;
6213 esac
6214 ;;
6215 esac
6216 fi
6217 done
9e07f89d
NN
6218 ;;
6219 esac
6220 done
6221
9b134994 6222 new_enable_languages=,c,
700d40ca
ILT
6223
6224 # If LTO is enabled, add the LTO front end.
700d40ca 6225 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6226 case ,${enable_languages}, in
6227 *,lto,*) ;;
6228 *) enable_languages="${enable_languages},lto" ;;
6229 esac
a8eb3f0a 6230 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6231 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6232 fi
6233 fi
6234
1b6c0831
L
6235 # If we're building an offloading compiler, add the LTO front end.
6236 if test x"$enable_as_accelerator_for" != x ; then
6237 case ,${enable_languages}, in
6238 *,lto,*) ;;
6239 *) enable_languages="${enable_languages},lto" ;;
6240 esac
6241 fi
700d40ca 6242
bf41f30d 6243 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6244 potential_languages=,c,
9e07f89d 6245
9e1a94f4
ILT
6246 enabled_target_libs=
6247 disabled_target_libs=
6248
9e07f89d
NN
6249 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6250 case ${lang_frag} in
6251 ..) ;;
6252 # The odd quoting in the next line works around
6253 # an apparent bug in bash 1.12 on linux.
6254 ${srcdir}/gcc/[*]/config-lang.in) ;;
6255 *)
c6b750e1 6256 # From the config-lang.in, get $language, $target_libs,
1d39f329 6257 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6258 language=
6259 target_libs=
6260 lang_dirs=
64ce424c 6261 subdir_requires=
9b134994
PB
6262 boot_language=no
6263 build_by_default=yes
bf41f30d
NC
6264 # set srcdir during sourcing. See above about save & restore
6265 saved_srcdir=${srcdir}
6266 srcdir=${srcdir}/gcc . ${lang_frag}
6267 srcdir=${saved_srcdir}
9b134994
PB
6268 if test x${language} = x; then
6269 echo "${lang_frag} doesn't set \$language." 1>&2
6270 exit 1
6271 fi
6272
ffdd6afc 6273 if test "$language" = "c++"; then
7ec59b9e 6274 boot_language=yes
e8a5fa9c
RW
6275 fi
6276
8e71395b 6277 add_this_lang=no
bf41f30d
NC
6278 # C is always enabled, so no need to add it again
6279 if test "$language" != "c"; then
6280 case ,${enable_languages}, in
6281 *,${language},*)
6282 # Language was explicitly selected; include it
7ec59b9e 6283 add_this_lang=yes
bf41f30d
NC
6284 ;;
6285 *,all,*)
6286 # All languages are enabled
6287 add_this_lang=all
6288 ;;
6289 *,default,*)
6290 # 'default' was selected, select it if it is a default language
8e71395b 6291 add_this_lang=${build_by_default}
bf41f30d
NC
6292 ;;
6293 esac
6294 fi
4b1cb4fe 6295
64ce424c 6296 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6297 for i in $subdir_requires; do
3d3adb43 6298 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6299 case ${add_this_lang} in
6300 yes)
64ce424c 6301 # Specifically requested language; tell them.
d0ac1c44 6302 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6303 ;;
bf41f30d
NC
6304 all)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6306$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6307 add_this_lang=unsupported
6308 ;;
64ce424c
PB
6309 *)
6310 # Silently disable.
9b134994 6311 add_this_lang=unsupported
64ce424c
PB
6312 ;;
6313 esac
6314 done
6315
9b134994 6316 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6317 case ${add_this_lang}:${language}:${have_gnat} in
6318 yes:ada:no)
9b134994 6319 # Specifically requested language; tell them.
d0ac1c44 6320 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6321 ;;
bf41f30d
NC
6322 all:ada:no)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6324$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6325 add_this_lang=unsupported
6326 ;;
9b134994
PB
6327 *:ada:no)
6328 # Silently disable.
6329 add_this_lang=unsupported
6330 ;;
6331 esac
6332
bf41f30d
NC
6333 # Disable jit if -enable-host-shared not specified
6334 case ${add_this_lang}:${language}:${host_shared} in
6335 yes:jit:no)
6336 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6337 as_fn_error $? "
bf41f30d
NC
6338Enabling language \"jit\" requires --enable-host-shared.
6339
6340--enable-host-shared typically slows the rest of the compiler down by
6341a few %, so you must explicitly enable it.
6342
6343If you want to build both the jit and the regular compiler, it is often
6344best to do this via two separate configure/builds, in separate
6345directories, to avoid imposing the performance cost of
6346--enable-host-shared on the regular compiler." "$LINENO" 5
6347 ;;
6348 all:jit:no)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6350$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6351 add_this_lang=unsupported
6352 ;;
6353 *:jit:no)
6354 # Silently disable.
6355 add_this_lang=unsupported
6356 ;;
6357 esac
6358
6359 # Disable a language that is unsupported by the target.
6360 case "${add_this_lang}: $unsupported_languages " in
6361 no:*) ;;
6362 unsupported:*) ;;
6363 *:*" $language "*)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6365$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6366 add_this_lang=unsupported
59f7ec45
HPN
6367 ;;
6368 esac
6369
4b1cb4fe 6370 case $add_this_lang in
9b134994 6371 unsupported)
9e07f89d 6372 # Remove language-dependent dirs.
9e1a94f4
ILT
6373 disabled_target_libs="$disabled_target_libs $target_libs"
6374 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6375 ;;
9b134994
PB
6376 no)
6377 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6378 disabled_target_libs="$disabled_target_libs $target_libs"
6379 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6380 potential_languages="${potential_languages}${language},"
6381 ;;
bf41f30d 6382 all|yes)
9b134994
PB
6383 new_enable_languages="${new_enable_languages}${language},"
6384 potential_languages="${potential_languages}${language},"
1d39f329 6385 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6386 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6387 case "${boot_language}:,$enable_stage1_languages," in
6388 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6389 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6390 case ",$stage1_languages," in
6391 *,$language,* | ,yes, | ,all,) ;;
6392 *) stage1_languages="${stage1_languages}${language}," ;;
6393 esac
e8a5fa9c
RW
6394 # We need to bootstrap any supporting libraries.
6395 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6396 ;;
6397 esac
6398 ;;
9e07f89d
NN
6399 esac
6400 ;;
6401 esac
6402 done
6403
9e1a94f4
ILT
6404 # Add target libraries which are only needed for disabled languages
6405 # to noconfigdirs.
6406 if test -n "$disabled_target_libs"; then
6407 for dir in $disabled_target_libs; do
6408 case " $enabled_target_libs " in
6409 *" ${dir} "*) ;;
6410 *) noconfigdirs="$noconfigdirs $dir" ;;
6411 esac
6412 done
6413 fi
6414
81ecdfbb
RW
6415 # Check whether --enable-stage1-languages was given.
6416if test "${enable_stage1_languages+set}" = set; then :
6417 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6418 ,no,|,,)
6419 # Set it to something that will have no effect in the loop below
6420 enable_stage1_languages=c ;;
6421 ,yes,)
6422 enable_stage1_languages=`echo $new_enable_languages | \
6423 sed -e "s/^,//" -e "s/,$//" ` ;;
6424 *,all,*)
6425 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6426 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6427 esac
6428
6429 # Add "good" languages from enable_stage1_languages to stage1_languages,
6430 # while "bad" languages go in missing_languages. Leave no duplicates.
6431 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6432 case $potential_languages in
6433 *,$i,*)
6434 case $stage1_languages in
6435 *,$i,*) ;;
6436 *) stage1_languages="$stage1_languages$i," ;;
6437 esac ;;
6438 *)
6439 case $missing_languages in
6440 *,$i,*) ;;
6441 *) missing_languages="$missing_languages$i," ;;
6442 esac ;;
6443 esac
6444 done
81ecdfbb
RW
6445fi
6446
9b134994
PB
6447
6448 # Remove leading/trailing commas that were added for simplicity
6449 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6450 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6451 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6452 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6453
9e07f89d 6454 if test "x$missing_languages" != x; then
d0ac1c44 6455 as_fn_error $? "
27258dd4 6456The following requested languages could not be built: ${missing_languages}
81ecdfbb 6457Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6458 fi
9e07f89d
NN
6459 if test "x$new_enable_languages" != "x$enable_languages"; then
6460 echo The following languages will be built: ${new_enable_languages}
9b134994 6461 enable_languages="$new_enable_languages"
9e07f89d 6462 fi
9b134994 6463
c6b750e1 6464
81ec575a 6465 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6466fi
6467
a6df5a19
PB
6468# Handle --disable-<component> generically.
6469for dir in $configdirs $build_configdirs $target_configdirs ; do
6470 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6471 varname=`echo $dirname | sed -e s/+/_/g`
6472 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6473 noconfigdirs="$noconfigdirs $dir"
6474 fi
6475done
6476
4f0ef2d8 6477# Check for Boehm's garbage collector
81ecdfbb
RW
6478# Check whether --enable-objc-gc was given.
6479if test "${enable_objc_gc+set}" = set; then :
05a13254 6480 enableval=$enable_objc_gc;
81ecdfbb
RW
6481fi
6482
4f0ef2d8 6483
05a13254
NC
6484# Check whether --with-target-bdw-gc was given.
6485if test "${with_target_bdw_gc+set}" = set; then :
6486 withval=$with_target_bdw_gc;
6487fi
6488
6489
6490# Check whether --with-target-bdw-gc-include was given.
6491if test "${with_target_bdw_gc_include+set}" = set; then :
6492 withval=$with_target_bdw_gc_include;
6493fi
6494
6495
6496# Check whether --with-target-bdw-gc-lib was given.
6497if test "${with_target_bdw_gc_lib+set}" = set; then :
6498 withval=$with_target_bdw_gc_lib;
6499fi
6500
6501
6502case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6504$as_echo_n "checking for bdw garbage collector... " >&6; }
6505 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6507$as_echo "using bdw-gc in default locations" >&6; }
6508 else
6509 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6510 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6511 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6512 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6515$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6516 fi
05a13254 6517 fi
4f0ef2d8
CD
6518esac
6519
bf41f30d 6520# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6521case ,${enable_languages}, in
1b6c0831 6522 *,c++,*)
bf41f30d 6523 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6524 case "${noconfigdirs}" in
6525 *target-libstdc++-v3*)
bf41f30d 6526 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6527 ;;
6528 *) ;;
6529 esac
6530 ;;
7ec59b9e 6531 *)
bf41f30d 6532 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6533 ;;
6534esac
6535
caeba88f
AL
6536# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6537# $build_configdirs and $target_configdirs.
9e07f89d
NN
6538# If we have the source for $noconfigdirs entries, add them to $notsupp.
6539
6540notsupp=""
6541for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6542 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6543 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6544 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6545 if test -r $srcdir/$dirname/configure ; then
6546 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6547 true
6548 else
6549 notsupp="$notsupp $dir"
6550 fi
6551 fi
6552 fi
caeba88f
AL
6553 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6554 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6555 if test -r $srcdir/$dirname/configure ; then
6556 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 true
6558 else
6559 notsupp="$notsupp $dir"
6560 fi
6561 fi
6562 fi
9e07f89d
NN
6563 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6565 if test -r $srcdir/$dirname/configure ; then
6566 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 true
6568 else
6569 notsupp="$notsupp $dir"
6570 fi
6571 fi
6572 fi
6573done
6574
9e07f89d
NN
6575# Quietly strip out all directories which aren't configurable in this tree.
6576# This relies on all configurable subdirectories being autoconfiscated, which
6577# is now the case.
6a9cf61e
PB
6578build_configdirs_all="$build_configdirs"
6579build_configdirs=
6580for i in ${build_configdirs_all} ; do
c6b750e1 6581 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6582 if test -f ${srcdir}/$j/configure ; then
6583 build_configdirs="${build_configdirs} $i"
6584 fi
6585done
6586
9e07f89d
NN
6587configdirs_all="$configdirs"
6588configdirs=
6589for i in ${configdirs_all} ; do
6590 if test -f ${srcdir}/$i/configure ; then
6591 configdirs="${configdirs} $i"
6592 fi
6593done
6a9cf61e 6594
9e07f89d
NN
6595target_configdirs_all="$target_configdirs"
6596target_configdirs=
6597for i in ${target_configdirs_all} ; do
c6b750e1 6598 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6599 if test -f ${srcdir}/$j/configure ; then
6600 target_configdirs="${target_configdirs} $i"
6601 fi
6602done
6603
1b6c0831
L
6604# libiberty-linker-plugin is special: it doesn't have its own source directory,
6605# so we have to add it after the preceding checks.
6606if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6607then
6608 case " $configdirs " in
6609 *" libiberty "*)
6610 # If we can build libiberty, we can also build libiberty-linker-plugin.
6611 configdirs="$configdirs libiberty-linker-plugin"
6612 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6613 --with-libiberty=../libiberty-linker-plugin";;
6614 *)
d0ac1c44 6615 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6616 esac
6617fi
6618
6619# Sometimes we have special requirements for the host libiberty.
6620extra_host_libiberty_configure_flags=
e81d5d05 6621extra_host_zlib_configure_flags=
1b6c0831
L
6622case " $configdirs " in
6623 *" lto-plugin "* | *" libcc1 "*)
6624 # When these are to be built as shared libraries, the same applies to
6625 # libiberty.
6626 extra_host_libiberty_configure_flags=--enable-shared
6627 ;;
e81d5d05
L
6628 *" bfd "*)
6629 # When bfd is to be built as a shared library, the same applies to
6630 # zlib.
6631 if test "$enable_shared" = "yes"; then
6632 extra_host_zlib_configure_flags=--enable-host-shared
6633 fi
6634 ;;
1b6c0831
L
6635esac
6636
6637
e81d5d05 6638
9e07f89d
NN
6639# Produce a warning message for the subdirs we can't configure.
6640# This isn't especially interesting in the Cygnus tree, but in the individual
6641# FSF releases, it's important to let people know when their machine isn't
6642# supported by the one or two programs in a package.
6643
6644if test -n "${notsupp}" && test -z "${norecursion}" ; then
6645 # If $appdirs is non-empty, at least one of those directories must still
6646 # be configured, or we error out. (E.g., if the gas release supports a
6647 # specified target in some subdirs but not the gas subdir, we shouldn't
6648 # pretend that all is well.)
6649 if test -n "$appdirs" ; then
6650 for dir in $appdirs ; do
6651 if test -r $dir/Makefile.in ; then
6652 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6653 appdirs=""
6654 break
6655 fi
6a9cf61e 6656 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6657 appdirs=""
6658 break
6659 fi
6660 fi
6661 done
6662 if test -n "$appdirs" ; then
6663 echo "*** This configuration is not supported by this package." 1>&2
6664 exit 1
6665 fi
6666 fi
6667 # Okay, some application will build, or we don't care to check. Still
6668 # notify of subdirs not getting built.
6669 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6670 echo " ${notsupp}" 1>&2
6671 echo " (Any other directories should still work fine.)" 1>&2
6672fi
6673
6674case "$host" in
6675 *msdosdjgpp*)
6676 enable_gdbtk=no ;;
6677esac
6678
18f6b6ee
PB
6679# To find our prefix, in gcc_cv_tool_prefix.
6680
6681# The user is always right.
6682if test "${PATH_SEPARATOR+set}" != set; then
6683 echo "#! /bin/sh" >conf$$.sh
6684 echo "exit 0" >>conf$$.sh
6685 chmod +x conf$$.sh
6686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6687 PATH_SEPARATOR=';'
6688 else
6689 PATH_SEPARATOR=:
6690 fi
6691 rm -f conf$$.sh
6692fi
6693
6694
bf41f30d
NC
6695 get_gcc_base_ver="cat"
6696
6697# Check whether --with-gcc-major-version-only was given.
6698if test "${with_gcc_major_version_only+set}" = set; then :
6699 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6700 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6701 fi
6702
6703fi
6704
6705
6706
6707
6708
18f6b6ee
PB
6709
6710if test "x$exec_prefix" = xNONE; then
6711 if test "x$prefix" = xNONE; then
6712 gcc_cv_tool_prefix=$ac_default_prefix
6713 else
6714 gcc_cv_tool_prefix=$prefix
6715 fi
6716else
6717 gcc_cv_tool_prefix=$exec_prefix
6718fi
6719
6720# If there is no compiler in the tree, use the PATH only. In any
6721# case, if there is no compiler in the tree nobody should use
6722# AS_FOR_TARGET and LD_FOR_TARGET.
6723if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6724 if test x$with_gcc_major_version_only = xyes ; then
6725 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6726 else
6727 gcc_version=`cat $srcdir/gcc/BASE-VER`
6728 fi
18f6b6ee
PB
6729 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6730 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6731 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6735else
6736 gcc_cv_tool_dirs=
6737fi
6738
6739if test x$build = x$target && test -n "$md_exec_prefix"; then
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6741fi
6742
6743
6744
9e07f89d
NN
6745copy_dirs=
6746
c6b750e1 6747
81ecdfbb
RW
6748# Check whether --with-build-sysroot was given.
6749if test "${with_build_sysroot+set}" = set; then :
6750 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6751 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6752 fi
6753else
6754 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6755fi
a19b6204
MM
6756
6757
8a6ee3ab 6758
81ecdfbb
RW
6759
6760# Check whether --with-debug-prefix-map was given.
6761if test "${with_debug_prefix_map+set}" = set; then :
6762 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6763 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6764 for debug_map in $withval; do
6765 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6766 done
6767 fi
6768else
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6770fi
6771
8a6ee3ab
JM
6772
6773
7f6ef0c0
PB
6774# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6775# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6776# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6777# We want to ensure that TARGET libraries (which we know are built with
6778# gcc) are built with "-O2 -g", so include those options when setting
6779# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6780if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6781 if test "x${is_cross_compiler}" = xyes; then
6782 CFLAGS_FOR_TARGET="-g -O2"
6783 else
6784 CFLAGS_FOR_TARGET=$CFLAGS
6785 case " $CFLAGS " in
6786 *" -O2 "*) ;;
6787 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6788 esac
6789 case " $CFLAGS " in
6790 *" -g "* | *" -g3 "*) ;;
6791 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6792 esac
6793 fi
7f6ef0c0
PB
6794fi
6795
6796
6797if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6798 if test "x${is_cross_compiler}" = xyes; then
6799 CXXFLAGS_FOR_TARGET="-g -O2"
6800 else
6801 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6802 case " $CXXFLAGS " in
6803 *" -O2 "*) ;;
6804 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6805 esac
6806 case " $CXXFLAGS " in
6807 *" -g "* | *" -g3 "*) ;;
6808 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6809 esac
6810 fi
7f6ef0c0
PB
6811fi
6812
6813
91c1f14c
DK
6814
6815
9e07f89d
NN
6816# Handle --with-headers=XXX. If the value is not "yes", the contents of
6817# the named directory are copied to $(tooldir)/sys-include.
6818if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6819 if test x${is_cross_compiler} = xno ; then
6820 echo 1>&2 '***' --with-headers is only supported when cross compiling
6821 exit 1
6822 fi
6823 if test x"${with_headers}" != xyes ; then
18f6b6ee 6824 x=${gcc_cv_tool_prefix}
c6b750e1 6825 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6826 fi
6827fi
6828
6829# Handle --with-libs=XXX. If the value is not "yes", the contents of
6830# the name directories are copied to $(tooldir)/lib. Multiple directories
6831# are permitted.
6832if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6833 if test x${is_cross_compiler} = xno ; then
6834 echo 1>&2 '***' --with-libs is only supported when cross compiling
6835 exit 1
6836 fi
6837 if test x"${with_libs}" != xyes ; then
6838 # Copy the libraries in reverse order, so that files in the first named
6839 # library override files in subsequent libraries.
18f6b6ee 6840 x=${gcc_cv_tool_prefix}
9e07f89d 6841 for l in ${with_libs}; do
c6b750e1 6842 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6843 done
6844 fi
6845fi
6846
700d40ca 6847# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6848#
6849# This is done by determining whether or not the appropriate directory
6850# is available, and by checking whether or not specific configurations
6851# have requested that this magic not happen.
c6b750e1
DJ
6852#
6853# The command line options always override the explicit settings in
136bb21f 6854# configure.ac, and the settings in configure.ac override this magic.
2429c060 6855#
c6b750e1 6856# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6857# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6858# --without-gnu-ld options for the configure script. Similarly, if
6859# the default is to use the included zlib and you don't want to do that,
6860# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6861
6862if test x${use_gnu_as} = x &&
6863 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6864 with_gnu_as=yes
6865 extra_host_args="$extra_host_args --with-gnu-as"
6866fi
6867
6868if test x${use_gnu_ld} = x &&
93f9b408 6869 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6870 with_gnu_ld=yes
6871 extra_host_args="$extra_host_args --with-gnu-ld"
6872fi
6873
700d40ca
ILT
6874if test x${use_included_zlib} = x &&
6875 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6876 :
6877else
6878 with_system_zlib=yes
6879 extra_host_args="$extra_host_args --with-system-zlib"
6880fi
6881
2429c060
PB
6882# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6883# can detect this case.
6884
6885if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6886 with_newlib=yes
6887 extra_host_args="$extra_host_args --with-newlib"
6888fi
6889
9e07f89d
NN
6890# Handle ${copy_dirs}
6891set fnord ${copy_dirs}
6892shift
6893while test $# != 0 ; do
6894 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6895 :
6896 else
6897 echo Copying $1 to $2
6898
6899 # Use the install script to create the directory and all required
6900 # parent directories.
6901 if test -d $2 ; then
6902 :
6903 else
6904 echo >config.temp
6905 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6906 fi
6907
6908 # Copy the directory, assuming we have tar.
6909 # FIXME: Should we use B in the second tar? Not all systems support it.
6910 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6911
6912 # It is the responsibility of the user to correctly adjust all
6913 # symlinks. If somebody can figure out how to handle them correctly
6914 # here, feel free to add the code.
6915
6916 echo $1 > $2/COPIED
6917 fi
6918 shift; shift
6919done
6920
2429c060
PB
6921# Determine a target-dependent exec_prefix that the installed
6922# gcc will search in. Keep this list sorted by triplet, with
6923# the *-*-osname triplets last.
6924md_exec_prefix=
6925case "${target}" in
521ec477 6926 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6927 md_exec_prefix=/dev/env/DJDIR/bin
6928 ;;
2429c060 6929 *-*-hpux* | \
2429c060 6930 *-*-nto-qnx* | \
1f111696 6931 *-*-solaris2*)
2429c060
PB
6932 md_exec_prefix=/usr/ccs/bin
6933 ;;
6934esac
6935
a0da8069
NN
6936extra_arflags_for_target=
6937extra_nmflags_for_target=
6938extra_ranlibflags_for_target=
6939target_makefile_frag=/dev/null
6940case "${target}" in
77d7106f
AM
6941 spu-*-*)
6942 target_makefile_frag="config/mt-spu"
6943 ;;
a9d58c06 6944 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6945 target_makefile_frag="config/mt-sde"
6946 ;;
f3b1e08e
RS
6947 mipsisa*-*-elfoabi*)
6948 target_makefile_frag="config/mt-mips-elfoabi"
6949 ;;
e7c8859c
RS
6950 mips*-*-*linux* | mips*-*-gnu*)
6951 target_makefile_frag="config/mt-mips-gnu"
6952 ;;
d9e042ac
SL
6953 nios2-*-elf*)
6954 target_makefile_frag="config/mt-nios2-elf"
6955 ;;
bf41f30d
NC
6956 *-*-linux-android*)
6957 target_makefile_frag="config/mt-android"
6958 ;;
29383458 6959 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6960 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6961 ;;
6962 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6963 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6964 # commands to handle both 32-bit and 64-bit objects. These flags are
6965 # harmless if we're using GNU nm or ar.
6966 extra_arflags_for_target=" -X32_64"
6967 extra_nmflags_for_target=" -B -X32_64"
6968 ;;
a0da8069
NN
6969esac
6970
6971alphaieee_frag=/dev/null
6972case $target in
6973 alpha*-*-*)
6974 # This just makes sure to use the -mieee option to build target libs.
6975 # This should probably be set individually by each library.
6976 alphaieee_frag="config/mt-alphaieee"
6977 ;;
6978esac
6979
6980# If --enable-target-optspace always use -Os instead of -O2 to build
6981# the target libraries, similarly if it is not specified, use -Os
6982# on selected platforms.
6983ospace_frag=/dev/null
6984case "${enable_target_optspace}:${target}" in
6985 yes:*)
6986 ospace_frag="config/mt-ospace"
6987 ;;
6988 :d30v-*)
6989 ospace_frag="config/mt-d30v"
6990 ;;
16beab3d 6991 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6992 ospace_frag="config/mt-ospace"
6993 ;;
6994 no:* | :*)
6995 ;;
6996 *)
6997 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6998 ;;
6999esac
7000
a0da8069
NN
7001# Some systems (e.g., one of the i386-aix systems the gas testers are
7002# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7003tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7004build_tooldir=${tooldir}
7005
a0da8069
NN
7006# Create a .gdbinit file which runs the one in srcdir
7007# and tells GDB to look there for source files.
7008
7009if test -r ${srcdir}/.gdbinit ; then
7010 case ${srcdir} in
7011 .) ;;
7012 *) cat > ./.gdbinit <<EOF
7013# ${NO_EDIT}
7014dir ${srcdir}
7015dir .
7016source ${srcdir}/.gdbinit
7017EOF
7018 ;;
7019 esac
7020fi
7021
a0da8069
NN
7022# Make sure that the compiler is able to generate an executable. If it
7023# can't, we are probably in trouble. We don't care whether we can run the
7024# executable--we might be using a cross compiler--we only care whether it
7025# can be created. At this point the main configure script has set CC.
7026we_are_ok=no
7027echo "int main () { return 0; }" > conftest.c
7028${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7029if test $? = 0 ; then
7030 if test -s conftest || test -s conftest.exe ; then
7031 we_are_ok=yes
7032 fi
c6b750e1 7033fi
a0da8069
NN
7034case $we_are_ok in
7035 no)
7036 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7037 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7038 rm -f conftest*
7039 exit 1
7040 ;;
7041esac
7042rm -f conftest*
7043
3bbd2f8f 7044# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7045case "${host}" in
7046 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7047 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7048 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7049 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7050esac
7051
3bbd2f8f 7052# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7053# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7054# built executables to PATH.
3bbd2f8f
AL
7055if test "$RPATH_ENVVAR" = PATH; then
7056 GCC_SHLIB_SUBDIR=/shlib
7057else
7058 GCC_SHLIB_SUBDIR=
7059fi
7060
730af8ee 7061# Adjust the toplevel makefile according to whether bootstrap was selected.
7062case $enable_bootstrap in
7063 yes)
7064 bootstrap_suffix=bootstrap
7065 BUILD_CONFIG=bootstrap-debug
7066 ;;
7067 no)
7068 bootstrap_suffix=no-bootstrap
7069 BUILD_CONFIG=
7070 ;;
7071esac
7072
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7074$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7075
7076
7077# Check whether --with-build-config was given.
7078if test "${with_build_config+set}" = set; then :
7079 withval=$with_build_config; case $with_build_config in
7080 yes) with_build_config= ;;
7081 no) with_build_config= BUILD_CONFIG= ;;
7082 esac
7083fi
7084
7085
7086if test "x${with_build_config}" != x; then
7087 BUILD_CONFIG=$with_build_config
7088else
7089 case $BUILD_CONFIG in
7090 bootstrap-debug)
7091 if echo "int f (void) { return 0; }" > conftest.c &&
7092 ${CC} -c conftest.c &&
7093 mv conftest.o conftest.o.g0 &&
7094 ${CC} -c -g conftest.c &&
7095 mv conftest.o conftest.o.g &&
7096 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7097 :
7098 else
7099 BUILD_CONFIG=
7100 fi
7101 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7102 ;;
7103 esac
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7106$as_echo "$BUILD_CONFIG" >&6; }
7107
7108
7109# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7111$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7112# Check whether --enable-vtable-verify was given.
7113if test "${enable_vtable_verify+set}" = set; then :
7114 enableval=$enable_vtable_verify; case "$enableval" in
7115 yes) enable_vtable_verify=yes ;;
7116 no) enable_vtable_verify=no ;;
7117 *) enable_vtable_verify=no;;
7118 esac
7119else
7120 enable_vtable_verify=no
7121fi
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7124$as_echo "$enable_vtable_verify" >&6; }
7125
a0da8069
NN
7126# Record target_configdirs and the configure arguments for target and
7127# build configuration in Makefile.
7128target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7129build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7130bootstrap_fixincludes=no
a0da8069 7131
2aa2364a
JR
7132# If we are building libgomp, bootstrap it.
7133if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7134 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7135fi
7136
730af8ee 7137# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7138# or bootstrap-ubsan, bootstrap it.
7139if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7140 case "$BUILD_CONFIG" in
7141 *bootstrap-asan* | *bootstrap-ubsan* )
7142 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7143 bootstrap_fixincludes=yes
730af8ee 7144 ;;
7145 esac
5eb08693
L
7146fi
7147
730af8ee 7148# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7149if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7150 test "$enable_vtable_verify" != no; then
95e43135
JBG
7151 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7152fi
7153
a0da8069
NN
7154# Determine whether gdb needs tk/tcl or not.
7155# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7156# and in that case we want gdb to be built without tk. Ugh!
7157# In fact I believe gdb is the *only* package directly dependent on tk,
7158# so we should be able to put the 'maybe's in unconditionally and
7159# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7160# 100% sure that that's safe though.
c180f501 7161
675c6968 7162gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7163case "$enable_gdbtk" in
7164 no)
7165 GDB_TK="" ;;
c180f501
AC
7166 yes)
7167 GDB_TK="${gdb_tk}" ;;
a0da8069 7168 *)
c180f501
AC
7169 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7170 # distro. Eventually someone will fix this and move Insight, nee
7171 # gdbtk to a separate directory.
7172 if test -d ${srcdir}/gdb/gdbtk ; then
7173 GDB_TK="${gdb_tk}"
7174 else
7175 GDB_TK=""
7176 fi
7177 ;;
a0da8069 7178esac
907be67c
DJ
7179CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7180INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7181
6bd3dfaa 7182# Strip out unwanted targets.
dd12c3a8
NN
7183
7184# While at that, we remove Makefiles if we were started for recursive
7185# configuration, so that the top-level Makefile reconfigures them,
7186# like we used to do when configure itself was recursive.
dd12c3a8 7187
06a51eac
RW
7188# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7189# but now we're fixing up the Makefile ourselves with the additional
7190# commands passed to AC_CONFIG_FILES. Use separate variables
7191# extrasub-{build,host,target} not because there is any reason to split
7192# the substitutions up that way, but only to remain below the limit of
7193# 99 commands in a script, for HP-UX sed.
7194# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7195
16b1ad29
RW
7196case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7197 yes:yes:*\ gold\ *:*,c++,*) ;;
7198 yes:yes:*\ gold\ *:*)
d0ac1c44 7199 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7200 ;;
7201esac
7202
06a51eac 7203extrasub_build=
6a9cf61e 7204for module in ${build_configdirs} ; do
498d4a71
CF
7205 if test -z "${no_recursion}" \
7206 && test -f ${build_subdir}/${module}/Makefile; then
7207 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7208 rm -f ${build_subdir}/${module}/Makefile
7209 fi
06a51eac 7210 extrasub_build="$extrasub_build
498d4a71
CF
7211/^@if build-$module\$/d
7212/^@endif build-$module\$/d
7213/^@if build-$module-$bootstrap_suffix\$/d
7214/^@endif build-$module-$bootstrap_suffix\$/d"
7215done
06a51eac 7216extrasub_host=
498d4a71 7217for module in ${configdirs} ; do
80911fe1 7218 if test -z "${no_recursion}"; then
8cf39b1b 7219 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7220 if test -f ${file}; then
7221 echo 1>&2 "*** removing ${file} to force reconfigure"
7222 rm -f ${file}
7223 fi
7224 done
498d4a71 7225 fi
201f096f 7226 case ${module},${bootstrap_fixincludes} in
7227 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7228 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7229 esac
06a51eac 7230 extrasub_host="$extrasub_host
498d4a71
CF
7231/^@if $module\$/d
7232/^@endif $module\$/d
201f096f 7233/^@if $module-$host_bootstrap_suffix\$/d
7234/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7235done
06a51eac 7236extrasub_target=
498d4a71
CF
7237for module in ${target_configdirs} ; do
7238 if test -z "${no_recursion}" \
7239 && test -f ${target_subdir}/${module}/Makefile; then
7240 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7241 rm -f ${target_subdir}/${module}/Makefile
7242 fi
e8a5fa9c
RW
7243
7244 # We only bootstrap target libraries listed in bootstrap_target_libs.
7245 case $bootstrap_target_libs in
7246 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7247 *) target_bootstrap_suffix=no-bootstrap ;;
7248 esac
7249
06a51eac 7250 extrasub_target="$extrasub_target
498d4a71
CF
7251/^@if target-$module\$/d
7252/^@endif target-$module\$/d
e8a5fa9c
RW
7253/^@if target-$module-$target_bootstrap_suffix\$/d
7254/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7255done
7256
06a51eac
RW
7257# Do the final fixup along with target modules.
7258extrasub_target="$extrasub_target
6bd3dfaa 7259/^@if /,/^@endif /d"
a0da8069
NN
7260
7261# Create the serialization dependencies. This uses a temporary file.
7262
81ecdfbb
RW
7263# Check whether --enable-serial-configure was given.
7264if test "${enable_serial_configure+set}" = set; then :
7265 enableval=$enable_serial_configure;
7266fi
e6bfb94a
AO
7267
7268
1047cb91
DD
7269case ${enable_serial_configure} in
7270 yes)
7271 enable_serial_build_configure=yes
7272 enable_serial_host_configure=yes
7273 enable_serial_target_configure=yes
7274 ;;
7275esac
7276
a0da8069
NN
7277# These force 'configure's to be done one at a time, to avoid problems
7278# with contention over a shared config.cache.
7279rm -f serdep.tmp
e6bfb94a 7280echo '# serdep.tmp' > serdep.tmp
a0da8069 7281olditem=
1047cb91 7282test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7283for item in ${build_configdirs} ; do
7284 case ${olditem} in
7285 "") ;;
e6bfb94a 7286 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7287 esac
7288 olditem=${item}
7289done
7290olditem=
1047cb91 7291test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7292for item in ${configdirs} ; do
7293 case ${olditem} in
7294 "") ;;
e6bfb94a 7295 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7296 esac
7297 olditem=${item}
7298done
7299olditem=
1047cb91 7300test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7301for item in ${target_configdirs} ; do
7302 case ${olditem} in
7303 "") ;;
e6bfb94a 7304 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7305 esac
7306 olditem=${item}
7307done
7308serialization_dependencies=serdep.tmp
7309
7310
e6bfb94a 7311# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7312# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7313# might not want to pass down to subconfigures. The exception being
7314# --cache-file=/dev/null, which is used to turn off the use of cache
7315# files altogether, and which should be passed on to subconfigures.
7316# Also strip program-prefix, program-suffix, and program-transform-name,
7317# so that we can pass down a consistent program-transform-name.
c6b750e1 7318baseargs=
65b4571a 7319tbaseargs=
c6b750e1
DJ
7320keep_next=no
7321skip_next=no
7322eval "set -- $ac_configure_args"
18f6b6ee
PB
7323for ac_arg
7324do
c6b750e1
DJ
7325 if test X"$skip_next" = X"yes"; then
7326 skip_next=no
7327 continue
7328 fi
7329 if test X"$keep_next" = X"yes"; then
7330 case $ac_arg in
7331 *\'*)
7332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7333 esac
7334 baseargs="$baseargs '$ac_arg'"
65b4571a 7335 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7336 keep_next=no
7337 continue
7338 fi
7339
7340 # Handle separated arguments. Based on the logic generated by
7341 # autoconf 2.59.
7342 case $ac_arg in
7343 *=* | --config-cache | -C | -disable-* | --disable-* \
7344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7346 | -with-* | --with-* | -without-* | --without-* | --x)
7347 separate_arg=no
7348 ;;
7349 -*)
7350 separate_arg=yes
7351 ;;
7352 *)
7353 separate_arg=no
7354 ;;
7355 esac
7356
65b4571a
AO
7357 skip_targ=no
7358 case $ac_arg in
7359
7360 --with-* | --without-*)
7361 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7362
7363 case $libopt in
7364 *[-_]include)
7365 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7366 ;;
7367 *[-_]lib)
7368 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7369 ;;
7370 *)
7371 lib=$libopt
7372 ;;
7373 esac
7374
7375
7376 case $lib in
1b6c0831 7377 mpc | mpfr | gmp | isl)
65b4571a
AO
7378 # If we're processing --with-$lib, --with-$lib-include or
7379 # --with-$lib-lib, for one of the libs above, and target is
7380 # different from host, don't pass the current argument to any
7381 # target library's configure.
7382 if test x$is_cross_compiler = xyes; then
7383 skip_targ=yes
7384 fi
7385 ;;
7386 esac
7387 ;;
7388 esac
7389
c6b750e1 7390 case "$ac_arg" in
30167e0a
NC
7391 --cache-file=/dev/null | \
7392 -cache-file=/dev/null )
7393 # Handled here to avoid the test to skip args below.
7394 baseargs="$baseargs '$ac_arg'"
65b4571a 7395 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7396 # Assert: $separate_arg should always be no.
7397 keep_next=$separate_arg
7398 ;;
c6b750e1
DJ
7399 --no*)
7400 continue
7401 ;;
7402 --c* | \
7403 --sr* | \
7404 --ho* | \
7405 --bu* | \
7406 --t* | \
7407 --program-* | \
7408 -cache_file* | \
7409 -srcdir* | \
7410 -host* | \
7411 -build* | \
7412 -target* | \
7413 -program-prefix* | \
7414 -program-suffix* | \
7415 -program-transform-name* )
7416 skip_next=$separate_arg
7417 continue
7418 ;;
7419 -*)
7420 # An option. Add it.
7421 case $ac_arg in
7422 *\'*)
7423 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7424 esac
7425 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7426 if test X"$skip_targ" = Xno; then
7427 tbaseargs="$tbaseargs '$ac_arg'"
7428 fi
c6b750e1
DJ
7429 keep_next=$separate_arg
7430 ;;
7431 *)
7432 # Either a variable assignment, or a nonopt (triplet). Don't
7433 # pass it down; let the Makefile handle this.
7434 continue
7435 ;;
7436 esac
7437done
7438# Remove the initial space we just introduced and, as these will be
7439# expanded by make, quote '$'.
7440baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7441
f27d4f92
DJ
7442# Add in --program-transform-name, after --program-prefix and
7443# --program-suffix have been applied to it. Autoconf has already
7444# doubled dollar signs and backslashes in program_transform_name; we want
7445# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7446# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7447# Also, because we want to override the logic in subdir configure scripts to
7448# choose program_transform_name, replace any s,x,x, with s,y,y,.
7449sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7450${program_transform_name}
7451EOF_SED
7452gcc_transform_name=`cat conftestsed.out`
7453rm -f conftestsed.out
7454baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7455tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7456if test "$silent" = yes; then
7457 baseargs="$baseargs --silent"
65b4571a 7458 tbaseargs="$tbaseargs --silent"
2444379b 7459fi
34a0f3cf 7460baseargs="$baseargs --disable-option-checking"
65b4571a 7461tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7462
4074d5f2
RW
7463# Record and document user additions to sub configure arguments.
7464
7465
7466
7467
a0da8069
NN
7468# For the build-side libraries, we just need to pretend we're native,
7469# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7470# desired. We can't even use the same cache file for all build-side
7471# libraries, as they're compiled differently; some with C, some with
7472# C++ or with different feature-enabling options.
7473build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7474
7475# For host modules, accept cache file option, or specification as blank.
7476case "${cache_file}" in
7477"") # empty
7478 cache_file_option="" ;;
7479/* | [A-Za-z]:[\\/]* ) # absolute path
7480 cache_file_option="--cache-file=${cache_file}" ;;
7481*) # relative path
7482 cache_file_option="--cache-file=../${cache_file}" ;;
7483esac
7484
82252c06
NN
7485# Host dirs don't like to share a cache file either, horribly enough.
7486# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7487host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7488
65b4571a 7489target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7490
7491# Passing a --with-cross-host argument lets the target libraries know
7492# whether they are being built with a cross-compiler or being built
7493# native. However, it would be better to use other mechanisms to make the
7494# sorts of decisions they want to make on this basis. Please consider
7495# this option to be deprecated. FIXME.
7496if test x${is_cross_compiler} = xyes ; then
c6b750e1 7497 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7498fi
7499
afc0578d 7500# Special user-friendly check for native x86_64-linux build, if
7501# multilib is not explicitly enabled.
7502case "$target:$have_compiler:$host:$target:$enable_multilib" in
7503 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7504 # Make sure we have a development environment that handles 32-bit
afc0578d 7505 dev64=no
7506 echo "int main () { return 0; }" > conftest.c
7507 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7508 if test $? = 0 ; then
7509 if test -s conftest || test -s conftest.exe ; then
7510 dev64=yes
7511 fi
7512 fi
7513 rm -f conftest*
7514 if test x${dev64} != xyes ; then
d0ac1c44 7515 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 7516 fi
7517 ;;
7518esac
7519
938d2b74
RW
7520# Default to --enable-multilib.
7521if test x${enable_multilib} = x ; then
a0da8069 7522 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7523fi
a0da8069
NN
7524
7525# Pass --with-newlib if appropriate. Note that target_configdirs has
7526# changed from the earlier setting of with_newlib.
7527if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7528 target_configargs="--with-newlib ${target_configargs}"
7529fi
7530
95036d20
NN
7531# Different target subdirs use different values of certain variables
7532# (notably CXX). Worse, multilibs use *lots* of different values.
7533# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7534# it doesn't automatically accept command-line overrides of them.
7535# This means it's not safe for target subdirs to share a cache file,
7536# which is disgusting, but there you have it. Hopefully this can be
7537# fixed in future. It's still worthwhile to use a cache file for each
7538# directory. I think.
7539
ae380b45
MS
7540# Pass the appropriate --build, --host, --target and --cache-file arguments.
7541# We need to pass --target, as newer autoconf's requires consistency
7542# for target_alias and gcc doesn't manage it consistently.
4b900473 7543target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7544
a0da8069
NN
7545FLAGS_FOR_TARGET=
7546case " $target_configdirs " in
7547 *" newlib "*)
7548 case " $target_configargs " in
7549 *" --with-newlib "*)
7550 case "$target" in
1f53ca9a 7551 *-cygwin*)
6d94c122 7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7553 ;;
a0da8069
NN
7554 esac
7555
7556 # If we're not building GCC, don't discard standard headers.
7557 if test -d ${srcdir}/gcc; then
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7559
7560 if test "${build}" != "${host}"; then
7561 # On Canadian crosses, CC_FOR_TARGET will have already been set
7562 # by `configure', so we won't have an opportunity to add -Bgcc/
7563 # to it. This is right: we don't want to search that directory
7564 # for binaries, but we want the header files in there, so add
7565 # them explicitly.
e552509b 7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7567
7568 # Someone might think of using the pre-installed headers on
7569 # Canadian crosses, in case the installed compiler is not fully
7570 # compatible with the compiler being built. In this case, it
7571 # would be better to flag an error than risking having
7572 # incompatible object files being constructed. We can't
7573 # guarantee that an error will be flagged, but let's hope the
7574 # compiler will do it, when presented with incompatible header
7575 # files.
7576 fi
7577 fi
7578
7579 case "${target}-${is_cross_compiler}" in
ec11bdc6 7580 i[3456789]86-*-linux*-no)
a0da8069
NN
7581 # Here host == target, so we don't need to build gcc,
7582 # so we don't want to discard standard headers.
7583 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7584 ;;
7585 *)
7586 # If we're building newlib, use its generic headers last, but search
7587 # for any libc-related directories first (so make it the last -B
7588 # switch).
7589 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
7590
7591 # If we're building libgloss, find the startup file, simulator library
7592 # and linker script.
7593 case " $target_configdirs " in
7594 *" libgloss "*)
7595 # Look for startup file, simulator library and maybe linker script.
7596 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7597 # Look for libnosys.a in case the target needs it.
7598 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7599 # Most targets have the linker script in the source directory.
7600 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7601 ;;
7602 esac
a0da8069
NN
7603 ;;
7604 esac
7605 ;;
7606 esac
7607 ;;
7608esac
1f53ca9a 7609
45055374 7610case "$target" in
1f53ca9a
AO
7611 x86_64-*mingw* | *-w64-mingw*)
7612 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7613 # however, use a symlink named 'mingw' in ${prefix} .
7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7615 ;;
7616 *-mingw*)
7617 # MinGW can't be handled as Cygwin above since it does not use newlib.
7618 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'
7619 ;;
45055374 7620esac
a0da8069 7621
5fbad20a
DD
7622# Allow the user to override the flags for
7623# our build compiler if desired.
c66487f8
NC
7624if test x"${build}" = x"${host}" ; then
7625 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7626 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7627 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7628fi
5fbad20a 7629
a0da8069
NN
7630# On Canadian crosses, we'll be searching the right directories for
7631# the previously-installed cross compiler, so don't bother to add
7632# flags for directories within the install tree of the compiler
7633# being built; programs in there won't even run.
7634if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7635 # Search for pre-installed headers if nothing else fits.
bba45b8b 7636 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
7637fi
7638
7639if test "x${use_gnu_ld}" = x &&
7640 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7641 # Arrange for us to find uninstalled linker scripts.
b00612cc 7642 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7643fi
7644
a481dbb7
DD
7645# Search for other target-specific linker scripts and such.
7646case "${target}" in
4e206d7e
DB
7647 mep*)
7648 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7649 ;;
7650esac
7651
a0da8069 7652# Makefile fragments.
3e707e94
PB
7653for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7654do
7655 eval fragval=\$$frag
7656 if test $fragval != /dev/null; then
7657 eval $frag=${srcdir}/$fragval
7658 fi
7659done
a0da8069
NN
7660
7661
7662
7663
7664
7665# Miscellanea: directories, flags, etc.
7666
7667
7668
7669
7670
7671
7672
3bbd2f8f 7673
6a9cf61e 7674# Build module lists & subconfigure args.
a0da8069
NN
7675
7676
7677
be01d343
PB
7678# Host module lists & subconfigure args.
7679
7680
7681
911e63d0 7682
be01d343
PB
7683# Target module lists & subconfigure args.
7684
7685
7686
7687# Build tools.
7688
7689
7690
1576798e
PB
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
be01d343
PB
7704# Generate default definitions for YACC, M4, LEX and other programs that run
7705# on the build machine. These are used if the Makefile can't locate these
7706# programs in objdir.
7707MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7708
7709for ac_prog in 'bison -y' byacc yacc
7710do
c6b750e1 7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7712set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7715if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7716 $as_echo_n "(cached) " >&6
be01d343
PB
7717else
7718 if test -n "$YACC"; then
7719 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7720else
c6b750e1
DJ
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
81ecdfbb 7726 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7728 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7730 break 2
7731 fi
7732done
81ecdfbb
RW
7733 done
7734IFS=$as_save_IFS
c6b750e1 7735
be01d343
PB
7736fi
7737fi
c6b750e1 7738YACC=$ac_cv_prog_YACC
be01d343 7739if test -n "$YACC"; then
81ecdfbb
RW
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7741$as_echo "$YACC" >&6; }
be01d343 7742else
81ecdfbb
RW
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744$as_echo "no" >&6; }
be01d343
PB
7745fi
7746
81ecdfbb 7747
c6b750e1 7748 test -n "$YACC" && break
be01d343
PB
7749done
7750test -n "$YACC" || YACC="$MISSING bison -y"
7751
7752case " $build_configdirs " in
7753 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7754esac
7755
7756for ac_prog in bison
7757do
c6b750e1 7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7759set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7762if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7763 $as_echo_n "(cached) " >&6
be01d343
PB
7764else
7765 if test -n "$BISON"; then
7766 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7767else
c6b750e1
DJ
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
81ecdfbb 7773 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7775 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7777 break 2
7778 fi
7779done
81ecdfbb
RW
7780 done
7781IFS=$as_save_IFS
c6b750e1 7782
be01d343
PB
7783fi
7784fi
c6b750e1 7785BISON=$ac_cv_prog_BISON
be01d343 7786if test -n "$BISON"; then
81ecdfbb
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7788$as_echo "$BISON" >&6; }
be01d343 7789else
81ecdfbb
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
be01d343
PB
7792fi
7793
81ecdfbb 7794
c6b750e1 7795 test -n "$BISON" && break
be01d343
PB
7796done
7797test -n "$BISON" || BISON="$MISSING bison"
7798
7799case " $build_configdirs " in
7800 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7801esac
7802
7803for ac_prog in gm4 gnum4 m4
7804do
c6b750e1 7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7806set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7809if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7810 $as_echo_n "(cached) " >&6
be01d343
PB
7811else
7812 if test -n "$M4"; then
7813 ac_cv_prog_M4="$M4" # Let the user override the test.
7814else
c6b750e1
DJ
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
81ecdfbb 7820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7822 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7824 break 2
7825 fi
7826done
81ecdfbb
RW
7827 done
7828IFS=$as_save_IFS
c6b750e1 7829
be01d343
PB
7830fi
7831fi
c6b750e1 7832M4=$ac_cv_prog_M4
be01d343 7833if test -n "$M4"; then
81ecdfbb
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7835$as_echo "$M4" >&6; }
be01d343 7836else
81ecdfbb
RW
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
be01d343
PB
7839fi
7840
81ecdfbb 7841
c6b750e1 7842 test -n "$M4" && break
be01d343
PB
7843done
7844test -n "$M4" || M4="$MISSING m4"
7845
7846case " $build_configdirs " in
7847 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7848esac
7849
7850for ac_prog in flex lex
7851do
c6b750e1 7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7853set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7856if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 7857 $as_echo_n "(cached) " >&6
be01d343
PB
7858else
7859 if test -n "$LEX"; then
7860 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7861else
c6b750e1
DJ
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
81ecdfbb 7867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7869 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7871 break 2
7872 fi
7873done
81ecdfbb
RW
7874 done
7875IFS=$as_save_IFS
c6b750e1 7876
be01d343
PB
7877fi
7878fi
c6b750e1 7879LEX=$ac_cv_prog_LEX
be01d343 7880if test -n "$LEX"; then
81ecdfbb
RW
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7882$as_echo "$LEX" >&6; }
be01d343 7883else
81ecdfbb
RW
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
be01d343
PB
7886fi
7887
81ecdfbb 7888
c6b750e1 7889 test -n "$LEX" && break
be01d343
PB
7890done
7891test -n "$LEX" || LEX="$MISSING flex"
7892
7893case " $build_configdirs " in
7894 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7895 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7896esac
7897
7898for ac_prog in flex
7899do
c6b750e1 7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7901set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7904if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 7905 $as_echo_n "(cached) " >&6
be01d343
PB
7906else
7907 if test -n "$FLEX"; then
7908 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7909else
c6b750e1
DJ
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
81ecdfbb 7915 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7917 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7919 break 2
7920 fi
7921done
81ecdfbb
RW
7922 done
7923IFS=$as_save_IFS
c6b750e1 7924
be01d343
PB
7925fi
7926fi
c6b750e1 7927FLEX=$ac_cv_prog_FLEX
be01d343 7928if test -n "$FLEX"; then
81ecdfbb
RW
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7930$as_echo "$FLEX" >&6; }
be01d343 7931else
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
be01d343
PB
7934fi
7935
81ecdfbb 7936
c6b750e1 7937 test -n "$FLEX" && break
be01d343
PB
7938done
7939test -n "$FLEX" || FLEX="$MISSING flex"
7940
7941case " $build_configdirs " in
7942 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943esac
7944
7945for ac_prog in makeinfo
7946do
c6b750e1 7947 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7948set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7951if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 7952 $as_echo_n "(cached) " >&6
be01d343
PB
7953else
7954 if test -n "$MAKEINFO"; then
7955 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7956else
c6b750e1
DJ
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
81ecdfbb 7962 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7964 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7966 break 2
7967 fi
7968done
81ecdfbb
RW
7969 done
7970IFS=$as_save_IFS
c6b750e1 7971
be01d343
PB
7972fi
7973fi
c6b750e1 7974MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7975if test -n "$MAKEINFO"; then
81ecdfbb
RW
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7977$as_echo "$MAKEINFO" >&6; }
be01d343 7978else
81ecdfbb
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
be01d343
PB
7981fi
7982
81ecdfbb 7983
c6b750e1 7984 test -n "$MAKEINFO" && break
be01d343
PB
7985done
7986test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7987
7988case " $build_configdirs " in
7989 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7990 *)
7991
10ad8ef3 7992 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7993 # higher, else we use the "missing" dummy.
7994 if ${MAKEINFO} --version \
10ad8ef3 7995 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7996 :
7997 else
7998 MAKEINFO="$MISSING makeinfo"
7999 fi
8000 ;;
8001
8002esac
a0da8069 8003
be01d343 8004# FIXME: expect and dejagnu may become build tools?
a0da8069 8005
be01d343
PB
8006for ac_prog in expect
8007do
c6b750e1 8008 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8009set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8012if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8013 $as_echo_n "(cached) " >&6
be01d343
PB
8014else
8015 if test -n "$EXPECT"; then
8016 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8017else
c6b750e1
DJ
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
81ecdfbb 8023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8025 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8027 break 2
8028 fi
8029done
81ecdfbb
RW
8030 done
8031IFS=$as_save_IFS
c6b750e1 8032
be01d343
PB
8033fi
8034fi
c6b750e1 8035EXPECT=$ac_cv_prog_EXPECT
be01d343 8036if test -n "$EXPECT"; then
81ecdfbb
RW
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8038$as_echo "$EXPECT" >&6; }
be01d343 8039else
81ecdfbb
RW
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
be01d343 8042fi
a0da8069 8043
81ecdfbb 8044
c6b750e1 8045 test -n "$EXPECT" && break
be01d343
PB
8046done
8047test -n "$EXPECT" || EXPECT="expect"
a0da8069 8048
be01d343
PB
8049case " $configdirs " in
8050 *" expect "*)
8051 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8052 ;;
8053esac
a0da8069 8054
be01d343
PB
8055for ac_prog in runtest
8056do
c6b750e1 8057 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8058set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8061if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8062 $as_echo_n "(cached) " >&6
be01d343
PB
8063else
8064 if test -n "$RUNTEST"; then
8065 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8066else
c6b750e1
DJ
8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
81ecdfbb 8072 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8074 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8076 break 2
8077 fi
8078done
81ecdfbb
RW
8079 done
8080IFS=$as_save_IFS
c6b750e1 8081
be01d343
PB
8082fi
8083fi
c6b750e1 8084RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8085if test -n "$RUNTEST"; then
81ecdfbb
RW
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8087$as_echo "$RUNTEST" >&6; }
be01d343 8088else
81ecdfbb
RW
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
be01d343 8091fi
a0da8069 8092
81ecdfbb 8093
c6b750e1 8094 test -n "$RUNTEST" && break
be01d343
PB
8095done
8096test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8097
be01d343
PB
8098case " $configdirs " in
8099 *" dejagnu "*)
6b89cc21 8100 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8101 ;;
8102esac
a0da8069
NN
8103
8104
a0da8069 8105# Host tools.
859789af
AC
8106ncn_tool_prefix=
8107test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8108ncn_target_tool_prefix=
8109test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8110
9a819804
AO
8111
8112
8113if test -n "$AR"; then
8114 ac_cv_prog_AR=$AR
8115elif test -n "$ac_cv_prog_AR"; then
8116 AR=$ac_cv_prog_AR
8117fi
8118
8119if test -n "$ac_cv_prog_AR"; then
8120 for ncn_progname in ar; do
8121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8122set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8125if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8126 $as_echo_n "(cached) " >&6
9a819804
AO
8127else
8128 if test -n "$AR"; then
8129 ac_cv_prog_AR="$AR" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
81ecdfbb 8136 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8138 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8140 break 2
8141 fi
8142done
81ecdfbb
RW
8143 done
8144IFS=$as_save_IFS
9a819804
AO
8145
8146fi
8147fi
8148AR=$ac_cv_prog_AR
8149if test -n "$AR"; then
81ecdfbb
RW
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8151$as_echo "$AR" >&6; }
9a819804 8152else
81ecdfbb
RW
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
9a819804
AO
8155fi
8156
81ecdfbb 8157
9a819804
AO
8158 done
8159fi
8160
8161for ncn_progname in ar; do
05cbd757
PB
8162 if test -n "$ncn_tool_prefix"; then
8163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8164set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8167if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8168 $as_echo_n "(cached) " >&6
859789af
AC
8169else
8170 if test -n "$AR"; then
8171 ac_cv_prog_AR="$AR" # Let the user override the test.
8172else
c6b750e1
DJ
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
81ecdfbb 8178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8180 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8182 break 2
8183 fi
8184done
81ecdfbb
RW
8185 done
8186IFS=$as_save_IFS
c6b750e1 8187
859789af
AC
8188fi
8189fi
c6b750e1 8190AR=$ac_cv_prog_AR
859789af 8191if test -n "$AR"; then
81ecdfbb
RW
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8193$as_echo "$AR" >&6; }
859789af 8194else
81ecdfbb
RW
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
859789af
AC
8197fi
8198
81ecdfbb 8199
05cbd757
PB
8200 fi
8201 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8203set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8206if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8207 $as_echo_n "(cached) " >&6
859789af 8208else
05cbd757
PB
8209 if test -n "$AR"; then
8210 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8211else
c6b750e1
DJ
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
81ecdfbb 8217 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8219 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8221 break 2
8222 fi
8223done
81ecdfbb
RW
8224 done
8225IFS=$as_save_IFS
c6b750e1 8226
859789af
AC
8227fi
8228fi
c6b750e1 8229AR=$ac_cv_prog_AR
05cbd757 8230if test -n "$AR"; then
81ecdfbb
RW
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8232$as_echo "$AR" >&6; }
859789af 8233else
81ecdfbb
RW
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235$as_echo "no" >&6; }
859789af 8236fi
c6b750e1 8237
81ecdfbb 8238
05cbd757
PB
8239 fi
8240 test -n "$ac_cv_prog_AR" && break
8241done
8242
8243if test -z "$ac_cv_prog_AR" ; then
8244 set dummy ar
8245 if test $build = $host ; then
8246 AR="$2"
859789af 8247 else
05cbd757 8248 AR="${ncn_tool_prefix}$2"
859789af 8249 fi
859789af
AC
8250fi
8251
9a819804
AO
8252
8253
8254if test -n "$AS"; then
8255 ac_cv_prog_AS=$AS
8256elif test -n "$ac_cv_prog_AS"; then
8257 AS=$ac_cv_prog_AS
8258fi
8259
8260if test -n "$ac_cv_prog_AS"; then
8261 for ncn_progname in as; do
8262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8263set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8266if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8267 $as_echo_n "(cached) " >&6
9a819804
AO
8268else
8269 if test -n "$AS"; then
8270 ac_cv_prog_AS="$AS" # Let the user override the test.
8271else
8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
81ecdfbb 8277 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8279 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8281 break 2
8282 fi
8283done
81ecdfbb
RW
8284 done
8285IFS=$as_save_IFS
9a819804
AO
8286
8287fi
8288fi
8289AS=$ac_cv_prog_AS
8290if test -n "$AS"; then
81ecdfbb
RW
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8292$as_echo "$AS" >&6; }
9a819804 8293else
81ecdfbb
RW
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
9a819804
AO
8296fi
8297
81ecdfbb 8298
9a819804
AO
8299 done
8300fi
8301
8302for ncn_progname in as; do
05cbd757
PB
8303 if test -n "$ncn_tool_prefix"; then
8304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8305set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8308if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8309 $as_echo_n "(cached) " >&6
859789af
AC
8310else
8311 if test -n "$AS"; then
8312 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8313else
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
81ecdfbb 8319 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8321 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8323 break 2
8324 fi
8325done
81ecdfbb
RW
8326 done
8327IFS=$as_save_IFS
c6b750e1 8328
859789af
AC
8329fi
8330fi
c6b750e1 8331AS=$ac_cv_prog_AS
859789af 8332if test -n "$AS"; then
81ecdfbb
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8334$as_echo "$AS" >&6; }
859789af 8335else
81ecdfbb
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
859789af
AC
8338fi
8339
81ecdfbb 8340
05cbd757
PB
8341 fi
8342 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8344set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8347if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8348 $as_echo_n "(cached) " >&6
859789af 8349else
05cbd757
PB
8350 if test -n "$AS"; then
8351 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8352else
c6b750e1
DJ
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
81ecdfbb 8358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8360 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8362 break 2
8363 fi
8364done
81ecdfbb
RW
8365 done
8366IFS=$as_save_IFS
c6b750e1 8367
859789af
AC
8368fi
8369fi
c6b750e1 8370AS=$ac_cv_prog_AS
05cbd757 8371if test -n "$AS"; then
81ecdfbb
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8373$as_echo "$AS" >&6; }
859789af 8374else
81ecdfbb
RW
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
859789af 8377fi
c6b750e1 8378
81ecdfbb 8379
05cbd757
PB
8380 fi
8381 test -n "$ac_cv_prog_AS" && break
8382done
8383
8384if test -z "$ac_cv_prog_AS" ; then
8385 set dummy as
8386 if test $build = $host ; then
8387 AS="$2"
859789af 8388 else
05cbd757 8389 AS="${ncn_tool_prefix}$2"
859789af 8390 fi
859789af
AC
8391fi
8392
9a819804
AO
8393
8394
8395if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL=$DLLTOOL
8397elif test -n "$ac_cv_prog_DLLTOOL"; then
8398 DLLTOOL=$ac_cv_prog_DLLTOOL
8399fi
8400
8401if test -n "$ac_cv_prog_DLLTOOL"; then
8402 for ncn_progname in dlltool; do
8403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8404set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8407if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8408 $as_echo_n "(cached) " >&6
9a819804
AO
8409else
8410 if test -n "$DLLTOOL"; then
8411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
81ecdfbb 8418 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8420 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8422 break 2
8423 fi
8424done
81ecdfbb
RW
8425 done
8426IFS=$as_save_IFS
9a819804
AO
8427
8428fi
8429fi
8430DLLTOOL=$ac_cv_prog_DLLTOOL
8431if test -n "$DLLTOOL"; then
81ecdfbb
RW
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8433$as_echo "$DLLTOOL" >&6; }
9a819804 8434else
81ecdfbb
RW
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
9a819804
AO
8437fi
8438
81ecdfbb 8439
9a819804
AO
8440 done
8441fi
8442
8443for ncn_progname in dlltool; do
05cbd757
PB
8444 if test -n "$ncn_tool_prefix"; then
8445 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8446set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8449if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8450 $as_echo_n "(cached) " >&6
859789af
AC
8451else
8452 if test -n "$DLLTOOL"; then
8453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8454else
c6b750e1
DJ
8455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456for as_dir in $PATH
8457do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
81ecdfbb 8460 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8462 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8464 break 2
8465 fi
8466done
81ecdfbb
RW
8467 done
8468IFS=$as_save_IFS
c6b750e1 8469
859789af
AC
8470fi
8471fi
c6b750e1 8472DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8473if test -n "$DLLTOOL"; then
81ecdfbb
RW
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8475$as_echo "$DLLTOOL" >&6; }
859789af 8476else
81ecdfbb
RW
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478$as_echo "no" >&6; }
859789af
AC
8479fi
8480
81ecdfbb 8481
05cbd757
PB
8482 fi
8483 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8485set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8488if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8489 $as_echo_n "(cached) " >&6
859789af 8490else
05cbd757
PB
8491 if test -n "$DLLTOOL"; then
8492 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8493else
c6b750e1
DJ
8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495for as_dir in $PATH
8496do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
81ecdfbb 8499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8501 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8503 break 2
8504 fi
8505done
81ecdfbb
RW
8506 done
8507IFS=$as_save_IFS
c6b750e1 8508
859789af
AC
8509fi
8510fi
c6b750e1 8511DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8512if test -n "$DLLTOOL"; then
81ecdfbb
RW
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8514$as_echo "$DLLTOOL" >&6; }
859789af 8515else
81ecdfbb
RW
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517$as_echo "no" >&6; }
859789af 8518fi
c6b750e1 8519
81ecdfbb 8520
05cbd757
PB
8521 fi
8522 test -n "$ac_cv_prog_DLLTOOL" && break
8523done
8524
8525if test -z "$ac_cv_prog_DLLTOOL" ; then
8526 set dummy dlltool
8527 if test $build = $host ; then
8528 DLLTOOL="$2"
859789af 8529 else
05cbd757 8530 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8531 fi
859789af
AC
8532fi
8533
9a819804
AO
8534
8535
8536if test -n "$LD"; then
8537 ac_cv_prog_LD=$LD
8538elif test -n "$ac_cv_prog_LD"; then
8539 LD=$ac_cv_prog_LD
8540fi
8541
8542if test -n "$ac_cv_prog_LD"; then
8543 for ncn_progname in ld; do
8544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8545set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8548if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8549 $as_echo_n "(cached) " >&6
9a819804
AO
8550else
8551 if test -n "$LD"; then
8552 ac_cv_prog_LD="$LD" # Let the user override the test.
8553else
8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
81ecdfbb 8559 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8561 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8563 break 2
8564 fi
8565done
81ecdfbb
RW
8566 done
8567IFS=$as_save_IFS
9a819804
AO
8568
8569fi
8570fi
8571LD=$ac_cv_prog_LD
8572if test -n "$LD"; then
81ecdfbb
RW
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8574$as_echo "$LD" >&6; }
9a819804 8575else
81ecdfbb
RW
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
9a819804
AO
8578fi
8579
81ecdfbb 8580
9a819804
AO
8581 done
8582fi
8583
8584for ncn_progname in ld; do
05cbd757
PB
8585 if test -n "$ncn_tool_prefix"; then
8586 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8587set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8590if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8591 $as_echo_n "(cached) " >&6
859789af
AC
8592else
8593 if test -n "$LD"; then
8594 ac_cv_prog_LD="$LD" # Let the user override the test.
8595else
c6b750e1
DJ
8596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597for as_dir in $PATH
8598do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
81ecdfbb 8601 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8603 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8605 break 2
8606 fi
8607done
81ecdfbb
RW
8608 done
8609IFS=$as_save_IFS
c6b750e1 8610
859789af
AC
8611fi
8612fi
c6b750e1 8613LD=$ac_cv_prog_LD
859789af 8614if test -n "$LD"; then
81ecdfbb
RW
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8616$as_echo "$LD" >&6; }
859789af 8617else
81ecdfbb
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619$as_echo "no" >&6; }
859789af
AC
8620fi
8621
81ecdfbb 8622
05cbd757
PB
8623 fi
8624 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8626set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8629if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8630 $as_echo_n "(cached) " >&6
859789af 8631else
05cbd757
PB
8632 if test -n "$LD"; then
8633 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8634else
c6b750e1
DJ
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
81ecdfbb 8640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8642 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8644 break 2
8645 fi
8646done
81ecdfbb
RW
8647 done
8648IFS=$as_save_IFS
c6b750e1 8649
859789af
AC
8650fi
8651fi
c6b750e1 8652LD=$ac_cv_prog_LD
05cbd757 8653if test -n "$LD"; then
81ecdfbb
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8655$as_echo "$LD" >&6; }
859789af 8656else
81ecdfbb
RW
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
859789af 8659fi
c6b750e1 8660
81ecdfbb 8661
05cbd757
PB
8662 fi
8663 test -n "$ac_cv_prog_LD" && break
8664done
8665
8666if test -z "$ac_cv_prog_LD" ; then
8667 set dummy ld
8668 if test $build = $host ; then
8669 LD="$2"
859789af 8670 else
05cbd757 8671 LD="${ncn_tool_prefix}$2"
859789af 8672 fi
859789af
AC
8673fi
8674
9a819804
AO
8675
8676
8677if test -n "$LIPO"; then
8678 ac_cv_prog_LIPO=$LIPO
8679elif test -n "$ac_cv_prog_LIPO"; then
8680 LIPO=$ac_cv_prog_LIPO
8681fi
8682
8683if test -n "$ac_cv_prog_LIPO"; then
8684 for ncn_progname in lipo; do
8685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8686set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8689if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8690 $as_echo_n "(cached) " >&6
9a819804
AO
8691else
8692 if test -n "$LIPO"; then
8693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8694else
8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
81ecdfbb 8700 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8702 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8704 break 2
8705 fi
8706done
81ecdfbb
RW
8707 done
8708IFS=$as_save_IFS
9a819804
AO
8709
8710fi
8711fi
8712LIPO=$ac_cv_prog_LIPO
8713if test -n "$LIPO"; then
81ecdfbb
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8715$as_echo "$LIPO" >&6; }
9a819804 8716else
81ecdfbb
RW
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718$as_echo "no" >&6; }
9a819804
AO
8719fi
8720
81ecdfbb 8721
9a819804
AO
8722 done
8723fi
8724
8725for ncn_progname in lipo; do
be01d343
PB
8726 if test -n "$ncn_tool_prefix"; then
8727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8728set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8731if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8732 $as_echo_n "(cached) " >&6
be01d343
PB
8733else
8734 if test -n "$LIPO"; then
8735 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8736else
c6b750e1
DJ
8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738for as_dir in $PATH
8739do
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
81ecdfbb 8742 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8744 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8746 break 2
8747 fi
8748done
81ecdfbb
RW
8749 done
8750IFS=$as_save_IFS
c6b750e1 8751
be01d343
PB
8752fi
8753fi
c6b750e1 8754LIPO=$ac_cv_prog_LIPO
be01d343 8755if test -n "$LIPO"; then
81ecdfbb
RW
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8757$as_echo "$LIPO" >&6; }
be01d343 8758else
81ecdfbb
RW
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760$as_echo "no" >&6; }
be01d343
PB
8761fi
8762
81ecdfbb 8763
be01d343
PB
8764 fi
8765 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8770if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8771 $as_echo_n "(cached) " >&6
be01d343
PB
8772else
8773 if test -n "$LIPO"; then
8774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8775else
c6b750e1
DJ
8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
81ecdfbb 8781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8783 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8785 break 2
8786 fi
8787done
81ecdfbb
RW
8788 done
8789IFS=$as_save_IFS
c6b750e1 8790
be01d343
PB
8791fi
8792fi
c6b750e1 8793LIPO=$ac_cv_prog_LIPO
be01d343 8794if test -n "$LIPO"; then
81ecdfbb
RW
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8796$as_echo "$LIPO" >&6; }
be01d343 8797else
81ecdfbb
RW
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
be01d343 8800fi
c6b750e1 8801
81ecdfbb 8802
be01d343
PB
8803 fi
8804 test -n "$ac_cv_prog_LIPO" && break
8805done
8806
8807if test -z "$ac_cv_prog_LIPO" ; then
8808 set dummy lipo
8809 if test $build = $host ; then
8810 LIPO="$2"
8811 else
8812 LIPO="${ncn_tool_prefix}$2"
8813 fi
8814fi
8815
9a819804
AO
8816
8817
8818if test -n "$NM"; then
8819 ac_cv_prog_NM=$NM
8820elif test -n "$ac_cv_prog_NM"; then
8821 NM=$ac_cv_prog_NM
8822fi
8823
8824if test -n "$ac_cv_prog_NM"; then
8825 for ncn_progname in nm; do
8826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8830if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8831 $as_echo_n "(cached) " >&6
859789af
AC
8832else
8833 if test -n "$NM"; then
8834 ac_cv_prog_NM="$NM" # Let the user override the test.
8835else
c6b750e1
DJ
8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
81ecdfbb 8841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8843 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8845 break 2
8846 fi
8847done
81ecdfbb
RW
8848 done
8849IFS=$as_save_IFS
c6b750e1 8850
859789af
AC
8851fi
8852fi
c6b750e1 8853NM=$ac_cv_prog_NM
859789af 8854if test -n "$NM"; then
81ecdfbb
RW
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8856$as_echo "$NM" >&6; }
859789af 8857else
81ecdfbb
RW
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859$as_echo "no" >&6; }
859789af
AC
8860fi
8861
81ecdfbb 8862
9a819804
AO
8863 done
8864fi
8865
8866for ncn_progname in nm; do
8867 if test -n "$ncn_tool_prefix"; then
8868 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8869set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8872if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8873 $as_echo_n "(cached) " >&6
859789af 8874else
05cbd757
PB
8875 if test -n "$NM"; then
8876 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8877else
c6b750e1
DJ
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
81ecdfbb 8883 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8885 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8887 break 2
8888 fi
8889done
81ecdfbb
RW
8890 done
8891IFS=$as_save_IFS
c6b750e1 8892
859789af
AC
8893fi
8894fi
c6b750e1 8895NM=$ac_cv_prog_NM
05cbd757 8896if test -n "$NM"; then
81ecdfbb
RW
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8898$as_echo "$NM" >&6; }
859789af 8899else
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
859789af 8902fi
c6b750e1 8903
81ecdfbb 8904
05cbd757 8905 fi
9a819804
AO
8906 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8908set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8911if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8912 $as_echo_n "(cached) " >&6
9a819804
AO
8913else
8914 if test -n "$NM"; then
8915 ac_cv_prog_NM="$NM" # Let the user override the test.
8916else
8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918for as_dir in $PATH
8919do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
81ecdfbb 8922 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8924 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8926 break 2
8927 fi
8928done
81ecdfbb
RW
8929 done
8930IFS=$as_save_IFS
9a819804
AO
8931
8932fi
8933fi
8934NM=$ac_cv_prog_NM
8935if test -n "$NM"; then
81ecdfbb
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8937$as_echo "$NM" >&6; }
9a819804 8938else
81ecdfbb
RW
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
9a819804
AO
8941fi
8942
81ecdfbb 8943
9a819804
AO
8944 fi
8945 test -n "$ac_cv_prog_NM" && break
8946done
8947
8948if test -z "$ac_cv_prog_NM" ; then
8949 set dummy nm
8950 if test $build = $host ; then
8951 NM="$2"
8952 else
8953 NM="${ncn_tool_prefix}$2"
8954 fi
8955fi
8956
8957
8958
8959if test -n "$RANLIB"; then
8960 ac_cv_prog_RANLIB=$RANLIB
8961elif test -n "$ac_cv_prog_RANLIB"; then
8962 RANLIB=$ac_cv_prog_RANLIB
8963fi
8964
8965if test -n "$ac_cv_prog_RANLIB"; then
8966 for ncn_progname in ranlib; do
8967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8968set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8971if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 8972 $as_echo_n "(cached) " >&6
9a819804
AO
8973else
8974 if test -n "$RANLIB"; then
8975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
81ecdfbb 8982 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8984 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8986 break 2
8987 fi
8988done
81ecdfbb
RW
8989 done
8990IFS=$as_save_IFS
9a819804
AO
8991
8992fi
8993fi
8994RANLIB=$ac_cv_prog_RANLIB
8995if test -n "$RANLIB"; then
81ecdfbb
RW
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8997$as_echo "$RANLIB" >&6; }
9a819804 8998else
81ecdfbb
RW
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
9a819804
AO
9001fi
9002
81ecdfbb 9003
9a819804
AO
9004 done
9005fi
859789af 9006
9a819804 9007for ncn_progname in ranlib; do
05cbd757
PB
9008 if test -n "$ncn_tool_prefix"; then
9009 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9013if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9014 $as_echo_n "(cached) " >&6
859789af
AC
9015else
9016 if test -n "$RANLIB"; then
9017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9018else
c6b750e1
DJ
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
81ecdfbb 9024 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9026 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9028 break 2
9029 fi
9030done
81ecdfbb
RW
9031 done
9032IFS=$as_save_IFS
c6b750e1 9033
859789af
AC
9034fi
9035fi
c6b750e1 9036RANLIB=$ac_cv_prog_RANLIB
859789af 9037if test -n "$RANLIB"; then
81ecdfbb
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9039$as_echo "$RANLIB" >&6; }
859789af 9040else
81ecdfbb
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
859789af
AC
9043fi
9044
81ecdfbb 9045
05cbd757
PB
9046 fi
9047 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9049set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9052if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9053 $as_echo_n "(cached) " >&6
859789af 9054else
05cbd757
PB
9055 if test -n "$RANLIB"; then
9056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9057else
c6b750e1
DJ
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
81ecdfbb 9063 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9065 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9067 break 2
9068 fi
9069done
81ecdfbb
RW
9070 done
9071IFS=$as_save_IFS
c6b750e1 9072
859789af
AC
9073fi
9074fi
c6b750e1 9075RANLIB=$ac_cv_prog_RANLIB
05cbd757 9076if test -n "$RANLIB"; then
81ecdfbb
RW
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9078$as_echo "$RANLIB" >&6; }
859789af 9079else
81ecdfbb
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081$as_echo "no" >&6; }
859789af 9082fi
c6b750e1 9083
81ecdfbb 9084
859789af 9085 fi
05cbd757
PB
9086 test -n "$ac_cv_prog_RANLIB" && break
9087done
9088
9089if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9090 RANLIB="true"
859789af
AC
9091fi
9092
9a819804
AO
9093
9094
9095if test -n "$STRIP"; then
9096 ac_cv_prog_STRIP=$STRIP
9097elif test -n "$ac_cv_prog_STRIP"; then
9098 STRIP=$ac_cv_prog_STRIP
9099fi
9100
9101if test -n "$ac_cv_prog_STRIP"; then
9102 for ncn_progname in strip; do
9103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9104set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9107if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9108 $as_echo_n "(cached) " >&6
9a819804
AO
9109else
9110 if test -n "$STRIP"; then
9111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9112else
9113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114for as_dir in $PATH
9115do
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
81ecdfbb 9118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9120 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9122 break 2
9123 fi
9124done
81ecdfbb
RW
9125 done
9126IFS=$as_save_IFS
9a819804
AO
9127
9128fi
9129fi
9130STRIP=$ac_cv_prog_STRIP
9131if test -n "$STRIP"; then
81ecdfbb
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9133$as_echo "$STRIP" >&6; }
9a819804 9134else
81ecdfbb
RW
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136$as_echo "no" >&6; }
9a819804
AO
9137fi
9138
81ecdfbb 9139
9a819804
AO
9140 done
9141fi
9142
9143for ncn_progname in strip; do
be01d343
PB
9144 if test -n "$ncn_tool_prefix"; then
9145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9146set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9149if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9150 $as_echo_n "(cached) " >&6
be01d343
PB
9151else
9152 if test -n "$STRIP"; then
9153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9154else
c6b750e1
DJ
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
81ecdfbb 9160 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9162 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9164 break 2
9165 fi
9166done
81ecdfbb
RW
9167 done
9168IFS=$as_save_IFS
c6b750e1 9169
be01d343
PB
9170fi
9171fi
c6b750e1 9172STRIP=$ac_cv_prog_STRIP
be01d343 9173if test -n "$STRIP"; then
81ecdfbb
RW
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9175$as_echo "$STRIP" >&6; }
be01d343 9176else
81ecdfbb
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
be01d343
PB
9179fi
9180
81ecdfbb 9181
be01d343
PB
9182 fi
9183 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9185set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9188if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9189 $as_echo_n "(cached) " >&6
be01d343
PB
9190else
9191 if test -n "$STRIP"; then
9192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9193else
c6b750e1
DJ
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
81ecdfbb 9199 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9201 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9203 break 2
9204 fi
9205done
81ecdfbb
RW
9206 done
9207IFS=$as_save_IFS
c6b750e1 9208
be01d343
PB
9209fi
9210fi
c6b750e1 9211STRIP=$ac_cv_prog_STRIP
be01d343 9212if test -n "$STRIP"; then
81ecdfbb
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9214$as_echo "$STRIP" >&6; }
be01d343 9215else
81ecdfbb
RW
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217$as_echo "no" >&6; }
be01d343 9218fi
c6b750e1 9219
81ecdfbb 9220
be01d343
PB
9221 fi
9222 test -n "$ac_cv_prog_STRIP" && break
9223done
9224
9225if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9226 STRIP="true"
be01d343
PB
9227fi
9228
9a819804
AO
9229
9230
9231if test -n "$WINDRES"; then
9232 ac_cv_prog_WINDRES=$WINDRES
9233elif test -n "$ac_cv_prog_WINDRES"; then
9234 WINDRES=$ac_cv_prog_WINDRES
9235fi
9236
9237if test -n "$ac_cv_prog_WINDRES"; then
9238 for ncn_progname in windres; do
9239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9240set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9243if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9244 $as_echo_n "(cached) " >&6
9a819804
AO
9245else
9246 if test -n "$WINDRES"; then
9247 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
81ecdfbb 9254 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9256 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9258 break 2
9259 fi
9260done
81ecdfbb
RW
9261 done
9262IFS=$as_save_IFS
9a819804
AO
9263
9264fi
9265fi
9266WINDRES=$ac_cv_prog_WINDRES
9267if test -n "$WINDRES"; then
81ecdfbb
RW
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9269$as_echo "$WINDRES" >&6; }
9a819804 9270else
81ecdfbb
RW
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272$as_echo "no" >&6; }
9a819804
AO
9273fi
9274
81ecdfbb 9275
9a819804
AO
9276 done
9277fi
9278
9279for ncn_progname in windres; do
05cbd757
PB
9280 if test -n "$ncn_tool_prefix"; then
9281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9282set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9285if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9286 $as_echo_n "(cached) " >&6
859789af
AC
9287else
9288 if test -n "$WINDRES"; then
9289 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9290else
c6b750e1
DJ
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
81ecdfbb 9296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9298 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9300 break 2
9301 fi
9302done
81ecdfbb
RW
9303 done
9304IFS=$as_save_IFS
c6b750e1 9305
859789af
AC
9306fi
9307fi
c6b750e1 9308WINDRES=$ac_cv_prog_WINDRES
859789af 9309if test -n "$WINDRES"; then
81ecdfbb
RW
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9311$as_echo "$WINDRES" >&6; }
859789af 9312else
81ecdfbb
RW
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314$as_echo "no" >&6; }
859789af
AC
9315fi
9316
81ecdfbb 9317
05cbd757
PB
9318 fi
9319 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9321set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9324if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9325 $as_echo_n "(cached) " >&6
859789af 9326else
05cbd757
PB
9327 if test -n "$WINDRES"; then
9328 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9329else
c6b750e1
DJ
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
81ecdfbb 9335 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9337 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9339 break 2
9340 fi
9341done
81ecdfbb
RW
9342 done
9343IFS=$as_save_IFS
c6b750e1 9344
859789af
AC
9345fi
9346fi
c6b750e1 9347WINDRES=$ac_cv_prog_WINDRES
05cbd757 9348if test -n "$WINDRES"; then
81ecdfbb
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9350$as_echo "$WINDRES" >&6; }
859789af 9351else
81ecdfbb
RW
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
859789af 9354fi
c6b750e1 9355
81ecdfbb 9356
05cbd757
PB
9357 fi
9358 test -n "$ac_cv_prog_WINDRES" && break
9359done
9360
9361if test -z "$ac_cv_prog_WINDRES" ; then
9362 set dummy windres
9363 if test $build = $host ; then
9364 WINDRES="$2"
859789af 9365 else
05cbd757 9366 WINDRES="${ncn_tool_prefix}$2"
859789af 9367 fi
859789af
AC
9368fi
9369
9a819804
AO
9370
9371
0c24b341
NC
9372if test -n "$WINDMC"; then
9373 ac_cv_prog_WINDMC=$WINDMC
9374elif test -n "$ac_cv_prog_WINDMC"; then
9375 WINDMC=$ac_cv_prog_WINDMC
9376fi
9377
9378if test -n "$ac_cv_prog_WINDMC"; then
9379 for ncn_progname in windmc; do
9380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9384if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9385 $as_echo_n "(cached) " >&6
0c24b341
NC
9386else
9387 if test -n "$WINDMC"; then
9388 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9389else
9390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391for as_dir in $PATH
9392do
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
81ecdfbb 9395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9397 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9399 break 2
9400 fi
9401done
81ecdfbb
RW
9402 done
9403IFS=$as_save_IFS
0c24b341
NC
9404
9405fi
9406fi
9407WINDMC=$ac_cv_prog_WINDMC
9408if test -n "$WINDMC"; then
81ecdfbb
RW
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9410$as_echo "$WINDMC" >&6; }
0c24b341 9411else
81ecdfbb
RW
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413$as_echo "no" >&6; }
0c24b341
NC
9414fi
9415
81ecdfbb 9416
0c24b341
NC
9417 done
9418fi
9419
9420for ncn_progname in windmc; do
9421 if test -n "$ncn_tool_prefix"; then
9422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9423set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9426if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9427 $as_echo_n "(cached) " >&6
0c24b341
NC
9428else
9429 if test -n "$WINDMC"; then
9430 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9431else
9432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $PATH
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
81ecdfbb 9437 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9439 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9441 break 2
9442 fi
9443done
81ecdfbb
RW
9444 done
9445IFS=$as_save_IFS
0c24b341
NC
9446
9447fi
9448fi
9449WINDMC=$ac_cv_prog_WINDMC
9450if test -n "$WINDMC"; then
81ecdfbb
RW
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9452$as_echo "$WINDMC" >&6; }
0c24b341 9453else
81ecdfbb
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
0c24b341
NC
9456fi
9457
81ecdfbb 9458
0c24b341
NC
9459 fi
9460 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9462set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9465if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9466 $as_echo_n "(cached) " >&6
0c24b341
NC
9467else
9468 if test -n "$WINDMC"; then
9469 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9470else
9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
81ecdfbb 9476 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9478 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9480 break 2
9481 fi
9482done
81ecdfbb
RW
9483 done
9484IFS=$as_save_IFS
0c24b341
NC
9485
9486fi
9487fi
9488WINDMC=$ac_cv_prog_WINDMC
9489if test -n "$WINDMC"; then
81ecdfbb
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9491$as_echo "$WINDMC" >&6; }
0c24b341 9492else
81ecdfbb
RW
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494$as_echo "no" >&6; }
0c24b341
NC
9495fi
9496
81ecdfbb 9497
0c24b341
NC
9498 fi
9499 test -n "$ac_cv_prog_WINDMC" && break
9500done
9501
9502if test -z "$ac_cv_prog_WINDMC" ; then
9503 set dummy windmc
9504 if test $build = $host ; then
9505 WINDMC="$2"
9506 else
9507 WINDMC="${ncn_tool_prefix}$2"
9508 fi
9509fi
9510
9511
9512
9a819804
AO
9513if test -n "$OBJCOPY"; then
9514 ac_cv_prog_OBJCOPY=$OBJCOPY
9515elif test -n "$ac_cv_prog_OBJCOPY"; then
9516 OBJCOPY=$ac_cv_prog_OBJCOPY
9517fi
9518
9519if test -n "$ac_cv_prog_OBJCOPY"; then
9520 for ncn_progname in objcopy; do
9521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9522set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9525if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9526 $as_echo_n "(cached) " >&6
9a819804
AO
9527else
9528 if test -n "$OBJCOPY"; then
9529 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9530else
9531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532for as_dir in $PATH
9533do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
81ecdfbb 9536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9538 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9540 break 2
9541 fi
9542done
81ecdfbb
RW
9543 done
9544IFS=$as_save_IFS
9a819804
AO
9545
9546fi
9547fi
9548OBJCOPY=$ac_cv_prog_OBJCOPY
9549if test -n "$OBJCOPY"; then
81ecdfbb
RW
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9551$as_echo "$OBJCOPY" >&6; }
9a819804 9552else
81ecdfbb
RW
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554$as_echo "no" >&6; }
9a819804
AO
9555fi
9556
81ecdfbb 9557
9a819804
AO
9558 done
9559fi
9560
9561for ncn_progname in objcopy; do
05cbd757
PB
9562 if test -n "$ncn_tool_prefix"; then
9563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9564set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9567if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9568 $as_echo_n "(cached) " >&6
859789af
AC
9569else
9570 if test -n "$OBJCOPY"; then
9571 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9572else
c6b750e1
DJ
9573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574for as_dir in $PATH
9575do
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
81ecdfbb 9578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9580 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9582 break 2
9583 fi
9584done
81ecdfbb
RW
9585 done
9586IFS=$as_save_IFS
c6b750e1 9587
859789af
AC
9588fi
9589fi
c6b750e1 9590OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9591if test -n "$OBJCOPY"; then
81ecdfbb
RW
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9593$as_echo "$OBJCOPY" >&6; }
859789af 9594else
81ecdfbb
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596$as_echo "no" >&6; }
859789af
AC
9597fi
9598
81ecdfbb 9599
05cbd757
PB
9600 fi
9601 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9606if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9607 $as_echo_n "(cached) " >&6
859789af 9608else
05cbd757
PB
9609 if test -n "$OBJCOPY"; then
9610 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9611else
c6b750e1
DJ
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
81ecdfbb 9617 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9619 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9621 break 2
9622 fi
9623done
81ecdfbb
RW
9624 done
9625IFS=$as_save_IFS
c6b750e1 9626
859789af
AC
9627fi
9628fi
c6b750e1 9629OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9630if test -n "$OBJCOPY"; then
81ecdfbb
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9632$as_echo "$OBJCOPY" >&6; }
859789af 9633else
81ecdfbb
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635$as_echo "no" >&6; }
859789af 9636fi
c6b750e1 9637
81ecdfbb 9638
05cbd757
PB
9639 fi
9640 test -n "$ac_cv_prog_OBJCOPY" && break
9641done
9642
9643if test -z "$ac_cv_prog_OBJCOPY" ; then
9644 set dummy objcopy
9645 if test $build = $host ; then
9646 OBJCOPY="$2"
859789af 9647 else
05cbd757 9648 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9649 fi
859789af
AC
9650fi
9651
9a819804
AO
9652
9653
9654if test -n "$OBJDUMP"; then
9655 ac_cv_prog_OBJDUMP=$OBJDUMP
9656elif test -n "$ac_cv_prog_OBJDUMP"; then
9657 OBJDUMP=$ac_cv_prog_OBJDUMP
9658fi
9659
9660if test -n "$ac_cv_prog_OBJDUMP"; then
9661 for ncn_progname in objdump; do
9662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9663set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9666if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9667 $as_echo_n "(cached) " >&6
9a819804
AO
9668else
9669 if test -n "$OBJDUMP"; then
9670 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9671else
9672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673for as_dir in $PATH
9674do
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
81ecdfbb 9677 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9679 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9681 break 2
9682 fi
9683done
81ecdfbb
RW
9684 done
9685IFS=$as_save_IFS
9a819804
AO
9686
9687fi
9688fi
9689OBJDUMP=$ac_cv_prog_OBJDUMP
9690if test -n "$OBJDUMP"; then
81ecdfbb
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9692$as_echo "$OBJDUMP" >&6; }
9a819804 9693else
81ecdfbb
RW
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9a819804
AO
9696fi
9697
81ecdfbb 9698
9a819804
AO
9699 done
9700fi
9701
9702for ncn_progname in objdump; do
05cbd757
PB
9703 if test -n "$ncn_tool_prefix"; then
9704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9705set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9708if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9709 $as_echo_n "(cached) " >&6
859789af
AC
9710else
9711 if test -n "$OBJDUMP"; then
9712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9713else
c6b750e1
DJ
9714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715for as_dir in $PATH
9716do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
81ecdfbb 9719 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9721 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9723 break 2
9724 fi
9725done
81ecdfbb
RW
9726 done
9727IFS=$as_save_IFS
c6b750e1 9728
859789af
AC
9729fi
9730fi
c6b750e1 9731OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9732if test -n "$OBJDUMP"; then
81ecdfbb
RW
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9734$as_echo "$OBJDUMP" >&6; }
859789af 9735else
81ecdfbb
RW
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737$as_echo "no" >&6; }
859789af
AC
9738fi
9739
81ecdfbb 9740
05cbd757
PB
9741 fi
9742 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9747if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9748 $as_echo_n "(cached) " >&6
859789af 9749else
05cbd757
PB
9750 if test -n "$OBJDUMP"; then
9751 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9752else
c6b750e1
DJ
9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754for as_dir in $PATH
9755do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
81ecdfbb 9758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9760 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9762 break 2
9763 fi
9764done
81ecdfbb
RW
9765 done
9766IFS=$as_save_IFS
c6b750e1 9767
859789af
AC
9768fi
9769fi
c6b750e1 9770OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9771if test -n "$OBJDUMP"; then
81ecdfbb
RW
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9773$as_echo "$OBJDUMP" >&6; }
859789af 9774else
81ecdfbb
RW
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776$as_echo "no" >&6; }
859789af 9777fi
c6b750e1 9778
81ecdfbb 9779
05cbd757
PB
9780 fi
9781 test -n "$ac_cv_prog_OBJDUMP" && break
9782done
9783
9784if test -z "$ac_cv_prog_OBJDUMP" ; then
9785 set dummy objdump
9786 if test $build = $host ; then
9787 OBJDUMP="$2"
859789af 9788 else
05cbd757 9789 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9790 fi
859789af
AC
9791fi
9792
a0da8069
NN
9793
9794
b121d7d4
DD
9795if test -n "$READELF"; then
9796 ac_cv_prog_READELF=$READELF
9797elif test -n "$ac_cv_prog_READELF"; then
9798 READELF=$ac_cv_prog_READELF
9799fi
9800
9801if test -n "$ac_cv_prog_READELF"; then
9802 for ncn_progname in readelf; do
9803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9804set dummy ${ncn_progname}; ac_word=$2
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9807if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9808 $as_echo_n "(cached) " >&6
9809else
9810 if test -n "$READELF"; then
9811 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9812else
9813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814for as_dir in $PATH
9815do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9820 ac_cv_prog_READELF="${ncn_progname}"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824done
9825 done
9826IFS=$as_save_IFS
9827
9828fi
9829fi
9830READELF=$ac_cv_prog_READELF
9831if test -n "$READELF"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9833$as_echo "$READELF" >&6; }
9834else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
9837fi
9838
9839
9840 done
9841fi
9842
9843for ncn_progname in readelf; do
9844 if test -n "$ncn_tool_prefix"; then
9845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9846set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9849if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9850 $as_echo_n "(cached) " >&6
9851else
9852 if test -n "$READELF"; then
9853 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9862 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867 done
9868IFS=$as_save_IFS
9869
9870fi
9871fi
9872READELF=$ac_cv_prog_READELF
9873if test -n "$READELF"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9875$as_echo "$READELF" >&6; }
9876else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878$as_echo "no" >&6; }
9879fi
9880
9881
9882 fi
9883 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9885set dummy ${ncn_progname}; ac_word=$2
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9888if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9889 $as_echo_n "(cached) " >&6
9890else
9891 if test -n "$READELF"; then
9892 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9893else
9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9901 ac_cv_prog_READELF="${ncn_progname}"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905done
9906 done
9907IFS=$as_save_IFS
9908
9909fi
9910fi
9911READELF=$ac_cv_prog_READELF
9912if test -n "$READELF"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9914$as_echo "$READELF" >&6; }
9915else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917$as_echo "no" >&6; }
9918fi
9919
9920
9921 fi
9922 test -n "$ac_cv_prog_READELF" && break
9923done
9924
9925if test -z "$ac_cv_prog_READELF" ; then
9926 set dummy readelf
9927 if test $build = $host ; then
9928 READELF="$2"
9929 else
9930 READELF="${ncn_tool_prefix}$2"
9931 fi
9932fi
9933
9934
9935
a0da8069
NN
9936
9937
9938
be01d343 9939# Target tools.
c6b750e1 9940
81ecdfbb
RW
9941# Check whether --with-build-time-tools was given.
9942if test "${with_build_time_tools+set}" = set; then :
9943 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9944 x/*) ;;
9945 *)
9946 with_build_time_tools=
81ecdfbb
RW
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9948$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9949 ;;
9950 esac
859789af 9951else
2429c060 9952 with_build_time_tools=
81ecdfbb
RW
9953fi
9954
859789af 9955
9a819804
AO
9956
9957
9958if test -n "$CC_FOR_TARGET"; then
9959 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9960elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9962fi
9963
9964if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9965 for ncn_progname in cc gcc; do
9966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9967set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9970if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 9971 $as_echo_n "(cached) " >&6
9a819804
AO
9972else
9973 if test -n "$CC_FOR_TARGET"; then
9974 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9975else
9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
81ecdfbb 9981 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9983 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9985 break 2
9986 fi
9987done
81ecdfbb
RW
9988 done
9989IFS=$as_save_IFS
9a819804
AO
9990
9991fi
9992fi
9993CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9994if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9996$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9997else
81ecdfbb
RW
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999$as_echo "no" >&6; }
9a819804
AO
10000fi
10001
81ecdfbb 10002
9a819804
AO
10003 done
10004fi
10005
10006if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10007 for ncn_progname in cc gcc; do
81ecdfbb
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10009$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10010 if test -x $with_build_time_tools/${ncn_progname}; then
10011 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10013$as_echo "yes" >&6; }
cac3d6c4 10014 break
2429c060 10015 else
81ecdfbb
RW
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
cac3d6c4
CM
10018 fi
10019 done
55db4b87
PB
10020fi
10021
2429c060
PB
10022if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10023 for ncn_progname in cc gcc; do
10024 if test -n "$ncn_target_tool_prefix"; then
10025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10026set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10029if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10030 $as_echo_n "(cached) " >&6
55db4b87
PB
10031else
10032 if test -n "$CC_FOR_TARGET"; then
10033 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10034else
c6b750e1
DJ
10035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036for as_dir in $PATH
10037do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
81ecdfbb 10040 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10042 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10044 break 2
10045 fi
10046done
81ecdfbb
RW
10047 done
10048IFS=$as_save_IFS
c6b750e1 10049
55db4b87
PB
10050fi
10051fi
c6b750e1 10052CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10053if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10055$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10056else
81ecdfbb
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058$as_echo "no" >&6; }
55db4b87
PB
10059fi
10060
81ecdfbb 10061
2429c060
PB
10062 fi
10063 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10065set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10068if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10069 $as_echo_n "(cached) " >&6
55db4b87 10070else
05cbd757
PB
10071 if test -n "$CC_FOR_TARGET"; then
10072 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10073else
c6b750e1
DJ
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
81ecdfbb 10079 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10081 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10083 break 2
10084 fi
10085done
81ecdfbb
RW
10086 done
10087IFS=$as_save_IFS
c6b750e1 10088
55db4b87
PB
10089fi
10090fi
c6b750e1 10091CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10092if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10094$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10095else
81ecdfbb
RW
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
55db4b87 10098fi
c6b750e1 10099
81ecdfbb 10100
2429c060
PB
10101 fi
10102 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10103 done
10104fi
c6b750e1 10105
05cbd757
PB
10106if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10107 set dummy cc gcc
10108 if test $build = $target ; then
10109 CC_FOR_TARGET="$2"
55db4b87 10110 else
05cbd757 10111 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10112 fi
d3f5afc4
MS
10113else
10114 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10115fi
10116
9a819804
AO
10117
10118
10119if test -n "$CXX_FOR_TARGET"; then
10120 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10121elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10123fi
10124
10125if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10126 for ncn_progname in c++ g++ cxx gxx; do
10127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10128set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10131if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10132 $as_echo_n "(cached) " >&6
9a819804
AO
10133else
10134 if test -n "$CXX_FOR_TARGET"; then
10135 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10136else
10137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in $PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
81ecdfbb 10142 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10144 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10146 break 2
10147 fi
10148done
81ecdfbb
RW
10149 done
10150IFS=$as_save_IFS
9a819804
AO
10151
10152fi
10153fi
10154CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10155if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10157$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10158else
81ecdfbb
RW
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160$as_echo "no" >&6; }
9a819804
AO
10161fi
10162
81ecdfbb 10163
9a819804
AO
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10168 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10174$as_echo "yes" >&6; }
2429c060
PB
10175 break
10176 else
81ecdfbb
RW
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178$as_echo "no" >&6; }
2429c060
PB
10179 fi
10180 done
10181fi
10182
10183if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 for ncn_progname in c++ g++ cxx gxx; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10190if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10191 $as_echo_n "(cached) " >&6
55db4b87
PB
10192else
10193 if test -n "$CXX_FOR_TARGET"; then
10194 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10195else
c6b750e1
DJ
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
81ecdfbb 10201 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10203 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10205 break 2
10206 fi
10207done
81ecdfbb
RW
10208 done
10209IFS=$as_save_IFS
c6b750e1 10210
55db4b87
PB
10211fi
10212fi
c6b750e1 10213CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10214if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10216$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10217else
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219$as_echo "no" >&6; }
55db4b87
PB
10220fi
10221
81ecdfbb 10222
2429c060
PB
10223 fi
10224 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10226set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10229if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10230 $as_echo_n "(cached) " >&6
55db4b87 10231else
05cbd757
PB
10232 if test -n "$CXX_FOR_TARGET"; then
10233 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10234else
c6b750e1
DJ
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
81ecdfbb 10240 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10242 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10244 break 2
10245 fi
10246done
81ecdfbb
RW
10247 done
10248IFS=$as_save_IFS
c6b750e1 10249
55db4b87
PB
10250fi
10251fi
c6b750e1 10252CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10253if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10255$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10256else
81ecdfbb
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
55db4b87 10259fi
c6b750e1 10260
81ecdfbb 10261
2429c060
PB
10262 fi
10263 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10264 done
10265fi
c6b750e1 10266
05cbd757
PB
10267if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10268 set dummy c++ g++ cxx gxx
10269 if test $build = $target ; then
10270 CXX_FOR_TARGET="$2"
55db4b87 10271 else
05cbd757 10272 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10273 fi
d3f5afc4
MS
10274else
10275 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10276fi
10277
9a819804
AO
10278
10279
10280if test -n "$GCC_FOR_TARGET"; then
10281 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10282elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10284fi
10285
10286if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10287 for ncn_progname in gcc; do
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10292if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10293 $as_echo_n "(cached) " >&6
9a819804
AO
10294else
10295 if test -n "$GCC_FOR_TARGET"; then
10296 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10297else
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
81ecdfbb 10303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10305 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10307 break 2
10308 fi
10309done
81ecdfbb
RW
10310 done
10311IFS=$as_save_IFS
9a819804
AO
10312
10313fi
10314fi
10315GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10316if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10318$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10319else
81ecdfbb
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
9a819804
AO
10322fi
10323
81ecdfbb 10324
9a819804
AO
10325 done
10326fi
10327
10328if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10329 for ncn_progname in gcc; do
81ecdfbb
RW
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10331$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10332 if test -x $with_build_time_tools/${ncn_progname}; then
10333 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10335$as_echo "yes" >&6; }
2429c060
PB
10336 break
10337 else
81ecdfbb
RW
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
2429c060
PB
10340 fi
10341 done
10342fi
10343
10344if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 for ncn_progname in gcc; do
10346 if test -n "$ncn_target_tool_prefix"; then
10347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10348set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10351if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10352 $as_echo_n "(cached) " >&6
859789af 10353else
2429c060
PB
10354 if test -n "$GCC_FOR_TARGET"; then
10355 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10356else
c6b750e1
DJ
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
81ecdfbb 10362 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10364 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10366 break 2
10367 fi
10368done
81ecdfbb
RW
10369 done
10370IFS=$as_save_IFS
c6b750e1 10371
55db4b87
PB
10372fi
10373fi
c6b750e1 10374GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10375if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10377$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10378else
81ecdfbb
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380$as_echo "no" >&6; }
55db4b87
PB
10381fi
10382
81ecdfbb 10383
2429c060
PB
10384 fi
10385 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10387set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10390if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10391 $as_echo_n "(cached) " >&6
55db4b87 10392else
05cbd757
PB
10393 if test -n "$GCC_FOR_TARGET"; then
10394 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10395else
c6b750e1
DJ
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
81ecdfbb 10401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10403 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10405 break 2
10406 fi
10407done
81ecdfbb
RW
10408 done
10409IFS=$as_save_IFS
c6b750e1 10410
55db4b87
PB
10411fi
10412fi
c6b750e1 10413GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10414if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10416$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10417else
81ecdfbb
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
55db4b87 10420fi
c6b750e1 10421
81ecdfbb 10422
2429c060
PB
10423 fi
10424 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10425 done
10426fi
c6b750e1 10427
05cbd757
PB
10428if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10429 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10430else
10431 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10432fi
10433
9a819804
AO
10434
10435
9a819804
AO
10436if test -n "$GFORTRAN_FOR_TARGET"; then
10437 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10438elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10440fi
10441
9a819804
AO
10442if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10443 for ncn_progname in gfortran; do
10444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10445set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10448if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10449 $as_echo_n "(cached) " >&6
55db4b87 10450else
9a819804
AO
10451 if test -n "$GFORTRAN_FOR_TARGET"; then
10452 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10453else
c6b750e1
DJ
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
81ecdfbb 10459 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10461 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10463 break 2
10464 fi
10465done
81ecdfbb
RW
10466 done
10467IFS=$as_save_IFS
c6b750e1 10468
55db4b87
PB
10469fi
10470fi
9a819804
AO
10471GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10472if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10474$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10475else
81ecdfbb
RW
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477$as_echo "no" >&6; }
55db4b87 10478fi
c6b750e1 10479
81ecdfbb 10480
2429c060
PB
10481 done
10482fi
c6b750e1 10483
9a819804 10484if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10485 for ncn_progname in gfortran; do
81ecdfbb
RW
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10487$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10488 if test -x $with_build_time_tools/${ncn_progname}; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491$as_echo "yes" >&6; }
2429c060
PB
10492 break
10493 else
81ecdfbb
RW
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495$as_echo "no" >&6; }
2429c060
PB
10496 fi
10497 done
10498fi
10499
10500if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10501 for ncn_progname in gfortran; do
10502 if test -n "$ncn_target_tool_prefix"; then
10503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10504set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10507if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10508 $as_echo_n "(cached) " >&6
55db4b87
PB
10509else
10510 if test -n "$GFORTRAN_FOR_TARGET"; then
10511 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10512else
c6b750e1
DJ
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
81ecdfbb 10518 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10520 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10522 break 2
10523 fi
10524done
81ecdfbb
RW
10525 done
10526IFS=$as_save_IFS
c6b750e1 10527
55db4b87
PB
10528fi
10529fi
c6b750e1 10530GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10531if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10533$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10534else
81ecdfbb
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
55db4b87
PB
10537fi
10538
81ecdfbb 10539
2429c060
PB
10540 fi
10541 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10543set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10546if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10547 $as_echo_n "(cached) " >&6
55db4b87 10548else
05cbd757 10549 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10550 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
81ecdfbb 10557 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10559 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10561 break 2
10562 fi
10563done
81ecdfbb
RW
10564 done
10565IFS=$as_save_IFS
c6b750e1 10566
55db4b87
PB
10567fi
10568fi
c6b750e1 10569GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10570if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10572$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10573else
81ecdfbb
RW
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
55db4b87 10576fi
c6b750e1 10577
81ecdfbb 10578
2429c060
PB
10579 fi
10580 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10581 done
10582fi
c6b750e1 10583
05cbd757
PB
10584if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10585 set dummy gfortran
10586 if test $build = $target ; then
10587 GFORTRAN_FOR_TARGET="$2"
55db4b87 10588 else
05cbd757 10589 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10590 fi
d3f5afc4
MS
10591else
10592 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10593fi
10594
2429c060
PB
10595
10596
e552509b
ILT
10597if test -n "$GOC_FOR_TARGET"; then
10598 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10599elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10600 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10601fi
10602
10603if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10604 for ncn_progname in gccgo; do
10605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10606set dummy ${ncn_progname}; ac_word=$2
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10609if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10610 $as_echo_n "(cached) " >&6
10611else
10612 if test -n "$GOC_FOR_TARGET"; then
10613 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10614else
10615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616for as_dir in $PATH
10617do
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10622 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10625 fi
10626done
10627 done
10628IFS=$as_save_IFS
10629
10630fi
10631fi
10632GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10633if test -n "$GOC_FOR_TARGET"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10635$as_echo "$GOC_FOR_TARGET" >&6; }
10636else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638$as_echo "no" >&6; }
10639fi
10640
10641
10642 done
10643fi
10644
10645if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10646 for ncn_progname in gccgo; do
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10648$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10649 if test -x $with_build_time_tools/${ncn_progname}; then
10650 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652$as_echo "yes" >&6; }
10653 break
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656$as_echo "no" >&6; }
10657 fi
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10662 for ncn_progname in gccgo; do
10663 if test -n "$ncn_target_tool_prefix"; then
10664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10665set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10668if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10669 $as_echo_n "(cached) " >&6
10670else
10671 if test -n "$GOC_FOR_TARGET"; then
10672 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10673else
10674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675for as_dir in $PATH
10676do
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10681 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10684 fi
10685done
10686 done
10687IFS=$as_save_IFS
10688
10689fi
10690fi
10691GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10692if test -n "$GOC_FOR_TARGET"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10694$as_echo "$GOC_FOR_TARGET" >&6; }
10695else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697$as_echo "no" >&6; }
10698fi
10699
10700
10701 fi
10702 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10704set dummy ${ncn_progname}; ac_word=$2
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10707if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10708 $as_echo_n "(cached) " >&6
10709else
10710 if test -n "$GOC_FOR_TARGET"; then
10711 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10712else
10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714for as_dir in $PATH
10715do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10720 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724done
10725 done
10726IFS=$as_save_IFS
10727
10728fi
10729fi
10730GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10731if test -n "$GOC_FOR_TARGET"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10733$as_echo "$GOC_FOR_TARGET" >&6; }
10734else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736$as_echo "no" >&6; }
10737fi
10738
10739
10740 fi
10741 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10742 done
10743fi
10744
10745if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10746 set dummy gccgo
10747 if test $build = $target ; then
10748 GOC_FOR_TARGET="$2"
10749 else
10750 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10751 fi
10752else
10753 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10754fi
10755
10756
10757
2429c060
PB
10758cat > conftest.c << \EOF
10759#ifdef __GNUC__
10760 gcc_yay;
10761#endif
10762EOF
10763if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10764 have_gcc_for_target=yes
859789af 10765else
2429c060
PB
10766 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10767 have_gcc_for_target=no
859789af 10768fi
2429c060
PB
10769rm conftest.c
10770
10771
10772
859789af 10773
2429c060
PB
10774if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10775 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10777$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10778 if test -x $with_build_time_tools/ar; then
10779 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10780 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10782$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10783 else
81ecdfbb
RW
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785$as_echo "no" >&6; }
3a35eeb3 10786 fi
2429c060
PB
10787 elif test $build != $host && test $have_gcc_for_target = yes; then
10788 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10789 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10790 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10791 fi
2429c060 10792fi
c6b750e1 10793if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10794 # Extract the first word of "ar", so it can be a program name with args.
10795set dummy ar; ac_word=$2
81ecdfbb
RW
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10798if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 10799 $as_echo_n "(cached) " >&6
859789af 10800else
c6b750e1
DJ
10801 case $AR_FOR_TARGET in
10802 [\\/]* | ?:[\\/]*)
2429c060
PB
10803 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10804 ;;
2429c060 10805 *)
c6b750e1
DJ
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $gcc_cv_tool_dirs
10808do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
81ecdfbb 10811 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10813 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10815 break 2
10816 fi
10817done
81ecdfbb
RW
10818 done
10819IFS=$as_save_IFS
c6b750e1 10820
2429c060
PB
10821 ;;
10822esac
859789af 10823fi
c6b750e1 10824AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10825if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10827$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10828else
81ecdfbb
RW
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830$as_echo "no" >&6; }
859789af 10831fi
05cbd757 10832
81ecdfbb 10833
2429c060
PB
10834fi
10835if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10836
10837
10838if test -n "$AR_FOR_TARGET"; then
10839 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10840elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10842fi
10843
10844if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10845 for ncn_progname in ar; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10850if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10851 $as_echo_n "(cached) " >&6
9a819804
AO
10852else
10853 if test -n "$AR_FOR_TARGET"; then
10854 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
81ecdfbb 10861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10863 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10865 break 2
10866 fi
10867done
81ecdfbb
RW
10868 done
10869IFS=$as_save_IFS
9a819804
AO
10870
10871fi
10872fi
10873AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10874if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10876$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10877else
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
9a819804
AO
10880fi
10881
81ecdfbb 10882
9a819804
AO
10883 done
10884fi
10885
10886if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10887 for ncn_progname in ar; do
81ecdfbb
RW
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893$as_echo "yes" >&6; }
2429c060
PB
10894 break
10895 else
81ecdfbb
RW
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
2429c060
PB
10898 fi
10899 done
859789af
AC
10900fi
10901
2429c060
PB
10902if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10903 for ncn_progname in ar; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10909if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10910 $as_echo_n "(cached) " >&6
7e0f7140 10911else
2429c060
PB
10912 if test -n "$AR_FOR_TARGET"; then
10913 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10914else
c6b750e1
DJ
10915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
81ecdfbb 10920 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10922 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10924 break 2
10925 fi
10926done
81ecdfbb
RW
10927 done
10928IFS=$as_save_IFS
c6b750e1 10929
7e0f7140
GK
10930fi
10931fi
c6b750e1 10932AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10933if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10935$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10936else
81ecdfbb
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938$as_echo "no" >&6; }
7e0f7140
GK
10939fi
10940
81ecdfbb 10941
2429c060
PB
10942 fi
10943 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10945set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10948if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10949 $as_echo_n "(cached) " >&6
7e0f7140 10950else
2429c060
PB
10951 if test -n "$AR_FOR_TARGET"; then
10952 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10953else
c6b750e1
DJ
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
81ecdfbb 10959 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10961 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10963 break 2
10964 fi
10965done
81ecdfbb
RW
10966 done
10967IFS=$as_save_IFS
c6b750e1 10968
7e0f7140
GK
10969fi
10970fi
c6b750e1 10971AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10972if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10974$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10975else
81ecdfbb
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977$as_echo "no" >&6; }
7e0f7140 10978fi
c6b750e1 10979
81ecdfbb 10980
2429c060
PB
10981 fi
10982 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10983 done
10984fi
c6b750e1 10985
2429c060
PB
10986if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10987 set dummy ar
7e0f7140 10988 if test $build = $target ; then
2429c060 10989 AR_FOR_TARGET="$2"
7e0f7140 10990 else
2429c060 10991 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10992 fi
d3f5afc4
MS
10993else
10994 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10995fi
10996
3a35eeb3
PB
10997else
10998 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10999fi
11000
11001
11002
11003
11004if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11005 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11007$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11008 if test -x $with_build_time_tools/as; then
11009 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11010 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11012$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11013 else
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
3a35eeb3 11016 fi
2429c060
PB
11017 elif test $build != $host && test $have_gcc_for_target = yes; then
11018 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11019 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11020 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11021 fi
11022fi
c6b750e1 11023if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11024 # Extract the first word of "as", so it can be a program name with args.
11025set dummy as; ac_word=$2
81ecdfbb
RW
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11028if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11029 $as_echo_n "(cached) " >&6
2429c060 11030else
c6b750e1
DJ
11031 case $AS_FOR_TARGET in
11032 [\\/]* | ?:[\\/]*)
2429c060
PB
11033 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11034 ;;
2429c060 11035 *)
c6b750e1
DJ
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $gcc_cv_tool_dirs
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
81ecdfbb 11041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11043 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11045 break 2
11046 fi
11047done
81ecdfbb
RW
11048 done
11049IFS=$as_save_IFS
c6b750e1 11050
2429c060
PB
11051 ;;
11052esac
11053fi
c6b750e1 11054AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11055if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11057$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11058else
81ecdfbb
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
2429c060
PB
11061fi
11062
81ecdfbb 11063
2429c060
PB
11064fi
11065if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11066
11067
11068if test -n "$AS_FOR_TARGET"; then
11069 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11070elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11071 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11072fi
11073
11074if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11075 for ncn_progname in as; do
11076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11077set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11080if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11081 $as_echo_n "(cached) " >&6
9a819804
AO
11082else
11083 if test -n "$AS_FOR_TARGET"; then
11084 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11085else
11086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
81ecdfbb 11091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11093 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11095 break 2
11096 fi
11097done
81ecdfbb
RW
11098 done
11099IFS=$as_save_IFS
9a819804
AO
11100
11101fi
11102fi
11103AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11104if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11106$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11107else
81ecdfbb
RW
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
9a819804
AO
11110fi
11111
81ecdfbb 11112
9a819804
AO
11113 done
11114fi
11115
11116if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11117 for ncn_progname in as; do
81ecdfbb
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11119$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11120 if test -x $with_build_time_tools/${ncn_progname}; then
11121 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11123$as_echo "yes" >&6; }
2429c060
PB
11124 break
11125 else
81ecdfbb
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
2429c060
PB
11128 fi
11129 done
11130fi
11131
11132if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11133 for ncn_progname in as; do
11134 if test -n "$ncn_target_tool_prefix"; then
11135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11136set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11139if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11140 $as_echo_n "(cached) " >&6
2429c060
PB
11141else
11142 if test -n "$AS_FOR_TARGET"; then
11143 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11144else
c6b750e1
DJ
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
81ecdfbb 11150 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11152 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11154 break 2
11155 fi
11156done
81ecdfbb
RW
11157 done
11158IFS=$as_save_IFS
c6b750e1 11159
2429c060
PB
11160fi
11161fi
c6b750e1 11162AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11163if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11165$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11166else
81ecdfbb
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
2429c060
PB
11169fi
11170
81ecdfbb 11171
2429c060
PB
11172 fi
11173 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11175set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11178if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11179 $as_echo_n "(cached) " >&6
2429c060
PB
11180else
11181 if test -n "$AS_FOR_TARGET"; then
11182 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11183else
c6b750e1
DJ
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
81ecdfbb 11189 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11191 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11193 break 2
11194 fi
11195done
81ecdfbb
RW
11196 done
11197IFS=$as_save_IFS
c6b750e1 11198
2429c060
PB
11199fi
11200fi
c6b750e1 11201AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11202if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11204$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11205else
81ecdfbb
RW
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
2429c060 11208fi
c6b750e1 11209
81ecdfbb 11210
2429c060
PB
11211 fi
11212 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11213 done
11214fi
c6b750e1 11215
2429c060
PB
11216if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11217 set dummy as
11218 if test $build = $target ; then
11219 AS_FOR_TARGET="$2"
11220 else
11221 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11222 fi
d3f5afc4
MS
11223else
11224 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11225fi
11226
3a35eeb3
PB
11227else
11228 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11229fi
11230
11231
11232
11233
11234if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11235 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11237$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11238 if test -x $with_build_time_tools/dlltool; then
11239 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11240 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11242$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11243 else
81ecdfbb
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245$as_echo "no" >&6; }
3a35eeb3 11246 fi
2429c060
PB
11247 elif test $build != $host && test $have_gcc_for_target = yes; then
11248 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11249 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11250 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11251 fi
11252fi
c6b750e1 11253if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11254 # Extract the first word of "dlltool", so it can be a program name with args.
11255set dummy dlltool; ac_word=$2
81ecdfbb
RW
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11258if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11259 $as_echo_n "(cached) " >&6
2429c060 11260else
c6b750e1
DJ
11261 case $DLLTOOL_FOR_TARGET in
11262 [\\/]* | ?:[\\/]*)
2429c060
PB
11263 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11264 ;;
2429c060 11265 *)
c6b750e1
DJ
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $gcc_cv_tool_dirs
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
81ecdfbb 11271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11273 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11275 break 2
11276 fi
11277done
81ecdfbb
RW
11278 done
11279IFS=$as_save_IFS
c6b750e1 11280
2429c060
PB
11281 ;;
11282esac
11283fi
c6b750e1 11284DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11285if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11287$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11288else
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
2429c060
PB
11291fi
11292
81ecdfbb 11293
2429c060
PB
11294fi
11295if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11296
11297
11298if test -n "$DLLTOOL_FOR_TARGET"; then
11299 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11300elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11301 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11302fi
11303
11304if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11305 for ncn_progname in dlltool; do
11306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11307set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11310if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11311 $as_echo_n "(cached) " >&6
9a819804
AO
11312else
11313 if test -n "$DLLTOOL_FOR_TARGET"; then
11314 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11315else
11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
81ecdfbb 11321 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11323 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11325 break 2
11326 fi
11327done
81ecdfbb
RW
11328 done
11329IFS=$as_save_IFS
9a819804
AO
11330
11331fi
11332fi
11333DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11334if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11336$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11337else
81ecdfbb
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
9a819804
AO
11340fi
11341
81ecdfbb 11342
9a819804
AO
11343 done
11344fi
11345
11346if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11347 for ncn_progname in dlltool; do
81ecdfbb
RW
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11349$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11350 if test -x $with_build_time_tools/${ncn_progname}; then
11351 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11353$as_echo "yes" >&6; }
2429c060
PB
11354 break
11355 else
81ecdfbb
RW
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357$as_echo "no" >&6; }
2429c060
PB
11358 fi
11359 done
11360fi
11361
11362if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11363 for ncn_progname in dlltool; do
11364 if test -n "$ncn_target_tool_prefix"; then
11365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11366set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11369if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11370 $as_echo_n "(cached) " >&6
2429c060
PB
11371else
11372 if test -n "$DLLTOOL_FOR_TARGET"; then
11373 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11374else
c6b750e1
DJ
11375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376for as_dir in $PATH
11377do
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
81ecdfbb 11380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11382 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11384 break 2
11385 fi
11386done
81ecdfbb
RW
11387 done
11388IFS=$as_save_IFS
c6b750e1 11389
2429c060
PB
11390fi
11391fi
c6b750e1 11392DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11393if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11395$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11396else
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398$as_echo "no" >&6; }
2429c060
PB
11399fi
11400
81ecdfbb 11401
2429c060
PB
11402 fi
11403 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11405set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11408if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11409 $as_echo_n "(cached) " >&6
2429c060
PB
11410else
11411 if test -n "$DLLTOOL_FOR_TARGET"; then
11412 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11413else
c6b750e1
DJ
11414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415for as_dir in $PATH
11416do
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
81ecdfbb 11419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11421 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11423 break 2
11424 fi
11425done
81ecdfbb
RW
11426 done
11427IFS=$as_save_IFS
c6b750e1 11428
2429c060
PB
11429fi
11430fi
c6b750e1 11431DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11432if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11434$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11435else
81ecdfbb
RW
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
2429c060 11438fi
c6b750e1 11439
81ecdfbb 11440
2429c060
PB
11441 fi
11442 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11443 done
11444fi
c6b750e1 11445
2429c060
PB
11446if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11447 set dummy dlltool
11448 if test $build = $target ; then
11449 DLLTOOL_FOR_TARGET="$2"
11450 else
11451 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11452 fi
d3f5afc4
MS
11453else
11454 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11455fi
11456
3a35eeb3
PB
11457else
11458 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11459fi
11460
11461
11462
11463
11464if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11465 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11467$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11468 if test -x $with_build_time_tools/ld; then
11469 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11470 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11472$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11473 else
81ecdfbb
RW
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475$as_echo "no" >&6; }
3a35eeb3 11476 fi
2429c060
PB
11477 elif test $build != $host && test $have_gcc_for_target = yes; then
11478 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11479 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11480 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11481 fi
11482fi
c6b750e1 11483if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11484 # Extract the first word of "ld", so it can be a program name with args.
11485set dummy ld; ac_word=$2
81ecdfbb
RW
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11488if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11489 $as_echo_n "(cached) " >&6
2429c060 11490else
c6b750e1
DJ
11491 case $LD_FOR_TARGET in
11492 [\\/]* | ?:[\\/]*)
2429c060
PB
11493 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11494 ;;
2429c060 11495 *)
c6b750e1
DJ
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $gcc_cv_tool_dirs
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
81ecdfbb 11501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11503 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11505 break 2
11506 fi
11507done
81ecdfbb
RW
11508 done
11509IFS=$as_save_IFS
c6b750e1 11510
2429c060
PB
11511 ;;
11512esac
11513fi
c6b750e1 11514LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11515if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11517$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11518else
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
2429c060
PB
11521fi
11522
81ecdfbb 11523
2429c060
PB
11524fi
11525if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11526
11527
11528if test -n "$LD_FOR_TARGET"; then
11529 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11530elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11531 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11532fi
11533
11534if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11535 for ncn_progname in ld; do
11536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11537set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11540if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11541 $as_echo_n "(cached) " >&6
9a819804
AO
11542else
11543 if test -n "$LD_FOR_TARGET"; then
11544 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11545else
11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
81ecdfbb 11551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11553 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11555 break 2
11556 fi
11557done
81ecdfbb
RW
11558 done
11559IFS=$as_save_IFS
9a819804
AO
11560
11561fi
11562fi
11563LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11564if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11566$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11567else
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
9a819804
AO
11570fi
11571
81ecdfbb 11572
9a819804
AO
11573 done
11574fi
11575
11576if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11577 for ncn_progname in ld; do
81ecdfbb
RW
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11579$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11580 if test -x $with_build_time_tools/${ncn_progname}; then
11581 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11583$as_echo "yes" >&6; }
2429c060
PB
11584 break
11585 else
81ecdfbb
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
2429c060
PB
11588 fi
11589 done
11590fi
11591
11592if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11593 for ncn_progname in ld; do
11594 if test -n "$ncn_target_tool_prefix"; then
11595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11596set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11599if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11600 $as_echo_n "(cached) " >&6
2429c060
PB
11601else
11602 if test -n "$LD_FOR_TARGET"; then
11603 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11604else
c6b750e1
DJ
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
81ecdfbb 11610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11612 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11614 break 2
11615 fi
11616done
81ecdfbb
RW
11617 done
11618IFS=$as_save_IFS
c6b750e1 11619
2429c060
PB
11620fi
11621fi
c6b750e1 11622LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11623if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11625$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11626else
81ecdfbb
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
2429c060
PB
11629fi
11630
81ecdfbb 11631
2429c060
PB
11632 fi
11633 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11638if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11639 $as_echo_n "(cached) " >&6
2429c060
PB
11640else
11641 if test -n "$LD_FOR_TARGET"; then
11642 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11643else
c6b750e1
DJ
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
81ecdfbb 11649 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11651 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11653 break 2
11654 fi
11655done
81ecdfbb
RW
11656 done
11657IFS=$as_save_IFS
c6b750e1 11658
2429c060
PB
11659fi
11660fi
c6b750e1 11661LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11662if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11664$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11665else
81ecdfbb
RW
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
2429c060 11668fi
c6b750e1 11669
81ecdfbb 11670
2429c060
PB
11671 fi
11672 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11673 done
11674fi
c6b750e1 11675
2429c060
PB
11676if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11677 set dummy ld
11678 if test $build = $target ; then
11679 LD_FOR_TARGET="$2"
11680 else
11681 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11682 fi
d3f5afc4
MS
11683else
11684 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11685fi
11686
3a35eeb3
PB
11687else
11688 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11689fi
11690
11691
11692
11693
11694if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11695 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11697$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11698 if test -x $with_build_time_tools/lipo; then
11699 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11700 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11702$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11703 else
81ecdfbb
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705$as_echo "no" >&6; }
3a35eeb3 11706 fi
2429c060
PB
11707 elif test $build != $host && test $have_gcc_for_target = yes; then
11708 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11709 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11710 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11711 fi
11712fi
9a819804
AO
11713if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11714 # Extract the first word of "lipo", so it can be a program name with args.
11715set dummy lipo; ac_word=$2
81ecdfbb
RW
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11718if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11719 $as_echo_n "(cached) " >&6
9a819804
AO
11720else
11721 case $LIPO_FOR_TARGET in
11722 [\\/]* | ?:[\\/]*)
11723 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11724 ;;
11725 *)
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $gcc_cv_tool_dirs
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
81ecdfbb 11731 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11733 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11735 break 2
11736 fi
11737done
81ecdfbb
RW
11738 done
11739IFS=$as_save_IFS
9a819804
AO
11740
11741 ;;
11742esac
11743fi
11744LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11745if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11747$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11748else
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
9a819804
AO
11751fi
11752
81ecdfbb 11753
9a819804
AO
11754fi
11755if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11756
11757
11758if test -n "$LIPO_FOR_TARGET"; then
11759 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11760elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11761 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11762fi
11763
11764if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11765 for ncn_progname in lipo; do
11766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11770if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11771 $as_echo_n "(cached) " >&6
2429c060 11772else
9a819804
AO
11773 if test -n "$LIPO_FOR_TARGET"; then
11774 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
c6b750e1
DJ
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
81ecdfbb 11781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11783 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11785 break 2
11786 fi
11787done
81ecdfbb
RW
11788 done
11789IFS=$as_save_IFS
c6b750e1 11790
2429c060 11791fi
9a819804
AO
11792fi
11793LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11794if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11796$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11797else
81ecdfbb
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
2429c060
PB
11800fi
11801
81ecdfbb 11802
9a819804 11803 done
2429c060 11804fi
9a819804
AO
11805
11806if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11807 for ncn_progname in lipo; do
81ecdfbb
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11809$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11810 if test -x $with_build_time_tools/${ncn_progname}; then
11811 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11813$as_echo "yes" >&6; }
2429c060
PB
11814 break
11815 else
81ecdfbb
RW
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
2429c060
PB
11818 fi
11819 done
11820fi
11821
11822if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11823 for ncn_progname in lipo; do
11824 if test -n "$ncn_target_tool_prefix"; then
11825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11826set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11829if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11830 $as_echo_n "(cached) " >&6
2429c060
PB
11831else
11832 if test -n "$LIPO_FOR_TARGET"; then
11833 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11834else
c6b750e1
DJ
11835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836for as_dir in $PATH
11837do
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
81ecdfbb 11840 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11842 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11844 break 2
11845 fi
11846done
81ecdfbb
RW
11847 done
11848IFS=$as_save_IFS
c6b750e1 11849
2429c060
PB
11850fi
11851fi
c6b750e1 11852LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11853if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11855$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11856else
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858$as_echo "no" >&6; }
2429c060
PB
11859fi
11860
81ecdfbb 11861
2429c060
PB
11862 fi
11863 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11868if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11869 $as_echo_n "(cached) " >&6
2429c060
PB
11870else
11871 if test -n "$LIPO_FOR_TARGET"; then
11872 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11873else
c6b750e1
DJ
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
81ecdfbb 11879 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11881 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11883 break 2
11884 fi
11885done
81ecdfbb
RW
11886 done
11887IFS=$as_save_IFS
c6b750e1 11888
2429c060
PB
11889fi
11890fi
c6b750e1 11891LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11892if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11894$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11895else
81ecdfbb
RW
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
2429c060 11898fi
c6b750e1 11899
81ecdfbb 11900
2429c060
PB
11901 fi
11902 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11903 done
11904fi
c6b750e1 11905
2429c060
PB
11906if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11907 set dummy lipo
11908 if test $build = $target ; then
11909 LIPO_FOR_TARGET="$2"
11910 else
11911 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11912 fi
d3f5afc4
MS
11913else
11914 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11915fi
11916
3a35eeb3
PB
11917else
11918 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11919fi
11920
11921
11922
11923
11924if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11925 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11927$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11928 if test -x $with_build_time_tools/nm; then
11929 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11930 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11932$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11933 else
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
3a35eeb3 11936 fi
2429c060
PB
11937 elif test $build != $host && test $have_gcc_for_target = yes; then
11938 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11939 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11940 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11941 fi
11942fi
c6b750e1 11943if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11944 # Extract the first word of "nm", so it can be a program name with args.
11945set dummy nm; ac_word=$2
81ecdfbb
RW
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11948if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 11949 $as_echo_n "(cached) " >&6
2429c060 11950else
c6b750e1
DJ
11951 case $NM_FOR_TARGET in
11952 [\\/]* | ?:[\\/]*)
2429c060
PB
11953 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11954 ;;
2429c060 11955 *)
c6b750e1
DJ
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $gcc_cv_tool_dirs
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
81ecdfbb 11961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11963 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11965 break 2
11966 fi
11967done
81ecdfbb
RW
11968 done
11969IFS=$as_save_IFS
c6b750e1 11970
2429c060
PB
11971 ;;
11972esac
11973fi
c6b750e1 11974NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11975if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11977$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11978else
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
2429c060
PB
11981fi
11982
81ecdfbb 11983
2429c060
PB
11984fi
11985if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11986
11987
11988if test -n "$NM_FOR_TARGET"; then
11989 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11990elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11991 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11992fi
11993
11994if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11995 for ncn_progname in nm; do
11996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11997set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12000if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12001 $as_echo_n "(cached) " >&6
9a819804
AO
12002else
12003 if test -n "$NM_FOR_TARGET"; then
12004 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
81ecdfbb 12011 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12013 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12015 break 2
12016 fi
12017done
81ecdfbb
RW
12018 done
12019IFS=$as_save_IFS
9a819804
AO
12020
12021fi
12022fi
12023NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12024if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12026$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12027else
81ecdfbb
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
9a819804
AO
12030fi
12031
81ecdfbb 12032
9a819804
AO
12033 done
12034fi
12035
12036if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12037 for ncn_progname in nm; do
81ecdfbb
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12039$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12040 if test -x $with_build_time_tools/${ncn_progname}; then
12041 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043$as_echo "yes" >&6; }
2429c060
PB
12044 break
12045 else
81ecdfbb
RW
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
2429c060
PB
12048 fi
12049 done
12050fi
12051
12052if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12053 for ncn_progname in nm; do
12054 if test -n "$ncn_target_tool_prefix"; then
12055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12056set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12059if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12060 $as_echo_n "(cached) " >&6
859789af 12061else
55db4b87
PB
12062 if test -n "$NM_FOR_TARGET"; then
12063 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12064else
c6b750e1
DJ
12065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066for as_dir in $PATH
12067do
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
81ecdfbb 12070 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12072 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12074 break 2
12075 fi
12076done
81ecdfbb
RW
12077 done
12078IFS=$as_save_IFS
c6b750e1 12079
859789af
AC
12080fi
12081fi
c6b750e1 12082NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12083if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12085$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12086else
81ecdfbb
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088$as_echo "no" >&6; }
859789af
AC
12089fi
12090
81ecdfbb 12091
2429c060
PB
12092 fi
12093 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12095set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12098if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12099 $as_echo_n "(cached) " >&6
859789af 12100else
05cbd757
PB
12101 if test -n "$NM_FOR_TARGET"; then
12102 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12103else
c6b750e1
DJ
12104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105for as_dir in $PATH
12106do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
81ecdfbb 12109 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12111 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12113 break 2
12114 fi
12115done
81ecdfbb
RW
12116 done
12117IFS=$as_save_IFS
c6b750e1 12118
859789af
AC
12119fi
12120fi
c6b750e1 12121NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12122if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12124$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12125else
81ecdfbb
RW
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
859789af 12128fi
c6b750e1 12129
81ecdfbb 12130
2429c060
PB
12131 fi
12132 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12133 done
12134fi
c6b750e1 12135
05cbd757
PB
12136if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12137 set dummy nm
12138 if test $build = $target ; then
12139 NM_FOR_TARGET="$2"
859789af 12140 else
05cbd757 12141 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12142 fi
d3f5afc4
MS
12143else
12144 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12145fi
12146
3a35eeb3
PB
12147else
12148 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12149fi
12150
12151
12152
12153
6b91c541
AP
12154if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12155 if test -n "$with_build_time_tools"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12157$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12158 if test -x $with_build_time_tools/objcopy; then
12159 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12160 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12162$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165$as_echo "no" >&6; }
12166 fi
12167 elif test $build != $host && test $have_gcc_for_target = yes; then
12168 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12169 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12170 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12171 fi
12172fi
12173if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12174 # Extract the first word of "objcopy", so it can be a program name with args.
12175set dummy objcopy; ac_word=$2
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12178if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12179 $as_echo_n "(cached) " >&6
12180else
12181 case $OBJCOPY_FOR_TARGET in
12182 [\\/]* | ?:[\\/]*)
12183 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12184 ;;
12185 *)
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $gcc_cv_tool_dirs
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12193 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197done
12198 done
12199IFS=$as_save_IFS
12200
12201 ;;
12202esac
12203fi
12204OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12205if test -n "$OBJCOPY_FOR_TARGET"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12207$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12208else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212
12213
12214fi
12215if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12216
12217
12218if test -n "$OBJCOPY_FOR_TARGET"; then
12219 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12220elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12221 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12222fi
12223
12224if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12225 for ncn_progname in objcopy; do
12226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12227set dummy ${ncn_progname}; ac_word=$2
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12230if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12231 $as_echo_n "(cached) " >&6
12232else
12233 if test -n "$OBJCOPY_FOR_TARGET"; then
12234 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12235else
12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12243 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247done
12248 done
12249IFS=$as_save_IFS
12250
12251fi
12252fi
12253OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12254if test -n "$OBJCOPY_FOR_TARGET"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12256$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12257else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260fi
12261
12262
12263 done
12264fi
12265
12266if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12267 for ncn_progname in objcopy; do
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12269$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12270 if test -x $with_build_time_tools/${ncn_progname}; then
12271 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273$as_echo "yes" >&6; }
12274 break
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
12278 fi
12279 done
12280fi
12281
12282if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12283 for ncn_progname in objcopy; do
12284 if test -n "$ncn_target_tool_prefix"; then
12285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12289if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12290 $as_echo_n "(cached) " >&6
12291else
12292 if test -n "$OBJCOPY_FOR_TARGET"; then
12293 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12294else
12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296for as_dir in $PATH
12297do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12302 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306done
12307 done
12308IFS=$as_save_IFS
12309
12310fi
12311fi
12312OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12313if test -n "$OBJCOPY_FOR_TARGET"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12315$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12316else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318$as_echo "no" >&6; }
12319fi
12320
12321
12322 fi
12323 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12325set dummy ${ncn_progname}; ac_word=$2
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12328if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12329 $as_echo_n "(cached) " >&6
12330else
12331 if test -n "$OBJCOPY_FOR_TARGET"; then
12332 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12333else
12334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH
12336do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12341 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345done
12346 done
12347IFS=$as_save_IFS
12348
12349fi
12350fi
12351OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12352if test -n "$OBJCOPY_FOR_TARGET"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12354$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12355else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357$as_echo "no" >&6; }
12358fi
12359
12360
12361 fi
12362 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12363 done
12364fi
12365
12366if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12367 set dummy objcopy
12368 if test $build = $target ; then
12369 OBJCOPY_FOR_TARGET="$2"
12370 else
12371 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12372 fi
12373else
12374 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12375fi
12376
12377else
12378 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12379fi
12380
12381
12382
12383
2429c060
PB
12384if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12385 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12387$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12388 if test -x $with_build_time_tools/objdump; then
12389 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12390 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12392$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12393 else
81ecdfbb
RW
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
3a35eeb3 12396 fi
2429c060
PB
12397 elif test $build != $host && test $have_gcc_for_target = yes; then
12398 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12399 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12400 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12401 fi
12402fi
c6b750e1 12403if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12404 # Extract the first word of "objdump", so it can be a program name with args.
12405set dummy objdump; ac_word=$2
81ecdfbb
RW
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12408if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12409 $as_echo_n "(cached) " >&6
2429c060 12410else
c6b750e1
DJ
12411 case $OBJDUMP_FOR_TARGET in
12412 [\\/]* | ?:[\\/]*)
2429c060
PB
12413 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12414 ;;
2429c060 12415 *)
c6b750e1
DJ
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $gcc_cv_tool_dirs
12418do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
81ecdfbb 12421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12423 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12425 break 2
12426 fi
12427done
81ecdfbb
RW
12428 done
12429IFS=$as_save_IFS
c6b750e1 12430
2429c060
PB
12431 ;;
12432esac
12433fi
c6b750e1 12434OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12435if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12437$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12438else
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
2429c060
PB
12441fi
12442
81ecdfbb 12443
2429c060
PB
12444fi
12445if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12446
12447
12448if test -n "$OBJDUMP_FOR_TARGET"; then
12449 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12450elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12451 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12452fi
12453
12454if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12455 for ncn_progname in objdump; do
12456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12457set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12460if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12461 $as_echo_n "(cached) " >&6
9a819804
AO
12462else
12463 if test -n "$OBJDUMP_FOR_TARGET"; then
12464 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
81ecdfbb 12471 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12473 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12475 break 2
12476 fi
12477done
81ecdfbb
RW
12478 done
12479IFS=$as_save_IFS
9a819804
AO
12480
12481fi
12482fi
12483OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12484if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12486$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12487else
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
9a819804
AO
12490fi
12491
81ecdfbb 12492
9a819804
AO
12493 done
12494fi
12495
12496if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12497 for ncn_progname in objdump; do
81ecdfbb
RW
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12499$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12500 if test -x $with_build_time_tools/${ncn_progname}; then
12501 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503$as_echo "yes" >&6; }
2429c060
PB
12504 break
12505 else
81ecdfbb
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507$as_echo "no" >&6; }
2429c060
PB
12508 fi
12509 done
12510fi
12511
12512if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12513 for ncn_progname in objdump; do
12514 if test -n "$ncn_target_tool_prefix"; then
12515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12519if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12520 $as_echo_n "(cached) " >&6
5ae72758
DJ
12521else
12522 if test -n "$OBJDUMP_FOR_TARGET"; then
12523 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12524else
c6b750e1
DJ
12525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526for as_dir in $PATH
12527do
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
81ecdfbb 12530 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12532 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12534 break 2
12535 fi
12536done
81ecdfbb
RW
12537 done
12538IFS=$as_save_IFS
c6b750e1 12539
5ae72758
DJ
12540fi
12541fi
c6b750e1 12542OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12543if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12545$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12546else
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548$as_echo "no" >&6; }
5ae72758
DJ
12549fi
12550
81ecdfbb 12551
2429c060
PB
12552 fi
12553 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12555set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12558if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12559 $as_echo_n "(cached) " >&6
5ae72758
DJ
12560else
12561 if test -n "$OBJDUMP_FOR_TARGET"; then
12562 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12563else
c6b750e1
DJ
12564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565for as_dir in $PATH
12566do
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
81ecdfbb 12569 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12571 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12573 break 2
12574 fi
12575done
81ecdfbb
RW
12576 done
12577IFS=$as_save_IFS
c6b750e1 12578
5ae72758
DJ
12579fi
12580fi
c6b750e1 12581OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12582if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12584$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12585else
81ecdfbb
RW
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
5ae72758 12588fi
c6b750e1 12589
81ecdfbb 12590
2429c060
PB
12591 fi
12592 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12593 done
12594fi
c6b750e1 12595
5ae72758
DJ
12596if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12597 set dummy objdump
12598 if test $build = $target ; then
12599 OBJDUMP_FOR_TARGET="$2"
12600 else
12601 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12602 fi
d3f5afc4
MS
12603else
12604 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12605fi
12606
3a35eeb3
PB
12607else
12608 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12609fi
12610
12611
12612
12613
12614if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12615 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12617$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12618 if test -x $with_build_time_tools/ranlib; then
12619 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12620 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12622$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12623 else
81ecdfbb
RW
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625$as_echo "no" >&6; }
3a35eeb3 12626 fi
2429c060
PB
12627 elif test $build != $host && test $have_gcc_for_target = yes; then
12628 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12629 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12630 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12631 fi
12632fi
c6b750e1 12633if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12634 # Extract the first word of "ranlib", so it can be a program name with args.
12635set dummy ranlib; ac_word=$2
81ecdfbb
RW
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12638if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12639 $as_echo_n "(cached) " >&6
2429c060 12640else
c6b750e1
DJ
12641 case $RANLIB_FOR_TARGET in
12642 [\\/]* | ?:[\\/]*)
2429c060
PB
12643 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12644 ;;
2429c060 12645 *)
c6b750e1
DJ
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $gcc_cv_tool_dirs
12648do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
81ecdfbb 12651 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12653 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12655 break 2
12656 fi
12657done
81ecdfbb
RW
12658 done
12659IFS=$as_save_IFS
c6b750e1 12660
2429c060
PB
12661 ;;
12662esac
12663fi
c6b750e1 12664RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12665if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12667$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12668else
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
2429c060
PB
12671fi
12672
81ecdfbb 12673
2429c060
PB
12674fi
12675if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12676
12677
12678if test -n "$RANLIB_FOR_TARGET"; then
12679 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12680elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12681 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12682fi
12683
12684if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12685 for ncn_progname in ranlib; do
12686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12687set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12690if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12691 $as_echo_n "(cached) " >&6
9a819804
AO
12692else
12693 if test -n "$RANLIB_FOR_TARGET"; then
12694 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
81ecdfbb 12701 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12703 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12705 break 2
12706 fi
12707done
81ecdfbb
RW
12708 done
12709IFS=$as_save_IFS
9a819804
AO
12710
12711fi
12712fi
12713RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12714if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12716$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12717else
81ecdfbb
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
9a819804
AO
12720fi
12721
81ecdfbb 12722
9a819804
AO
12723 done
12724fi
12725
12726if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12727 for ncn_progname in ranlib; do
81ecdfbb
RW
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12729$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12730 if test -x $with_build_time_tools/${ncn_progname}; then
12731 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733$as_echo "yes" >&6; }
2429c060
PB
12734 break
12735 else
81ecdfbb
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
2429c060
PB
12738 fi
12739 done
12740fi
12741
12742if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12743 for ncn_progname in ranlib; do
12744 if test -n "$ncn_target_tool_prefix"; then
12745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12746set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12749if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12750 $as_echo_n "(cached) " >&6
859789af 12751else
55db4b87
PB
12752 if test -n "$RANLIB_FOR_TARGET"; then
12753 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12754else
c6b750e1
DJ
12755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756for as_dir in $PATH
12757do
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
81ecdfbb 12760 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12762 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12764 break 2
12765 fi
12766done
81ecdfbb
RW
12767 done
12768IFS=$as_save_IFS
c6b750e1 12769
859789af
AC
12770fi
12771fi
c6b750e1 12772RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12773if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12775$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12776else
81ecdfbb
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
859789af
AC
12779fi
12780
81ecdfbb 12781
2429c060
PB
12782 fi
12783 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12785set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12788if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12789 $as_echo_n "(cached) " >&6
859789af 12790else
05cbd757
PB
12791 if test -n "$RANLIB_FOR_TARGET"; then
12792 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12793else
c6b750e1
DJ
12794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
81ecdfbb 12799 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12801 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12803 break 2
12804 fi
12805done
81ecdfbb
RW
12806 done
12807IFS=$as_save_IFS
c6b750e1 12808
859789af
AC
12809fi
12810fi
c6b750e1 12811RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12812if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12814$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12815else
81ecdfbb
RW
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
859789af 12818fi
c6b750e1 12819
81ecdfbb 12820
2429c060
PB
12821 fi
12822 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12823 done
12824fi
c6b750e1 12825
2429c060
PB
12826if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12827 set dummy ranlib
12828 if test $build = $target ; then
12829 RANLIB_FOR_TARGET="$2"
12830 else
12831 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12832 fi
d3f5afc4
MS
12833else
12834 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12835fi
05cbd757 12836
3a35eeb3
PB
12837else
12838 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12839fi
12840
2429c060
PB
12841
12842
12843
b121d7d4
DD
12844if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12845 if test -n "$with_build_time_tools"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12847$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12848 if test -x $with_build_time_tools/readelf; then
12849 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12850 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12852$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855$as_echo "no" >&6; }
12856 fi
12857 elif test $build != $host && test $have_gcc_for_target = yes; then
12858 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12859 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12860 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12861 fi
12862fi
12863if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12864 # Extract the first word of "readelf", so it can be a program name with args.
12865set dummy readelf; ac_word=$2
12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12868if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12869 $as_echo_n "(cached) " >&6
12870else
12871 case $READELF_FOR_TARGET in
12872 [\\/]* | ?:[\\/]*)
12873 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12874 ;;
12875 *)
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $gcc_cv_tool_dirs
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12883 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891 ;;
12892esac
12893fi
12894READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12895if test -n "$READELF_FOR_TARGET"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12897$as_echo "$READELF_FOR_TARGET" >&6; }
12898else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
12901fi
12902
12903
12904fi
12905if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12906
12907
12908if test -n "$READELF_FOR_TARGET"; then
12909 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12910elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12911 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12912fi
12913
12914if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12915 for ncn_progname in readelf; do
12916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12917set dummy ${ncn_progname}; ac_word=$2
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12920if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12921 $as_echo_n "(cached) " >&6
12922else
12923 if test -n "$READELF_FOR_TARGET"; then
12924 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12925else
12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12933 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12936 fi
12937done
12938 done
12939IFS=$as_save_IFS
12940
12941fi
12942fi
12943READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12944if test -n "$READELF_FOR_TARGET"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12946$as_echo "$READELF_FOR_TARGET" >&6; }
12947else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
12950fi
12951
12952
12953 done
12954fi
12955
12956if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12957 for ncn_progname in readelf; do
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12959$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12960 if test -x $with_build_time_tools/${ncn_progname}; then
12961 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963$as_echo "yes" >&6; }
12964 break
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
12968 fi
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12973 for ncn_progname in readelf; do
12974 if test -n "$ncn_target_tool_prefix"; then
12975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12976set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12979if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12980 $as_echo_n "(cached) " >&6
12981else
12982 if test -n "$READELF_FOR_TARGET"; then
12983 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12984else
12985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986for as_dir in $PATH
12987do
12988 IFS=$as_save_IFS
12989 test -z "$as_dir" && as_dir=.
12990 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12992 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 break 2
12995 fi
12996done
12997 done
12998IFS=$as_save_IFS
12999
13000fi
13001fi
13002READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13003if test -n "$READELF_FOR_TARGET"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13005$as_echo "$READELF_FOR_TARGET" >&6; }
13006else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008$as_echo "no" >&6; }
13009fi
13010
13011
13012 fi
13013 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13015set dummy ${ncn_progname}; ac_word=$2
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13018if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13019 $as_echo_n "(cached) " >&6
13020else
13021 if test -n "$READELF_FOR_TARGET"; then
13022 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13023else
13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025for as_dir in $PATH
13026do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13031 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035done
13036 done
13037IFS=$as_save_IFS
13038
13039fi
13040fi
13041READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13042if test -n "$READELF_FOR_TARGET"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13044$as_echo "$READELF_FOR_TARGET" >&6; }
13045else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047$as_echo "no" >&6; }
13048fi
13049
13050
13051 fi
13052 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13053 done
13054fi
13055
13056if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13057 set dummy readelf
13058 if test $build = $target ; then
13059 READELF_FOR_TARGET="$2"
13060 else
13061 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13062 fi
13063else
13064 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13065fi
13066
13067else
13068 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13069fi
13070
13071
13072
13073
2429c060
PB
13074if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13075 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13077$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13078 if test -x $with_build_time_tools/strip; then
13079 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13080 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13082$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13083 else
81ecdfbb
RW
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085$as_echo "no" >&6; }
3a35eeb3 13086 fi
2429c060
PB
13087 elif test $build != $host && test $have_gcc_for_target = yes; then
13088 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13089 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13090 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13091 fi
13092fi
c6b750e1 13093if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13094 # Extract the first word of "strip", so it can be a program name with args.
13095set dummy strip; ac_word=$2
81ecdfbb
RW
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13098if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13099 $as_echo_n "(cached) " >&6
2429c060 13100else
c6b750e1
DJ
13101 case $STRIP_FOR_TARGET in
13102 [\\/]* | ?:[\\/]*)
2429c060
PB
13103 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13104 ;;
2429c060 13105 *)
c6b750e1
DJ
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107for as_dir in $gcc_cv_tool_dirs
13108do
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
81ecdfbb 13111 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13113 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13115 break 2
13116 fi
13117done
81ecdfbb
RW
13118 done
13119IFS=$as_save_IFS
c6b750e1 13120
2429c060
PB
13121 ;;
13122esac
13123fi
c6b750e1 13124STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13125if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13127$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13128else
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
2429c060
PB
13131fi
13132
81ecdfbb 13133
2429c060
PB
13134fi
13135if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13136
13137
13138if test -n "$STRIP_FOR_TARGET"; then
13139 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13140elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13141 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13142fi
13143
13144if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13145 for ncn_progname in strip; do
13146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13147set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13150if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13151 $as_echo_n "(cached) " >&6
9a819804
AO
13152else
13153 if test -n "$STRIP_FOR_TARGET"; then
13154 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13155else
13156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
81ecdfbb 13161 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13163 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13165 break 2
13166 fi
13167done
81ecdfbb
RW
13168 done
13169IFS=$as_save_IFS
9a819804
AO
13170
13171fi
13172fi
13173STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13174if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13176$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13177else
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
9a819804
AO
13180fi
13181
81ecdfbb 13182
9a819804
AO
13183 done
13184fi
13185
13186if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13187 for ncn_progname in strip; do
81ecdfbb
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13189$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13190 if test -x $with_build_time_tools/${ncn_progname}; then
13191 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13193$as_echo "yes" >&6; }
2429c060
PB
13194 break
13195 else
81ecdfbb
RW
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
2429c060
PB
13198 fi
13199 done
13200fi
13201
13202if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13203 for ncn_progname in strip; do
13204 if test -n "$ncn_target_tool_prefix"; then
13205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13206set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13209if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13210 $as_echo_n "(cached) " >&6
7e0f7140
GK
13211else
13212 if test -n "$STRIP_FOR_TARGET"; then
13213 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
81ecdfbb 13220 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13222 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13224 break 2
13225 fi
13226done
81ecdfbb
RW
13227 done
13228IFS=$as_save_IFS
c6b750e1 13229
7e0f7140
GK
13230fi
13231fi
c6b750e1 13232STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13233if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13235$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13236else
81ecdfbb
RW
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
7e0f7140
GK
13239fi
13240
81ecdfbb 13241
2429c060
PB
13242 fi
13243 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13248if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13249 $as_echo_n "(cached) " >&6
7e0f7140
GK
13250else
13251 if test -n "$STRIP_FOR_TARGET"; then
13252 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13253else
c6b750e1
DJ
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
81ecdfbb 13259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13261 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13263 break 2
13264 fi
13265done
81ecdfbb
RW
13266 done
13267IFS=$as_save_IFS
c6b750e1 13268
7e0f7140
GK
13269fi
13270fi
c6b750e1 13271STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13272if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13274$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13275else
81ecdfbb
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
7e0f7140 13278fi
c6b750e1 13279
81ecdfbb 13280
2429c060
PB
13281 fi
13282 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13283 done
13284fi
c6b750e1 13285
7e0f7140
GK
13286if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13287 set dummy strip
13288 if test $build = $target ; then
13289 STRIP_FOR_TARGET="$2"
13290 else
13291 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13292 fi
d3f5afc4
MS
13293else
13294 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13295fi
13296
3a35eeb3
PB
13297else
13298 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13299fi
13300
13301
13302
13303
13304if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13305 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13307$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13308 if test -x $with_build_time_tools/windres; then
13309 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13310 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13312$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13313 else
81ecdfbb
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315$as_echo "no" >&6; }
3a35eeb3 13316 fi
2429c060
PB
13317 elif test $build != $host && test $have_gcc_for_target = yes; then
13318 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13319 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13320 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13321 fi
13322fi
c6b750e1 13323if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13324 # Extract the first word of "windres", so it can be a program name with args.
13325set dummy windres; ac_word=$2
81ecdfbb
RW
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13328if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13329 $as_echo_n "(cached) " >&6
2429c060 13330else
c6b750e1
DJ
13331 case $WINDRES_FOR_TARGET in
13332 [\\/]* | ?:[\\/]*)
2429c060
PB
13333 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13334 ;;
2429c060 13335 *)
c6b750e1
DJ
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $gcc_cv_tool_dirs
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
81ecdfbb 13341 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13343 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13345 break 2
13346 fi
13347done
81ecdfbb
RW
13348 done
13349IFS=$as_save_IFS
c6b750e1 13350
2429c060
PB
13351 ;;
13352esac
13353fi
c6b750e1 13354WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13355if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13357$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13358else
81ecdfbb
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360$as_echo "no" >&6; }
2429c060
PB
13361fi
13362
81ecdfbb 13363
2429c060
PB
13364fi
13365if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13366
13367
13368if test -n "$WINDRES_FOR_TARGET"; then
13369 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13370elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13371 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13372fi
13373
13374if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13375 for ncn_progname in windres; do
13376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13377set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13380if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13381 $as_echo_n "(cached) " >&6
9a819804
AO
13382else
13383 if test -n "$WINDRES_FOR_TARGET"; then
13384 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13385else
13386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387for as_dir in $PATH
13388do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
81ecdfbb 13391 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13393 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13395 break 2
13396 fi
13397done
81ecdfbb
RW
13398 done
13399IFS=$as_save_IFS
9a819804
AO
13400
13401fi
13402fi
13403WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13404if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13406$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13407else
81ecdfbb
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
9a819804
AO
13410fi
13411
81ecdfbb 13412
9a819804
AO
13413 done
13414fi
13415
13416if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13417 for ncn_progname in windres; do
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13419$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13420 if test -x $with_build_time_tools/${ncn_progname}; then
13421 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13423$as_echo "yes" >&6; }
2429c060
PB
13424 break
13425 else
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
2429c060
PB
13428 fi
13429 done
13430fi
13431
13432if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13433 for ncn_progname in windres; do
13434 if test -n "$ncn_target_tool_prefix"; then
13435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13436set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13439if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13440 $as_echo_n "(cached) " >&6
859789af 13441else
55db4b87
PB
13442 if test -n "$WINDRES_FOR_TARGET"; then
13443 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13444else
c6b750e1
DJ
13445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
81ecdfbb 13450 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13452 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13454 break 2
13455 fi
13456done
81ecdfbb
RW
13457 done
13458IFS=$as_save_IFS
c6b750e1 13459
859789af
AC
13460fi
13461fi
c6b750e1 13462WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13463if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13465$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13466else
81ecdfbb
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
859789af
AC
13469fi
13470
81ecdfbb 13471
2429c060
PB
13472 fi
13473 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13475set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13478if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13479 $as_echo_n "(cached) " >&6
859789af 13480else
05cbd757
PB
13481 if test -n "$WINDRES_FOR_TARGET"; then
13482 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13483else
c6b750e1
DJ
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
81ecdfbb 13489 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13491 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13493 break 2
13494 fi
13495done
81ecdfbb
RW
13496 done
13497IFS=$as_save_IFS
c6b750e1 13498
859789af
AC
13499fi
13500fi
c6b750e1 13501WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13502if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13504$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13505else
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
859789af 13508fi
c6b750e1 13509
81ecdfbb 13510
2429c060
PB
13511 fi
13512 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13513 done
13514fi
c6b750e1 13515
05cbd757
PB
13516if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13517 set dummy windres
13518 if test $build = $target ; then
13519 WINDRES_FOR_TARGET="$2"
859789af 13520 else
05cbd757 13521 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13522 fi
d3f5afc4
MS
13523else
13524 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13525fi
13526
3a35eeb3
PB
13527else
13528 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13529fi
13530
852e5f18 13531
0c24b341
NC
13532
13533
13534if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13535 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13537$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13538 if test -x $with_build_time_tools/windmc; then
13539 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13540 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13542$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13543 else
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
0c24b341
NC
13546 fi
13547 elif test $build != $host && test $have_gcc_for_target = yes; then
13548 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13549 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13550 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13551 fi
13552fi
13553if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13554 # Extract the first word of "windmc", so it can be a program name with args.
13555set dummy windmc; ac_word=$2
81ecdfbb
RW
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13558if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13559 $as_echo_n "(cached) " >&6
0c24b341
NC
13560else
13561 case $WINDMC_FOR_TARGET in
13562 [\\/]* | ?:[\\/]*)
13563 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13564 ;;
13565 *)
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567for as_dir in $gcc_cv_tool_dirs
13568do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
81ecdfbb 13571 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13573 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13575 break 2
13576 fi
13577done
81ecdfbb
RW
13578 done
13579IFS=$as_save_IFS
0c24b341
NC
13580
13581 ;;
13582esac
13583fi
13584WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13585if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13587$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13588else
81ecdfbb
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590$as_echo "no" >&6; }
0c24b341
NC
13591fi
13592
81ecdfbb 13593
0c24b341
NC
13594fi
13595if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13596
13597
13598if test -n "$WINDMC_FOR_TARGET"; then
13599 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13600elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13601 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13602fi
13603
13604if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13605 for ncn_progname in windmc; do
13606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13610if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13611 $as_echo_n "(cached) " >&6
0c24b341
NC
13612else
13613 if test -n "$WINDMC_FOR_TARGET"; then
13614 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13615else
13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617for as_dir in $PATH
13618do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
81ecdfbb 13621 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13623 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13625 break 2
13626 fi
13627done
81ecdfbb
RW
13628 done
13629IFS=$as_save_IFS
0c24b341
NC
13630
13631fi
13632fi
13633WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13634if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13636$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13637else
81ecdfbb
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639$as_echo "no" >&6; }
0c24b341
NC
13640fi
13641
81ecdfbb 13642
0c24b341
NC
13643 done
13644fi
13645
13646if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13647 for ncn_progname in windmc; do
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13649$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13650 if test -x $with_build_time_tools/${ncn_progname}; then
13651 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }
0c24b341
NC
13654 break
13655 else
81ecdfbb
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
0c24b341
NC
13658 fi
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13663 for ncn_progname in windmc; do
13664 if test -n "$ncn_target_tool_prefix"; then
13665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13666set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13669if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13670 $as_echo_n "(cached) " >&6
0c24b341
NC
13671else
13672 if test -n "$WINDMC_FOR_TARGET"; then
13673 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13674else
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
81ecdfbb 13680 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13682 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13684 break 2
13685 fi
13686done
81ecdfbb
RW
13687 done
13688IFS=$as_save_IFS
0c24b341
NC
13689
13690fi
13691fi
13692WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13693if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13695$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13696else
81ecdfbb
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698$as_echo "no" >&6; }
0c24b341
NC
13699fi
13700
81ecdfbb 13701
0c24b341
NC
13702 fi
13703 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13705set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13708if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13709 $as_echo_n "(cached) " >&6
0c24b341
NC
13710else
13711 if test -n "$WINDMC_FOR_TARGET"; then
13712 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13713else
13714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715for as_dir in $PATH
13716do
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
81ecdfbb 13719 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13721 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13723 break 2
13724 fi
13725done
81ecdfbb
RW
13726 done
13727IFS=$as_save_IFS
0c24b341
NC
13728
13729fi
13730fi
13731WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13732if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13734$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13735else
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
0c24b341
NC
13738fi
13739
81ecdfbb 13740
0c24b341
NC
13741 fi
13742 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13743 done
13744fi
13745
13746if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13747 set dummy windmc
13748 if test $build = $target ; then
13749 WINDMC_FOR_TARGET="$2"
13750 else
13751 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13752 fi
13753else
13754 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13755fi
13756
13757else
13758 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13759fi
13760
13761
be01d343
PB
13762RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13763
81ecdfbb
RW
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13765$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13766if test "x${build}" != "x${host}" ; then
2429c060
PB
13767 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
b8025f34 13769 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13772 else
13773 # Canadian cross, just use what we found
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
2429c060 13776 fi
be01d343
PB
13777else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" binutils "*) ;;
13781 *) ok=no ;;
13782 esac
c6b750e1 13783
be01d343
PB
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
2429c060
PB
13789 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
b8025f34 13791 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
be01d343
PB
13799 else
13800 # We need a cross tool
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
be01d343
PB
13803 fi
13804fi
4b900473 13805
81ecdfbb
RW
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13807$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13808if test "x${build}" != "x${host}" ; then
2429c060
PB
13809 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
b8025f34 13811 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13814 else
13815 # Canadian cross, just use what we found
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
2429c060 13818 fi
be01d343
PB
13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gas "*) ;;
13823 *) ok=no ;;
13824 esac
c6b750e1 13825
be01d343
PB
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830$as_echo "just compiled" >&6; }
2429c060
PB
13831 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
b8025f34 13833 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13836 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840$as_echo "host tool" >&6; }
be01d343
PB
13841 else
13842 # We need a cross tool
81ecdfbb
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844$as_echo "pre-installed" >&6; }
be01d343
PB
13845 fi
13846fi
4b900473 13847
81ecdfbb
RW
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13849$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13850if test "x${build}" != "x${host}" ; then
2429c060
PB
13851 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
b8025f34 13853 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13856 else
13857 # Canadian cross, just use what we found
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859$as_echo "pre-installed" >&6; }
2429c060 13860 fi
be01d343
PB
13861else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
c6b750e1 13867
be01d343
PB
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872$as_echo "just compiled" >&6; }
2429c060
PB
13873 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
b8025f34 13875 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882$as_echo "host tool" >&6; }
be01d343
PB
13883 else
13884 # We need a cross tool
81ecdfbb
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886$as_echo "pre-installed" >&6; }
be01d343
PB
13887 fi
13888fi
4b900473 13889
81ecdfbb
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13891$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13892if test "x${build}" != "x${host}" ; then
2429c060
PB
13893 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
b8025f34 13895 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13898 else
13899 # Canadian cross, just use what we found
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
2429c060 13902 fi
be01d343
PB
13903else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,c++,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
95e43135 13915 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
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917$as_echo "just compiled" >&6; }
2429c060
PB
13918 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
b8025f34 13920 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927$as_echo "host tool" >&6; }
be01d343
PB
13928 else
13929 # We need a cross tool
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931$as_echo "pre-installed" >&6; }
be01d343
PB
13932 fi
13933fi
4b900473 13934
81ecdfbb
RW
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13936$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13937if test "x${build}" != "x${host}" ; then
2429c060
PB
13938 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
b8025f34 13940 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13943 else
13944 # Canadian cross, just use what we found
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
2429c060 13947 fi
be01d343
PB
13948else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13954 case ,${enable_languages}, in
13955 *,c++,*) ;;
13956 *) ok=no ;;
13957 esac
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
95e43135 13960 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
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
2429c060
PB
13963 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
b8025f34 13965 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972$as_echo "host tool" >&6; }
be01d343
PB
13973 else
13974 # We need a cross tool
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
be01d343
PB
13977 fi
13978fi
4b900473 13979
81ecdfbb
RW
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13981$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13982if test "x${build}" != "x${host}" ; then
2429c060
PB
13983 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
b8025f34 13985 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13988 else
13989 # Canadian cross, just use what we found
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
2429c060 13992 fi
be01d343
PB
13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" binutils "*) ;;
13997 *) ok=no ;;
13998 esac
c6b750e1 13999
be01d343
PB
14000 if test $ok = yes; then
14001 # An in-tree tool is available and we can use it
14002 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14004$as_echo "just compiled" >&6; }
2429c060
PB
14005 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
b8025f34 14007 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14009$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14010 elif test "x$target" = "x$host"; then
14011 # We can use an host tool
14012 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14014$as_echo "host tool" >&6; }
be01d343
PB
14015 else
14016 # We need a cross tool
81ecdfbb
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018$as_echo "pre-installed" >&6; }
be01d343
PB
14019 fi
14020fi
4b900473 14021
81ecdfbb
RW
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14023$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14024if test "x${build}" != "x${host}" ; then
2429c060
PB
14025 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
b8025f34 14027 ac_dir=`dirname $GCC_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; }
2429c060
PB
14030 else
14031 # Canadian cross, just use what we found
81ecdfbb
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033$as_echo "pre-installed" >&6; }
2429c060 14034 fi
be01d343
PB
14035else
14036 ok=yes
14037 case " ${configdirs} " in
14038 *" gcc "*) ;;
14039 *) ok=no ;;
14040 esac
c6b750e1 14041
be01d343
PB
14042 if test $ok = yes; then
14043 # An in-tree tool is available and we can use it
14044 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14046$as_echo "just compiled" >&6; }
2429c060
PB
14047 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14048 # We already found the complete path
b8025f34 14049 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14051$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14052 elif test "x$target" = "x$host"; then
14053 # We can use an host tool
14054 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14056$as_echo "host tool" >&6; }
be01d343
PB
14057 else
14058 # We need a cross tool
81ecdfbb
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060$as_echo "pre-installed" >&6; }
be01d343
PB
14061 fi
14062fi
4b900473 14063
81ecdfbb
RW
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14065$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14066if test "x${build}" != "x${host}" ; then
2429c060
PB
14067 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
b8025f34 14069 ac_dir=`dirname $GFORTRAN_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; }
2429c060
PB
14072 else
14073 # Canadian cross, just use what we found
81ecdfbb
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14075$as_echo "pre-installed" >&6; }
2429c060 14076 fi
be01d343
PB
14077else
14078 ok=yes
14079 case " ${configdirs} " in
14080 *" gcc "*) ;;
14081 *) ok=no ;;
14082 esac
14083 case ,${enable_languages}, in
14084 *,fortran,*) ;;
14085 *) ok=no ;;
14086 esac
14087 if test $ok = yes; then
14088 # An in-tree tool is available and we can use it
14089 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14091$as_echo "just compiled" >&6; }
2429c060
PB
14092 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14093 # We already found the complete path
b8025f34 14094 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14096$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14097 elif test "x$target" = "x$host"; then
14098 # We can use an host tool
14099 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14101$as_echo "host tool" >&6; }
be01d343
PB
14102 else
14103 # We need a cross tool
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105$as_echo "pre-installed" >&6; }
be01d343
PB
14106 fi
14107fi
4b900473 14108
e552509b
ILT
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14110$as_echo_n "checking where to find the target gccgo... " >&6; }
14111if test "x${build}" != "x${host}" ; then
14112 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14113 # We already found the complete path
14114 ac_dir=`dirname $GOC_FOR_TARGET`
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14116$as_echo "pre-installed in $ac_dir" >&6; }
14117 else
14118 # Canadian cross, just use what we found
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14120$as_echo "pre-installed" >&6; }
14121 fi
14122else
14123 ok=yes
14124 case " ${configdirs} " in
14125 *" gcc "*) ;;
14126 *) ok=no ;;
14127 esac
14128 case ,${enable_languages}, in
14129 *,go,*) ;;
14130 *) ok=no ;;
14131 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136$as_echo "just compiled" >&6; }
14137 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $GOC_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141$as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 GOC_FOR_TARGET='$(GOC)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146$as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150$as_echo "pre-installed" >&6; }
14151 fi
14152fi
14153
81ecdfbb
RW
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14155$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14156if test "x${build}" != "x${host}" ; then
2429c060
PB
14157 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
b8025f34 14159 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14162 else
14163 # Canadian cross, just use what we found
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165$as_echo "pre-installed" >&6; }
2429c060 14166 fi
be01d343
PB
14167else
14168 ok=yes
14169 case " ${configdirs} " in
14170 *" ld "*) ;;
14171 *) ok=no ;;
14172 esac
c6b750e1 14173
be01d343
PB
14174 if test $ok = yes; then
14175 # An in-tree tool is available and we can use it
14176 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14178$as_echo "just compiled" >&6; }
2429c060
PB
14179 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
b8025f34 14181 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14184 elif test "x$target" = "x$host"; then
14185 # We can use an host tool
14186 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14188$as_echo "host tool" >&6; }
be01d343
PB
14189 else
14190 # We need a cross tool
81ecdfbb
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192$as_echo "pre-installed" >&6; }
be01d343
PB
14193 fi
14194fi
4b900473 14195
81ecdfbb
RW
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14197$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14198if test "x${build}" != "x${host}" ; then
2429c060
PB
14199 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
b8025f34 14201 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14204 else
14205 # Canadian cross, just use what we found
81ecdfbb
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207$as_echo "pre-installed" >&6; }
2429c060 14208 fi
be01d343 14209else
2429c060
PB
14210 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
b8025f34 14212 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14215 elif test "x$target" = "x$host"; then
be01d343
PB
14216 # We can use an host tool
14217 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219$as_echo "host tool" >&6; }
be01d343
PB
14220 else
14221 # We need a cross tool
81ecdfbb
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
be01d343
PB
14224 fi
14225fi
4b900473 14226
81ecdfbb
RW
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14228$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14229if test "x${build}" != "x${host}" ; then
2429c060
PB
14230 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
b8025f34 14232 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14235 else
14236 # Canadian cross, just use what we found
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
2429c060 14239 fi
be01d343
PB
14240else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
c6b750e1 14246
be01d343
PB
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251$as_echo "just compiled" >&6; }
2429c060
PB
14252 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
b8025f34 14254 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261$as_echo "host tool" >&6; }
be01d343
PB
14262 else
14263 # We need a cross tool
81ecdfbb
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265$as_echo "pre-installed" >&6; }
be01d343
PB
14266 fi
14267fi
4b900473 14268
6b91c541
AP
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14270$as_echo_n "checking where to find the target objcopy... " >&6; }
14271if test "x${build}" != "x${host}" ; then
14272 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
14277 else
14278 # Canadian cross, just use what we found
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280$as_echo "pre-installed" >&6; }
14281 fi
14282else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
14288
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293$as_echo "just compiled" >&6; }
14294 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
14296 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
1b6c0831 14301 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303$as_echo "host tool" >&6; }
14304 else
14305 # We need a cross tool
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307$as_echo "pre-installed" >&6; }
14308 fi
14309fi
14310
81ecdfbb
RW
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14312$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14313if test "x${build}" != "x${host}" ; then
2429c060
PB
14314 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
b8025f34 14316 ac_dir=`dirname $OBJDUMP_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; }
2429c060
PB
14319 else
14320 # Canadian cross, just use what we found
81ecdfbb
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
2429c060 14323 fi
be01d343
PB
14324else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
c6b750e1 14330
be01d343
PB
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335$as_echo "just compiled" >&6; }
2429c060
PB
14336 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
b8025f34 14338 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345$as_echo "host tool" >&6; }
be01d343
PB
14346 else
14347 # We need a cross tool
81ecdfbb
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349$as_echo "pre-installed" >&6; }
be01d343
PB
14350 fi
14351fi
4b900473 14352
81ecdfbb
RW
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14354$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14355if test "x${build}" != "x${host}" ; then
2429c060
PB
14356 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
b8025f34 14358 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14361 else
14362 # Canadian cross, just use what we found
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
2429c060 14365 fi
be01d343
PB
14366else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
c6b750e1 14372
be01d343
PB
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
14375 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377$as_echo "just compiled" >&6; }
2429c060
PB
14378 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
b8025f34 14380 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387$as_echo "host tool" >&6; }
be01d343
PB
14388 else
14389 # We need a cross tool
81ecdfbb
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391$as_echo "pre-installed" >&6; }
be01d343
PB
14392 fi
14393fi
4b900473 14394
b121d7d4
DD
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14396$as_echo_n "checking where to find the target readelf... " >&6; }
14397if test "x${build}" != "x${host}" ; then
14398 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $READELF_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
14403 else
14404 # Canadian cross, just use what we found
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
14407 fi
14408else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
14414
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419$as_echo "just compiled" >&6; }
14420 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $READELF_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 READELF_FOR_TARGET='$(READELF)'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429$as_echo "host tool" >&6; }
14430 else
14431 # We need a cross tool
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
14434 fi
14435fi
14436
81ecdfbb
RW
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14438$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14439if test "x${build}" != "x${host}" ; then
2429c060
PB
14440 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
b8025f34 14442 ac_dir=`dirname $STRIP_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; }
2429c060
PB
14445 else
14446 # Canadian cross, just use what we found
81ecdfbb
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
2429c060 14449 fi
be01d343
PB
14450else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
c6b750e1 14456
be01d343
PB
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
9b980aa1 14459 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461$as_echo "just compiled" >&6; }
2429c060
PB
14462 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
b8025f34 14464 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471$as_echo "host tool" >&6; }
be01d343
PB
14472 else
14473 # We need a cross tool
81ecdfbb
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
be01d343
PB
14476 fi
14477fi
4b900473 14478
81ecdfbb
RW
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14480$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14481if test "x${build}" != "x${host}" ; then
2429c060
PB
14482 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
b8025f34 14484 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14487 else
14488 # Canadian cross, just use what we found
81ecdfbb
RW
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490$as_echo "pre-installed" >&6; }
2429c060 14491 fi
be01d343
PB
14492else
14493 ok=yes
14494 case " ${configdirs} " in
14495 *" binutils "*) ;;
14496 *) ok=no ;;
14497 esac
c6b750e1 14498
be01d343
PB
14499 if test $ok = yes; then
14500 # An in-tree tool is available and we can use it
14501 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14503$as_echo "just compiled" >&6; }
2429c060
PB
14504 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14505 # We already found the complete path
b8025f34 14506 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14508$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14509 elif test "x$target" = "x$host"; then
14510 # We can use an host tool
14511 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14513$as_echo "host tool" >&6; }
be01d343
PB
14514 else
14515 # We need a cross tool
81ecdfbb
RW
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14517$as_echo "pre-installed" >&6; }
be01d343 14518 fi
a0da8069 14519fi
54752a6b 14520
81ecdfbb
RW
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14522$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14523if test "x${build}" != "x${host}" ; then
14524 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
14526 ac_dir=`dirname $WINDMC_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; }
0c24b341
NC
14529 else
14530 # Canadian cross, just use what we found
81ecdfbb
RW
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14532$as_echo "pre-installed" >&6; }
0c24b341
NC
14533 fi
14534else
14535 ok=yes
14536 case " ${configdirs} " in
14537 *" binutils "*) ;;
14538 *) ok=no ;;
14539 esac
14540
14541 if test $ok = yes; then
14542 # An in-tree tool is available and we can use it
14543 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14545$as_echo "just compiled" >&6; }
0c24b341
NC
14546 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14547 # We already found the complete path
14548 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14550$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14551 elif test "x$target" = "x$host"; then
14552 # We can use an host tool
14553 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14555$as_echo "host tool" >&6; }
0c24b341
NC
14556 else
14557 # We need a cross tool
81ecdfbb
RW
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14559$as_echo "pre-installed" >&6; }
0c24b341
NC
14560 fi
14561fi
14562
54752a6b
NN
14563
14564
be01d343 14565
4b900473 14566
a0da8069
NN
14567# Certain tools may need extra flags.
14568AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14569RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14570NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14571
be01d343
PB
14572# When building target libraries, except in a Canadian cross, we use
14573# the same toolchain as the compiler we just built.
14574COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14575COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14576COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14577if test $host = $build; then
14578 case " $configdirs " in
14579 *" gcc "*)
14580 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14581 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14582 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14583 ;;
14584 esac
14585fi
14586
14587
14588
14589
14590
81ecdfbb
RW
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14593# Check whether --enable-maintainer-mode was given.
14594if test "${enable_maintainer_mode+set}" = set; then :
14595 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14596else
14597 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14598fi
14599
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14601$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14602
14603
14604if test "$USE_MAINTAINER_MODE" = yes; then
14605 MAINTAINER_MODE_TRUE=
14606 MAINTAINER_MODE_FALSE='#'
14607else
14608 MAINTAINER_MODE_TRUE='#'
14609 MAINTAINER_MODE_FALSE=
c6b750e1 14610fi
3d5e36ae
AO
14611MAINT=$MAINTAINER_MODE_TRUE
14612
1d39f329
NN
14613# ---------------------
14614# GCC bootstrap support
14615# ---------------------
14616
14617# Stage specific cflags for build.
14618stage1_cflags="-g"
14619case $build in
14620 vax-*-*)
14621 case ${GCC} in
14622 yes) stage1_cflags="-g -Wa,-J" ;;
14623 *) stage1_cflags="-g -J" ;;
14624 esac ;;
1d39f329
NN
14625esac
14626
1d89b610 14627
1d39f329 14628
8a0d8a5c 14629# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14630# Check whether --enable-stage1-checking was given.
14631if test "${enable_stage1_checking+set}" = set; then :
14632 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14633else
5566c1fa 14634 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14635 # For --disable-checking or implicit --enable-checking=release, avoid
14636 # setting --enable-checking=gc in the default stage1 checking for LTO
14637 # bootstraps. See PR62077.
ce6c656d
L
14638 case $BUILD_CONFIG in
14639 *lto*)
05a13254
NC
14640 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14641 *)
14642 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14643 esac
05a13254
NC
14644 if test "x$enable_checking" = x && \
14645 test -d ${srcdir}/gcc && \
14646 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14647 stage1_checking=--enable-checking=yes,types,extra
14648 fi
8a0d8a5c 14649else
5566c1fa 14650 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14651fi
81ecdfbb 14652fi
8a0d8a5c
PB
14653
14654
c6b750e1 14655
81ecdfbb
RW
14656# Enable -Werror in bootstrap stage2 and later.
14657# Check whether --enable-werror was given.
14658if test "${enable_werror+set}" = set; then :
14659 enableval=$enable_werror;
1a6f2dc7
NN
14660case ${enable_werror} in
14661 yes) stage2_werror_flag="--enable-werror-always" ;;
14662 *) stage2_werror_flag="" ;;
1d39f329
NN
14663esac
14664
82033c9b 14665else
82033c9b 14666
bf41f30d
NC
14667if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14668 case $BUILD_CONFIG in
14669 bootstrap-debug)
14670 stage2_werror_flag="--enable-werror-always" ;;
14671 "")
14672 stage2_werror_flag="--enable-werror-always" ;;
14673 esac
14674fi
82033c9b 14675
bf41f30d 14676fi
82033c9b 14677
1b6c0831 14678
1b6c0831 14679
1b6c0831 14680
e8a5fa9c
RW
14681# Specify what files to not compare during bootstrap.
14682
14683compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14684case "$target" in
14685 hppa*64*-*-hpux*) ;;
bf41f30d 14686 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14687 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14688esac
14689
14690
81ecdfbb
RW
14691ac_config_files="$ac_config_files Makefile"
14692
c6b750e1 14693cat >confcache <<\_ACEOF
a0da8069
NN
14694# This file is a shell script that caches the results of configure
14695# tests run on this system so they can be shared between configure
c6b750e1
DJ
14696# scripts and configure runs, see configure's option --config-cache.
14697# It is not useful on other systems. If it contains results you don't
14698# want to keep, you may remove or edit it.
a0da8069 14699#
c6b750e1
DJ
14700# config.status only pays attention to the cache file if you give it
14701# the --recheck option to rerun configure.
a0da8069 14702#
c6b750e1
DJ
14703# `ac_cv_env_foo' variables (set or unset) will be overridden when
14704# loading this file, other *unset* `ac_cv_foo' will be assigned the
14705# following values.
14706
14707_ACEOF
14708
a0da8069
NN
14709# The following way of writing the cache mishandles newlines in values,
14710# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14711# So, we kill variables containing newlines.
a0da8069
NN
14712# Ultrix sh set writes to stderr and can't be redirected directly,
14713# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14714(
14715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14716 eval ac_val=\$$ac_var
14717 case $ac_val in #(
14718 *${as_nl}*)
14719 case $ac_var in #(
14720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14721$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14722 esac
14723 case $ac_var in #(
14724 _ | IFS | as_nl) ;; #(
14725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14726 *) { eval $ac_var=; unset $ac_var;} ;;
14727 esac ;;
14728 esac
14729 done
14730
c6b750e1 14731 (set) 2>&1 |
81ecdfbb
RW
14732 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14733 *${as_nl}ac_space=\ *)
14734 # `set' does not quote correctly, so add quotes: double-quote
14735 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14736 sed -n \
14737 "s/'/'\\\\''/g;
14738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14739 ;; #(
c6b750e1
DJ
14740 *)
14741 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14743 ;;
81ecdfbb
RW
14744 esac |
14745 sort
14746) |
c6b750e1 14747 sed '
81ecdfbb 14748 /^ac_cv_env_/b end
c6b750e1 14749 t clear
81ecdfbb 14750 :clear
c6b750e1
DJ
14751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14752 t end
81ecdfbb
RW
14753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14754 :end' >>confcache
14755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14756 if test -w "$cache_file"; then
d0ac1c44 14757 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14759$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14760 if test ! -f "$cache_file" || test -h "$cache_file"; then
14761 cat confcache >"$cache_file"
14762 else
14763 case $cache_file in #(
14764 */* | ?:*)
14765 mv -f confcache "$cache_file"$$ &&
14766 mv -f "$cache_file"$$ "$cache_file" ;; #(
14767 *)
14768 mv -f confcache "$cache_file" ;;
14769 esac
14770 fi
14771 fi
a0da8069 14772 else
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14775 fi
852e5f18 14776fi
a0da8069 14777rm -f confcache
852e5f18 14778
a0da8069
NN
14779test "x$prefix" = xNONE && prefix=$ac_default_prefix
14780# Let make expand exec_prefix.
14781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14782
a0da8069
NN
14783# Transform confdefs.h into DEFS.
14784# Protect against shell expansion while executing Makefile rules.
14785# Protect against Makefile macro expansion.
c6b750e1
DJ
14786#
14787# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14788# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14789# look for a macro that doesn't take arguments.
81ecdfbb
RW
14790ac_script='
14791:mline
14792/\\$/{
14793 N
14794 s,\\\n,,
14795 b mline
14796}
c6b750e1 14797t clear
81ecdfbb
RW
14798:clear
14799s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14800t quote
81ecdfbb 14801s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14802t quote
81ecdfbb
RW
14803b any
14804:quote
14805s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14806s/\[/\\&/g
14807s/\]/\\&/g
14808s/\$/$$/g
14809H
14810:any
14811${
14812 g
14813 s/^\n//
14814 s/\n/ /g
14815 p
14816}
14817'
14818DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14819
14820
14821ac_libobjs=
14822ac_ltlibobjs=
d0ac1c44 14823U=
c6b750e1
DJ
14824for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14825 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14829 # will be set to the directory where LIBOBJS objects are built.
14830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14832done
14833LIBOBJS=$ac_libobjs
852e5f18 14834
c6b750e1 14835LTLIBOBJS=$ac_ltlibobjs
376a0e54 14836
cac3d6c4 14837
c6b750e1 14838
d0ac1c44 14839: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14840ac_write_fail=0
c6b750e1
DJ
14841ac_clean_files_save=$ac_clean_files
14842ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14844$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14845as_write_fail=0
14846cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14847#! $SHELL
14848# Generated by $as_me.
a0da8069 14849# Run this file to recreate the current configuration.
a0da8069 14850# Compiler output produced by configure, useful for debugging
c6b750e1 14851# configure, is in config.log if it exists.
376a0e54 14852
c6b750e1
DJ
14853debug=false
14854ac_cs_recheck=false
14855ac_cs_silent=false
c6b750e1 14856
81ecdfbb
RW
14857SHELL=\${CONFIG_SHELL-$SHELL}
14858export SHELL
14859_ASEOF
14860cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14861## -------------------- ##
14862## M4sh Initialization. ##
14863## -------------------- ##
14864
14865# Be more Bourne compatible
14866DUALCASE=1; export DUALCASE # for MKS sh
14867if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14868 emulate sh
14869 NULLCMD=:
81ecdfbb 14870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14871 # is contrary to our usage. Disable this feature.
14872 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14873 setopt NO_GLOB_SUBST
14874else
14875 case `(set -o) 2>/dev/null` in #(
14876 *posix*) :
14877 set -o posix ;; #(
14878 *) :
14879 ;;
14880esac
c6b750e1 14881fi
c6b750e1 14882
81ecdfbb
RW
14883
14884as_nl='
14885'
14886export as_nl
14887# Printing a long string crashes Solaris 7 /usr/bin/printf.
14888as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14891# Prefer a ksh shell builtin over an external printf program on Solaris,
14892# but without wasting forks for bash or zsh.
14893if test -z "$BASH_VERSION$ZSH_VERSION" \
14894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14895 as_echo='print -r --'
14896 as_echo_n='print -rn --'
14897elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14898 as_echo='printf %s\n'
14899 as_echo_n='printf %s'
14900else
14901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14903 as_echo_n='/usr/ucb/echo -n'
14904 else
14905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14906 as_echo_n_body='eval
14907 arg=$1;
14908 case $arg in #(
14909 *"$as_nl"*)
14910 expr "X$arg" : "X\\(.*\\)$as_nl";
14911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14912 esac;
14913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14914 '
14915 export as_echo_n_body
14916 as_echo_n='sh -c $as_echo_n_body as_echo'
14917 fi
14918 export as_echo_body
14919 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14920fi
14921
81ecdfbb
RW
14922# The user is always right.
14923if test "${PATH_SEPARATOR+set}" != set; then
14924 PATH_SEPARATOR=:
14925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14927 PATH_SEPARATOR=';'
14928 }
14929fi
14930
14931
14932# IFS
14933# We need space, tab and new line, in precisely that order. Quoting is
14934# there to prevent editors from complaining about space-tab.
14935# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14936# splitting by setting IFS to empty value.)
14937IFS=" "" $as_nl"
14938
14939# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14940as_myself=
81ecdfbb
RW
14941case $0 in #((
14942 *[\\/]* ) as_myself=$0 ;;
14943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944for as_dir in $PATH
14945do
14946 IFS=$as_save_IFS
14947 test -z "$as_dir" && as_dir=.
14948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14949 done
14950IFS=$as_save_IFS
14951
14952 ;;
14953esac
14954# We did not find ourselves, most probably we were run as `sh COMMAND'
14955# in which case we are not to be found in the path.
14956if test "x$as_myself" = x; then
14957 as_myself=$0
14958fi
14959if test ! -f "$as_myself"; then
14960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14961 exit 1
14962fi
c6b750e1 14963
81ecdfbb
RW
14964# Unset variables that we do not need and which cause bugs (e.g. in
14965# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14966# suppresses any "Segmentation fault" message there. '((' could
14967# trigger a bug in pdksh 5.2.14.
14968for as_var in BASH_ENV ENV MAIL MAILPATH
14969do eval test x\${$as_var+set} = xset \
14970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14971done
c6b750e1
DJ
14972PS1='$ '
14973PS2='> '
14974PS4='+ '
14975
14976# NLS nuisances.
81ecdfbb
RW
14977LC_ALL=C
14978export LC_ALL
14979LANGUAGE=C
14980export LANGUAGE
14981
14982# CDPATH.
14983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14984
14985
d0ac1c44
SM
14986# as_fn_error STATUS ERROR [LINENO LOG_FD]
14987# ----------------------------------------
81ecdfbb
RW
14988# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14989# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 14990# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
14991as_fn_error ()
14992{
d0ac1c44
SM
14993 as_status=$1; test $as_status -eq 0 && as_status=1
14994 if test "$4"; then
14995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 14997 fi
d0ac1c44 14998 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
14999 as_fn_exit $as_status
15000} # as_fn_error
15001
15002
15003# as_fn_set_status STATUS
15004# -----------------------
15005# Set $? to STATUS, without forking.
15006as_fn_set_status ()
15007{
15008 return $1
15009} # as_fn_set_status
15010
15011# as_fn_exit STATUS
15012# -----------------
15013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15014as_fn_exit ()
15015{
15016 set +e
15017 as_fn_set_status $1
15018 exit $1
15019} # as_fn_exit
15020
15021# as_fn_unset VAR
15022# ---------------
15023# Portably unset VAR.
15024as_fn_unset ()
15025{
15026 { eval $1=; unset $1;}
15027}
15028as_unset=as_fn_unset
15029# as_fn_append VAR VALUE
15030# ----------------------
15031# Append the text in VALUE to the end of the definition contained in VAR. Take
15032# advantage of any shell optimizations that allow amortized linear growth over
15033# repeated appends, instead of the typical quadratic growth present in naive
15034# implementations.
15035if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15036 eval 'as_fn_append ()
15037 {
15038 eval $1+=\$2
15039 }'
15040else
15041 as_fn_append ()
15042 {
15043 eval $1=\$$1\$2
15044 }
15045fi # as_fn_append
15046
15047# as_fn_arith ARG...
15048# ------------------
15049# Perform arithmetic evaluation on the ARGs, and store the result in the
15050# global $as_val. Take advantage of shells that can avoid forks. The arguments
15051# must be portable across $(()) and expr.
15052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15053 eval 'as_fn_arith ()
15054 {
15055 as_val=$(( $* ))
15056 }'
15057else
15058 as_fn_arith ()
15059 {
15060 as_val=`expr "$@" || test $? -eq 1`
15061 }
15062fi # as_fn_arith
15063
c6b750e1 15064
81ecdfbb
RW
15065if expr a : '\(a\)' >/dev/null 2>&1 &&
15066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15067 as_expr=expr
15068else
15069 as_expr=false
15070fi
15071
81ecdfbb 15072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15073 as_basename=basename
15074else
15075 as_basename=false
15076fi
15077
81ecdfbb
RW
15078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15079 as_dirname=dirname
15080else
15081 as_dirname=false
15082fi
c6b750e1 15083
81ecdfbb 15084as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15086 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15088$as_echo X/"$0" |
15089 sed '/^.*\/\([^/][^/]*\)\/*$/{
15090 s//\1/
15091 q
15092 }
15093 /^X\/\(\/\/\)$/{
15094 s//\1/
15095 q
15096 }
15097 /^X\/\(\/\).*/{
15098 s//\1/
15099 q
15100 }
15101 s/.*/./; q'`
c6b750e1 15102
c6b750e1
DJ
15103# Avoid depending upon Character Ranges.
15104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15107as_cr_digits='0123456789'
15108as_cr_alnum=$as_cr_Letters$as_cr_digits
15109
81ecdfbb
RW
15110ECHO_C= ECHO_N= ECHO_T=
15111case `echo -n x` in #(((((
15112-n*)
15113 case `echo 'xy\c'` in
15114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15115 xy) ECHO_C='\c';;
15116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15117 ECHO_T=' ';;
15118 esac;;
15119*)
15120 ECHO_N='-n';;
c6b750e1
DJ
15121esac
15122
81ecdfbb
RW
15123rm -f conf$$ conf$$.exe conf$$.file
15124if test -d conf$$.dir; then
15125 rm -f conf$$.dir/conf$$.file
c6b750e1 15126else
81ecdfbb
RW
15127 rm -f conf$$.dir
15128 mkdir conf$$.dir 2>/dev/null
c6b750e1 15129fi
81ecdfbb
RW
15130if (echo >conf$$.file) 2>/dev/null; then
15131 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15132 as_ln_s='ln -s'
81ecdfbb
RW
15133 # ... but there are two gotchas:
15134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15136 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15138 as_ln_s='cp -pR'
81ecdfbb
RW
15139 elif ln conf$$.file conf$$ 2>/dev/null; then
15140 as_ln_s=ln
15141 else
d0ac1c44 15142 as_ln_s='cp -pR'
c6b750e1 15143 fi
c6b750e1 15144else
d0ac1c44 15145 as_ln_s='cp -pR'
c6b750e1 15146fi
81ecdfbb
RW
15147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15148rmdir conf$$.dir 2>/dev/null
15149
15150
15151# as_fn_mkdir_p
15152# -------------
15153# Create "$as_dir" as a directory, including parents if necessary.
15154as_fn_mkdir_p ()
15155{
15156
15157 case $as_dir in #(
15158 -*) as_dir=./$as_dir;;
15159 esac
15160 test -d "$as_dir" || eval $as_mkdir_p || {
15161 as_dirs=
15162 while :; do
15163 case $as_dir in #(
15164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15165 *) as_qdir=$as_dir;;
15166 esac
15167 as_dirs="'$as_qdir' $as_dirs"
15168 as_dir=`$as_dirname -- "$as_dir" ||
15169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15170 X"$as_dir" : 'X\(//\)[^/]' \| \
15171 X"$as_dir" : 'X\(//\)$' \| \
15172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15173$as_echo X"$as_dir" |
15174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15175 s//\1/
15176 q
15177 }
15178 /^X\(\/\/\)[^/].*/{
15179 s//\1/
15180 q
15181 }
15182 /^X\(\/\/\)$/{
15183 s//\1/
15184 q
15185 }
15186 /^X\(\/\).*/{
15187 s//\1/
15188 q
15189 }
15190 s/.*/./; q'`
15191 test -d "$as_dir" && break
15192 done
15193 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15195
c6b750e1 15196
81ecdfbb 15197} # as_fn_mkdir_p
c6b750e1 15198if mkdir -p . 2>/dev/null; then
81ecdfbb 15199 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15200else
15201 test -d ./-p && rmdir ./-p
15202 as_mkdir_p=false
15203fi
15204
d0ac1c44
SM
15205
15206# as_fn_executable_p FILE
15207# -----------------------
15208# Test if FILE is an executable regular file.
15209as_fn_executable_p ()
15210{
15211 test -f "$1" && test -x "$1"
15212} # as_fn_executable_p
15213as_test_x='test -x'
15214as_executable_p=as_fn_executable_p
c6b750e1
DJ
15215
15216# Sed expression to map a string onto a valid CPP name.
15217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15218
15219# Sed expression to map a string onto a valid variable name.
15220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15221
15222
c6b750e1 15223exec 6>&1
81ecdfbb
RW
15224## ----------------------------------- ##
15225## Main body of $CONFIG_STATUS script. ##
15226## ----------------------------------- ##
15227_ASEOF
15228test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15229
15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15232# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15233# values after options handling.
15234ac_log="
c6b750e1 15235This file was extended by $as_me, which was
d0ac1c44 15236generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15237
15238 CONFIG_FILES = $CONFIG_FILES
15239 CONFIG_HEADERS = $CONFIG_HEADERS
15240 CONFIG_LINKS = $CONFIG_LINKS
15241 CONFIG_COMMANDS = $CONFIG_COMMANDS
15242 $ $0 $@
15243
81ecdfbb
RW
15244on `(hostname || uname -n) 2>/dev/null | sed 1q`
15245"
15246
c6b750e1
DJ
15247_ACEOF
15248
81ecdfbb
RW
15249case $ac_config_files in *"
15250"*) set x $ac_config_files; shift; ac_config_files=$*;;
15251esac
c6b750e1 15252
c6b750e1 15253
c6b750e1 15254
81ecdfbb
RW
15255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256# Files that config.status was made for.
15257config_files="$ac_config_files"
c6b750e1 15258
81ecdfbb 15259_ACEOF
c6b750e1 15260
81ecdfbb 15261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15262ac_cs_usage="\
81ecdfbb
RW
15263\`$as_me' instantiates files and other configuration actions
15264from templates according to the current configuration. Unless the files
15265and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15266
81ecdfbb 15267Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15268
15269 -h, --help print this help, then exit
81ecdfbb 15270 -V, --version print version number and configuration settings, then exit
d0ac1c44 15271 --config print configuration, then exit
81ecdfbb
RW
15272 -q, --quiet, --silent
15273 do not print progress messages
c6b750e1
DJ
15274 -d, --debug don't remove temporary files
15275 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15276 --file=FILE[:TEMPLATE]
15277 instantiate the configuration file FILE
c6b750e1
DJ
15278
15279Configuration files:
15280$config_files
15281
81ecdfbb 15282Report bugs to the package provider."
c6b750e1 15283
81ecdfbb
RW
15284_ACEOF
15285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15286ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15287ac_cs_version="\\
15288config.status
d0ac1c44
SM
15289configured by $0, generated by GNU Autoconf 2.69,
15290 with options \\"\$ac_cs_config\\"
c6b750e1 15291
d0ac1c44 15292Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15293This config.status script is free software; the Free Software Foundation
15294gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15295
15296ac_pwd='$ac_pwd'
15297srcdir='$srcdir'
15298INSTALL='$INSTALL'
8e957354 15299AWK='$AWK'
81ecdfbb 15300test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15301_ACEOF
15302
81ecdfbb
RW
15303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15305ac_need_defaults=:
15306while test $# != 0
a0da8069 15307do
c6b750e1 15308 case $1 in
d0ac1c44 15309 --*=?*)
81ecdfbb
RW
15310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15312 ac_shift=:
15313 ;;
d0ac1c44
SM
15314 --*=)
15315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15316 ac_optarg=
15317 ac_shift=:
15318 ;;
81ecdfbb 15319 *)
c6b750e1
DJ
15320 ac_option=$1
15321 ac_optarg=$2
15322 ac_shift=shift
15323 ;;
c6b750e1
DJ
15324 esac
15325
15326 case $ac_option in
15327 # Handling of the options.
a0da8069 15328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15329 ac_cs_recheck=: ;;
81ecdfbb
RW
15330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15331 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15332 --config | --confi | --conf | --con | --co | --c )
15333 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15334 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15335 debug=: ;;
15336 --file | --fil | --fi | --f )
15337 $ac_shift
81ecdfbb
RW
15338 case $ac_optarg in
15339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15340 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15341 esac
15342 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15343 ac_need_defaults=false;;
81ecdfbb
RW
15344 --he | --h | --help | --hel | -h )
15345 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15348 ac_cs_silent=: ;;
15349
15350 # This is an error.
d0ac1c44 15351 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15352Try \`$0 --help' for more information." ;;
c6b750e1 15353
81ecdfbb
RW
15354 *) as_fn_append ac_config_targets " $1"
15355 ac_need_defaults=false ;;
c6b750e1 15356
376a0e54 15357 esac
c6b750e1 15358 shift
376a0e54
CM
15359done
15360
c6b750e1 15361ac_configure_extra_args=
376a0e54 15362
c6b750e1
DJ
15363if $ac_cs_silent; then
15364 exec 6>/dev/null
15365 ac_configure_extra_args="$ac_configure_extra_args --silent"
15366fi
376a0e54 15367
c6b750e1 15368_ACEOF
81ecdfbb 15369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15370if \$ac_cs_recheck; then
d0ac1c44 15371 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15372 shift
15373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15374 CONFIG_SHELL='$SHELL'
15375 export CONFIG_SHELL
15376 exec "\$@"
c6b750e1
DJ
15377fi
15378
15379_ACEOF
81ecdfbb
RW
15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381exec 5>>config.log
15382{
15383 echo
15384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15385## Running $as_me. ##
15386_ASBOX
15387 $as_echo "$ac_log"
15388} >&5
c6b750e1 15389
81ecdfbb
RW
15390_ACEOF
15391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15392#
15393# INIT-COMMANDS
15394#
15395extrasub_build="$extrasub_build"
15396 extrasub_host="$extrasub_host"
15397 extrasub_target="$extrasub_target"
15398
81ecdfbb 15399_ACEOF
c6b750e1 15400
81ecdfbb 15401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15402
81ecdfbb 15403# Handling of arguments.
c6b750e1
DJ
15404for ac_config_target in $ac_config_targets
15405do
81ecdfbb
RW
15406 case $ac_config_target in
15407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15408
d0ac1c44 15409 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15410 esac
15411done
15412
81ecdfbb 15413
c6b750e1
DJ
15414# If the user did not use the arguments to specify the items to instantiate,
15415# then the envvar interface is used. Set only those that are not.
15416# We use the long form for the default assignment because of an extremely
15417# bizarre bug on SunOS 4.1.3.
15418if $ac_need_defaults; then
15419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15420fi
15421
15422# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15423# simply because there is no reason against having it here, and in addition,
c6b750e1 15424# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15425# Hook for its removal unless debugging.
15426# Note that there is a small window in which the directory will not be cleaned:
15427# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15428$debug ||
15429{
d0ac1c44 15430 tmp= ac_tmp=
81ecdfbb 15431 trap 'exit_status=$?
d0ac1c44
SM
15432 : "${ac_tmp:=$tmp}"
15433 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15434' 0
15435 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15436}
c6b750e1
DJ
15437# Create a (secure) tmp directory for tmp files.
15438
15439{
81ecdfbb 15440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15441 test -d "$tmp"
c6b750e1
DJ
15442} ||
15443{
81ecdfbb
RW
15444 tmp=./conf$$-$RANDOM
15445 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15446} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15447ac_tmp=$tmp
81ecdfbb
RW
15448
15449# Set up the scripts for CONFIG_FILES section.
15450# No need to generate them if there are no CONFIG_FILES.
15451# This happens for instance with `./config.status config.h'.
15452if test -n "$CONFIG_FILES"; then
15453
15454if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15455 ac_cs_awk_getline=:
15456 ac_cs_awk_pipe_init=
15457 ac_cs_awk_read_file='
15458 while ((getline aline < (F[key])) > 0)
15459 print(aline)
15460 close(F[key])'
15461 ac_cs_awk_pipe_fini=
15462else
15463 ac_cs_awk_getline=false
15464 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15465 ac_cs_awk_read_file='
15466 print "|#_!!_#|"
15467 print "cat " F[key] " &&"
15468 '$ac_cs_awk_pipe_init
15469 # The final `:' finishes the AND list.
15470 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15471fi
15472ac_cr=`echo X | tr X '\015'`
15473# On cygwin, bash can eat \r inside `` if the user requested igncr.
15474# But we know of no other shell where ac_cr would be empty at this
15475# point, so we can use a bashism as a fallback.
15476if test "x$ac_cr" = x; then
15477 eval ac_cr=\$\'\\r\'
15478fi
15479ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15480if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15481 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15482else
15483 ac_cs_awk_cr=$ac_cr
15484fi
15485
d0ac1c44 15486echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15487_ACEOF
15488
15489# Create commands to substitute file output variables.
c6b750e1 15490{
81ecdfbb 15491 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15492 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15493 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15494 echo "_ACAWK" &&
15495 echo "_ACEOF"
15496} >conf$$files.sh &&
15497. ./conf$$files.sh ||
d0ac1c44 15498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15499rm -f conf$$files.sh
c6b750e1 15500
81ecdfbb
RW
15501{
15502 echo "cat >conf$$subs.awk <<_ACEOF" &&
15503 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15504 echo "_ACEOF"
15505} >conf$$subs.sh ||
d0ac1c44
SM
15506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15507ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15508ac_delim='%!_!# '
15509for ac_last_try in false false false false false :; do
15510 . ./conf$$subs.sh ||
d0ac1c44 15511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15512
15513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15514 if test $ac_delim_n = $ac_delim_num; then
15515 break
15516 elif $ac_last_try; then
d0ac1c44 15517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15518 else
15519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15520 fi
15521done
15522rm -f conf$$subs.sh
15523
15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15525cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15526_ACEOF
81ecdfbb
RW
15527sed -n '
15528h
15529s/^/S["/; s/!.*/"]=/
15530p
15531g
15532s/^[^!]*!//
15533:repl
15534t repl
15535s/'"$ac_delim"'$//
15536t delim
15537:nl
15538h
d0ac1c44 15539s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15540t more1
15541s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15542p
15543n
15544b repl
15545:more1
15546s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15547p
15548g
15549s/.\{148\}//
15550t nl
15551:delim
15552h
d0ac1c44 15553s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15554t more2
15555s/["\\]/\\&/g; s/^/"/; s/$/"/
15556p
15557b
15558:more2
15559s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15560p
15561g
15562s/.\{148\}//
15563t delim
15564' <conf$$subs.awk | sed '
15565/^[^""]/{
15566 N
15567 s/\n//
15568}
15569' >>$CONFIG_STATUS || ac_write_fail=1
15570rm -f conf$$subs.awk
15571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572_ACAWK
d0ac1c44 15573cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15574 for (key in S) S_is_set[key] = 1
15575 FS = "\a"
15576 \$ac_cs_awk_pipe_init
15577}
15578{
15579 line = $ 0
15580 nfields = split(line, field, "@")
15581 substed = 0
15582 len = length(field[1])
15583 for (i = 2; i < nfields; i++) {
15584 key = field[i]
15585 keylen = length(key)
15586 if (S_is_set[key]) {
15587 value = S[key]
15588 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15589 len += length(value) + length(field[++i])
15590 substed = 1
15591 } else
15592 len += 1 + keylen
15593 }
15594 if (nfields == 3 && !substed) {
15595 key = field[2]
15596 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15597 \$ac_cs_awk_read_file
15598 next
15599 }
15600 }
15601 print line
15602}
15603\$ac_cs_awk_pipe_fini
15604_ACAWK
15605_ACEOF
15606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15609else
15610 cat
d0ac1c44
SM
15611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15613_ACEOF
15614
d0ac1c44
SM
15615# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15617# trailing colons and then remove the whole line if VPATH becomes empty
15618# (actually we leave an empty line to preserve line numbers).
15619if test "x$srcdir" = x.; then
d0ac1c44
SM
15620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15621h
15622s///
15623s/^/:/
15624s/[ ]*$/:/
15625s/:\$(srcdir):/:/g
15626s/:\${srcdir}:/:/g
15627s/:@srcdir@:/:/g
15628s/^:*//
81ecdfbb 15629s/:*$//
d0ac1c44
SM
15630x
15631s/\(=[ ]*\).*/\1/
15632G
15633s/\n//
81ecdfbb
RW
15634s/^[^=]*=[ ]*$//
15635}'
15636fi
c6b750e1 15637
81ecdfbb
RW
15638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639fi # test -n "$CONFIG_FILES"
c6b750e1 15640
c6b750e1 15641
81ecdfbb
RW
15642eval set X " :F $CONFIG_FILES "
15643shift
15644for ac_tag
15645do
15646 case $ac_tag in
15647 :[FHLC]) ac_mode=$ac_tag; continue;;
15648 esac
15649 case $ac_mode$ac_tag in
15650 :[FHL]*:*);;
d0ac1c44 15651 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15652 :[FH]-) ac_tag=-:-;;
15653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15654 esac
15655 ac_save_IFS=$IFS
15656 IFS=:
15657 set x $ac_tag
15658 IFS=$ac_save_IFS
15659 shift
15660 ac_file=$1
15661 shift
252b5132 15662
81ecdfbb
RW
15663 case $ac_mode in
15664 :L) ac_source=$1;;
15665 :[FH])
15666 ac_file_inputs=
15667 for ac_f
15668 do
15669 case $ac_f in
d0ac1c44 15670 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15671 *) # Look for the file first in the build tree, then in the source tree
15672 # (if the path is not absolute). The absolute path cannot be DOS-style,
15673 # because $ac_f cannot contain `:'.
15674 test -f "$ac_f" ||
15675 case $ac_f in
15676 [\\/$]*) false;;
15677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15678 esac ||
d0ac1c44 15679 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15680 esac
15681 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15682 as_fn_append ac_file_inputs " '$ac_f'"
15683 done
c6b750e1 15684
81ecdfbb
RW
15685 # Let's still pretend it is `configure' which instantiates (i.e., don't
15686 # use $as_me), people would be surprised to read:
15687 # /* config.h. Generated by config.status. */
15688 configure_input='Generated from '`
15689 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15690 `' by configure.'
15691 if test x"$ac_file" != x-; then
15692 configure_input="$ac_file. $configure_input"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15694$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15695 fi
81ecdfbb
RW
15696 # Neutralize special characters interpreted by sed in replacement strings.
15697 case $configure_input in #(
15698 *\&* | *\|* | *\\* )
15699 ac_sed_conf_input=`$as_echo "$configure_input" |
15700 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15701 *) ac_sed_conf_input=$configure_input;;
15702 esac
cac3d6c4 15703
81ecdfbb 15704 case $ac_tag in
d0ac1c44
SM
15705 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15707 esac
15708 ;;
a0da8069 15709 esac
252b5132 15710
81ecdfbb 15711 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15712$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15713 X"$ac_file" : 'X\(//\)[^/]' \| \
15714 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15716$as_echo X"$ac_file" |
15717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15718 s//\1/
15719 q
15720 }
15721 /^X\(\/\/\)[^/].*/{
15722 s//\1/
15723 q
15724 }
15725 /^X\(\/\/\)$/{
15726 s//\1/
15727 q
15728 }
15729 /^X\(\/\).*/{
15730 s//\1/
15731 q
15732 }
15733 s/.*/./; q'`
15734 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15735 ac_builddir=.
252b5132 15736
81ecdfbb
RW
15737case "$ac_dir" in
15738.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15739*)
15740 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15741 # A ".." for each directory in $ac_dir_suffix.
15742 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15743 case $ac_top_builddir_sub in
15744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15746 esac ;;
15747esac
15748ac_abs_top_builddir=$ac_pwd
15749ac_abs_builddir=$ac_pwd$ac_dir_suffix
15750# for backward compatibility:
15751ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15752
15753case $srcdir in
81ecdfbb 15754 .) # We are building in place.
c6b750e1 15755 ac_srcdir=.
81ecdfbb
RW
15756 ac_top_srcdir=$ac_top_builddir_sub
15757 ac_abs_top_srcdir=$ac_pwd ;;
15758 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15759 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15760 ac_top_srcdir=$srcdir
15761 ac_abs_top_srcdir=$srcdir ;;
15762 *) # Relative name.
15763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15764 ac_top_srcdir=$ac_top_build_prefix$srcdir
15765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15766esac
81ecdfbb 15767ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15768
252b5132 15769
81ecdfbb
RW
15770 case $ac_mode in
15771 :F)
15772 #
15773 # CONFIG_FILE
15774 #
c6b750e1
DJ
15775
15776 case $INSTALL in
15777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15779 esac
81ecdfbb 15780_ACEOF
252b5132 15781
81ecdfbb
RW
15782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783# If the template does not know about datarootdir, expand it.
15784# FIXME: This hack should be removed a few years after 2.60.
15785ac_datarootdir_hack=; ac_datarootdir_seen=
15786ac_sed_dataroot='
15787/datarootdir/ {
15788 p
15789 q
15790}
15791/@datadir@/p
15792/@docdir@/p
15793/@infodir@/p
15794/@localedir@/p
15795/@mandir@/p'
15796case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15797*datarootdir*) ac_datarootdir_seen=yes;;
15798*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15800$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15801_ACEOF
81ecdfbb
RW
15802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803 ac_datarootdir_hack='
15804 s&@datadir@&$datadir&g
15805 s&@docdir@&$docdir&g
15806 s&@infodir@&$infodir&g
15807 s&@localedir@&$localedir&g
15808 s&@mandir@&$mandir&g
15809 s&\\\${datarootdir}&$datarootdir&g' ;;
15810esac
15811_ACEOF
15812
15813# Neutralize VPATH when `$srcdir' = `.'.
15814# Shell code in configure.ac might set extrasub.
15815# FIXME: do we really want to maintain this feature?
15816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15818$extrasub
15819_ACEOF
81ecdfbb 15820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15821:t
15822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15823s|@configure_input@|$ac_sed_conf_input|;t t
15824s&@top_builddir@&$ac_top_builddir_sub&;t t
15825s&@top_build_prefix@&$ac_top_build_prefix&;t t
15826s&@srcdir@&$ac_srcdir&;t t
15827s&@abs_srcdir@&$ac_abs_srcdir&;t t
15828s&@top_srcdir@&$ac_top_srcdir&;t t
15829s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15830s&@builddir@&$ac_builddir&;t t
15831s&@abs_builddir@&$ac_abs_builddir&;t t
15832s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15833s&@INSTALL@&$ac_INSTALL&;t t
15834$ac_datarootdir_hack
15835"
15836eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15837if $ac_cs_awk_getline; then
d0ac1c44 15838 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 15839else
d0ac1c44
SM
15840 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15841fi \
15842 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15843
15844test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15845 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15847 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15849which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15850$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15851which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15852
d0ac1c44 15853 rm -f "$ac_tmp/stdin"
81ecdfbb 15854 case $ac_file in
d0ac1c44
SM
15855 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15856 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15857 esac \
d0ac1c44 15858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15859 ;;
c148b4cb 15860
c148b4cb 15861
c148b4cb 15862
81ecdfbb
RW
15863 esac
15864
06a51eac
RW
15865
15866 case $ac_file$ac_mode in
15867 "Makefile":F) sed "$extrasub_build" Makefile |
15868 sed "$extrasub_host" |
15869 sed "$extrasub_target" > mf$$
15870 mv -f mf$$ Makefile ;;
15871
15872 esac
81ecdfbb
RW
15873done # for ac_tag
15874
15875
15876as_fn_exit 0
c6b750e1 15877_ACEOF
c6b750e1
DJ
15878ac_clean_files=$ac_clean_files_save
15879
81ecdfbb 15880test $ac_write_fail = 0 ||
d0ac1c44 15881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15882
c6b750e1
DJ
15883
15884# configure is writing to config.log, and then calls config.status.
15885# config.status does its own redirection, appending to config.log.
15886# Unfortunately, on DOS this fails, as config.log is still kept open
15887# by configure, so config.status won't be able to write to it; its
15888# output is simply discarded. So we exec the FD to /dev/null,
15889# effectively closing config.log, so it can be properly (re)opened and
15890# appended to by config.status. When coming back to configure, we
15891# need to make the FD available again.
15892if test "$no_create" != yes; then
15893 ac_cs_success=:
15894 ac_config_status_args=
15895 test "$silent" = yes &&
15896 ac_config_status_args="$ac_config_status_args --quiet"
15897 exec 5>/dev/null
15898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15899 exec 5>>config.log
15900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15901 # would make configure fail if this is the last instruction.
d0ac1c44 15902 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15903fi
15904if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15906$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15907fi
c148b4cb 15908
This page took 2.633666 seconds and 4 git commands to generate.