sim: add support for build-time ar & ranlib
[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
50ad1254
L
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
b121d7d4 621READELF
81ecdfbb
RW
622OBJDUMP
623OBJCOPY
624WINDMC
625WINDRES
626STRIP
627RANLIB
628NM
629LIPO
630LD
631DLLTOOL
632AS
633AR
634RUNTEST
635EXPECT
636MAKEINFO
637FLEX
638LEX
639M4
640BISON
641YACC
81ecdfbb
RW
642WINDRES_FOR_BUILD
643WINDMC_FOR_BUILD
644RANLIB_FOR_BUILD
645NM_FOR_BUILD
646LD_FOR_BUILD
647LDFLAGS_FOR_BUILD
e552509b 648GOC_FOR_BUILD
81ecdfbb 649GFORTRAN_FOR_BUILD
81ecdfbb
RW
650DLLTOOL_FOR_BUILD
651CXX_FOR_BUILD
652CXXFLAGS_FOR_BUILD
653CFLAGS_FOR_BUILD
654CC_FOR_BUILD
655AS_FOR_BUILD
656AR_FOR_BUILD
911e63d0 657target_configdirs
81ecdfbb 658configdirs
81ecdfbb 659build_configdirs
81ecdfbb
RW
660INSTALL_GDB_TK
661GDB_TK
662CONFIGURE_GDB_TK
663build_tooldir
664tooldir
665GCC_SHLIB_SUBDIR
666RPATH_ENVVAR
4074d5f2
RW
667target_configargs
668host_configargs
669build_configargs
96655cc4 670BUILD_CONFIG
91c1f14c 671LDFLAGS_FOR_TARGET
81ecdfbb
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 676get_gcc_base_ver
e81d5d05 677extra_host_zlib_configure_flags
700d40ca 678extra_host_libiberty_configure_flags
1b6c0831 679stage1_languages
bf41f30d 680host_shared
1b6c0831
L
681extra_linker_plugin_flags
682extra_linker_plugin_configure_flags
7ec59b9e 683islinc
1b6c0831 684isllibs
81ecdfbb 685poststage1_ldflags
143754cd 686poststage1_libs
81ecdfbb 687stage1_ldflags
b3676d82 688stage1_libs
7ec59b9e 689extra_isl_gmp_configure_flags
81ecdfbb
RW
690extra_mpc_mpfr_configure_flags
691extra_mpc_gmp_configure_flags
692extra_mpfr_configure_flags
693gmpinc
694gmplibs
af019bfd
L
695PGO_BUILD_LTO_CFLAGS
696PGO_BUILD_USE_CFLAGS
697PGO_BUILD_GEN_CFLAGS
81ecdfbb
RW
698do_compare
699GNATMAKE
700GNATBIND
701ac_ct_CXX
702CXXFLAGS
703CXX
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
1b6c0831 711extra_liboffloadmic_configure_flags
81ecdfbb
RW
712target_subdir
713host_subdir
714build_subdir
715build_libsubdir
8e957354
PB
716AWK
717SED
81ecdfbb
RW
718LN_S
719LN
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731target_noncanonical
732host_noncanonical
733build_noncanonical
734build_os
735build_vendor
736build_cpu
737build
738TOPLEVEL_CONFIGURE_ARGUMENTS
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files='serialization_dependencies
778host_makefile_frag
779target_makefile_frag
780alphaieee_frag
781ospace_frag'
782ac_user_opts='
783enable_option_checking
784with_build_libsubdir
cf39cfc5 785with_system_zlib
1b6c0831
L
786enable_as_accelerator_for
787enable_offload_targets
81ecdfbb 788enable_gold
c7791212 789enable_ld
edeefb67 790enable_compressed_debug_sections
89a1e9c3
PB
791enable_libquadmath
792enable_libquadmath_support
81ecdfbb
RW
793enable_libada
794enable_libssp
f66a9a70 795enable_libstdcxx
1b6c0831 796enable_liboffloadmic
ffdd6afc 797enable_bootstrap
af019bfd 798enable_pgo_build
81ecdfbb
RW
799with_mpc
800with_mpc_include
801with_mpc_lib
802with_mpfr_dir
803with_mpfr
804with_mpfr_include
805with_mpfr_lib
806with_gmp_dir
807with_gmp
808with_gmp_include
809with_gmp_lib
81ecdfbb 810with_stage1_libs
c1a5d03a 811with_static_standard_libraries
b3676d82 812with_stage1_ldflags
81ecdfbb 813with_boot_libs
143754cd 814with_boot_ldflags
7ec59b9e
L
815with_isl
816with_isl_include
817with_isl_lib
818enable_isl_version_check
700d40ca 819enable_lto
1b6c0831
L
820enable_linker_plugin_configure_flags
821enable_linker_plugin_flags
bf41f30d 822enable_host_shared
81ecdfbb
RW
823enable_stage1_languages
824enable_objc_gc
05a13254
NC
825with_target_bdw_gc
826with_target_bdw_gc_include
827with_target_bdw_gc_lib
bf41f30d 828with_gcc_major_version_only
81ecdfbb
RW
829with_build_sysroot
830with_debug_prefix_map
96655cc4 831with_build_config
730af8ee 832enable_vtable_verify
81ecdfbb
RW
833enable_serial_configure
834with_build_time_tools
835enable_maintainer_mode
836enable_stage1_checking
837enable_werror
81ecdfbb
RW
838'
839 ac_precious_vars='build_alias
840host_alias
841target_alias
842CC
843CFLAGS
844LDFLAGS
845LIBS
846CPPFLAGS
847CXX
848CXXFLAGS
849CCC
4074d5f2
RW
850build_configargs
851host_configargs
852target_configargs
81ecdfbb
RW
853AR
854AS
855DLLTOOL
856LD
857LIPO
858NM
859RANLIB
860STRIP
861WINDRES
862WINDMC
863OBJCOPY
864OBJDUMP
b121d7d4 865READELF
81ecdfbb
RW
866CC_FOR_TARGET
867CXX_FOR_TARGET
868GCC_FOR_TARGET
81ecdfbb 869GFORTRAN_FOR_TARGET
e552509b 870GOC_FOR_TARGET
81ecdfbb
RW
871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
6b91c541 877OBJCOPY_FOR_TARGET
81ecdfbb
RW
878OBJDUMP_FOR_TARGET
879RANLIB_FOR_TARGET
b121d7d4 880READELF_FOR_TARGET
81ecdfbb
RW
881STRIP_FOR_TARGET
882WINDRES_FOR_TARGET
883WINDMC_FOR_TARGET'
884
a0da8069
NN
885
886# Initialize some variables set by options.
c6b750e1
DJ
887ac_init_help=
888ac_init_version=false
81ecdfbb
RW
889ac_unrecognized_opts=
890ac_unrecognized_sep=
a0da8069
NN
891# The variables have the same names as the options, with
892# dashes changed to underlines.
c6b750e1 893cache_file=/dev/null
a0da8069 894exec_prefix=NONE
a0da8069 895no_create=
a0da8069
NN
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
a0da8069
NN
904verbose=
905x_includes=NONE
906x_libraries=NONE
c6b750e1
DJ
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 913# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
a0da8069
NN
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
a0da8069
NN
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
81ecdfbb
RW
924docdir='${datarootdir}/doc/${PACKAGE}'
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
252b5132 933
a0da8069 934ac_prev=
81ecdfbb 935ac_dashdash=
a0da8069
NN
936for ac_option
937do
a0da8069
NN
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
81ecdfbb 940 eval $ac_prev=\$ac_option
a0da8069
NN
941 ac_prev=
942 continue
943 fi
252b5132 944
81ecdfbb 945 case $ac_option in
d0ac1c44
SM
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
81ecdfbb 949 esac
a0da8069
NN
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
81ecdfbb
RW
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
a0da8069
NN
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 960 bindir=$ac_optarg ;;
a0da8069
NN
961
962 -build | --build | --buil | --bui | --bu)
c6b750e1 963 ac_prev=build_alias ;;
a0da8069 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 965 build_alias=$ac_optarg ;;
a0da8069
NN
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
a0da8069 976
81ecdfbb 977 -datadir | --datadir | --datadi | --datad)
a0da8069 978 ac_prev=datadir ;;
81ecdfbb 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 980 datadir=$ac_optarg ;;
a0da8069 981
81ecdfbb
RW
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
a0da8069 989 -disable-* | --disable-*)
81ecdfbb 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 991 # Reject names that are not valid shell variable names.
81ecdfbb 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 993 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
a0da8069
NN
1014
1015 -enable-* | --enable-*)
81ecdfbb 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1017 # Reject names that are not valid shell variable names.
81ecdfbb 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1019 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
a0da8069 1028 esac
81ecdfbb 1029 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
c6b750e1 1038 exec_prefix=$ac_optarg ;;
a0da8069
NN
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
c6b750e1
DJ
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
a0da8069
NN
1050
1051 -host | --host | --hos | --ho)
c6b750e1 1052 ac_prev=host_alias ;;
a0da8069 1053 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1054 host_alias=$ac_optarg ;;
a0da8069 1055
81ecdfbb
RW
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
a0da8069
NN
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1067 includedir=$ac_optarg ;;
a0da8069
NN
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1072 infodir=$ac_optarg ;;
a0da8069
NN
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1077 libdir=$ac_optarg ;;
a0da8069
NN
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1084 libexecdir=$ac_optarg ;;
a0da8069 1085
81ecdfbb
RW
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
a0da8069 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1092 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1096 localstatedir=$ac_optarg ;;
a0da8069
NN
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1101 mandir=$ac_optarg ;;
a0da8069
NN
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1108 | --no-cr | --no-c | -n)
a0da8069
NN
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1122 oldincludedir=$ac_optarg ;;
a0da8069
NN
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1127 prefix=$ac_optarg ;;
a0da8069
NN
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1134 program_prefix=$ac_optarg ;;
a0da8069
NN
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1141 program_suffix=$ac_optarg ;;
a0da8069
NN
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1158 program_transform_name=$ac_optarg ;;
a0da8069 1159
81ecdfbb
RW
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
a0da8069
NN
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
c6b750e1 1178 sbindir=$ac_optarg ;;
a0da8069
NN
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
c6b750e1 1189 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
c6b750e1 1194 site=$ac_optarg ;;
a0da8069
NN
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1199 srcdir=$ac_optarg ;;
a0da8069
NN
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1206 sysconfdir=$ac_optarg ;;
a0da8069
NN
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1209 ac_prev=target_alias ;;
a0da8069 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1211 target_alias=$ac_optarg ;;
a0da8069
NN
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
c6b750e1
DJ
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
a0da8069
NN
1218
1219 -with-* | --with-*)
81ecdfbb 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1221 # Reject names that are not valid shell variable names.
81ecdfbb 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1223 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
a0da8069 1232 esac
81ecdfbb 1233 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1234
1235 -without-* | --without-*)
81ecdfbb 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1237 # Reject names that are not valid shell variable names.
81ecdfbb 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1239 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
a0da8069
NN
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1260 x_includes=$ac_optarg ;;
a0da8069
NN
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1267 x_libraries=$ac_optarg ;;
a0da8069 1268
d0ac1c44
SM
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
a0da8069
NN
1271 ;;
1272
c6b750e1
DJ
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1279 esac
1280 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1281 export $ac_envvar ;;
1282
a0da8069 1283 *)
c6b750e1 1284 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
c6b750e1 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1296 as_fn_error $? "missing argument to $ac_option"
a0da8069 1297fi
a0da8069 1298
81ecdfbb
RW
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
d0ac1c44 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1304 esac
81ecdfbb 1305fi
a0da8069 1306
81ecdfbb
RW
1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
a0da8069 1312do
81ecdfbb
RW
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
c6b750e1 1321 case $ac_val in
81ecdfbb
RW
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1324 esac
d0ac1c44 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1326done
1327
c6b750e1
DJ
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
376a0e54 1334
c6b750e1
DJ
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
c6b750e1
DJ
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
a0da8069 1348
a0da8069 1349
81ecdfbb
RW
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1353 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1355 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1356
1357
a0da8069
NN
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
81ecdfbb
RW
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
a0da8069 1385 srcdir=$ac_confdir
81ecdfbb 1386 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
81ecdfbb
RW
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
d0ac1c44 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
6d0cd39e
AM
1410case $srcdir in
1411 *" "*)
d0ac1c44 1412 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1413 ;;
1414esac
9cc8ae67
PB
1415ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
81ecdfbb
RW
1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
c6b750e1
DJ
1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431\`configure' configures this package to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
d0ac1c44 1445 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
c6b750e1
DJ
1451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1453 [$ac_default_prefix]
c6b750e1 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1455 [PREFIX]
c6b750e1
DJ
1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
81ecdfbb
RW
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497_ACEOF
a0da8069 1498fi
a0da8069 1499
c6b750e1
DJ
1500if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504Optional Features:
81ecdfbb 1505 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
c7791212 1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
89a1e9c3
PB
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
521ec477
DD
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
f66a9a70 1525 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1528 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1529 --enable-pgo-build[=lto]
1530 enable the PGO build
7ec59b9e 1531 --disable-isl-version-check
4849dfd8 1532 disable check for isl version
700d40ca 1533 --enable-lto enable link time optimization support
1b6c0831
L
1534 --enable-linker-plugin-configure-flags=FLAGS
1535 additional flags for configuring linker plugins
1536 [none]
1537 --enable-linker-plugin-flags=FLAGS
1538 additional flags for configuring and building linker
1539 plugins [none]
bf41f30d 1540 --enable-host-shared build host code as shared libraries
7837304f
AS
1541 --enable-stage1-languages[=all]
1542 choose additional languages to build during stage1.
1543 Mostly useful for compiler development
1544 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1545 Objective-C runtime
ce6c656d 1546 --enable-vtable-verify Enable vtable verification feature
521ec477 1547 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1548 force sequential configuration of sub-packages for
1549 the host, target or build machine, or all
1550 sub-packages
1551 --enable-maintainer-mode
1552 enable make rules and dependencies not useful (and
1553 sometimes confusing) to the casual installer
1554 --enable-stage1-checking[=all]
1555 choose additional checking for stage1 of the
1556 compiler
c6b750e1
DJ
1557 --enable-werror enable -Werror in bootstrap stage2 and later
1558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1563 --with-system-zlib use installed libz
7837304f
AS
1564 --with-mpc=PATH specify prefix directory for installed MPC package.
1565 Equivalent to --with-mpc-include=PATH/include plus
1566 --with-mpc-lib=PATH/lib
1567 --with-mpc-include=PATH specify directory for installed MPC include files
1568 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1569 --with-mpfr-dir=PATH this option has been REMOVED
1570 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1571 Equivalent to --with-mpfr-include=PATH/include plus
1572 --with-mpfr-lib=PATH/lib
c6b750e1 1573 --with-mpfr-include=PATH
521ec477
DD
1574 specify directory for installed MPFR include files
1575 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1576 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1577 --with-gmp=PATH specify prefix directory for the installed GMP
1578 package. Equivalent to
1579 --with-gmp-include=PATH/include plus
1580 --with-gmp-lib=PATH/lib
521ec477
DD
1581 --with-gmp-include=PATH specify directory for installed GMP include files
1582 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1583 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1584 --with-static-standard-libraries
1585 use -static-libstdc++ and -static-libgcc
1586 (default=auto)
7837304f
AS
1587 --with-stage1-ldflags=FLAGS
1588 linker flags for stage1
7837304f
AS
1589 --with-boot-libs=LIBS libraries for stage2 and later
1590 --with-boot-ldflags=FLAGS
1591 linker flags for stage2 and later
4849dfd8 1592 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1593 package. Equivalent to
7ec59b9e
L
1594 --with-isl-include=PATH/include plus
1595 --with-isl-lib=PATH/lib
4849dfd8
NC
1596 --with-isl-include=PATH Specify directory for installed isl include files
1597 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1598 --with-target-bdw-gc=PATHLIST
1599 specify prefix directory for installed bdw-gc
1600 package. Equivalent to
1601 --with-target-bdw-gc-include=PATH/include plus
1602 --with-target-bdw-gc-lib=PATH/lib
1603 --with-target-bdw-gc-include=PATHLIST
1604 specify directories for installed bdw-gc include
1605 files
1606 --with-target-bdw-gc-lib=PATHLIST
1607 specify directories for installed bdw-gc library
bf41f30d
NC
1608 --with-gcc-major-version-only
1609 use only GCC major number in filesystem paths
521ec477 1610 --with-build-sysroot=SYSROOT
c6b750e1 1611 use sysroot as the system root during the build
8a6ee3ab 1612 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1613 map A to B, C to D ... in debug information
1614 --with-build-config='NAME NAME2...'
1615 use config/NAME.mk build configuration
521ec477 1616 --with-build-time-tools=PATH
c6b750e1 1617 use given path to find target tools during the build
c6b750e1
DJ
1618
1619Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
81ecdfbb 1624 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1626 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
4074d5f2
RW
1629 build_configargs
1630 additional configure arguments for build directories
1631 host_configargs
1632 additional configure arguments for host directories
1633 target_configargs
1634 additional configure arguments for target directories
9a819804
AO
1635 AR AR for the host
1636 AS AS for the host
1637 DLLTOOL DLLTOOL for the host
1638 LD LD for the host
1639 LIPO LIPO for the host
1640 NM NM for the host
1641 RANLIB RANLIB for the host
1642 STRIP STRIP for the host
1643 WINDRES WINDRES for the host
0c24b341 1644 WINDMC WINDMC for the host
9a819804
AO
1645 OBJCOPY OBJCOPY for the host
1646 OBJDUMP OBJDUMP for the host
b121d7d4 1647 READELF READELF for the host
9a819804
AO
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
9a819804
AO
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
e552509b
ILT
1656 GOC_FOR_TARGET
1657 GOC for the target
9a819804
AO
1658 AR_FOR_TARGET
1659 AR for the target
1660 AS_FOR_TARGET
1661 AS for the target
1662 DLLTOOL_FOR_TARGET
1663 DLLTOOL for the target
1664 LD_FOR_TARGET
1665 LD for the target
1666 LIPO_FOR_TARGET
1667 LIPO for the target
1668 NM_FOR_TARGET
1669 NM for the target
6b91c541
AP
1670 OBJCOPY_FOR_TARGET
1671 OBJCOPY for the target
9a819804
AO
1672 OBJDUMP_FOR_TARGET
1673 OBJDUMP for the target
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
b121d7d4
DD
1676 READELF_FOR_TARGET
1677 READELF for the target
9a819804
AO
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
0c24b341
NC
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
c6b750e1
DJ
1684
1685Use these variables to override the choices made by `configure' or to help
1686it to find libraries and programs with nonstandard names/locations.
1687
81ecdfbb 1688Report bugs to the package provider.
c6b750e1 1689_ACEOF
81ecdfbb 1690ac_status=$?
c6b750e1
DJ
1691fi
1692
1693if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
c6b750e1 1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
c6b750e1
DJ
1699 ac_builddir=.
1700
81ecdfbb
RW
1701case "$ac_dir" in
1702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703*)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711esac
1712ac_abs_top_builddir=$ac_pwd
1713ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714# for backward compatibility:
1715ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1716
1717case $srcdir in
81ecdfbb 1718 .) # We are building in place.
c6b750e1 1719 ac_srcdir=.
81ecdfbb
RW
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1723 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1730esac
81ecdfbb
RW
1731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1741 else
81ecdfbb
RW
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1745 done
1746fi
1747
81ecdfbb 1748test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1749if $ac_init_version; then
1750 cat <<\_ACEOF
81ecdfbb 1751configure
d0ac1c44 1752generated by GNU Autoconf 2.69
c6b750e1 1753
d0ac1c44 1754Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1755This configure script is free software; the Free Software Foundation
1756gives unlimited permission to copy, distribute and modify it.
1757_ACEOF
81ecdfbb 1758 exit
c6b750e1 1759fi
81ecdfbb
RW
1760
1761## ------------------------ ##
1762## Autoconf initialization. ##
1763## ------------------------ ##
1764
1765# ac_fn_c_try_compile LINENO
1766# --------------------------
1767# Try to compile conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_compile ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
d0ac1c44
SM
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
81ecdfbb
RW
1800
1801} # ac_fn_c_try_compile
1802
1803# ac_fn_cxx_try_compile LINENO
1804# ----------------------------
1805# Try to compile conftest.$ac_ext, and return whether this succeeded.
1806ac_fn_cxx_try_compile ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
d0ac1c44
SM
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
81ecdfbb
RW
1838
1839} # ac_fn_cxx_try_compile
1840
b3676d82
EB
1841# ac_fn_cxx_try_link LINENO
1842# -------------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_cxx_try_link ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
d0ac1c44 1868 test -x conftest$ac_exeext
b3676d82
EB
1869 }; then :
1870 ac_retval=0
1871else
1872 $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
b3676d82
EB
1884
1885} # ac_fn_cxx_try_link
1886
81ecdfbb
RW
1887# ac_fn_c_try_link LINENO
1888# -----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded.
1890ac_fn_c_try_link ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
d0ac1c44 1914 test -x conftest$ac_exeext
81ecdfbb
RW
1915 }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
81ecdfbb
RW
1930
1931} # ac_fn_c_try_link
1932cat >config.log <<_ACEOF
c6b750e1
DJ
1933This file contains any messages produced by compilers while
1934running configure, to aid debugging if configure makes a mistake.
1935
1936It was created by $as_me, which was
d0ac1c44 1937generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1938
1939 $ $0 $@
1940
1941_ACEOF
81ecdfbb 1942exec 5>>config.log
c6b750e1
DJ
1943{
1944cat <<_ASUNAME
1945## --------- ##
1946## Platform. ##
1947## --------- ##
1948
1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966_ASUNAME
1967
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1973 $as_echo "PATH: $as_dir"
1974 done
1975IFS=$as_save_IFS
c6b750e1
DJ
1976
1977} >&5
1978
1979cat >&5 <<_ACEOF
1980
1981
1982## ----------- ##
1983## Core tests. ##
1984## ----------- ##
1985
1986_ACEOF
1987
1988
1989# Keep a trace of the command line.
1990# Strip out --no-create and --no-recursion so they do not pile up.
1991# Strip out --silent because we don't want to record it for future runs.
1992# Also quote any args containing shell meta-characters.
1993# Make two passes to allow for proper duplicate-argument suppression.
1994ac_configure_args=
1995ac_configure_args0=
1996ac_configure_args1=
c6b750e1
DJ
1997ac_must_keep_next=false
1998for ac_pass in 1 2
1999do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
81ecdfbb
RW
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2009 esac
2010 case $ac_pass in
81ecdfbb 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2012 2)
81ecdfbb 2013 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
81ecdfbb 2029 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2030 ;;
2031 esac
2032 done
2033done
81ecdfbb
RW
2034{ ac_configure_args0=; unset ac_configure_args0;}
2035{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2036
2037# When interrupted or exit'd, cleanup temporary files, and complete
2038# config.log. We remove comments because anyway the quotes in there
2039# would cause problems or look ugly.
81ecdfbb
RW
2040# WARNING: Use '\'' to represent an apostrophe within the trap.
2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2042trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
d0ac1c44 2047 $as_echo "## ---------------- ##
c6b750e1 2048## Cache variables. ##
d0ac1c44 2049## ---------------- ##"
c6b750e1
DJ
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2052(
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
c6b750e1 2068 (set) 2>&1 |
81ecdfbb
RW
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
c6b750e1 2071 sed -n \
81ecdfbb
RW
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
c6b750e1 2075 *)
81ecdfbb 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2077 ;;
81ecdfbb
RW
2078 esac |
2079 sort
2080)
c6b750e1
DJ
2081 echo
2082
d0ac1c44 2083 $as_echo "## ----------------- ##
c6b750e1 2084## Output variables. ##
d0ac1c44 2085## ----------------- ##"
c6b750e1
DJ
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
81ecdfbb
RW
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
d0ac1c44 2098 $as_echo "## ------------------- ##
81ecdfbb 2099## File substitutions. ##
d0ac1c44 2100## ------------------- ##"
c6b750e1
DJ
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
81ecdfbb
RW
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
d0ac1c44 2114 $as_echo "## ----------- ##
c6b750e1 2115## confdefs.h. ##
d0ac1c44 2116## ----------- ##"
c6b750e1 2117 echo
81ecdfbb 2118 cat confdefs.h
c6b750e1
DJ
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
81ecdfbb
RW
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
c6b750e1 2124 } >&5
81ecdfbb
RW
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2127 exit $exit_status
81ecdfbb 2128' 0
c6b750e1 2129for ac_signal in 1 2 13 15; do
81ecdfbb 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2131done
2132ac_signal=0
2133
2134# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2135rm -f -r conftest* confdefs.h
2136
2137$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2138
2139# Predefined preprocessor variables.
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_NAME "$PACKAGE_NAME"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147_ACEOF
2148
c6b750e1
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_VERSION "$PACKAGE_VERSION"
2151_ACEOF
2152
c6b750e1
DJ
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
c6b750e1
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159_ACEOF
2160
81ecdfbb
RW
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_URL "$PACKAGE_URL"
2163_ACEOF
2164
c6b750e1
DJ
2165
2166# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2167# Prefer an explicitly selected file to automatically selected ones.
2168ac_site_file1=NONE
2169ac_site_file2=NONE
2170if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
81ecdfbb
RW
2177elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2183fi
81ecdfbb
RW
2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185do
2186 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2190 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194as_fn_error $? "failed to load site script $ac_site_file
2195See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2196 fi
2197done
2198
2199if test -r "$cache_file"; then
d0ac1c44
SM
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2205 case $cache_file in
81ecdfbb
RW
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
c6b750e1
DJ
2208 esac
2209 fi
a0da8069 2210else
81ecdfbb
RW
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2213 >$cache_file
2214fi
2215
2216# Check that the precious variables saved in the cache have kept the same
2217# value.
2218ac_cache_corrupted=false
81ecdfbb 2219for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2224 case $ac_old_set,$ac_new_set in
2225 set,)
81ecdfbb
RW
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2228 ac_cache_corrupted=: ;;
2229 ,set)
81ecdfbb
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
81ecdfbb 2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2263 esac
2264 fi
2265done
2266if $ac_cache_corrupted; then
81ecdfbb
RW
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2272fi
81ecdfbb
RW
2273## -------------------- ##
2274## Main body of script. ##
2275## -------------------- ##
a0da8069
NN
2276
2277ac_ext=c
a0da8069 2278ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285
c6b750e1
DJ
2286
2287
34a0f3cf 2288
c6b750e1 2289
5b553f7e
RW
2290progname=$0
2291# if PWD already has a value, it is probably wrong.
2292if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294# Export original configure arguments for use by sub-configures.
2295# Quote arguments with shell meta charatcers.
2296TOPLEVEL_CONFIGURE_ARGUMENTS=
2297set -- "$progname" "$@"
2298for ac_arg
2299do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309done
2310if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312fi
2313# Remove the initial space we just introduced and, as these will be
2314# expanded by make, quote '$'.
2315TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
c6b750e1
DJ
2317
2318# Find the build, host, and target systems.
a0da8069 2319ac_aux_dir=
81ecdfbb 2320for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
a0da8069
NN
2334done
2335if test -z "$ac_aux_dir"; then
d0ac1c44 2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2337fi
81ecdfbb
RW
2338
2339# These three variables are undocumented and unsupported,
2340# and are intended to be withdrawn in a future Autoconf release.
2341# They can cause serious problems if a builder's source tree is in a directory
2342# whose full name contains unusual characters.
2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
a0da8069 2347
c6b750e1 2348# Make sure we can run config.sub.
81ecdfbb 2349$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2354if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2355 $as_echo_n "(cached) " >&6
2356else
2357 ac_build_alias=$build_alias
2358test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360test "x$ac_build_alias" = x &&
d0ac1c44 2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367$as_echo "$ac_cv_build" >&6; }
2368case $ac_cv_build in
2369*-*-*) ;;
d0ac1c44 2370*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2371esac
c6b750e1 2372build=$ac_cv_build
81ecdfbb
RW
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_build
2375shift
2376build_cpu=$1
2377build_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381build_os=$*
2382IFS=$ac_save_IFS
2383case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2384
a0da8069 2385
c6b750e1
DJ
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2389esac
2390
2391
cac3d6c4 2392
c6b750e1
DJ
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2396esac
2397
cac3d6c4 2398
c6b750e1
DJ
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2403esac
2404
cac3d6c4 2405
c6b750e1
DJ
2406
2407
2408test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
c6b750e1 2411 program_transform_name=s,y,y,
cac3d6c4 2412
81ecdfbb
RW
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2415if ${ac_cv_host+:} false; then :
81ecdfbb 2416 $as_echo_n "(cached) " >&6
cac3d6c4 2417else
81ecdfbb
RW
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2423fi
c6b750e1
DJ
2424
2425fi
81ecdfbb
RW
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427$as_echo "$ac_cv_host" >&6; }
2428case $ac_cv_host in
2429*-*-*) ;;
d0ac1c44 2430*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2431esac
c6b750e1 2432host=$ac_cv_host
81ecdfbb
RW
2433ac_save_IFS=$IFS; IFS='-'
2434set x $ac_cv_host
2435shift
2436host_cpu=$1
2437host_vendor=$2
2438shift; shift
2439# Remember, the first character of IFS is used to create $*,
2440# except with old shells:
2441host_os=$*
2442IFS=$ac_save_IFS
2443case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2444
2445
81ecdfbb
RW
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2448if ${ac_cv_target+:} false; then :
81ecdfbb 2449 $as_echo_n "(cached) " >&6
c6b750e1 2450else
81ecdfbb
RW
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2456fi
c6b750e1 2457
cac3d6c4 2458fi
81ecdfbb
RW
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460$as_echo "$ac_cv_target" >&6; }
2461case $ac_cv_target in
2462*-*-*) ;;
d0ac1c44 2463*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2464esac
c6b750e1 2465target=$ac_cv_target
81ecdfbb
RW
2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_target
2468shift
2469target_cpu=$1
2470target_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474target_os=$*
2475IFS=$ac_save_IFS
2476case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2477
2478
2479# The aliases save the names the user supplied, while $host etc.
2480# will get canonicalized.
2481test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
81ecdfbb 2485
a0da8069 2486test "$program_prefix" != NONE &&
81ecdfbb 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
81ecdfbb
RW
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
c6b750e1 2492# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2495
a0da8069
NN
2496
2497
e5c3f801
NN
2498# Get 'install' or 'install-sh' and its variants.
2499# Find a good install program. We prefer a C program (faster),
2500# so one script is as good as another. But avoid the broken or
2501# incompatible versions:
2502# SysV /etc/install, /usr/sbin/install
2503# SunOS /usr/etc/install
2504# IRIX /sbin/install
2505# AIX /bin/install
c6b750e1 2506# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2510# OS/2's system install, which has a completely different semantic
e5c3f801 2511# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2512# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2515if test -z "$INSTALL"; then
d0ac1c44 2516if ${ac_cv_path_install+:} false; then :
81ecdfbb 2517 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2518else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2524 # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
c6b750e1 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2537 if test $ac_prog = install &&
c6b750e1 2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2539 # AIX install. It has an incompatible calling convention.
2540 :
c6b750e1
DJ
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
e5c3f801 2545 else
58c85be7
RW
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
e5c3f801
NN
2558 fi
2559 fi
2560 done
c6b750e1
DJ
2561 done
2562 ;;
2563esac
81ecdfbb
RW
2564
2565 done
2566IFS=$as_save_IFS
c6b750e1 2567
58c85be7 2568rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2569
2570fi
2571 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2572 INSTALL=$ac_cv_path_install
e5c3f801 2573 else
58c85be7
RW
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
e5c3f801 2576 # break other packages using the cache if that directory is
58c85be7 2577 # removed, or if the value is a relative name.
c6b750e1 2578 INSTALL=$ac_install_sh
e5c3f801
NN
2579 fi
2580fi
81ecdfbb
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2583
2584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585# It thinks the first close brace ends the variable substitution.
2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
c6b750e1 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2589
2590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
81ecdfbb
RW
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2594if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2595 $as_echo_n "(cached) " >&6
656fdd47
PB
2596else
2597 rm -f conftestdata_t
2598echo >conftestdata_f
2599if ln conftestdata_f conftestdata_t 2>/dev/null
2600then
2601 acx_cv_prog_LN=ln
2602else
2603 acx_cv_prog_LN=no
2604fi
2605rm -f conftestdata_f conftestdata_t
2606
2607fi
2608if test $acx_cv_prog_LN = no; then
2609 LN="cp"
81ecdfbb
RW
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611$as_echo "no, using $LN" >&6; }
656fdd47
PB
2612else
2613 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
656fdd47
PB
2616fi
2617
81ecdfbb
RW
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2620LN_S=$as_ln_s
2621if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623$as_echo "yes" >&6; }
cac3d6c4 2624else
81ecdfbb
RW
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2627fi
2628
8e957354
PB
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2631if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2632 $as_echo_n "(cached) " >&6
2633else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2651 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2652# Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654case `"$ac_path_SED" --version 2>&1` in
2655*GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657*)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2687 fi
2688else
2689 ac_cv_path_SED=$SED
2690fi
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694$as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698for ac_prog in gawk mawk nawk awk
2699do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2704if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2705 $as_echo_n "(cached) " >&6
2706else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727AWK=$ac_cv_prog_AWK
2728if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730$as_echo "$AWK" >&6; }
2731else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734fi
2735
2736
2737 test -n "$AWK" && break
2738done
2739
e5c3f801 2740
0fdbe983
DJ
2741srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744# a relative path.
2745if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747fi
2748
a0da8069
NN
2749# Set srcdir to "." if that's what it is.
2750# This is important for multilib support.
2751pwd=`${PWDCMD-pwd}`
a0da8069
NN
2752if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
252b5132
RH
2754fi
2755
a0da8069 2756topsrcdir=$srcpwd
252b5132 2757
a0da8069 2758extra_host_args=
afefada0 2759
a0da8069
NN
2760### To add a new directory to the tree, first choose whether it is a target
2761### or a host dependent tool. Then put it into the appropriate list
2762### (library or tools, host or target), doing a dependency sort.
252b5132 2763
c6b750e1 2764# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2765# configdirs, or target_configdirs; see the serialization section below.
252b5132 2766
c6b750e1
DJ
2767# Dependency sorting is only needed when *configuration* must be done in
2768# a particular order. In all cases a dependency should be specified in
a0da8069 2769# the Makefile, whether or not it's implicitly specified here.
252b5132 2770
a0da8069
NN
2771# Double entries in build_configdirs, configdirs, or target_configdirs may
2772# cause circular dependencies and break everything horribly.
252b5132 2773
6a9cf61e
PB
2774# these library is used by various programs built for the build
2775# environment
2776#
1b6c0831 2777build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2778
2779# these tools are built for the build environment
a90ef4bf 2780build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2781
a0da8069 2782# these libraries are used by various programs built for the host environment
1b6c0831 2783#f
0e65dfba 2784host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
a0da8069 2785
a0da8069
NN
2786# these tools are built for the host environment
2787# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788# know that we are building the simulator.
2789# binutils, gas and ld appear in that order because it makes sense to run
2790# "make check" in that particular order.
e6de499b 2791# If --enable-gold is used, "gold" may replace "ld".
919adfe8 2792host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2793
a0da8069
NN
2794# these libraries are built for the target environment, and are built after
2795# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2796# Note that libiberty is not a target library.
b1299c4e 2797target_libraries="target-libgcc \
2bf680c4 2798 target-libbacktrace \
a0da8069
NN
2799 target-libgloss \
2800 target-newlib \
cff87f51 2801 target-libgomp \
1b6c0831 2802 target-liboffloadmic \
bf41f30d 2803 target-libhsail-rt \
7ec59b9e 2804 target-libatomic \
d32e2926 2805 target-libitm \
b9459e83 2806 target-libstdc++-v3 \
5286fdef 2807 target-libsanitizer \
95e43135 2808 target-libvtv \
bb780410 2809 target-libssp \
e552509b 2810 target-libquadmath \
4b1cb4fe 2811 target-libgfortran \
05a13254 2812 target-libffi \
a2592b1b 2813 target-libobjc \
e552509b 2814 target-libada \
e3f56a99 2815 target-libgo"
a0da8069 2816
9c14acb8
NN
2817# these tools are built using the target libraries, and are intended to
2818# run only in the target environment
a0da8069 2819#
9c14acb8 2820# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2821# list belongs in this list.
a0da8069 2822#
a90ef4bf 2823target_tools="target-rda"
252b5132 2824
a0da8069 2825################################################################################
252b5132 2826
a0da8069
NN
2827## All tools belong in one of the four categories, and are assigned above
2828## We assign ${configdirs} this way to remove all embedded newlines. This
2829## is important because configure will choke if they ever get through.
2830## ${configdirs} is directories we build using the host tools.
2831## ${target_configdirs} is directories we build using the target tools.
a0da8069 2832configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2833target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2834build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2835
9cc8ae67
PB
2836
2837
a0da8069 2838################################################################################
252b5132 2839
a0da8069 2840srcname="gnu development package"
252b5132 2841
a0da8069
NN
2842# This gets set non-empty for some net releases of packages.
2843appdirs=""
252b5132 2844
a0da8069
NN
2845# Define is_cross_compiler to save on calls to 'test'.
2846is_cross_compiler=
2847if test x"${host}" = x"${target}" ; then
2848 is_cross_compiler=no
252b5132 2849else
a0da8069 2850 is_cross_compiler=yes
c6b750e1 2851fi
252b5132 2852
9175bfc0 2853# Find the build and target subdir names.
dd12c3a8 2854
66a79c16
DJ
2855# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2856# have matching libraries, they should use host libraries: Makefile.tpl
2857# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2858# However, they still use the build modules, because the corresponding
2859# host modules (e.g. bison) are only built for the host when bootstrap
2860# finishes. So:
2861# - build_subdir is where we find build modules, and never changes.
2862# - build_libsubdir is where we find build libraries, and can be overridden.
2863
2864# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2865build_subdir="build-${build_noncanonical}"
c6b750e1 2866
81ecdfbb
RW
2867# Check whether --with-build-libsubdir was given.
2868if test "${with_build_libsubdir+set}" = set; then :
2869 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2870else
2871 build_libsubdir="$build_subdir"
81ecdfbb
RW
2872fi
2873
b00612cc
PB
2874# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2875if ( test $srcdir = . && test -d gcc ) \
2876 || test -d $srcdir/../host-${host_noncanonical}; then
2877 host_subdir="host-${host_noncanonical}"
2878else
2879 host_subdir=.
2880fi
dd12c3a8
NN
2881# No prefix.
2882target_subdir=${target_noncanonical}
c6b750e1 2883
2fd0b40b
RW
2884# Be sure to cover against remnants of an in-tree build.
2885if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2886 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2887Use a pristine source tree when building in a separate tree" "$LINENO" 5
2888fi
252b5132 2889
a0da8069
NN
2890# Skipdirs are removed silently.
2891skipdirs=
2892# Noconfigdirs are removed loudly.
2893noconfigdirs=""
252b5132 2894
a0da8069
NN
2895use_gnu_ld=
2896# Make sure we don't let GNU ld be added if we didn't want it.
2897if test x$with_gnu_ld = xno ; then
2898 use_gnu_ld=no
93f9b408 2899 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2900fi
2901
a0da8069
NN
2902use_gnu_as=
2903# Make sure we don't let GNU as be added if we didn't want it.
2904if test x$with_gnu_as = xno ; then
2905 use_gnu_as=no
2906 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2907fi
2908
700d40ca 2909use_included_zlib=
cf39cfc5
L
2910
2911# Check whether --with-system-zlib was given.
2912if test "${with_system_zlib+set}" = set; then :
2913 withval=$with_system_zlib;
2914fi
2915
700d40ca
ILT
2916# Make sure we don't let ZLIB be added if we didn't want it.
2917if test x$with_system_zlib = xyes ; then
2918 use_included_zlib=no
2919 noconfigdirs="$noconfigdirs zlib"
2920fi
2921
69961a84
ДП
2922# Don't compile the bundled readline/libreadline.a if --with-system-readline
2923# is provided.
2924if test x$with_system_readline = xyes ; then
2925 noconfigdirs="$noconfigdirs readline"
2926fi
2927
c6b750e1 2928# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2929# it's not even worth trying to configure, much less build, that tool.
252b5132 2930
a0da8069
NN
2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
675c6968 2934 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2935 # We won't be able to build gdbtk without X.
c6b750e1 2936 enable_gdbtk=no
a0da8069
NN
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
252b5132 2940
0377a422 2941# Some are only suitable for cross toolchains.
a0da8069
NN
2942# Remove these if host=target.
2943cross_only="target-libgloss target-newlib target-opcodes"
2944
2945case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2947esac
252b5132 2948
a0da8069
NN
2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
32be62b5
RS
2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
252b5132
RH
2956fi
2957
a0da8069
NN
2958# Recognize --with-newlib/--without-newlib.
2959case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962esac
252b5132 2963
1b6c0831
L
2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
2966 enableval=$enable_as_accelerator_for;
2967fi
2968
2969
2970# Check whether --enable-offload-targets was given.
2971if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
d0ac1c44 2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
c7791212
NC
2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
d3b50760
L
2985# --enable-gold [--enable-ld]
2986# Build both gold and ld. Install gold as "ld.gold", install ld
2987# as "ld.bfd" and "ld".
2988# --enable-gold=default [--enable-ld]
c7791212
NC
2989# Build both gold and ld. Install gold as "ld.gold" and "ld",
2990# install ld as "ld.bfd".
2991# --enable-gold[=default] --disable-ld
2992# Build only gold, which is then installed as both "ld.gold" and "ld".
2993# --enable-gold --enable-ld=default
d3b50760
L
2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
c7791212
NC
2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
81ecdfbb
RW
3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3004else
3005 ENABLE_GOLD=no
81ecdfbb
RW
3006fi
3007
c7791212
NC
3008case "${ENABLE_GOLD}" in
3009 yes|default)
e6de499b
NC
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
93f9b408 3028 case "${target}" in
6d26190c 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
e6de499b 3035 ENABLE_GOLD=yes
93f9b408
ILT
3036 ;;
3037 esac
e6de499b
NC
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
d0ac1c44 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3044 ;;
c7791212
NC
3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
d3b50760 3057 if test x${default_ld} != x; then
d0ac1c44 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
d0ac1c44 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3072 ;;
3073esac
93f9b408 3074
edeefb67
L
3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
a0da8069 3090# Configure extra directories which are host specific
252b5132 3091
a0da8069
NN
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
252b5132 3096
59f7ec45
HPN
3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
c6b750e1 3101# Remove more programs from consideration, based on the host or
a0da8069
NN
3102# target this usually means that a port of the program doesn't
3103# exist yet.
252b5132 3104
a0da8069 3105case "${host}" in
3516a403 3106 i[3456789]86-*-msdosdjgpp*)
6a608608 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3108 ;;
a0da8069 3109esac
252b5132 3110
4b1cb4fe 3111
89a1e9c3
PB
3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
81ecdfbb
RW
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3140else
3141 ENABLE_LIBADA=yes
81ecdfbb
RW
3142fi
3143
a2592b1b 3144if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3145 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3146fi
3147
81ecdfbb
RW
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3151else
3152 ENABLE_LIBSSP=yes
81ecdfbb
RW
3153fi
3154
5f128533 3155
f66a9a70
L
3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165fi
3166
3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
d0ac1c44 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3178esac
3179else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
f66a9a70
L
3201fi
3202
1b6c0831
L
3203
3204
68996839 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3206if test x$enable_libgomp = x ; then
b3ded179 3207 case "${target}" in
29383458 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3209 ;;
5b806d27 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3211 ;;
2479f722 3212 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
68996839
NC
3216 nvptx*-*-*)
3217 ;;
b3ded179
PB
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
a6df5a19 3222fi
b3ded179 3223
7ec59b9e
L
3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
1b6c0831
L
3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
d32e2926
RH
3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266$as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277 fi
3278 fi
3279fi
3280
5286fdef
L
3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
95e43135
JBG
3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
1b6c0831 3319
bf41f30d
NC
3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
1b6c0831
L
3340
3341
1488e230
DE
3342# Disable libquadmath for some systems.
3343case "${target}" in
5286fdef
L
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
1488e230
DE
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
065a5627
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
c5f5c3c2 3357 # No hosted I/O support.
065a5627
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
99c513f6 3363 rl78-*-*)
202e2356
NC
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
99c513f6
DD
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
1b6c0831
L
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
065a5627
JM
3373esac
3374
065a5627 3375# Disable libstdc++-v3 for some systems.
f66a9a70
L
3376# Allow user to override this if they pass --enable-libstdc++-v3
3377if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
969b1713
L
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
f66a9a70
L
3393 esac
3394fi
065a5627
JM
3395
3396# Disable Fortran for some systems.
3397case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3401 ;;
3402esac
3403
05a13254 3404# Disable libffi for some systems.
0827f9a6 3405case "${target}" in
9863d716
JM
3406 powerpc-*-darwin*)
3407 ;;
3408 i[3456789]86-*-darwin*)
3409 ;;
3410 x86_64-*-darwin[912]*)
3411 ;;
3412 *-*-darwin*)
05a13254 3413 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3414 ;;
9863d716 3415 *-*-netware*)
05a13254
NC
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-phoenix*)
3419 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3420 ;;
3421 *-*-rtems*)
05a13254 3422 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3423 ;;
3424 *-*-tpf*)
05a13254 3425 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3426 ;;
3427 *-*-uclinux*)
05a13254 3428 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3429 ;;
3430 *-*-vxworks*)
05a13254
NC
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 aarch64*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3435 ;;
9863d716 3436 alpha*-*-*vms*)
05a13254 3437 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3438 ;;
1b6c0831 3439 arm*-*-freebsd*)
05a13254 3440 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3441 ;;
0827f9a6 3442 arm-wince-pe)
05a13254 3443 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3444 ;;
9863d716 3445 cris-*-* | crisv32-*-*)
9863d716
JM
3446 case "${target}" in
3447 *-*-linux*)
3448 ;;
3449 *) # See PR46792 regarding target-libffi.
05a13254 3450 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3451 esac
3452 ;;
82ae827f 3453 hppa*64*-*-hpux*)
05a13254 3454 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3455 ;;
3456 hppa*-hp-hpux11*)
3457 ;;
82ae827f 3458 hppa*-*-hpux*)
05a13254 3459 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3460 ;;
9863d716 3461 ia64*-*-*vms*)
05a13254 3462 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3463 ;;
9863d716 3464 i[3456789]86-w64-mingw*)
05a13254 3465 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3466 ;;
3467 i[3456789]86-*-mingw*)
05a13254 3468 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3469 ;;
3470 x86_64-*-mingw*)
05a13254 3471 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3472 ;;
9863d716 3473 mmix-*-*)
05a13254 3474 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3475 ;;
3476 powerpc-*-aix*)
9863d716 3477 ;;
9863d716 3478 rs6000-*-aix*)
9863d716 3479 ;;
3f8107ab 3480 ft32-*-*)
05a13254 3481 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3482 ;;
9863d716 3483 *-*-lynxos*)
05a13254 3484 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3485 ;;
9863d716
JM
3486esac
3487
1b6c0831
L
3488# Disable the go frontend on systems where it is known to not work. Please keep
3489# this in sync with contrib/config-list.mk.
3490case "${target}" in
bf41f30d 3491*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3492 unsupported_languages="$unsupported_languages go"
3493 ;;
3494esac
3495
919adfe8
TT
3496# Only allow gdbserver on some systems.
3497if test -d ${srcdir}/gdbserver; then
3498 if test x$enable_gdbserver = x; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3500$as_echo_n "checking for gdbserver support... " >&6; }
3501 if (srcdir=${srcdir}/gdbserver; \
3502 . ${srcdir}/configure.srv; \
3503 test -n "$UNSUPPORTED")
3504 then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507 noconfigdirs="$noconfigdirs gdbserver"
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510$as_echo "yes" >&6; }
3511 fi
3512 fi
3513fi
3514
a413f71a
ILT
3515# Disable libgo for some systems where it is known to not work.
3516# For testing, you can easily override this with --enable-libgo.
3517if test x$enable_libgo = x; then
3518 case "${target}" in
3519 *-*-darwin*)
3520 # PR 46986
3521 noconfigdirs="$noconfigdirs target-libgo"
3522 ;;
3523 *-*-cygwin* | *-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libgo"
3525 ;;
a413f71a
ILT
3526 esac
3527fi
3528
691bb5a1
DD
3529# Default libgloss CPU subdirectory.
3530libgloss_dir="$target_cpu"
4b1cb4fe 3531
ff46fb8f
JM
3532case "${target}" in
3533 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3534 libgloss_dir=wince
3535 ;;
f1dd87fc
YZ
3536 aarch64*-*-* )
3537 libgloss_dir=aarch64
3538 ;;
ff46fb8f
JM
3539 arm*-*-*)
3540 libgloss_dir=arm
3541 ;;
3542 cris-*-* | crisv32-*-*)
3543 libgloss_dir=cris
3544 ;;
3545 hppa*-*-*)
3546 libgloss_dir=pa
3547 ;;
3548 i[3456789]86-*-*)
3549 libgloss_dir=i386
3550 ;;
3551 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3552 libgloss_dir=m68hc11
3553 ;;
3554 m68*-*-* | fido-*-*)
3555 libgloss_dir=m68k
3556 ;;
3557 mips*-*-*)
3558 libgloss_dir=mips
3559 ;;
3560 powerpc*-*-*)
3561 libgloss_dir=rs6000
3562 ;;
3563 sparc*-*-*)
3564 libgloss_dir=sparc
3565 ;;
3566esac
3567
c7e4b184 3568# Disable newlib and libgloss for various target OSes.
a0da8069 3569case "${target}" in
c7e4b184
JM
3570 alpha*-dec-osf*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 i[3456789]86-*-linux*)
3574 # This section makes it possible to build newlib natively on linux.
3575 # If we are using a cross compiler then don't configure newlib.
3576 if test x${is_cross_compiler} != xno ; then
3577 noconfigdirs="$noconfigdirs target-newlib"
3578 fi
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 # If we are not using a cross compiler, do configure newlib.
3581 # Note however, that newlib will only be configured in this situation
3582 # if the --with-newlib option has been given, because otherwise
3583 # 'target-newlib' will appear in skipdirs.
3584 ;;
3585 i[3456789]86-*-rdos*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 sparc-*-sunos4*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-aix*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-beos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
a0da8069 3600 *-*-chorusos)
b2f14e4a 3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3602 ;;
c7e4b184
JM
3603 *-*-dragonfly*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-freebsd*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-lynxos*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-mingw*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-netbsd*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-netware*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-tpf*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-uclinux*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-vxworks*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633esac
3634
3635case "${target}" in
3636 *-*-chorusos)
3637 ;;
f075eb5e
TG
3638 aarch64-*-darwin*)
3639 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3640 noconfigdirs="$noconfigdirs sim target-rda"
3641 ;;
3642 arm-*-darwin*)
3643 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3644 noconfigdirs="$noconfigdirs sim target-rda"
3645 ;;
24741ab2 3646 powerpc-*-darwin*)
9d39db92 3647 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3648 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3649 ;;
85bd1942
TG
3650 i[3456789]86-*-darwin*)
3651 noconfigdirs="$noconfigdirs ld gprof"
3652 noconfigdirs="$noconfigdirs sim target-rda"
3653 ;;
e8a5fa9c 3654 x86_64-*-darwin[912]*)
652dec25
TG
3655 noconfigdirs="$noconfigdirs ld gas gprof"
3656 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3657 ;;
04d1ab34 3658 *-*-darwin*)
d320aacb 3659 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3660 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3661 ;;
5b806d27 3662 *-*-dragonfly*)
5b806d27 3663 ;;
de0b4a87 3664 *-*-freebsd*)
4b1cb4fe
DD
3665 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3666 && test -f /usr/local/include/gmp.h; then
3667 with_gmp=/usr/local
3668 fi
4b1cb4fe 3669 ;;
f8a495c8
NC
3670 *-*-kaos*)
3671 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
a0da8069 3674 *-*-netbsd*)
a0da8069 3675 ;;
2a3124ca 3676 *-*-netware*)
a0da8069 3677 ;;
05a13254
NC
3678 *-*-phoenix*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
a0da8069 3681 *-*-rtems*)
9863d716 3682 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3683 ;;
1587117a
EC
3684 # The tpf target doesn't support gdb yet.
3685 *-*-tpf*)
c7e4b184 3686 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3687 ;;
c1968181 3688 *-*-uclinux*)
c7e4b184 3689 noconfigdirs="$noconfigdirs target-rda"
c1968181 3690 ;;
a0da8069 3691 *-*-vxworks*)
a0da8069
NN
3692 ;;
3693 alpha*-dec-osf*)
3694 # ld works, but does not support shared libraries.
a0da8069 3695 # gas doesn't generate exception information.
c7e4b184 3696 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3697 ;;
3698 alpha*-*-*vms*)
9863d716 3699 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3700 ;;
a0da8069
NN
3701 alpha*-*-*)
3702 # newlib is not 64 bit ready
9863d716 3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3704 ;;
a0da8069 3705 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3706 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3707 ;;
05a13254
NC
3708 arc*-*-*)
3709 noconfigdirs="$noconfigdirs sim"
a0da8069 3710 ;;
a0da8069 3711 arm-*-pe*)
9863d716 3712 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3713 ;;
a0da8069 3714 arm-*-riscix*)
b2f14e4a 3715 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3716 ;;
8e71395b
L
3717 avr-*-*)
3718 if test x${with_avrlibc} != xno; then
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 fi
3721 ;;
a0da8069 3722 c4x-*-* | tic4x-*-*)
b2f14e4a 3723 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3724 ;;
b2f14e4a
JM
3725 tic54x-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3727 ;;
a0da8069 3728 d10v-*-*)
b2f14e4a 3729 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3730 ;;
3731 d30v-*-*)
b2f14e4a 3732 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3733 ;;
3734 fr30-*-elf*)
9863d716 3735 noconfigdirs="$noconfigdirs gdb"
a0da8069 3736 ;;
3f8107ab
AM
3737 ft32-*-*)
3738 noconfigdirs="$noconfigdirs target-rda gprof"
3739 ;;
20135e4c 3740 moxie-*-*)
10b8fe5e 3741 noconfigdirs="$noconfigdirs"
20135e4c 3742 ;;
a0da8069 3743 h8300*-*-*)
9863d716 3744 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3745 ;;
3746 h8500-*-*)
b2f14e4a 3747 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3748 ;;
caeba88f 3749 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3750 ;;
5569a85f
JDA
3751 hppa*64*-*-hpux*)
3752 noconfigdirs="$noconfigdirs gdb"
3753 ;;
3754 hppa*-*-hpux11*)
3755 noconfigdirs="$noconfigdirs gdb ld"
3756 ;;
93cc359e 3757 hppa*64*-*-linux*)
a0da8069 3758 ;;
f0ff0f90 3759 hppa*-*-linux*)
5dcac624 3760 ;;
a0da8069 3761 hppa*-*-*elf* | \
a0da8069
NN
3762 hppa*-*-lites* | \
3763 hppa*-*-openbsd* | \
3764 hppa*64*-*-*)
4f0ef2d8 3765 ;;
691bb5a1 3766 hppa*-*-pro*)
691bb5a1 3767 ;;
a0da8069 3768 hppa*-*-*)
9863d716 3769 noconfigdirs="$noconfigdirs ld"
a0da8069 3770 ;;
b07c2aad 3771 i960-*-*)
b2f14e4a 3772 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3773 ;;
a0da8069
NN
3774 ia64*-*-elf*)
3775 # No gdb support yet.
0377a422 3776 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3777 ;;
3778 ia64*-**-hpux*)
92c9a463 3779 # No ld support yet.
5569a85f 3780 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3781 ;;
19e99079 3782 ia64*-*-*vms*)
7ec59b9e
L
3783 # No ld support yet.
3784 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3785 ;;
1f53ca9a 3786 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3787 ;;
3788 i[3456789]86-*-mingw*)
45055374 3789 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3790 ;;
a0da8069
NN
3791 *-*-cygwin*)
3792 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3793 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3794 # always build newlib if winsup directory is present.
45055374 3795 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3796 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3797 elif test -d "$srcdir/newlib"; then
45055374 3798 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3799 fi
c6b750e1 3800 ;;
ec11bdc6 3801 i[3456789]86-*-pe)
782cb41f 3802 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3803 ;;
ec11bdc6 3804 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3805 # The linker does not yet know about weak symbols in COFF,
3806 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3807 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3808 ;;
ec11bdc6 3809 i[3456789]86-*-sco*)
b2f14e4a 3810 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3811 ;;
cff32a7c 3812 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3813 noconfigdirs="$noconfigdirs target-libgloss"
3814 ;;
ec11bdc6 3815 i[3456789]86-*-sysv4*)
b2f14e4a 3816 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3817 ;;
ec11bdc6 3818 i[3456789]86-*-beos*)
c7e4b184 3819 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3820 ;;
b59bea8a 3821 i[3456789]86-*-rdos*)
c7e4b184 3822 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3823 ;;
a0da8069 3824 mmix-*-*)
9863d716 3825 noconfigdirs="$noconfigdirs gdb"
a0da8069 3826 ;;
4970f871 3827 mt-*-*)
cdb9b172
AH
3828 noconfigdirs="$noconfigdirs sim"
3829 ;;
1063beb5
FT
3830 nfp-*-*)
3831 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3832 noconfigdirs="$noconfigdirs $target_libraries"
3833 ;;
11104e42
SC
3834 pdp11-*-*)
3835 noconfigdirs="$noconfigdirs gdb gprof"
3836 ;;
a0da8069
NN
3837 powerpc-*-aix*)
3838 # copied from rs6000-*-* entry
c7e4b184 3839 noconfigdirs="$noconfigdirs gprof"
a0da8069 3840 ;;
93cc359e 3841 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3842 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3843 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3844 # always build newlib.
3845 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3846 ;;
3847 # This is temporary until we can link against shared libraries
3848 powerpcle-*-solaris*)
b2f14e4a 3849 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3850 ;;
3851 powerpc-*-beos*)
c7e4b184 3852 noconfigdirs="$noconfigdirs gdb"
a0da8069 3853 ;;
a0da8069 3854 rs6000-*-lynxos*)
c7e4b184 3855 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3856 ;;
3857 rs6000-*-aix*)
c7e4b184 3858 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3859 ;;
3860 rs6000-*-*)
9863d716 3861 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3862 ;;
3863 m68k-apollo-*)
b2f14e4a 3864 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3865 ;;
25a07265 3866 microblaze*)
9863d716 3867 noconfigdirs="$noconfigdirs gprof"
25a07265 3868 ;;
a9d58c06 3869 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3870 if test x$with_newlib = xyes; then
3871 noconfigdirs="$noconfigdirs gprof"
3872 fi
5bd8be13 3873 ;;
a0da8069 3874 mips*-*-irix5*)
b2f14e4a 3875 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3876 ;;
3877 mips*-*-irix6*)
9863d716 3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3879 ;;
a0da8069 3880 mips*-*-bsd*)
e8044f35 3881 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3882 ;;
a0da8069 3883 mips*-*-linux*)
a0da8069 3884 ;;
e8044f35
RS
3885 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3886 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3887 noconfigdirs="$noconfigdirs ld gas gprof"
3888 ;;
a0da8069 3889 mips*-*-*)
9863d716 3890 noconfigdirs="$noconfigdirs gprof"
a0da8069 3891 ;;
1b6c0831 3892 nvptx*-*-*)
1b6c0831
L
3893 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3894 ;;
05a13254 3895 sh-*-*)
e8a5fa9c
RW
3896 case "${target}" in
3897 sh*-*-elf)
9863d716 3898 ;;
e8a5fa9c 3899 *)
9863d716 3900 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3901 esac
a0da8069 3902 ;;
a0da8069 3903 sparc-*-sunos4*)
c7e4b184 3904 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3905 use_gnu_ld=no
3906 fi
3907 ;;
619a3713 3908 tic6x-*-*)
40ae9136 3909 noconfigdirs="$noconfigdirs sim"
619a3713 3910 ;;
05a13254 3911 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3912 noconfigdirs="$noconfigdirs sim"
3913 ;;
a0da8069 3914 v810-*-*)
b2f14e4a 3915 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3916 ;;
3917 vax-*-*)
9863d716 3918 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3919 ;;
b29d2641
MR
3920 wasm32-*-*)
3921 noconfigdirs="$noconfigdirs ld"
3922 ;;
a0da8069 3923esac
252b5132 3924
a0da8069
NN
3925# If we aren't building newlib, then don't build libgloss, since libgloss
3926# depends upon some newlib header files.
3927case "${noconfigdirs}" in
3928 *target-libgloss*) ;;
3929 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3930esac
3931
a0da8069 3932# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3933host_makefile_frag=/dev/null
3934if test -d ${srcdir}/config ; then
3935case "${host}" in
ec11bdc6 3936 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3937 host_makefile_frag="config/mh-djgpp"
3938 ;;
3939 *-cygwin*)
e33b51a6 3940
81ecdfbb
RW
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3942$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3943echo a >cygwin-cat-check
1f53ca9a 3944if test `cat cygwin-cat-check` = a ; then
8ade07e9 3945 rm cygwin-cat-check
81ecdfbb
RW
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947$as_echo "yes" >&6; }
e33b51a6 3948else
8ade07e9 3949 rm cygwin-cat-check
81ecdfbb
RW
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
d0ac1c44 3952 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3953 Please either mount the build directory in binary mode or run the following
3954 commands before running any configure script:
3955set -o igncr
3956export SHELLOPTS
81ecdfbb 3957 " "$LINENO" 5
e33b51a6 3958fi
e33b51a6 3959
a0da8069
NN
3960 host_makefile_frag="config/mh-cygwin"
3961 ;;
8a1599ab 3962 *-mingw*)
84e7906e 3963 host_makefile_frag="config/mh-mingw"
2d1e8239 3964 ;;
ce6c656d
L
3965 alpha*-linux*)
3966 host_makefile_frag="config/mh-alpha-linux"
3967 ;;
da888c87 3968 hppa*-hp-hpux10*)
da888c87 3969 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3970 ;;
3516a403 3971 hppa*-hp-hpux*)
da888c87
PB
3972 host_makefile_frag="config/mh-pa"
3973 ;;
3974 hppa*-*)
3975 host_makefile_frag="config/mh-pa"
3976 ;;
e552509b
ILT
3977 *-*-darwin*)
3978 host_makefile_frag="config/mh-darwin"
0df3d27f 3979 ;;
f6d183c0
PB
3980 powerpc-*-aix*)
3981 host_makefile_frag="config/mh-ppc-aix"
3982 ;;
3983 rs6000-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
a0da8069
NN
3986esac
3987fi
3988
9e07f89d 3989if test "${build}" != "${host}" ; then
1576798e
PB
3990 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3991 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3992 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3993 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3994 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3995 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3996 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3997 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3998 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3999 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4000 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4001 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4002else
4003 AR_FOR_BUILD="\$(AR)"
4004 AS_FOR_BUILD="\$(AS)"
512b7dfb 4005 CC_FOR_BUILD="\$(CC)"
1576798e 4006 CXX_FOR_BUILD="\$(CXX)"
1576798e 4007 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4008 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4009 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4010 LD_FOR_BUILD="\$(LD)"
4011 NM_FOR_BUILD="\$(NM)"
4012 RANLIB_FOR_BUILD="\$(RANLIB)"
4013 WINDRES_FOR_BUILD="\$(WINDRES)"
4014 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4015fi
4016
4017ac_ext=c
c6b750e1
DJ
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4027if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4028 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4029else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
81ecdfbb 4038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4042 break 2
4043 fi
4044done
81ecdfbb
RW
4045 done
4046IFS=$as_save_IFS
c6b750e1
DJ
4047
4048fi
4049fi
4050CC=$ac_cv_prog_CC
4051if test -n "$CC"; then
81ecdfbb
RW
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053$as_echo "$CC" >&6; }
c6b750e1 4054else
81ecdfbb
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
c6b750e1
DJ
4057fi
4058
81ecdfbb 4059
c6b750e1
DJ
4060fi
4061if test -z "$ac_cv_prog_CC"; then
4062 ac_ct_CC=$CC
6a9cf61e 4063 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4064set dummy gcc; ac_word=$2
81ecdfbb
RW
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4067if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4068 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4069else
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
81ecdfbb 4078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4080 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4082 break 2
4083 fi
4084done
81ecdfbb
RW
4085 done
4086IFS=$as_save_IFS
c6b750e1
DJ
4087
4088fi
4089fi
4090ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4094else
81ecdfbb
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
c6b750e1
DJ
4097fi
4098
81ecdfbb
RW
4099 if test "x$ac_ct_CC" = x; then
4100 CC=""
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103yes:)
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106ac_tool_warned=yes ;;
4107esac
4108 CC=$ac_ct_CC
4109 fi
c6b750e1
DJ
4110else
4111 CC="$ac_cv_prog_CC"
4112fi
4113
4114if test -z "$CC"; then
81ecdfbb
RW
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4117set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4120if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4121 $as_echo_n "(cached) " >&6
9e07f89d
NN
4122else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125else
c6b750e1
DJ
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
81ecdfbb 4131 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4135 break 2
4136 fi
4137done
81ecdfbb
RW
4138 done
4139IFS=$as_save_IFS
c6b750e1 4140
9e07f89d
NN
4141fi
4142fi
c6b750e1 4143CC=$ac_cv_prog_CC
9e07f89d 4144if test -n "$CC"; then
81ecdfbb
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146$as_echo "$CC" >&6; }
c6b750e1 4147else
81ecdfbb
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
c6b750e1
DJ
4150fi
4151
c6b750e1 4152
81ecdfbb 4153 fi
c6b750e1 4154fi
9e07f89d
NN
4155if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157set dummy cc; ac_word=$2
81ecdfbb
RW
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4160if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4161 $as_echo_n "(cached) " >&6
9e07f89d
NN
4162else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165else
9e07f89d 4166 ac_prog_rejected=no
c6b750e1
DJ
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
81ecdfbb 4172 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4176 continue
4177 fi
4178 ac_cv_prog_CC="cc"
81ecdfbb 4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4180 break 2
4181 fi
4182done
81ecdfbb
RW
4183 done
4184IFS=$as_save_IFS
c6b750e1 4185
9e07f89d
NN
4186if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
c6b750e1 4190 if test $# != 0; then
9e07f89d
NN
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
c6b750e1 4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4196 fi
4197fi
4198fi
4199fi
c6b750e1 4200CC=$ac_cv_prog_CC
9e07f89d 4201if test -n "$CC"; then
81ecdfbb
RW
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203$as_echo "$CC" >&6; }
9e07f89d 4204else
81ecdfbb
RW
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
9e07f89d
NN
4207fi
4208
81ecdfbb 4209
c6b750e1
DJ
4210fi
4211if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
81ecdfbb 4213 for ac_prog in cl.exe
c6b750e1
DJ
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4219if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4220 $as_echo_n "(cached) " >&6
9e07f89d
NN
4221else
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224else
c6b750e1
DJ
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
81ecdfbb 4230 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4234 break 2
376a0e54 4235 fi
c6b750e1 4236done
81ecdfbb
RW
4237 done
4238IFS=$as_save_IFS
cac3d6c4 4239
c6b750e1
DJ
4240fi
4241fi
4242CC=$ac_cv_prog_CC
4243if test -n "$CC"; then
81ecdfbb
RW
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245$as_echo "$CC" >&6; }
cac3d6c4 4246else
81ecdfbb
RW
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
9e07f89d 4249fi
cac3d6c4 4250
81ecdfbb 4251
c6b750e1
DJ
4252 test -n "$CC" && break
4253 done
cac3d6c4 4254fi
c6b750e1
DJ
4255if test -z "$CC"; then
4256 ac_ct_CC=$CC
81ecdfbb 4257 for ac_prog in cl.exe
c6b750e1
DJ
4258do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4263if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4264 $as_echo_n "(cached) " >&6
cac3d6c4 4265else
c6b750e1
DJ
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4268else
c6b750e1
DJ
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
81ecdfbb 4274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4276 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4278 break 2
4279 fi
4280done
81ecdfbb
RW
4281 done
4282IFS=$as_save_IFS
c6b750e1 4283
cac3d6c4
CM
4284fi
4285fi
c6b750e1
DJ
4286ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4290else
81ecdfbb
RW
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
cac3d6c4 4293fi
376a0e54 4294
81ecdfbb 4295
c6b750e1
DJ
4296 test -n "$ac_ct_CC" && break
4297done
4298
81ecdfbb
RW
4299 if test "x$ac_ct_CC" = x; then
4300 CC=""
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
4307esac
4308 CC=$ac_ct_CC
4309 fi
c6b750e1
DJ
4310fi
4311
4312fi
4313
4314
81ecdfbb
RW
4315test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4317as_fn_error $? "no acceptable C compiler found in \$PATH
4318See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4319
4320# Provide some information about the compiler.
81ecdfbb
RW
4321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322set X $ac_compile
4323ac_compiler=$2
4324for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331$as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4333 ac_status=$?
81ecdfbb
RW
4334 if test -s conftest.err; then
4335 sed '10a\
4336... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
81ecdfbb 4339 fi
d0ac1c44 4340 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343done
c6b750e1 4344
81ecdfbb 4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4346/* end confdefs.h. */
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356ac_clean_files_save=$ac_clean_files
d0ac1c44 4357ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4358# Try to create an executable without -o first, disregard a.out.
4359# It will help us diagnose broken compilers, and finding out an intuition
4360# of exeext.
d0ac1c44
SM
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4362$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4363ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364
4365# The possible output files:
4366ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4367
4368ac_rmfiles=
4369for ac_file in $ac_files
4370do
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4374 esac
4375done
4376rm -f $ac_rmfiles
4377
4378if { { ac_try="$ac_link_default"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384$as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_link_default") 2>&5
c6b750e1 4386 ac_status=$?
81ecdfbb
RW
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4390# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4391# in a Makefile. We should not override ac_cv_exeext if it was cached,
4392# so that the user can short-circuit this test for compilers unknown to
4393# Autoconf.
4394for ac_file in $ac_files ''
c6b750e1
DJ
4395do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
81ecdfbb 4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4399 ;;
4400 [ab].out )
4401 # We found the default executable, but exeext='' is most
4402 # certainly right.
4403 break;;
4404 *.* )
81ecdfbb
RW
4405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4406 then :; else
4407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 fi
4409 # We set ac_cv_exeext here because the later test for it is not
4410 # safe: cross compilers may not add the suffix if given an `-o'
4411 # argument, so we may need to know it at that point already.
4412 # Even if this section looks crufty: it has the advantage of
4413 # actually working.
c6b750e1
DJ
4414 break;;
4415 * )
4416 break;;
4417 esac
4418done
81ecdfbb
RW
4419test "$ac_cv_exeext" = no && ac_cv_exeext=
4420
c6b750e1 4421else
81ecdfbb
RW
4422 ac_file=''
4423fi
81ecdfbb 4424if test -z "$ac_file"; then :
d0ac1c44
SM
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
81ecdfbb
RW
4430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4432as_fn_error 77 "C compiler cannot create executables
4433See \`config.log' for more details" "$LINENO" 5; }
4434else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436$as_echo "yes" >&6; }
c6b750e1 4437fi
d0ac1c44
SM
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4439$as_echo_n "checking for C compiler default output file name... " >&6; }
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4441$as_echo "$ac_file" >&6; }
c6b750e1 4442ac_exeext=$ac_cv_exeext
c6b750e1 4443
d0ac1c44 4444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4445ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4447$as_echo_n "checking for suffix of executables... " >&6; }
4448if { { ac_try="$ac_link"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454$as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link") 2>&5
c6b750e1 4456 ac_status=$?
81ecdfbb
RW
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
c6b750e1
DJ
4459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4461# work properly (i.e., refer to `conftest.exe'), while it won't with
4462# `rm'.
4463for ac_file in conftest.exe conftest conftest.*; do
4464 test -f "$ac_file" || continue
4465 case $ac_file in
81ecdfbb 4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4468 break;;
4469 * ) break;;
4470 esac
4471done
4472else
81ecdfbb
RW
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4475as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4476See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4477fi
d0ac1c44 4478rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4480$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4481
4482rm -f conftest.$ac_ext
4483EXEEXT=$ac_cv_exeext
4484ac_exeext=$EXEEXT
d0ac1c44
SM
4485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487#include <stdio.h>
4488int
4489main ()
4490{
4491FILE *f = fopen ("conftest.out", "w");
4492 return ferror (f) || fclose (f) != 0;
4493
4494 ;
4495 return 0;
4496}
4497_ACEOF
4498ac_clean_files="$ac_clean_files conftest.out"
4499# Check that the compiler produces executables we can run. If not, either
4500# the compiler is broken, or we cross compile.
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4502$as_echo_n "checking whether we are cross compiling... " >&6; }
4503if test "$cross_compiling" != yes; then
4504 { { ac_try="$ac_link"
4505case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508esac
4509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510$as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 if { ac_try='./conftest$ac_cv_exeext'
4516 { { case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521$as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_try") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; }; then
4526 cross_compiling=no
4527 else
4528 if test "$cross_compiling" = maybe; then
4529 cross_compiling=yes
4530 else
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533as_fn_error $? "cannot run C compiled programs.
4534If you meant to cross compile, use \`--host'.
4535See \`config.log' for more details" "$LINENO" 5; }
4536 fi
4537 fi
4538fi
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4540$as_echo "$cross_compiling" >&6; }
4541
4542rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4543ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4545$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4546if ${ac_cv_objext+:} false; then :
81ecdfbb 4547 $as_echo_n "(cached) " >&6
c6b750e1 4548else
81ecdfbb 4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560rm -f conftest.o conftest.obj
81ecdfbb
RW
4561if { { ac_try="$ac_compile"
4562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567$as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compile") 2>&5
c6b750e1 4569 ac_status=$?
81ecdfbb
RW
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; then :
4572 for ac_file in conftest.o conftest.obj conftest.*; do
4573 test -f "$ac_file" || continue;
c6b750e1 4574 case $ac_file in
81ecdfbb 4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4577 break;;
4578 esac
4579done
cac3d6c4 4580else
81ecdfbb 4581 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
81ecdfbb
RW
4584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4586as_fn_error $? "cannot compute suffix of object files: cannot compile
4587See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4588fi
c6b750e1
DJ
4589rm -f conftest.$ac_cv_objext conftest.$ac_ext
4590fi
81ecdfbb
RW
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4592$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4593OBJEXT=$ac_cv_objext
4594ac_objext=$OBJEXT
81ecdfbb
RW
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4597if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4598 $as_echo_n "(cached) " >&6
c6b750e1 4599else
81ecdfbb 4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4601/* end confdefs.h. */
4602
4603int
4604main ()
4605{
4606#ifndef __GNUC__
4607 choke me
4608#endif
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
81ecdfbb 4614if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4615 ac_compiler_gnu=yes
4616else
81ecdfbb 4617 ac_compiler_gnu=no
c6b750e1 4618fi
81ecdfbb 4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4620ac_cv_c_compiler_gnu=$ac_compiler_gnu
4621
4622fi
81ecdfbb
RW
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4625if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627else
4628 GCC=
4629fi
c6b750e1
DJ
4630ac_test_CFLAGS=${CFLAGS+set}
4631ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4634if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4635 $as_echo_n "(cached) " >&6
4636else
4637 ac_save_c_werror_flag=$ac_c_werror_flag
4638 ac_c_werror_flag=yes
4639 ac_cv_prog_cc_g=no
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4642/* end confdefs.h. */
4643
4644int
4645main ()
4646{
4647
4648 ;
4649 return 0;
4650}
4651_ACEOF
81ecdfbb 4652if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4653 ac_cv_prog_cc_g=yes
4654else
81ecdfbb
RW
4655 CFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668
4669else
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h. */
cac3d6c4 4674
81ecdfbb
RW
4675int
4676main ()
4677{
4678
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_prog_cc_g=yes
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4687fi
81ecdfbb 4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4689fi
81ecdfbb
RW
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4694$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4695if test "$ac_test_CFLAGS" = set; then
c6b750e1 4696 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4697elif test $ac_cv_prog_cc_g = yes; then
4698 if test "$GCC" = yes; then
4699 CFLAGS="-g -O2"
4700 else
4701 CFLAGS="-g"
4702 fi
4703else
4704 if test "$GCC" = yes; then
4705 CFLAGS="-O2"
4706 else
4707 CFLAGS=
4708 fi
4709fi
81ecdfbb
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4712if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4713 $as_echo_n "(cached) " >&6
c6b750e1 4714else
81ecdfbb 4715 ac_cv_prog_cc_c89=no
c6b750e1 4716ac_save_CC=$CC
81ecdfbb 4717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4718/* end confdefs.h. */
4719#include <stdarg.h>
4720#include <stdio.h>
d0ac1c44 4721struct stat;
c6b750e1
DJ
4722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723struct buf { int x; };
4724FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725static char *e (p, i)
4726 char **p;
4727 int i;
4728{
4729 return p[i];
4730}
4731static char *f (char * (*g) (char **, int), char **p, ...)
4732{
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739}
4740
4741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4744 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4747 that's true only with -std. */
c6b750e1
DJ
4748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
81ecdfbb
RW
4750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752#define FOO(x) 'x'
4753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
c6b750e1
DJ
4755int test (int i, double x);
4756struct s1 {int (*f) (int a);};
4757struct s2 {int (*f) (double a);};
4758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759int argc;
4760char **argv;
4761int
4762main ()
4763{
4764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767}
4768_ACEOF
81ecdfbb
RW
4769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4771do
4772 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4775fi
81ecdfbb
RW
4776rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4778done
81ecdfbb 4779rm -f conftest.$ac_ext
c6b750e1
DJ
4780CC=$ac_save_CC
4781
4782fi
81ecdfbb
RW
4783# AC_CACHE_VAL
4784case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787$as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
c6b750e1 4791 *)
81ecdfbb
RW
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4795esac
81ecdfbb 4796if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4797
c6b750e1
DJ
4798fi
4799
c6b750e1
DJ
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4805
81ecdfbb 4806ac_ext=cpp
18f6b6ee
PB
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4811if test -z "$CXX"; then
4812 if test -n "$CCC"; then
4813 CXX=$CCC
4814 else
4815 if test -n "$ac_tool_prefix"; then
4816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4817 do
4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4822if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4823 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4824else
4825 if test -n "$CXX"; then
4826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
81ecdfbb 4833 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4837 break 2
4838 fi
4839done
81ecdfbb
RW
4840 done
4841IFS=$as_save_IFS
512b7dfb 4842
18f6b6ee
PB
4843fi
4844fi
4845CXX=$ac_cv_prog_CXX
4846if test -n "$CXX"; then
81ecdfbb
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4848$as_echo "$CXX" >&6; }
18f6b6ee 4849else
81ecdfbb
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
18f6b6ee
PB
4852fi
4853
81ecdfbb 4854
18f6b6ee
PB
4855 test -n "$CXX" && break
4856 done
4857fi
4858if test -z "$CXX"; then
4859 ac_ct_CXX=$CXX
81ecdfbb 4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4861do
4862 # Extract the first word of "$ac_prog", so it can be a program name with args.
4863set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4866if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4867 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4868else
4869 if test -n "$ac_ct_CXX"; then
4870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
81ecdfbb 4877 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4879 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4881 break 2
512b7dfb 4882 fi
18f6b6ee 4883done
81ecdfbb
RW
4884 done
4885IFS=$as_save_IFS
512b7dfb 4886
18f6b6ee
PB
4887fi
4888fi
4889ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4890if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4892$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4893else
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
18f6b6ee
PB
4896fi
4897
81ecdfbb 4898
18f6b6ee
PB
4899 test -n "$ac_ct_CXX" && break
4900done
18f6b6ee 4901
81ecdfbb
RW
4902 if test "x$ac_ct_CXX" = x; then
4903 CXX="g++"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906yes:)
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909ac_tool_warned=yes ;;
4910esac
4911 CXX=$ac_ct_CXX
4912 fi
18f6b6ee
PB
4913fi
4914
81ecdfbb
RW
4915 fi
4916fi
18f6b6ee 4917# Provide some information about the compiler.
81ecdfbb
RW
4918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4919set X $ac_compile
4920ac_compiler=$2
4921for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928$as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4930 ac_status=$?
81ecdfbb
RW
4931 if test -s conftest.err; then
4932 sed '10a\
4933... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
81ecdfbb 4936 fi
d0ac1c44 4937 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940done
18f6b6ee 4941
81ecdfbb
RW
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4943$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4944if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4945 $as_echo_n "(cached) " >&6
18f6b6ee 4946else
81ecdfbb 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4948/* end confdefs.h. */
4949
4950int
4951main ()
4952{
4953#ifndef __GNUC__
4954 choke me
4955#endif
4956
4957 ;
4958 return 0;
4959}
4960_ACEOF
81ecdfbb 4961if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4962 ac_compiler_gnu=yes
4963else
81ecdfbb 4964 ac_compiler_gnu=no
18f6b6ee 4965fi
81ecdfbb 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4967ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4968
4969fi
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4971$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4972if test $ac_compiler_gnu = yes; then
4973 GXX=yes
4974else
4975 GXX=
4976fi
18f6b6ee
PB
4977ac_test_CXXFLAGS=${CXXFLAGS+set}
4978ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4980$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4981if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4985 ac_cxx_werror_flag=yes
4986 ac_cv_prog_cxx_g=no
4987 CXXFLAGS="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4989/* end confdefs.h. */
4990
4991int
4992main ()
4993{
4994
4995 ;
4996 return 0;
4997}
4998_ACEOF
81ecdfbb 4999if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5000 ac_cv_prog_cxx_g=yes
5001else
81ecdfbb
RW
5002 CXXFLAGS=""
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5004/* end confdefs.h. */
81ecdfbb 5005
18f6b6ee
PB
5006int
5007main ()
5008{
81ecdfbb 5009
18f6b6ee
PB
5010 ;
5011 return 0;
5012}
5013_ACEOF
81ecdfbb 5014if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5015
81ecdfbb
RW
5016else
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018 CXXFLAGS="-g"
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5020/* end confdefs.h. */
81ecdfbb 5021
18f6b6ee
PB
5022int
5023main ()
5024{
81ecdfbb 5025
18f6b6ee
PB
5026 ;
5027 return 0;
5028}
5029_ACEOF
81ecdfbb
RW
5030if ac_fn_cxx_try_compile "$LINENO"; then :
5031 ac_cv_prog_cxx_g=yes
18f6b6ee 5032fi
81ecdfbb
RW
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5041$as_echo "$ac_cv_prog_cxx_g" >&6; }
5042if test "$ac_test_CXXFLAGS" = set; then
5043 CXXFLAGS=$ac_save_CXXFLAGS
5044elif test $ac_cv_prog_cxx_g = yes; then
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-g -O2"
5047 else
5048 CXXFLAGS="-g"
5049 fi
5050else
5051 if test "$GXX" = yes; then
5052 CXXFLAGS="-O2"
5053 else
5054 CXXFLAGS=
5055 fi
18f6b6ee 5056fi
18f6b6ee
PB
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064# We must set the default linker to the linker used by gcc for the correct
5065# operation of libtool. If LD is not defined and we are using gcc, try to
5066# set the LD default to the ld used by gcc.
5067if test -z "$LD"; then
5068 if test "$GCC" = yes; then
5069 case $build in
5070 *-*-mingw*)
5071 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5072 *)
5073 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5074 esac
5075 case $gcc_prog_ld in
5076 # Accept absolute paths.
5077 [\\/]* | [A-Za-z]:[\\/]*)
5078 LD="$gcc_prog_ld" ;;
5079 esac
5080 fi
512b7dfb
PB
5081fi
5082
b3676d82
EB
5083# Check whether -static-libstdc++ -static-libgcc is supported.
5084have_static_libs=no
5085if test "$GCC" = yes; then
5086 saved_LDFLAGS="$LDFLAGS"
5087
5088 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5090$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5091 ac_ext=cpp
5092ac_cpp='$CXXCPP $CPPFLAGS'
5093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096
5097
5098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
a882be68
EB
5100
5101#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5102#error -static-libstdc++ not implemented
5103#endif
b3676d82
EB
5104int main() {}
5105_ACEOF
5106if ac_fn_cxx_try_link "$LINENO"; then :
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5108$as_echo "yes" >&6; }; have_static_libs=yes
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113rm -f core conftest.err conftest.$ac_objext \
5114 conftest$ac_exeext conftest.$ac_ext
5115 ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122 LDFLAGS="$saved_LDFLAGS"
5123fi
5124
512b7dfb
PB
5125
5126
5127
c6b750e1 5128if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5129 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5133if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5134 $as_echo_n "(cached) " >&6
9e07f89d 5135else
512b7dfb
PB
5136 if test -n "$GNATBIND"; then
5137 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5138else
c6b750e1
DJ
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
81ecdfbb 5144 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5146 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5148 break 2
5149 fi
5150done
81ecdfbb
RW
5151 done
5152IFS=$as_save_IFS
c6b750e1 5153
9e07f89d
NN
5154fi
5155fi
512b7dfb
PB
5156GNATBIND=$ac_cv_prog_GNATBIND
5157if test -n "$GNATBIND"; then
81ecdfbb
RW
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159$as_echo "$GNATBIND" >&6; }
9e07f89d 5160else
81ecdfbb
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
9e07f89d
NN
5163fi
5164
81ecdfbb 5165
c6b750e1 5166fi
512b7dfb
PB
5167if test -z "$ac_cv_prog_GNATBIND"; then
5168 ac_ct_GNATBIND=$GNATBIND
5169 # Extract the first word of "gnatbind", so it can be a program name with args.
5170set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5173if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5174 $as_echo_n "(cached) " >&6
9e07f89d 5175else
512b7dfb
PB
5176 if test -n "$ac_ct_GNATBIND"; then
5177 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5178else
c6b750e1
DJ
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
81ecdfbb 5184 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5186 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5188 break 2
5189 fi
5190done
81ecdfbb
RW
5191 done
5192IFS=$as_save_IFS
c6b750e1 5193
9e07f89d
NN
5194fi
5195fi
512b7dfb
PB
5196ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5197if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5200else
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
9e07f89d
NN
5203fi
5204
81ecdfbb
RW
5205 if test "x$ac_ct_GNATBIND" = x; then
5206 GNATBIND="no"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214 GNATBIND=$ac_ct_GNATBIND
5215 fi
24ff9987 5216else
512b7dfb 5217 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5218fi
5219
7df2cd5d 5220if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5221 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5225if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5226 $as_echo_n "(cached) " >&6
7df2cd5d 5227else
512b7dfb
PB
5228 if test -n "$GNATMAKE"; then
5229 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
81ecdfbb 5236 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5238 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5240 break 2
5241 fi
5242done
81ecdfbb
RW
5243 done
5244IFS=$as_save_IFS
7df2cd5d
PB
5245
5246fi
5247fi
512b7dfb
PB
5248GNATMAKE=$ac_cv_prog_GNATMAKE
5249if test -n "$GNATMAKE"; then
81ecdfbb
RW
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5252else
81ecdfbb
RW
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
7df2cd5d
PB
5255fi
5256
81ecdfbb 5257
7df2cd5d 5258fi
512b7dfb
PB
5259if test -z "$ac_cv_prog_GNATMAKE"; then
5260 ac_ct_GNATMAKE=$GNATMAKE
5261 # Extract the first word of "gnatmake", so it can be a program name with args.
5262set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5265if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5266 $as_echo_n "(cached) " >&6
7df2cd5d 5267else
512b7dfb
PB
5268 if test -n "$ac_ct_GNATMAKE"; then
5269 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
81ecdfbb 5276 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5278 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5280 break 2
5281 fi
5282done
81ecdfbb
RW
5283 done
5284IFS=$as_save_IFS
7df2cd5d 5285
7df2cd5d
PB
5286fi
5287fi
512b7dfb
PB
5288ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5289if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5292else
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
7df2cd5d
PB
5295fi
5296
81ecdfbb
RW
5297 if test "x$ac_ct_GNATMAKE" = x; then
5298 GNATMAKE="no"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301yes:)
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304ac_tool_warned=yes ;;
5305esac
5306 GNATMAKE=$ac_ct_GNATMAKE
5307 fi
7df2cd5d 5308else
512b7dfb 5309 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5310fi
5311
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5313$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5314if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5315 $as_echo_n "(cached) " >&6
9e07f89d
NN
5316else
5317 cat >conftest.adb <<EOF
5318procedure conftest is begin null; end conftest;
5319EOF
5320acx_cv_cc_gcc_supports_ada=no
5321# There is a bug in old released versions of GCC which causes the
5322# driver to exit successfully when the appropriate language module
5323# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5324# Therefore we must check for the error message as well as an
5325# unsuccessful exit.
b8908782
DD
5326# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5327# given a .adb file, but produce no object file. So we must check
5328# if an object file was really produced to guard against this.
9e07f89d 5329errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5330if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5331 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5332fi
5333rm -f conftest.*
5334fi
81ecdfbb
RW
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5336$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5337
64b986c0 5338if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5339 have_gnat=yes
5340else
5341 have_gnat=no
5342fi
5343
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5345$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5346if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5347 $as_echo_n "(cached) " >&6
b8908782
DD
5348else
5349 echo abfoo >t1
5350 echo cdfoo >t2
da17fe9d 5351 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5352 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5353 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5354 :
5355 else
5356 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5357 fi
5358 fi
b8908782
DD
5359 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5360 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5361 :
b8908782
DD
5362 else
5363 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5364 fi
5365 fi
5366 rm t1 t2
5367
5368fi
81ecdfbb
RW
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5370$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5371do_compare="$gcc_cv_prog_cmp_skip"
5372
5373
9e07f89d 5374
ffdd6afc
ILT
5375# Check whether --enable-bootstrap was given.
5376if test "${enable_bootstrap+set}" = set; then :
5377 enableval=$enable_bootstrap;
5378else
5379 enable_bootstrap=default
5380fi
5381
5382
5383# Issue errors and warnings for invalid/strange bootstrap combinations.
5384if test -r $srcdir/gcc/configure; then
5385 have_compiler=yes
5386else
5387 have_compiler=no
5388fi
5389
5390case "$have_compiler:$host:$target:$enable_bootstrap" in
5391 *:*:*:no) ;;
5392
5393 # Default behavior. Enable bootstrap if we have a compiler
5394 # and we are in a native configuration.
5395 yes:$build:$build:default)
5396 enable_bootstrap=yes ;;
5397
5398 *:*:*:default)
5399 enable_bootstrap=no ;;
5400
5401 # We have a compiler and we are in a native configuration, bootstrap is ok
5402 yes:$build:$build:yes)
5403 ;;
5404
5405 # Other configurations, but we have a compiler. Assume the user knows
5406 # what he's doing.
5407 yes:*:*:yes)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5409$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5410 ;;
5411
5412 # No compiler: if they passed --enable-bootstrap explicitly, fail
5413 no:*:*:yes)
d0ac1c44 5414 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5415
5416 # Fail if wrong command line
5417 *)
d0ac1c44 5418 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5419 ;;
5420esac
5421
ce6c656d
L
5422# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5423# C++98 compiler can still start the bootstrap.
5424if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5425 CXX="$CXX -std=gnu++98"
5426fi
5427
af019bfd
L
5428# Check whether --enable-pgo-build was given.
5429if test "${enable_pgo_build+set}" = set; then :
5430 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5431else
5432 enable_pgo_build=no
5433fi
5434
5435
5436# Issue errors and warnings for invalid/strange PGO build combinations.
5437case "$have_compiler:$host:$target:$enable_pgo_build" in
5438 *:*:*:no) ;;
5439
5440 # Allow the PGO build only if we aren't building a compiler and
5441 # we are in a native configuration.
5442 no:$build:$build:yes | no:$build:$build:lto) ;;
5443
5444 # Disallow the PGO bootstrap if we are building a compiler.
5445 yes:*:*:yes | yes:*:*:lto)
5446 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5447
5448 *)
5449 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5450 ;;
5451esac
5452
5453if test "$enable_pgo_build" != "no"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5455$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5456 old_CFLAGS="$CFLAGS"
5457 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5458 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5459
5460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462int foo;
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"; then :
5465
5466else
5467 PGO_BUILD_GEN_CFLAGS=
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 CFLAGS="$old_CFLAGS"
5471 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473$as_echo "yes" >&6; }
5474 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5479 fi
5480
5481 if test "$enable_pgo_build" = "lto"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5483$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5484 old_CFLAGS="$CFLAGS"
5485 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5486 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h. */
5489int foo;
5490_ACEOF
5491if ac_fn_c_try_compile "$LINENO"; then :
5492
5493else
5494 PGO_BUILD_LTO_CFLAGS=
5495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 CFLAGS="$old_CFLAGS"
5498 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500$as_echo "yes" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5505$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5506 fi
5507 fi
5508fi
5509
5510
5511
5512
d5f2ee2e
KG
5513# Used for setting $lt_cv_objdir
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5515$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5516if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5517 $as_echo_n "(cached) " >&6
5518else
5519 rm -f .libs 2>/dev/null
5520mkdir .libs 2>/dev/null
5521if test -d .libs; then
5522 lt_cv_objdir=.libs
5523else
5524 # MS-DOS does not allow filenames that begin with a dot.
5525 lt_cv_objdir=_libs
5526fi
5527rmdir .libs 2>/dev/null
5528fi
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5530$as_echo "$lt_cv_objdir" >&6; }
5531objdir=$lt_cv_objdir
5532
5533
5534
5535
5536
5537cat >>confdefs.h <<_ACEOF
5538#define LT_OBJDIR "$lt_cv_objdir/"
5539_ACEOF
5540
5541
5542
e8a5fa9c 5543# Check for GMP, MPFR and MPC
d9b76ff9 5544gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5545gmpinc=
4b900473 5546have_gmp=no
e8a5fa9c
RW
5547
5548# Specify a location for mpc
5549# check for this first so it ends up on the link line before mpfr.
5550
81ecdfbb
RW
5551# Check whether --with-mpc was given.
5552if test "${with_mpc+set}" = set; then :
5553 withval=$with_mpc;
5554fi
e8a5fa9c 5555
e8a5fa9c 5556
e552509b 5557# Check whether --with-mpc-include was given.
81ecdfbb
RW
5558if test "${with_mpc_include+set}" = set; then :
5559 withval=$with_mpc_include;
5560fi
e8a5fa9c 5561
e8a5fa9c 5562
e552509b 5563# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5564if test "${with_mpc_lib+set}" = set; then :
5565 withval=$with_mpc_lib;
5566fi
e8a5fa9c 5567
e8a5fa9c
RW
5568
5569if test "x$with_mpc" != x; then
d9b76ff9
KG
5570 gmplibs="-L$with_mpc/lib $gmplibs"
5571 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5572fi
5573if test "x$with_mpc_include" != x; then
d9b76ff9 5574 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5575fi
5576if test "x$with_mpc_lib" != x; then
d9b76ff9 5577 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5578fi
5579if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5580 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5581 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5582 # Do not test the mpc version. Assume that it is sufficient, since
5583 # it is in the source tree, and the library has not been built yet
5584 # but it would be included on the link line in the version check below
5585 # hence making the test fail.
d9b76ff9 5586 have_gmp=yes
e8a5fa9c 5587fi
4b900473 5588
11b04d1f
DD
5589# Specify a location for mpfr
5590# check for this first so it ends up on the link line before gmp.
c6b750e1 5591
81ecdfbb
RW
5592# Check whether --with-mpfr-dir was given.
5593if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5594 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5595Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5596fi
5597
11b04d1f
DD
5598
5599
81ecdfbb
RW
5600# Check whether --with-mpfr was given.
5601if test "${with_mpfr+set}" = set; then :
5602 withval=$with_mpfr;
5603fi
c6b750e1 5604
11b04d1f 5605
e552509b 5606# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5607if test "${with_mpfr_include+set}" = set; then :
5608 withval=$with_mpfr_include;
5609fi
c6b750e1 5610
8a0d8a5c 5611
e552509b 5612# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5613if test "${with_mpfr_lib+set}" = set; then :
5614 withval=$with_mpfr_lib;
5615fi
8a0d8a5c 5616
11b04d1f
DD
5617
5618if test "x$with_mpfr" != x; then
5619 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5620 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5621fi
8a0d8a5c 5622if test "x$with_mpfr_include" != x; then
d9b76ff9 5623 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5624fi
5625if test "x$with_mpfr_lib" != x; then
5626 gmplibs="-L$with_mpfr_lib $gmplibs"
5627fi
4b900473 5628if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5629 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5630 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5631 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5632 fi
05a13254
NC
5633 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5634 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5635 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5636 # Do not test the mpfr version. Assume that it is sufficient, since
5637 # it is in the source tree, and the library has not been built yet
5638 # but it would be included on the link line in the version check below
5639 # hence making the test fail.
5640 have_gmp=yes
5641fi
11b04d1f 5642
4b1cb4fe 5643# Specify a location for gmp
c6b750e1 5644
81ecdfbb
RW
5645# Check whether --with-gmp-dir was given.
5646if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5647 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5648Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5649fi
5650
4b1cb4fe
DD
5651
5652
81ecdfbb
RW
5653# Check whether --with-gmp was given.
5654if test "${with_gmp+set}" = set; then :
5655 withval=$with_gmp;
5656fi
c6b750e1 5657
4b1cb4fe 5658
e552509b 5659# Check whether --with-gmp-include was given.
81ecdfbb
RW
5660if test "${with_gmp_include+set}" = set; then :
5661 withval=$with_gmp_include;
5662fi
c6b750e1 5663
8a0d8a5c 5664
e552509b 5665# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5666if test "${with_gmp_lib+set}" = set; then :
5667 withval=$with_gmp_lib;
5668fi
8a0d8a5c
PB
5669
5670
4b1cb4fe 5671
11b04d1f
DD
5672if test "x$with_gmp" != x; then
5673 gmplibs="-L$with_gmp/lib $gmplibs"
5674 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5675fi
8a0d8a5c
PB
5676if test "x$with_gmp_include" != x; then
5677 gmpinc="-I$with_gmp_include $gmpinc"
5678fi
5679if test "x$with_gmp_lib" != x; then
5680 gmplibs="-L$with_gmp_lib $gmplibs"
5681fi
4b900473 5682if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5683 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5684 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5685 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5686 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5687 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5688 # Do not test the gmp version. Assume that it is sufficient, since
5689 # it is in the source tree, and the library has not been built yet
5690 # but it would be included on the link line in the version check below
5691 # hence making the test fail.
5692 have_gmp=yes
5693fi
4b1cb4fe 5694
ceb92e78 5695if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5696 have_gmp=yes
5697 saved_CFLAGS="$CFLAGS"
5698 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5699 # Check for the recommended and required versions of GMP.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5701$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5703/* end confdefs.h. */
5704#include "gmp.h"
5705int
5706main ()
5707{
5708
5709 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5710 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5711 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5712 choke me
5713 #endif
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5721/* end confdefs.h. */
a6b5846e 5722#include <gmp.h>
c6b750e1
DJ
5723int
5724main ()
5725{
4b1cb4fe 5726
a6b5846e
KG
5727 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5728 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5729 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5730 choke me
5731 #endif
c6b750e1
DJ
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
81ecdfbb
RW
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739$as_echo "yes" >&6; }
a6b5846e
KG
5740else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742$as_echo "buggy but acceptable" >&6; }
5743fi
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5745else
81ecdfbb
RW
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5748fi
81ecdfbb 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5750
e8a5fa9c 5751 # If we have GMP, check the MPFR version.
4b900473 5752 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5753 # Check for the recommended and required versions of MPFR.
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5755$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5757/* end confdefs.h. */
9b134994 5758#include <gmp.h>
4b900473 5759 #include <mpfr.h>
c6b750e1
DJ
5760int
5761main ()
5762{
9b134994 5763
7ec59b9e 5764 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5765 choke me
5766 #endif
c6b750e1
DJ
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
81ecdfbb
RW
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5774/* end confdefs.h. */
4b1cb4fe 5775#include <gmp.h>
4b900473 5776 #include <mpfr.h>
c6b750e1
DJ
5777int
5778main ()
5779{
9dbaa842 5780
a6b5846e 5781 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5782 choke me
5783 #endif
e8a5fa9c
RW
5784
5785 ;
5786 return 0;
5787}
5788_ACEOF
81ecdfbb
RW
5789if ac_fn_c_try_compile "$LINENO"; then :
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5791$as_echo "yes" >&6; }
e8a5fa9c 5792else
81ecdfbb
RW
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5794$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5795fi
81ecdfbb 5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5797else
81ecdfbb
RW
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5800fi
81ecdfbb 5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5802 fi
5803
5804 # Check for the MPC header version.
d9b76ff9 5805 if test x"$have_gmp" = xyes ; then
a6b5846e 5806 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5808$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5810/* end confdefs.h. */
5811#include <mpc.h>
5812int
5813main ()
5814{
5815
a6b5846e
KG
5816 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5817 choke me
5818 #endif
5819
5820 ;
5821 return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_compile "$LINENO"; then :
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827#include <mpc.h>
5828int
5829main ()
5830{
5831
5832 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5833 choke me
5834 #endif
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
81ecdfbb
RW
5840if ac_fn_c_try_compile "$LINENO"; then :
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5842$as_echo "yes" >&6; }
a6b5846e
KG
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5845$as_echo "buggy but acceptable" >&6; }
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5848else
81ecdfbb 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5850$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5851fi
81ecdfbb 5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5853 fi
5854
5855 # Now check the MPFR library.
5856 if test x"$have_gmp" = xyes; then
5857 saved_LIBS="$LIBS"
5858 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5860$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5862/* end confdefs.h. */
d9b76ff9 5863#include <mpc.h>
e8a5fa9c
RW
5864int
5865main ()
5866{
5867
5868 mpfr_t n;
5869 mpfr_t x;
d9b76ff9 5870 mpc_t c;
e8a5fa9c
RW
5871 int t;
5872 mpfr_init (n);
5873 mpfr_init (x);
5874 mpfr_atan2 (n, n, x, GMP_RNDN);
5875 mpfr_erfc (n, x, GMP_RNDN);
5876 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5877 mpfr_clear(n);
5878 mpfr_clear(x);
5879 mpc_init2 (c, 53);
5880 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5881 mpc_cosh (c, c, MPC_RNDNN);
5882 mpc_pow (c, c, c, MPC_RNDNN);
5883 mpc_acosh (c, c, MPC_RNDNN);
5884 mpc_clear (c);
c6b750e1
DJ
5885
5886 ;
5887 return 0;
5888}
5889_ACEOF
81ecdfbb
RW
5890if ac_fn_c_try_link "$LINENO"; then :
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5892$as_echo "yes" >&6; }
c6b750e1 5893else
81ecdfbb
RW
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5896fi
81ecdfbb
RW
5897rm -f core conftest.err conftest.$ac_objext \
5898 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5899 LIBS="$saved_LIBS"
5900 fi
5901
4b900473 5902 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5903
a6b5846e
KG
5904# The library versions listed in the error message below should match
5905# the HARD-minimums enforced above.
4b900473 5906 if test x$have_gmp != xyes; then
d0ac1c44 5907 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5908Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5909their locations. Source code for these libraries can be found at
5910their respective hosting sites as well as at
5911ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5912http://gcc.gnu.org/install/prerequisites.html for additional info. If
5913you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5914make sure that you have installed both the libraries and the header
5915files. They may be located in separate packages." "$LINENO" 5
4b900473 5916 fi
9dbaa842
DD
5917fi
5918
e8a5fa9c
RW
5919# Flags needed for both GMP, MPFR and/or MPC.
5920
5921
5922
4b1cb4fe
DD
5923
5924
5925
7ec59b9e 5926
b3676d82 5927# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5928
b3676d82
EB
5929# Check whether --with-stage1-libs was given.
5930if test "${with_stage1_libs+set}" = set; then :
5931 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5932 stage1_libs=
e8a5fa9c 5933 else
b3676d82 5934 stage1_libs=$withval
e8a5fa9c
RW
5935 fi
5936else
68996839 5937 stage1_libs=
81ecdfbb
RW
5938fi
5939
e8a5fa9c
RW
5940
5941
c1a5d03a
TT
5942# Whether or not to use -static-libstdc++ and -static-libgcc. The
5943# default is yes if gcc is being built; no otherwise. The reason for
5944# this default is that gdb is sometimes linked against GNU Source
5945# Highlight, which is a shared library that uses C++ exceptions. In
5946# this case, -static-libstdc++ will cause crashes.
5947
5948# Check whether --with-static-standard-libraries was given.
5949if test "${with_static_standard_libraries+set}" = set; then :
5950 withval=$with_static_standard_libraries;
5951else
5952 with_static_standard_libraries=auto
5953fi
5954
5955if test "$with_static_standard_libraries" = auto; then
5956 with_static_standard_libraries=$have_compiler
5957fi
5958
b3676d82 5959# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5960
b3676d82
EB
5961# Check whether --with-stage1-ldflags was given.
5962if test "${with_stage1_ldflags+set}" = set; then :
5963 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5964 stage1_ldflags=
e8a5fa9c 5965 else
b3676d82 5966 stage1_ldflags=$withval
e8a5fa9c
RW
5967 fi
5968else
b3676d82
EB
5969 stage1_ldflags=
5970 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5971 # if supported. But if the user explicitly specified the libraries to use,
5972 # trust that they are doing what they want.
c1a5d03a
TT
5973 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5974 -a "$have_static_libs" = yes; then
b3676d82
EB
5975 stage1_ldflags="-static-libstdc++ -static-libgcc"
5976 fi
81ecdfbb
RW
5977fi
5978
e8a5fa9c
RW
5979
5980
68996839 5981# Libraries to use for stage2 and later builds.
e8a5fa9c 5982
81ecdfbb
RW
5983# Check whether --with-boot-libs was given.
5984if test "${with_boot_libs+set}" = set; then :
5985 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5986 poststage1_libs=
5987 else
5988 poststage1_libs=$withval
5989 fi
5990else
68996839 5991 poststage1_libs=
81ecdfbb
RW
5992fi
5993
e8a5fa9c
RW
5994
5995
143754cd
NC
5996# Linker flags to use for stage2 and later builds.
5997
5998# Check whether --with-boot-ldflags was given.
5999if test "${with_boot_ldflags+set}" = set; then :
6000 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6001 poststage1_ldflags=
6002 else
6003 poststage1_ldflags=$withval
6004 fi
6005else
6006 poststage1_ldflags=
4f11b223
ILT
6007 # In stages 2 and 3, default to linking libstdc++ and libgcc
6008 # statically. But if the user explicitly specified the libraries to
6009 # use, trust that they are doing what they want.
6010 if test "$poststage1_libs" = ""; then
143754cd
NC
6011 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6012 fi
6013fi
6014
6015
6016
4849dfd8 6017# GCC GRAPHITE dependency isl.
1b6c0831 6018# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6019
6020
7ec59b9e
L
6021# Check whether --with-isl was given.
6022if test "${with_isl+set}" = set; then :
6023 withval=$with_isl;
81ecdfbb 6024fi
e28c595f 6025
e28c595f 6026
1b6c0831 6027# Treat --without-isl as a request to disable
8e71395b 6028# GRAPHITE support and skip all following checks.
1b6c0831 6029if test "x$with_isl" != "xno"; then
4849dfd8 6030 # Check for isl
8e71395b
L
6031
6032
7ec59b9e
L
6033# Check whether --with-isl-include was given.
6034if test "${with_isl_include+set}" = set; then :
6035 withval=$with_isl_include;
81ecdfbb
RW
6036fi
6037
e28c595f 6038
7ec59b9e
L
6039# Check whether --with-isl-lib was given.
6040if test "${with_isl_lib+set}" = set; then :
6041 withval=$with_isl_lib;
81ecdfbb 6042fi
e28c595f 6043
e28c595f 6044
7ec59b9e
L
6045 # Check whether --enable-isl-version-check was given.
6046if test "${enable_isl_version_check+set}" = set; then :
6047 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6048else
6049 ENABLE_ISL_CHECK=yes
b123da99
SP
6050fi
6051
6052
7ec59b9e
L
6053 # Initialize isllibs and islinc.
6054 case $with_isl in
6055 no)
6056 isllibs=
6057 islinc=
6058 ;;
6059 "" | yes)
6060 ;;
6061 *)
6062 isllibs="-L$with_isl/lib"
6063 islinc="-I$with_isl/include"
6064 ;;
6065 esac
6066 if test "x${with_isl_include}" != x ; then
6067 islinc="-I$with_isl_include"
6068 fi
6069 if test "x${with_isl_lib}" != x; then
6070 isllibs="-L$with_isl_lib"
6071 fi
6072 if test "x${islinc}" = x && test "x${isllibs}" = x \
6073 && test -d ${srcdir}/isl; then
6074 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6075 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6076 ENABLE_ISL_CHECK=no
4849dfd8
NC
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6078$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6079 fi
b123da99 6080
1b6c0831 6081 isllibs="${isllibs} -lisl"
b123da99 6082
e28c595f 6083
b3fc79f8
JBG
6084
6085 if test "${ENABLE_ISL_CHECK}" = yes ; then
6086 _isl_saved_CFLAGS=$CFLAGS
6087 _isl_saved_LDFLAGS=$LDFLAGS
6088 _isl_saved_LIBS=$LIBS
6089
6090 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6091 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6092 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6093
bf41f30d
NC
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6095$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6097/* end confdefs.h. */
bf41f30d 6098#include <isl/schedule.h>
b3fc79f8
JBG
6099int
6100main ()
6101{
bf41f30d 6102isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6103 ;
6104 return 0;
6105}
6106_ACEOF
1b6c0831 6107if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6108 gcc_cv_isl=yes
6109else
6110 gcc_cv_isl=no
6111fi
1b6c0831
L
6112rm -f core conftest.err conftest.$ac_objext \
6113 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6115$as_echo "$gcc_cv_isl" >&6; }
6116
4849dfd8 6117 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6119$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6120 fi
6121
b3fc79f8
JBG
6122 CFLAGS=$_isl_saved_CFLAGS
6123 LDFLAGS=$_isl_saved_LDFLAGS
6124 LIBS=$_isl_saved_LIBS
6125 fi
6126
6127
e28c595f 6128
e28c595f 6129
7ec59b9e
L
6130
6131
7ec59b9e
L
6132 if test "x${with_isl}" = xno; then
6133 graphite_requested=no
6134 elif test "x${with_isl}" != x \
6135 || test "x${with_isl_include}" != x \
6136 || test "x${with_isl_lib}" != x ; then
6137 graphite_requested=yes
6138 else
6139 graphite_requested=no
b123da99 6140 fi
e28c595f 6141
e28c595f
JM
6142
6143
7ec59b9e
L
6144 if test "${gcc_cv_isl}" = no ; then
6145 isllibs=
6146 islinc=
6147 fi
e28c595f 6148
7ec59b9e
L
6149 if test "${graphite_requested}" = yes \
6150 && test "x${isllibs}" = x \
6151 && test "x${islinc}" = x ; then
e28c595f 6152
d0ac1c44 6153 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6154 fi
e552509b 6155
e28c595f 6156
e552509b
ILT
6157fi
6158
4849dfd8 6159# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6160if test "x$with_isl" = xno ||
8e71395b 6161 test "x$gcc_cv_isl" = xno; then
1b6c0831 6162 noconfigdirs="$noconfigdirs isl"
8e71395b 6163 islinc=
7ec59b9e
L
6164fi
6165
8e71395b
L
6166
6167
6168
700d40ca
ILT
6169# Check for LTO support.
6170# Check whether --enable-lto was given.
6171if test "${enable_lto+set}" = set; then :
6172 enableval=$enable_lto; enable_lto=$enableval
6173else
6174 enable_lto=yes; default_enable_lto=yes
6175fi
6176
6177
143754cd 6178
e49e5c92
DK
6179
6180
6181target_elf=no
6182case $target in
6183 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6184 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6185 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6186 nvptx-*-none)
e49e5c92
DK
6187 target_elf=no
6188 ;;
6189 *)
6190 target_elf=yes
6191 ;;
6192esac
6193
6194if test $target_elf = yes; then :
74cea91b
DK
6195 # ELF platforms build the lto-plugin always.
6196 build_lto_plugin=yes
e49e5c92 6197
e49e5c92
DK
6198else
6199 if test x"$default_enable_lto" = x"yes" ; then
29821356 6200 case $target in
bf41f30d 6201 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6202 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6203 *) enable_lto=no ;;
6204 esac
e49e5c92 6205 else
29821356
RW
6206 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6207 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6208 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6209 # warn during gcc/ subconfigure; unless you're bootstrapping with
6210 # -flto it won't be needed until after installation anyway.
6211 case $target in
52cf9762 6212 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6213 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6214 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6215 fi
6216 ;;
6217 esac
6218 fi
a8eb3f0a 6219 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6220 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6221 case $target in
74cea91b 6222 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6223 *) ;;
6224 esac
74cea91b 6225
e49e5c92
DK
6226fi
6227
700d40ca 6228
1b6c0831
L
6229# Check whether --enable-linker-plugin-configure-flags was given.
6230if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6231 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6232else
6233 extra_linker_plugin_configure_flags=
6234fi
6235
6236
6237# Check whether --enable-linker-plugin-flags was given.
6238if test "${enable_linker_plugin_flags+set}" = set; then :
6239 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6240else
6241 extra_linker_plugin_flags=
6242fi
6243
6244
6245
bf41f30d
NC
6246# Enable --enable-host-shared.
6247# Checked early to determine whether jit is an 'all' language
6248# Check whether --enable-host-shared was given.
6249if test "${enable_host_shared+set}" = set; then :
6250 enableval=$enable_host_shared; host_shared=$enableval
6251else
6252 host_shared=no
6253fi
6254
6255
e28c595f 6256
7ec59b9e 6257# By default, C and C++ are the only stage 1 languages.
9b134994 6258stage1_languages=,c,
1d39f329 6259
e8a5fa9c 6260# Target libraries that we bootstrap.
2aa2364a 6261bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6262
9e07f89d
NN
6263# Figure out what language subdirectories are present.
6264# Look if the user specified --enable-languages="..."; if not, use
6265# the environment variable $LANGUAGES if defined. $LANGUAGES might
6266# go away some day.
6267# NB: embedded tabs in this IF block -- do not untabify
6268if test -d ${srcdir}/gcc; then
6269 if test x"${enable_languages+set}" != xset; then
6270 if test x"${LANGUAGES+set}" = xset; then
6271 enable_languages="${LANGUAGES}"
136bb21f 6272 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6273 else
bf41f30d 6274 enable_languages=default
9e07f89d
NN
6275 fi
6276 else
6277 if test x"${enable_languages}" = x ||
6278 test x"${enable_languages}" = xyes;
6279 then
136bb21f 6280 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6281 exit 1
6282 fi
6283 fi
6284 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6285
096f7d00
DE
6286 # 'f95' is the old name for the 'fortran' language. We issue a warning
6287 # and make the substitution.
6288 case ,${enable_languages}, in
6289 *,f95,*)
136bb21f 6290 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6291 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6292 ;;
6293 esac
6294
7ec59b9e
L
6295 # If bootstrapping, C++ must be enabled.
6296 case ",$enable_languages,:$enable_bootstrap" in
6297 *,c++,*:*) ;;
6298 *:yes)
ffdd6afc
ILT
6299 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6300 enable_languages="${enable_languages},c++"
6301 else
d0ac1c44 6302 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6303 fi
6304 ;;
6305 esac
6306
9e07f89d
NN
6307 # First scan to see if an enabled language requires some other language.
6308 # We assume that a given config-lang.in will list all the language
6309 # front ends it requires, even if some are required indirectly.
6310 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6311 case ${lang_frag} in
6312 ..) ;;
6313 # The odd quoting in the next line works around
6314 # an apparent bug in bash 1.12 on linux.
6315 ${srcdir}/gcc/[*]/config-lang.in) ;;
6316 *)
e552509b
ILT
6317 # From the config-lang.in, get $language, $lang_requires, and
6318 # $lang_requires_boot_languages.
9e07f89d
NN
6319 language=
6320 lang_requires=
e552509b 6321 lang_requires_boot_languages=
bf41f30d
NC
6322 # set srcdir during sourcing lang_frag to the gcc dir.
6323 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6324 # polutes this shell
6325 saved_srcdir=${srcdir}
6326 srcdir=${srcdir}/gcc . ${lang_frag}
6327 srcdir=${saved_srcdir}
e552509b 6328 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6329 case ,${enable_languages}, in
6330 *,$other,*) ;;
bf41f30d 6331 *,default,*) ;;
9e07f89d
NN
6332 *,all,*) ;;
6333 *,$language,*)
6334 echo " \`$other' language required by \`$language'; enabling" 1>&2
6335 enable_languages="${enable_languages},${other}"
6336 ;;
6337 esac
6338 done
e552509b
ILT
6339 for other in ${lang_requires_boot_languages} ; do
6340 if test "$other" != "c"; then
6341 case ,${enable_stage1_languages}, in
6342 *,$other,*) ;;
bf41f30d 6343 *,default,*) ;;
e552509b
ILT
6344 *,all,*) ;;
6345 *)
6346 case ,${enable_languages}, in
6347 *,$language,*)
6348 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6349 enable_stage1_languages="$enable_stage1_languages,${other}"
6350 ;;
6351 esac
6352 ;;
6353 esac
6354 fi
6355 done
9e07f89d
NN
6356 ;;
6357 esac
6358 done
6359
9b134994 6360 new_enable_languages=,c,
700d40ca
ILT
6361
6362 # If LTO is enabled, add the LTO front end.
700d40ca 6363 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6364 case ,${enable_languages}, in
6365 *,lto,*) ;;
6366 *) enable_languages="${enable_languages},lto" ;;
6367 esac
a8eb3f0a 6368 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6369 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6370 fi
6371 fi
6372
1b6c0831
L
6373 # If we're building an offloading compiler, add the LTO front end.
6374 if test x"$enable_as_accelerator_for" != x ; then
6375 case ,${enable_languages}, in
6376 *,lto,*) ;;
6377 *) enable_languages="${enable_languages},lto" ;;
6378 esac
6379 fi
700d40ca 6380
bf41f30d 6381 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6382 potential_languages=,c,
9e07f89d 6383
9e1a94f4
ILT
6384 enabled_target_libs=
6385 disabled_target_libs=
6386
9e07f89d
NN
6387 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6388 case ${lang_frag} in
6389 ..) ;;
6390 # The odd quoting in the next line works around
6391 # an apparent bug in bash 1.12 on linux.
6392 ${srcdir}/gcc/[*]/config-lang.in) ;;
6393 *)
c6b750e1 6394 # From the config-lang.in, get $language, $target_libs,
1d39f329 6395 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6396 language=
6397 target_libs=
6398 lang_dirs=
64ce424c 6399 subdir_requires=
9b134994
PB
6400 boot_language=no
6401 build_by_default=yes
bf41f30d
NC
6402 # set srcdir during sourcing. See above about save & restore
6403 saved_srcdir=${srcdir}
6404 srcdir=${srcdir}/gcc . ${lang_frag}
6405 srcdir=${saved_srcdir}
9b134994
PB
6406 if test x${language} = x; then
6407 echo "${lang_frag} doesn't set \$language." 1>&2
6408 exit 1
6409 fi
6410
ffdd6afc 6411 if test "$language" = "c++"; then
7ec59b9e 6412 boot_language=yes
e8a5fa9c
RW
6413 fi
6414
8e71395b 6415 add_this_lang=no
bf41f30d
NC
6416 # C is always enabled, so no need to add it again
6417 if test "$language" != "c"; then
6418 case ,${enable_languages}, in
6419 *,${language},*)
6420 # Language was explicitly selected; include it
7ec59b9e 6421 add_this_lang=yes
bf41f30d
NC
6422 ;;
6423 *,all,*)
6424 # All languages are enabled
6425 add_this_lang=all
6426 ;;
6427 *,default,*)
6428 # 'default' was selected, select it if it is a default language
8e71395b 6429 add_this_lang=${build_by_default}
bf41f30d
NC
6430 ;;
6431 esac
6432 fi
4b1cb4fe 6433
64ce424c 6434 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6435 for i in $subdir_requires; do
3d3adb43 6436 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6437 case ${add_this_lang} in
6438 yes)
64ce424c 6439 # Specifically requested language; tell them.
d0ac1c44 6440 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6441 ;;
bf41f30d
NC
6442 all)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6444$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6445 add_this_lang=unsupported
6446 ;;
64ce424c
PB
6447 *)
6448 # Silently disable.
9b134994 6449 add_this_lang=unsupported
64ce424c
PB
6450 ;;
6451 esac
6452 done
6453
9b134994 6454 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6455 case ${add_this_lang}:${language}:${have_gnat} in
6456 yes:ada:no)
9b134994 6457 # Specifically requested language; tell them.
d0ac1c44 6458 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6459 ;;
bf41f30d
NC
6460 all:ada:no)
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6462$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6463 add_this_lang=unsupported
6464 ;;
9b134994
PB
6465 *:ada:no)
6466 # Silently disable.
6467 add_this_lang=unsupported
6468 ;;
6469 esac
6470
bf41f30d
NC
6471 # Disable jit if -enable-host-shared not specified
6472 case ${add_this_lang}:${language}:${host_shared} in
6473 yes:jit:no)
6474 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6475 as_fn_error $? "
bf41f30d
NC
6476Enabling language \"jit\" requires --enable-host-shared.
6477
6478--enable-host-shared typically slows the rest of the compiler down by
6479a few %, so you must explicitly enable it.
6480
6481If you want to build both the jit and the regular compiler, it is often
6482best to do this via two separate configure/builds, in separate
6483directories, to avoid imposing the performance cost of
6484--enable-host-shared on the regular compiler." "$LINENO" 5
6485 ;;
6486 all:jit:no)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6488$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6489 add_this_lang=unsupported
6490 ;;
6491 *:jit:no)
6492 # Silently disable.
6493 add_this_lang=unsupported
6494 ;;
6495 esac
6496
6497 # Disable a language that is unsupported by the target.
6498 case "${add_this_lang}: $unsupported_languages " in
6499 no:*) ;;
6500 unsupported:*) ;;
6501 *:*" $language "*)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6503$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6504 add_this_lang=unsupported
59f7ec45
HPN
6505 ;;
6506 esac
6507
4b1cb4fe 6508 case $add_this_lang in
9b134994 6509 unsupported)
9e07f89d 6510 # Remove language-dependent dirs.
9e1a94f4
ILT
6511 disabled_target_libs="$disabled_target_libs $target_libs"
6512 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6513 ;;
9b134994
PB
6514 no)
6515 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6516 disabled_target_libs="$disabled_target_libs $target_libs"
6517 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6518 potential_languages="${potential_languages}${language},"
6519 ;;
bf41f30d 6520 all|yes)
9b134994
PB
6521 new_enable_languages="${new_enable_languages}${language},"
6522 potential_languages="${potential_languages}${language},"
1d39f329 6523 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6524 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6525 case "${boot_language}:,$enable_stage1_languages," in
6526 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6527 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6528 case ",$stage1_languages," in
6529 *,$language,* | ,yes, | ,all,) ;;
6530 *) stage1_languages="${stage1_languages}${language}," ;;
6531 esac
e8a5fa9c
RW
6532 # We need to bootstrap any supporting libraries.
6533 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6534 ;;
6535 esac
6536 ;;
9e07f89d
NN
6537 esac
6538 ;;
6539 esac
6540 done
6541
9e1a94f4
ILT
6542 # Add target libraries which are only needed for disabled languages
6543 # to noconfigdirs.
6544 if test -n "$disabled_target_libs"; then
6545 for dir in $disabled_target_libs; do
6546 case " $enabled_target_libs " in
6547 *" ${dir} "*) ;;
6548 *) noconfigdirs="$noconfigdirs $dir" ;;
6549 esac
6550 done
6551 fi
6552
81ecdfbb
RW
6553 # Check whether --enable-stage1-languages was given.
6554if test "${enable_stage1_languages+set}" = set; then :
6555 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6556 ,no,|,,)
6557 # Set it to something that will have no effect in the loop below
6558 enable_stage1_languages=c ;;
6559 ,yes,)
6560 enable_stage1_languages=`echo $new_enable_languages | \
6561 sed -e "s/^,//" -e "s/,$//" ` ;;
6562 *,all,*)
6563 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6564 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6565 esac
6566
6567 # Add "good" languages from enable_stage1_languages to stage1_languages,
6568 # while "bad" languages go in missing_languages. Leave no duplicates.
6569 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6570 case $potential_languages in
6571 *,$i,*)
6572 case $stage1_languages in
6573 *,$i,*) ;;
6574 *) stage1_languages="$stage1_languages$i," ;;
6575 esac ;;
6576 *)
6577 case $missing_languages in
6578 *,$i,*) ;;
6579 *) missing_languages="$missing_languages$i," ;;
6580 esac ;;
6581 esac
6582 done
81ecdfbb
RW
6583fi
6584
9b134994
PB
6585
6586 # Remove leading/trailing commas that were added for simplicity
6587 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6588 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6589 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6590 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6591
9e07f89d 6592 if test "x$missing_languages" != x; then
d0ac1c44 6593 as_fn_error $? "
27258dd4 6594The following requested languages could not be built: ${missing_languages}
81ecdfbb 6595Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6596 fi
9e07f89d
NN
6597 if test "x$new_enable_languages" != "x$enable_languages"; then
6598 echo The following languages will be built: ${new_enable_languages}
9b134994 6599 enable_languages="$new_enable_languages"
9e07f89d 6600 fi
9b134994 6601
c6b750e1 6602
81ec575a 6603 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6604fi
6605
a6df5a19
PB
6606# Handle --disable-<component> generically.
6607for dir in $configdirs $build_configdirs $target_configdirs ; do
6608 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6609 varname=`echo $dirname | sed -e s/+/_/g`
6610 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6611 noconfigdirs="$noconfigdirs $dir"
6612 fi
6613done
6614
4f0ef2d8 6615# Check for Boehm's garbage collector
81ecdfbb
RW
6616# Check whether --enable-objc-gc was given.
6617if test "${enable_objc_gc+set}" = set; then :
05a13254 6618 enableval=$enable_objc_gc;
81ecdfbb
RW
6619fi
6620
4f0ef2d8 6621
05a13254
NC
6622# Check whether --with-target-bdw-gc was given.
6623if test "${with_target_bdw_gc+set}" = set; then :
6624 withval=$with_target_bdw_gc;
6625fi
6626
6627
6628# Check whether --with-target-bdw-gc-include was given.
6629if test "${with_target_bdw_gc_include+set}" = set; then :
6630 withval=$with_target_bdw_gc_include;
6631fi
6632
6633
6634# Check whether --with-target-bdw-gc-lib was given.
6635if test "${with_target_bdw_gc_lib+set}" = set; then :
6636 withval=$with_target_bdw_gc_lib;
6637fi
6638
6639
6640case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6642$as_echo_n "checking for bdw garbage collector... " >&6; }
6643 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6645$as_echo "using bdw-gc in default locations" >&6; }
6646 else
6647 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6648 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6649 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6650 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6653$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6654 fi
05a13254 6655 fi
4f0ef2d8
CD
6656esac
6657
bf41f30d 6658# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6659case ,${enable_languages}, in
1b6c0831 6660 *,c++,*)
bf41f30d 6661 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6662 case "${noconfigdirs}" in
6663 *target-libstdc++-v3*)
bf41f30d 6664 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6665 ;;
6666 *) ;;
6667 esac
6668 ;;
7ec59b9e 6669 *)
bf41f30d 6670 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6671 ;;
6672esac
6673
caeba88f
AL
6674# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6675# $build_configdirs and $target_configdirs.
9e07f89d
NN
6676# If we have the source for $noconfigdirs entries, add them to $notsupp.
6677
6678notsupp=""
6679for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6680 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6681 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6682 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6683 if test -r $srcdir/$dirname/configure ; then
6684 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6685 true
6686 else
6687 notsupp="$notsupp $dir"
6688 fi
6689 fi
6690 fi
caeba88f
AL
6691 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6692 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6693 if test -r $srcdir/$dirname/configure ; then
6694 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6695 true
6696 else
6697 notsupp="$notsupp $dir"
6698 fi
6699 fi
6700 fi
9e07f89d
NN
6701 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6702 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6703 if test -r $srcdir/$dirname/configure ; then
6704 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6705 true
6706 else
6707 notsupp="$notsupp $dir"
6708 fi
6709 fi
6710 fi
6711done
6712
9e07f89d
NN
6713# Quietly strip out all directories which aren't configurable in this tree.
6714# This relies on all configurable subdirectories being autoconfiscated, which
6715# is now the case.
6a9cf61e
PB
6716build_configdirs_all="$build_configdirs"
6717build_configdirs=
6718for i in ${build_configdirs_all} ; do
c6b750e1 6719 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6720 if test -f ${srcdir}/$j/configure ; then
6721 build_configdirs="${build_configdirs} $i"
6722 fi
6723done
6724
9e07f89d
NN
6725configdirs_all="$configdirs"
6726configdirs=
6727for i in ${configdirs_all} ; do
6728 if test -f ${srcdir}/$i/configure ; then
6729 configdirs="${configdirs} $i"
6730 fi
6731done
6a9cf61e 6732
9e07f89d
NN
6733target_configdirs_all="$target_configdirs"
6734target_configdirs=
6735for i in ${target_configdirs_all} ; do
c6b750e1 6736 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6737 if test -f ${srcdir}/$j/configure ; then
6738 target_configdirs="${target_configdirs} $i"
6739 fi
6740done
6741
1b6c0831
L
6742# libiberty-linker-plugin is special: it doesn't have its own source directory,
6743# so we have to add it after the preceding checks.
6744if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6745then
6746 case " $configdirs " in
6747 *" libiberty "*)
6748 # If we can build libiberty, we can also build libiberty-linker-plugin.
6749 configdirs="$configdirs libiberty-linker-plugin"
6750 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6751 --with-libiberty=../libiberty-linker-plugin";;
6752 *)
d0ac1c44 6753 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6754 esac
6755fi
6756
6757# Sometimes we have special requirements for the host libiberty.
6758extra_host_libiberty_configure_flags=
e81d5d05 6759extra_host_zlib_configure_flags=
1b6c0831
L
6760case " $configdirs " in
6761 *" lto-plugin "* | *" libcc1 "*)
6762 # When these are to be built as shared libraries, the same applies to
6763 # libiberty.
6764 extra_host_libiberty_configure_flags=--enable-shared
6765 ;;
e81d5d05
L
6766 *" bfd "*)
6767 # When bfd is to be built as a shared library, the same applies to
6768 # zlib.
6769 if test "$enable_shared" = "yes"; then
6770 extra_host_zlib_configure_flags=--enable-host-shared
6771 fi
6772 ;;
1b6c0831
L
6773esac
6774
6775
e81d5d05 6776
9e07f89d
NN
6777# Produce a warning message for the subdirs we can't configure.
6778# This isn't especially interesting in the Cygnus tree, but in the individual
6779# FSF releases, it's important to let people know when their machine isn't
6780# supported by the one or two programs in a package.
6781
6782if test -n "${notsupp}" && test -z "${norecursion}" ; then
6783 # If $appdirs is non-empty, at least one of those directories must still
6784 # be configured, or we error out. (E.g., if the gas release supports a
6785 # specified target in some subdirs but not the gas subdir, we shouldn't
6786 # pretend that all is well.)
6787 if test -n "$appdirs" ; then
6788 for dir in $appdirs ; do
6789 if test -r $dir/Makefile.in ; then
6790 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6791 appdirs=""
6792 break
6793 fi
6a9cf61e 6794 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6795 appdirs=""
6796 break
6797 fi
6798 fi
6799 done
6800 if test -n "$appdirs" ; then
6801 echo "*** This configuration is not supported by this package." 1>&2
6802 exit 1
6803 fi
6804 fi
6805 # Okay, some application will build, or we don't care to check. Still
6806 # notify of subdirs not getting built.
6807 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6808 echo " ${notsupp}" 1>&2
6809 echo " (Any other directories should still work fine.)" 1>&2
6810fi
6811
6812case "$host" in
6813 *msdosdjgpp*)
6814 enable_gdbtk=no ;;
6815esac
6816
18f6b6ee
PB
6817# To find our prefix, in gcc_cv_tool_prefix.
6818
6819# The user is always right.
6820if test "${PATH_SEPARATOR+set}" != set; then
6821 echo "#! /bin/sh" >conf$$.sh
6822 echo "exit 0" >>conf$$.sh
6823 chmod +x conf$$.sh
6824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6825 PATH_SEPARATOR=';'
6826 else
6827 PATH_SEPARATOR=:
6828 fi
6829 rm -f conf$$.sh
6830fi
6831
6832
bf41f30d
NC
6833 get_gcc_base_ver="cat"
6834
6835# Check whether --with-gcc-major-version-only was given.
6836if test "${with_gcc_major_version_only+set}" = set; then :
6837 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6838 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6839 fi
6840
6841fi
6842
6843
6844
6845
6846
18f6b6ee
PB
6847
6848if test "x$exec_prefix" = xNONE; then
6849 if test "x$prefix" = xNONE; then
6850 gcc_cv_tool_prefix=$ac_default_prefix
6851 else
6852 gcc_cv_tool_prefix=$prefix
6853 fi
6854else
6855 gcc_cv_tool_prefix=$exec_prefix
6856fi
6857
6858# If there is no compiler in the tree, use the PATH only. In any
6859# case, if there is no compiler in the tree nobody should use
6860# AS_FOR_TARGET and LD_FOR_TARGET.
6861if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6862 if test x$with_gcc_major_version_only = xyes ; then
6863 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6864 else
6865 gcc_version=`cat $srcdir/gcc/BASE-VER`
6866 fi
18f6b6ee
PB
6867 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6868 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6869 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6870 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6872 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6873else
6874 gcc_cv_tool_dirs=
6875fi
6876
6877if test x$build = x$target && test -n "$md_exec_prefix"; then
6878 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6879fi
6880
6881
6882
9e07f89d
NN
6883copy_dirs=
6884
c6b750e1 6885
81ecdfbb
RW
6886# Check whether --with-build-sysroot was given.
6887if test "${with_build_sysroot+set}" = set; then :
6888 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6889 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6890 fi
6891else
6892 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6893fi
a19b6204
MM
6894
6895
8a6ee3ab 6896
81ecdfbb
RW
6897
6898# Check whether --with-debug-prefix-map was given.
6899if test "${with_debug_prefix_map+set}" = set; then :
6900 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6901 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6902 for debug_map in $withval; do
6903 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6904 done
6905 fi
6906else
6907 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6908fi
6909
8a6ee3ab
JM
6910
6911
7f6ef0c0
PB
6912# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6913# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6914# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6915# We want to ensure that TARGET libraries (which we know are built with
6916# gcc) are built with "-O2 -g", so include those options when setting
6917# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6918if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6919 if test "x${is_cross_compiler}" = xyes; then
6920 CFLAGS_FOR_TARGET="-g -O2"
6921 else
6922 CFLAGS_FOR_TARGET=$CFLAGS
6923 case " $CFLAGS " in
6924 *" -O2 "*) ;;
6925 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6926 esac
6927 case " $CFLAGS " in
6928 *" -g "* | *" -g3 "*) ;;
6929 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6930 esac
6931 fi
7f6ef0c0
PB
6932fi
6933
6934
6935if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6936 if test "x${is_cross_compiler}" = xyes; then
6937 CXXFLAGS_FOR_TARGET="-g -O2"
6938 else
6939 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6940 case " $CXXFLAGS " in
6941 *" -O2 "*) ;;
6942 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6943 esac
6944 case " $CXXFLAGS " in
6945 *" -g "* | *" -g3 "*) ;;
6946 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6947 esac
6948 fi
7f6ef0c0
PB
6949fi
6950
6951
91c1f14c
DK
6952
6953
9e07f89d
NN
6954# Handle --with-headers=XXX. If the value is not "yes", the contents of
6955# the named directory are copied to $(tooldir)/sys-include.
6956if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6957 if test x${is_cross_compiler} = xno ; then
6958 echo 1>&2 '***' --with-headers is only supported when cross compiling
6959 exit 1
6960 fi
6961 if test x"${with_headers}" != xyes ; then
18f6b6ee 6962 x=${gcc_cv_tool_prefix}
c6b750e1 6963 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6964 fi
6965fi
6966
6967# Handle --with-libs=XXX. If the value is not "yes", the contents of
6968# the name directories are copied to $(tooldir)/lib. Multiple directories
6969# are permitted.
6970if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6971 if test x${is_cross_compiler} = xno ; then
6972 echo 1>&2 '***' --with-libs is only supported when cross compiling
6973 exit 1
6974 fi
6975 if test x"${with_libs}" != xyes ; then
6976 # Copy the libraries in reverse order, so that files in the first named
6977 # library override files in subsequent libraries.
18f6b6ee 6978 x=${gcc_cv_tool_prefix}
9e07f89d 6979 for l in ${with_libs}; do
c6b750e1 6980 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6981 done
6982 fi
6983fi
6984
700d40ca 6985# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6986#
6987# This is done by determining whether or not the appropriate directory
6988# is available, and by checking whether or not specific configurations
6989# have requested that this magic not happen.
c6b750e1
DJ
6990#
6991# The command line options always override the explicit settings in
136bb21f 6992# configure.ac, and the settings in configure.ac override this magic.
2429c060 6993#
c6b750e1 6994# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6995# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6996# --without-gnu-ld options for the configure script. Similarly, if
6997# the default is to use the included zlib and you don't want to do that,
6998# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6999
7000if test x${use_gnu_as} = x &&
7001 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7002 with_gnu_as=yes
7003 extra_host_args="$extra_host_args --with-gnu-as"
7004fi
7005
7006if test x${use_gnu_ld} = x &&
93f9b408 7007 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7008 with_gnu_ld=yes
7009 extra_host_args="$extra_host_args --with-gnu-ld"
7010fi
7011
700d40ca
ILT
7012if test x${use_included_zlib} = x &&
7013 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7014 :
7015else
7016 with_system_zlib=yes
7017 extra_host_args="$extra_host_args --with-system-zlib"
7018fi
7019
2429c060
PB
7020# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7021# can detect this case.
7022
7023if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7024 with_newlib=yes
7025 extra_host_args="$extra_host_args --with-newlib"
7026fi
7027
9e07f89d
NN
7028# Handle ${copy_dirs}
7029set fnord ${copy_dirs}
7030shift
7031while test $# != 0 ; do
7032 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7033 :
7034 else
7035 echo Copying $1 to $2
7036
7037 # Use the install script to create the directory and all required
7038 # parent directories.
7039 if test -d $2 ; then
7040 :
7041 else
7042 echo >config.temp
7043 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7044 fi
7045
7046 # Copy the directory, assuming we have tar.
7047 # FIXME: Should we use B in the second tar? Not all systems support it.
7048 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7049
7050 # It is the responsibility of the user to correctly adjust all
7051 # symlinks. If somebody can figure out how to handle them correctly
7052 # here, feel free to add the code.
7053
7054 echo $1 > $2/COPIED
7055 fi
7056 shift; shift
7057done
7058
2429c060
PB
7059# Determine a target-dependent exec_prefix that the installed
7060# gcc will search in. Keep this list sorted by triplet, with
7061# the *-*-osname triplets last.
7062md_exec_prefix=
7063case "${target}" in
521ec477 7064 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7065 md_exec_prefix=/dev/env/DJDIR/bin
7066 ;;
2429c060 7067 *-*-hpux* | \
2429c060 7068 *-*-nto-qnx* | \
1f111696 7069 *-*-solaris2*)
2429c060
PB
7070 md_exec_prefix=/usr/ccs/bin
7071 ;;
7072esac
7073
a0da8069
NN
7074extra_arflags_for_target=
7075extra_nmflags_for_target=
7076extra_ranlibflags_for_target=
7077target_makefile_frag=/dev/null
7078case "${target}" in
77d7106f
AM
7079 spu-*-*)
7080 target_makefile_frag="config/mt-spu"
7081 ;;
a9d58c06 7082 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7083 target_makefile_frag="config/mt-sde"
7084 ;;
f3b1e08e
RS
7085 mipsisa*-*-elfoabi*)
7086 target_makefile_frag="config/mt-mips-elfoabi"
7087 ;;
e7c8859c
RS
7088 mips*-*-*linux* | mips*-*-gnu*)
7089 target_makefile_frag="config/mt-mips-gnu"
7090 ;;
d9e042ac
SL
7091 nios2-*-elf*)
7092 target_makefile_frag="config/mt-nios2-elf"
7093 ;;
bf41f30d
NC
7094 *-*-linux-android*)
7095 target_makefile_frag="config/mt-android"
7096 ;;
29383458 7097 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7098 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7099 ;;
7100 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7101 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7102 # commands to handle both 32-bit and 64-bit objects. These flags are
7103 # harmless if we're using GNU nm or ar.
7104 extra_arflags_for_target=" -X32_64"
7105 extra_nmflags_for_target=" -B -X32_64"
7106 ;;
a0da8069
NN
7107esac
7108
7109alphaieee_frag=/dev/null
7110case $target in
7111 alpha*-*-*)
7112 # This just makes sure to use the -mieee option to build target libs.
7113 # This should probably be set individually by each library.
7114 alphaieee_frag="config/mt-alphaieee"
7115 ;;
7116esac
7117
7118# If --enable-target-optspace always use -Os instead of -O2 to build
7119# the target libraries, similarly if it is not specified, use -Os
7120# on selected platforms.
7121ospace_frag=/dev/null
7122case "${enable_target_optspace}:${target}" in
7123 yes:*)
7124 ospace_frag="config/mt-ospace"
7125 ;;
7126 :d30v-*)
7127 ospace_frag="config/mt-d30v"
7128 ;;
16beab3d 7129 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7130 ospace_frag="config/mt-ospace"
7131 ;;
7132 no:* | :*)
7133 ;;
7134 *)
7135 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7136 ;;
7137esac
7138
a0da8069
NN
7139# Some systems (e.g., one of the i386-aix systems the gas testers are
7140# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7141tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7142build_tooldir=${tooldir}
7143
a0da8069
NN
7144# Create a .gdbinit file which runs the one in srcdir
7145# and tells GDB to look there for source files.
7146
7147if test -r ${srcdir}/.gdbinit ; then
7148 case ${srcdir} in
7149 .) ;;
7150 *) cat > ./.gdbinit <<EOF
7151# ${NO_EDIT}
7152dir ${srcdir}
7153dir .
7154source ${srcdir}/.gdbinit
7155EOF
7156 ;;
7157 esac
7158fi
7159
a0da8069
NN
7160# Make sure that the compiler is able to generate an executable. If it
7161# can't, we are probably in trouble. We don't care whether we can run the
7162# executable--we might be using a cross compiler--we only care whether it
7163# can be created. At this point the main configure script has set CC.
7164we_are_ok=no
7165echo "int main () { return 0; }" > conftest.c
7166${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7167if test $? = 0 ; then
7168 if test -s conftest || test -s conftest.exe ; then
7169 we_are_ok=yes
7170 fi
c6b750e1 7171fi
a0da8069
NN
7172case $we_are_ok in
7173 no)
7174 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7175 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7176 rm -f conftest*
7177 exit 1
7178 ;;
7179esac
7180rm -f conftest*
7181
3bbd2f8f 7182# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7183case "${host}" in
7184 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7185 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7186 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7187 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7188esac
7189
3bbd2f8f 7190# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7191# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7192# built executables to PATH.
3bbd2f8f
AL
7193if test "$RPATH_ENVVAR" = PATH; then
7194 GCC_SHLIB_SUBDIR=/shlib
7195else
7196 GCC_SHLIB_SUBDIR=
7197fi
7198
730af8ee 7199# Adjust the toplevel makefile according to whether bootstrap was selected.
7200case $enable_bootstrap in
7201 yes)
7202 bootstrap_suffix=bootstrap
7203 BUILD_CONFIG=bootstrap-debug
7204 ;;
7205 no)
7206 bootstrap_suffix=no-bootstrap
7207 BUILD_CONFIG=
7208 ;;
7209esac
7210
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7212$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7213
7214
7215# Check whether --with-build-config was given.
7216if test "${with_build_config+set}" = set; then :
7217 withval=$with_build_config; case $with_build_config in
7218 yes) with_build_config= ;;
7219 no) with_build_config= BUILD_CONFIG= ;;
7220 esac
7221fi
7222
7223
7224if test "x${with_build_config}" != x; then
7225 BUILD_CONFIG=$with_build_config
7226else
7227 case $BUILD_CONFIG in
7228 bootstrap-debug)
7229 if echo "int f (void) { return 0; }" > conftest.c &&
7230 ${CC} -c conftest.c &&
7231 mv conftest.o conftest.o.g0 &&
7232 ${CC} -c -g conftest.c &&
7233 mv conftest.o conftest.o.g &&
7234 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7235 :
7236 else
7237 BUILD_CONFIG=
7238 fi
7239 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7240 ;;
7241 esac
7242fi
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7244$as_echo "$BUILD_CONFIG" >&6; }
7245
7246
7247# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7249$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7250# Check whether --enable-vtable-verify was given.
7251if test "${enable_vtable_verify+set}" = set; then :
7252 enableval=$enable_vtable_verify; case "$enableval" in
7253 yes) enable_vtable_verify=yes ;;
7254 no) enable_vtable_verify=no ;;
7255 *) enable_vtable_verify=no;;
7256 esac
7257else
7258 enable_vtable_verify=no
7259fi
7260
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7262$as_echo "$enable_vtable_verify" >&6; }
7263
a0da8069
NN
7264# Record target_configdirs and the configure arguments for target and
7265# build configuration in Makefile.
7266target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7267build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7268bootstrap_fixincludes=no
a0da8069 7269
2aa2364a
JR
7270# If we are building libgomp, bootstrap it.
7271if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7272 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7273fi
7274
730af8ee 7275# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7276# or bootstrap-ubsan, bootstrap it.
7277if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7278 case "$BUILD_CONFIG" in
7279 *bootstrap-asan* | *bootstrap-ubsan* )
7280 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7281 bootstrap_fixincludes=yes
730af8ee 7282 ;;
7283 esac
5eb08693
L
7284fi
7285
730af8ee 7286# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7287if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7288 test "$enable_vtable_verify" != no; then
95e43135
JBG
7289 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7290fi
7291
a0da8069
NN
7292# Determine whether gdb needs tk/tcl or not.
7293# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7294# and in that case we want gdb to be built without tk. Ugh!
7295# In fact I believe gdb is the *only* package directly dependent on tk,
7296# so we should be able to put the 'maybe's in unconditionally and
7297# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7298# 100% sure that that's safe though.
c180f501 7299
675c6968 7300gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7301case "$enable_gdbtk" in
7302 no)
7303 GDB_TK="" ;;
c180f501
AC
7304 yes)
7305 GDB_TK="${gdb_tk}" ;;
a0da8069 7306 *)
c180f501
AC
7307 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7308 # distro. Eventually someone will fix this and move Insight, nee
7309 # gdbtk to a separate directory.
7310 if test -d ${srcdir}/gdb/gdbtk ; then
7311 GDB_TK="${gdb_tk}"
7312 else
7313 GDB_TK=""
7314 fi
7315 ;;
a0da8069 7316esac
907be67c
DJ
7317CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7318INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7319
b6f9caee
TT
7320# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7321# else does, only include them if one of these is built. The Makefile
7322# provides the ordering, so it's enough here to add to the list.
7323case " ${configdirs} " in
7324 *\ gdb\ *)
7325 configdirs="${configdirs} gnulib gdbsupport"
7326 ;;
7327 *\ gdbserver\ *)
7328 configdirs="${configdirs} gnulib gdbsupport"
7329 ;;
7330esac
73cc7272 7331
6bd3dfaa 7332# Strip out unwanted targets.
dd12c3a8
NN
7333
7334# While at that, we remove Makefiles if we were started for recursive
7335# configuration, so that the top-level Makefile reconfigures them,
7336# like we used to do when configure itself was recursive.
dd12c3a8 7337
06a51eac
RW
7338# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7339# but now we're fixing up the Makefile ourselves with the additional
7340# commands passed to AC_CONFIG_FILES. Use separate variables
7341# extrasub-{build,host,target} not because there is any reason to split
7342# the substitutions up that way, but only to remain below the limit of
7343# 99 commands in a script, for HP-UX sed.
4119873a
AO
7344
7345# Do not nest @if/@endif or @unless/@endunless pairs, because
7346# configure will not warn you at all.
dd12c3a8 7347
16b1ad29
RW
7348case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7349 yes:yes:*\ gold\ *:*,c++,*) ;;
7350 yes:yes:*\ gold\ *:*)
d0ac1c44 7351 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7352 ;;
7353esac
7354
06a51eac 7355extrasub_build=
6a9cf61e 7356for module in ${build_configdirs} ; do
498d4a71
CF
7357 if test -z "${no_recursion}" \
7358 && test -f ${build_subdir}/${module}/Makefile; then
7359 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7360 rm -f ${build_subdir}/${module}/Makefile
7361 fi
06a51eac 7362 extrasub_build="$extrasub_build
498d4a71
CF
7363/^@if build-$module\$/d
7364/^@endif build-$module\$/d
4119873a 7365/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7366/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7367/^@endif build-$module-$bootstrap_suffix\$/d
7368/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7369done
06a51eac 7370extrasub_host=
498d4a71 7371for module in ${configdirs} ; do
80911fe1 7372 if test -z "${no_recursion}"; then
8cf39b1b 7373 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7374 if test -f ${file}; then
7375 echo 1>&2 "*** removing ${file} to force reconfigure"
7376 rm -f ${file}
7377 fi
7378 done
498d4a71 7379 fi
201f096f 7380 case ${module},${bootstrap_fixincludes} in
7381 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7382 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7383 esac
06a51eac 7384 extrasub_host="$extrasub_host
498d4a71
CF
7385/^@if $module\$/d
7386/^@endif $module\$/d
4119873a 7387/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7388/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7389/^@endif $module-$host_bootstrap_suffix\$/d
7390/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7391done
06a51eac 7392extrasub_target=
498d4a71
CF
7393for module in ${target_configdirs} ; do
7394 if test -z "${no_recursion}" \
7395 && test -f ${target_subdir}/${module}/Makefile; then
7396 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7397 rm -f ${target_subdir}/${module}/Makefile
7398 fi
e8a5fa9c
RW
7399
7400 # We only bootstrap target libraries listed in bootstrap_target_libs.
7401 case $bootstrap_target_libs in
7402 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7403 *) target_bootstrap_suffix=no-bootstrap ;;
7404 esac
7405
06a51eac 7406 extrasub_target="$extrasub_target
498d4a71
CF
7407/^@if target-$module\$/d
7408/^@endif target-$module\$/d
4119873a 7409/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7410/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7411/^@endif target-$module-$target_bootstrap_suffix\$/d
7412/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7413done
7414
06a51eac
RW
7415# Do the final fixup along with target modules.
7416extrasub_target="$extrasub_target
4119873a
AO
7417/^@if /,/^@endif /d
7418/^@unless /d
7419/^@endunless /d"
a0da8069 7420
af019bfd
L
7421if test "$enable_pgo_build" != "no"; then
7422 extrasub_build="$extrasub_build
7423/^@if pgo-build\$/d
7424/^@endif pgo-build\$/d"
7425fi
7426
a0da8069
NN
7427# Create the serialization dependencies. This uses a temporary file.
7428
81ecdfbb
RW
7429# Check whether --enable-serial-configure was given.
7430if test "${enable_serial_configure+set}" = set; then :
7431 enableval=$enable_serial_configure;
7432fi
e6bfb94a
AO
7433
7434
1047cb91
DD
7435case ${enable_serial_configure} in
7436 yes)
7437 enable_serial_build_configure=yes
7438 enable_serial_host_configure=yes
7439 enable_serial_target_configure=yes
7440 ;;
7441esac
7442
a0da8069
NN
7443# These force 'configure's to be done one at a time, to avoid problems
7444# with contention over a shared config.cache.
7445rm -f serdep.tmp
e6bfb94a 7446echo '# serdep.tmp' > serdep.tmp
a0da8069 7447olditem=
1047cb91 7448test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7449for item in ${build_configdirs} ; do
7450 case ${olditem} in
7451 "") ;;
e6bfb94a 7452 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7453 esac
7454 olditem=${item}
7455done
7456olditem=
1047cb91 7457test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7458for item in ${configdirs} ; do
7459 case ${olditem} in
7460 "") ;;
e6bfb94a 7461 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7462 esac
7463 olditem=${item}
7464done
7465olditem=
1047cb91 7466test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7467for item in ${target_configdirs} ; do
7468 case ${olditem} in
7469 "") ;;
e6bfb94a 7470 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7471 esac
7472 olditem=${item}
7473done
7474serialization_dependencies=serdep.tmp
7475
7476
e6bfb94a 7477# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7478# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7479# might not want to pass down to subconfigures. The exception being
7480# --cache-file=/dev/null, which is used to turn off the use of cache
7481# files altogether, and which should be passed on to subconfigures.
7482# Also strip program-prefix, program-suffix, and program-transform-name,
7483# so that we can pass down a consistent program-transform-name.
c6b750e1 7484baseargs=
65b4571a 7485tbaseargs=
c6b750e1
DJ
7486keep_next=no
7487skip_next=no
7488eval "set -- $ac_configure_args"
18f6b6ee
PB
7489for ac_arg
7490do
c6b750e1
DJ
7491 if test X"$skip_next" = X"yes"; then
7492 skip_next=no
7493 continue
7494 fi
7495 if test X"$keep_next" = X"yes"; then
7496 case $ac_arg in
7497 *\'*)
7498 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7499 esac
7500 baseargs="$baseargs '$ac_arg'"
65b4571a 7501 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7502 keep_next=no
7503 continue
7504 fi
7505
7506 # Handle separated arguments. Based on the logic generated by
7507 # autoconf 2.59.
7508 case $ac_arg in
7509 *=* | --config-cache | -C | -disable-* | --disable-* \
7510 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7511 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7512 | -with-* | --with-* | -without-* | --without-* | --x)
7513 separate_arg=no
7514 ;;
7515 -*)
7516 separate_arg=yes
7517 ;;
7518 *)
7519 separate_arg=no
7520 ;;
7521 esac
7522
65b4571a
AO
7523 skip_targ=no
7524 case $ac_arg in
7525
7526 --with-* | --without-*)
7527 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7528
7529 case $libopt in
7530 *[-_]include)
7531 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7532 ;;
7533 *[-_]lib)
7534 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7535 ;;
7536 *)
7537 lib=$libopt
7538 ;;
7539 esac
7540
7541
7542 case $lib in
1b6c0831 7543 mpc | mpfr | gmp | isl)
65b4571a
AO
7544 # If we're processing --with-$lib, --with-$lib-include or
7545 # --with-$lib-lib, for one of the libs above, and target is
7546 # different from host, don't pass the current argument to any
7547 # target library's configure.
7548 if test x$is_cross_compiler = xyes; then
7549 skip_targ=yes
7550 fi
7551 ;;
7552 esac
7553 ;;
7554 esac
7555
c6b750e1 7556 case "$ac_arg" in
30167e0a
NC
7557 --cache-file=/dev/null | \
7558 -cache-file=/dev/null )
7559 # Handled here to avoid the test to skip args below.
7560 baseargs="$baseargs '$ac_arg'"
65b4571a 7561 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7562 # Assert: $separate_arg should always be no.
7563 keep_next=$separate_arg
7564 ;;
c6b750e1
DJ
7565 --no*)
7566 continue
7567 ;;
7568 --c* | \
7569 --sr* | \
7570 --ho* | \
7571 --bu* | \
7572 --t* | \
7573 --program-* | \
7574 -cache_file* | \
7575 -srcdir* | \
7576 -host* | \
7577 -build* | \
7578 -target* | \
7579 -program-prefix* | \
7580 -program-suffix* | \
7581 -program-transform-name* )
7582 skip_next=$separate_arg
7583 continue
7584 ;;
7585 -*)
7586 # An option. Add it.
7587 case $ac_arg in
7588 *\'*)
7589 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7590 esac
7591 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7592 if test X"$skip_targ" = Xno; then
7593 tbaseargs="$tbaseargs '$ac_arg'"
7594 fi
c6b750e1
DJ
7595 keep_next=$separate_arg
7596 ;;
7597 *)
7598 # Either a variable assignment, or a nonopt (triplet). Don't
7599 # pass it down; let the Makefile handle this.
7600 continue
7601 ;;
7602 esac
7603done
7604# Remove the initial space we just introduced and, as these will be
7605# expanded by make, quote '$'.
7606baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7607
f27d4f92
DJ
7608# Add in --program-transform-name, after --program-prefix and
7609# --program-suffix have been applied to it. Autoconf has already
7610# doubled dollar signs and backslashes in program_transform_name; we want
7611# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7612# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7613# Also, because we want to override the logic in subdir configure scripts to
7614# choose program_transform_name, replace any s,x,x, with s,y,y,.
7615sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7616${program_transform_name}
7617EOF_SED
7618gcc_transform_name=`cat conftestsed.out`
7619rm -f conftestsed.out
7620baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7621tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7622if test "$silent" = yes; then
7623 baseargs="$baseargs --silent"
65b4571a 7624 tbaseargs="$tbaseargs --silent"
2444379b 7625fi
34a0f3cf 7626baseargs="$baseargs --disable-option-checking"
65b4571a 7627tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7628
4074d5f2
RW
7629# Record and document user additions to sub configure arguments.
7630
7631
7632
7633
a0da8069
NN
7634# For the build-side libraries, we just need to pretend we're native,
7635# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7636# desired. We can't even use the same cache file for all build-side
7637# libraries, as they're compiled differently; some with C, some with
7638# C++ or with different feature-enabling options.
7639build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7640
7641# For host modules, accept cache file option, or specification as blank.
7642case "${cache_file}" in
7643"") # empty
7644 cache_file_option="" ;;
7645/* | [A-Za-z]:[\\/]* ) # absolute path
7646 cache_file_option="--cache-file=${cache_file}" ;;
7647*) # relative path
7648 cache_file_option="--cache-file=../${cache_file}" ;;
7649esac
7650
82252c06
NN
7651# Host dirs don't like to share a cache file either, horribly enough.
7652# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7653host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7654
65b4571a 7655target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7656
7657# Passing a --with-cross-host argument lets the target libraries know
7658# whether they are being built with a cross-compiler or being built
7659# native. However, it would be better to use other mechanisms to make the
7660# sorts of decisions they want to make on this basis. Please consider
7661# this option to be deprecated. FIXME.
7662if test x${is_cross_compiler} = xyes ; then
c6b750e1 7663 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7664fi
7665
afc0578d 7666# Special user-friendly check for native x86_64-linux build, if
7667# multilib is not explicitly enabled.
7668case "$target:$have_compiler:$host:$target:$enable_multilib" in
7669 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7670 # Make sure we have a development environment that handles 32-bit
afc0578d 7671 dev64=no
7672 echo "int main () { return 0; }" > conftest.c
7673 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7674 if test $? = 0 ; then
7675 if test -s conftest || test -s conftest.exe ; then
7676 dev64=yes
7677 fi
7678 fi
7679 rm -f conftest*
7680 if test x${dev64} != xyes ; then
d0ac1c44 7681 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 7682 fi
7683 ;;
7684esac
7685
938d2b74
RW
7686# Default to --enable-multilib.
7687if test x${enable_multilib} = x ; then
a0da8069 7688 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7689fi
a0da8069
NN
7690
7691# Pass --with-newlib if appropriate. Note that target_configdirs has
7692# changed from the earlier setting of with_newlib.
7693if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7694 target_configargs="--with-newlib ${target_configargs}"
7695fi
7696
95036d20
NN
7697# Different target subdirs use different values of certain variables
7698# (notably CXX). Worse, multilibs use *lots* of different values.
7699# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7700# it doesn't automatically accept command-line overrides of them.
7701# This means it's not safe for target subdirs to share a cache file,
7702# which is disgusting, but there you have it. Hopefully this can be
7703# fixed in future. It's still worthwhile to use a cache file for each
7704# directory. I think.
7705
ae380b45
MS
7706# Pass the appropriate --build, --host, --target and --cache-file arguments.
7707# We need to pass --target, as newer autoconf's requires consistency
7708# for target_alias and gcc doesn't manage it consistently.
4b900473 7709target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7710
a0da8069
NN
7711FLAGS_FOR_TARGET=
7712case " $target_configdirs " in
7713 *" newlib "*)
7714 case " $target_configargs " in
7715 *" --with-newlib "*)
7716 case "$target" in
1f53ca9a 7717 *-cygwin*)
6d94c122 7718 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7719 ;;
a0da8069
NN
7720 esac
7721
7722 # If we're not building GCC, don't discard standard headers.
7723 if test -d ${srcdir}/gcc; then
7724 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7725
7726 if test "${build}" != "${host}"; then
7727 # On Canadian crosses, CC_FOR_TARGET will have already been set
7728 # by `configure', so we won't have an opportunity to add -Bgcc/
7729 # to it. This is right: we don't want to search that directory
7730 # for binaries, but we want the header files in there, so add
7731 # them explicitly.
e552509b 7732 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7733
7734 # Someone might think of using the pre-installed headers on
7735 # Canadian crosses, in case the installed compiler is not fully
7736 # compatible with the compiler being built. In this case, it
7737 # would be better to flag an error than risking having
7738 # incompatible object files being constructed. We can't
7739 # guarantee that an error will be flagged, but let's hope the
7740 # compiler will do it, when presented with incompatible header
7741 # files.
7742 fi
7743 fi
7744
7745 case "${target}-${is_cross_compiler}" in
ec11bdc6 7746 i[3456789]86-*-linux*-no)
a0da8069
NN
7747 # Here host == target, so we don't need to build gcc,
7748 # so we don't want to discard standard headers.
7749 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7750 ;;
7751 *)
7752 # If we're building newlib, use its generic headers last, but search
7753 # for any libc-related directories first (so make it the last -B
7754 # switch).
7755 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
7756
7757 # If we're building libgloss, find the startup file, simulator library
7758 # and linker script.
7759 case " $target_configdirs " in
7760 *" libgloss "*)
7761 # Look for startup file, simulator library and maybe linker script.
7762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7763 # Look for libnosys.a in case the target needs it.
7764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7765 # Most targets have the linker script in the source directory.
7766 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7767 ;;
7768 esac
a0da8069
NN
7769 ;;
7770 esac
7771 ;;
7772 esac
7773 ;;
7774esac
1f53ca9a 7775
45055374 7776case "$target" in
1f53ca9a
AO
7777 x86_64-*mingw* | *-w64-mingw*)
7778 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7779 # however, use a symlink named 'mingw' in ${prefix} .
7780 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7781 ;;
7782 *-mingw*)
7783 # MinGW can't be handled as Cygwin above since it does not use newlib.
7784 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'
7785 ;;
45055374 7786esac
a0da8069 7787
5fbad20a
DD
7788# Allow the user to override the flags for
7789# our build compiler if desired.
c66487f8
NC
7790if test x"${build}" = x"${host}" ; then
7791 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7792 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7793 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7794fi
5fbad20a 7795
a0da8069
NN
7796# On Canadian crosses, we'll be searching the right directories for
7797# the previously-installed cross compiler, so don't bother to add
7798# flags for directories within the install tree of the compiler
7799# being built; programs in there won't even run.
7800if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7801 # Search for pre-installed headers if nothing else fits.
bba45b8b 7802 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
7803fi
7804
7805if test "x${use_gnu_ld}" = x &&
7806 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7807 # Arrange for us to find uninstalled linker scripts.
b00612cc 7808 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7809fi
7810
a481dbb7
DD
7811# Search for other target-specific linker scripts and such.
7812case "${target}" in
4e206d7e
DB
7813 mep*)
7814 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7815 ;;
7816esac
7817
a0da8069 7818# Makefile fragments.
3e707e94
PB
7819for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7820do
7821 eval fragval=\$$frag
7822 if test $fragval != /dev/null; then
7823 eval $frag=${srcdir}/$fragval
7824 fi
7825done
a0da8069
NN
7826
7827
7828
7829
7830
7831# Miscellanea: directories, flags, etc.
7832
7833
7834
7835
7836
7837
7838
3bbd2f8f 7839
6a9cf61e 7840# Build module lists & subconfigure args.
a0da8069
NN
7841
7842
7843
be01d343
PB
7844# Host module lists & subconfigure args.
7845
7846
7847
911e63d0 7848
be01d343
PB
7849# Target module lists & subconfigure args.
7850
7851
7852
7853# Build tools.
7854
7855
7856
1576798e
PB
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
be01d343
PB
7870# Generate default definitions for YACC, M4, LEX and other programs that run
7871# on the build machine. These are used if the Makefile can't locate these
7872# programs in objdir.
7873MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7874
7875for ac_prog in 'bison -y' byacc yacc
7876do
c6b750e1 7877 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7878set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7881if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7882 $as_echo_n "(cached) " >&6
be01d343
PB
7883else
7884 if test -n "$YACC"; then
7885 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7886else
c6b750e1
DJ
7887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888for as_dir in $PATH
7889do
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
81ecdfbb 7892 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7894 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7896 break 2
7897 fi
7898done
81ecdfbb
RW
7899 done
7900IFS=$as_save_IFS
c6b750e1 7901
be01d343
PB
7902fi
7903fi
c6b750e1 7904YACC=$ac_cv_prog_YACC
be01d343 7905if test -n "$YACC"; then
81ecdfbb
RW
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7907$as_echo "$YACC" >&6; }
be01d343 7908else
81ecdfbb
RW
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
be01d343
PB
7911fi
7912
81ecdfbb 7913
c6b750e1 7914 test -n "$YACC" && break
be01d343
PB
7915done
7916test -n "$YACC" || YACC="$MISSING bison -y"
7917
7918case " $build_configdirs " in
7919 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7920esac
7921
7922for ac_prog in bison
7923do
c6b750e1 7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7925set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7928if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7929 $as_echo_n "(cached) " >&6
be01d343
PB
7930else
7931 if test -n "$BISON"; then
7932 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7933else
c6b750e1
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
81ecdfbb 7939 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7941 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7943 break 2
7944 fi
7945done
81ecdfbb
RW
7946 done
7947IFS=$as_save_IFS
c6b750e1 7948
be01d343
PB
7949fi
7950fi
c6b750e1 7951BISON=$ac_cv_prog_BISON
be01d343 7952if test -n "$BISON"; then
81ecdfbb
RW
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7954$as_echo "$BISON" >&6; }
be01d343 7955else
81ecdfbb
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
be01d343
PB
7958fi
7959
81ecdfbb 7960
c6b750e1 7961 test -n "$BISON" && break
be01d343
PB
7962done
7963test -n "$BISON" || BISON="$MISSING bison"
7964
7965case " $build_configdirs " in
7966 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7967esac
7968
7969for ac_prog in gm4 gnum4 m4
7970do
c6b750e1 7971 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7972set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7975if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7976 $as_echo_n "(cached) " >&6
be01d343
PB
7977else
7978 if test -n "$M4"; then
7979 ac_cv_prog_M4="$M4" # Let the user override the test.
7980else
c6b750e1
DJ
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
81ecdfbb 7986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7988 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7990 break 2
7991 fi
7992done
81ecdfbb
RW
7993 done
7994IFS=$as_save_IFS
c6b750e1 7995
be01d343
PB
7996fi
7997fi
c6b750e1 7998M4=$ac_cv_prog_M4
be01d343 7999if test -n "$M4"; then
81ecdfbb
RW
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8001$as_echo "$M4" >&6; }
be01d343 8002else
81ecdfbb
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
be01d343
PB
8005fi
8006
81ecdfbb 8007
c6b750e1 8008 test -n "$M4" && break
be01d343
PB
8009done
8010test -n "$M4" || M4="$MISSING m4"
8011
8012case " $build_configdirs " in
8013 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8014esac
8015
8016for ac_prog in flex lex
8017do
c6b750e1 8018 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8019set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8022if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8023 $as_echo_n "(cached) " >&6
be01d343
PB
8024else
8025 if test -n "$LEX"; then
8026 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8027else
c6b750e1
DJ
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
81ecdfbb 8033 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8035 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8037 break 2
8038 fi
8039done
81ecdfbb
RW
8040 done
8041IFS=$as_save_IFS
c6b750e1 8042
be01d343
PB
8043fi
8044fi
c6b750e1 8045LEX=$ac_cv_prog_LEX
be01d343 8046if test -n "$LEX"; then
81ecdfbb
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8048$as_echo "$LEX" >&6; }
be01d343 8049else
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
be01d343
PB
8052fi
8053
81ecdfbb 8054
c6b750e1 8055 test -n "$LEX" && break
be01d343
PB
8056done
8057test -n "$LEX" || LEX="$MISSING flex"
8058
8059case " $build_configdirs " in
8060 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8061 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8062esac
8063
8064for ac_prog in flex
8065do
c6b750e1 8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8067set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8070if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8071 $as_echo_n "(cached) " >&6
be01d343
PB
8072else
8073 if test -n "$FLEX"; then
8074 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8075else
c6b750e1
DJ
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
81ecdfbb 8081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8083 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8085 break 2
8086 fi
8087done
81ecdfbb
RW
8088 done
8089IFS=$as_save_IFS
c6b750e1 8090
be01d343
PB
8091fi
8092fi
c6b750e1 8093FLEX=$ac_cv_prog_FLEX
be01d343 8094if test -n "$FLEX"; then
81ecdfbb
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8096$as_echo "$FLEX" >&6; }
be01d343 8097else
81ecdfbb
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
be01d343
PB
8100fi
8101
81ecdfbb 8102
c6b750e1 8103 test -n "$FLEX" && break
be01d343
PB
8104done
8105test -n "$FLEX" || FLEX="$MISSING flex"
8106
8107case " $build_configdirs " in
8108 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8109esac
8110
8111for ac_prog in makeinfo
8112do
c6b750e1 8113 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8114set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8117if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8118 $as_echo_n "(cached) " >&6
be01d343
PB
8119else
8120 if test -n "$MAKEINFO"; then
8121 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8122else
c6b750e1
DJ
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
81ecdfbb 8128 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8130 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8132 break 2
8133 fi
8134done
81ecdfbb
RW
8135 done
8136IFS=$as_save_IFS
c6b750e1 8137
be01d343
PB
8138fi
8139fi
c6b750e1 8140MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8141if test -n "$MAKEINFO"; then
81ecdfbb
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8143$as_echo "$MAKEINFO" >&6; }
be01d343 8144else
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
be01d343
PB
8147fi
8148
81ecdfbb 8149
c6b750e1 8150 test -n "$MAKEINFO" && break
be01d343
PB
8151done
8152test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8153
8154case " $build_configdirs " in
8155 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8156 *)
8157
10ad8ef3 8158 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8159 # higher, else we use the "missing" dummy.
8160 if ${MAKEINFO} --version \
10ad8ef3 8161 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8162 :
8163 else
8164 MAKEINFO="$MISSING makeinfo"
8165 fi
8166 ;;
8167
8168esac
a0da8069 8169
be01d343 8170# FIXME: expect and dejagnu may become build tools?
a0da8069 8171
be01d343
PB
8172for ac_prog in expect
8173do
c6b750e1 8174 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8175set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8178if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8179 $as_echo_n "(cached) " >&6
be01d343
PB
8180else
8181 if test -n "$EXPECT"; then
8182 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8183else
c6b750e1
DJ
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
81ecdfbb 8189 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8191 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8193 break 2
8194 fi
8195done
81ecdfbb
RW
8196 done
8197IFS=$as_save_IFS
c6b750e1 8198
be01d343
PB
8199fi
8200fi
c6b750e1 8201EXPECT=$ac_cv_prog_EXPECT
be01d343 8202if test -n "$EXPECT"; then
81ecdfbb
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8204$as_echo "$EXPECT" >&6; }
be01d343 8205else
81ecdfbb
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
be01d343 8208fi
a0da8069 8209
81ecdfbb 8210
c6b750e1 8211 test -n "$EXPECT" && break
be01d343
PB
8212done
8213test -n "$EXPECT" || EXPECT="expect"
a0da8069 8214
be01d343
PB
8215case " $configdirs " in
8216 *" expect "*)
8217 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8218 ;;
8219esac
a0da8069 8220
be01d343
PB
8221for ac_prog in runtest
8222do
c6b750e1 8223 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8224set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8227if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8228 $as_echo_n "(cached) " >&6
be01d343
PB
8229else
8230 if test -n "$RUNTEST"; then
8231 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8232else
c6b750e1
DJ
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
81ecdfbb 8238 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8240 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8242 break 2
8243 fi
8244done
81ecdfbb
RW
8245 done
8246IFS=$as_save_IFS
c6b750e1 8247
be01d343
PB
8248fi
8249fi
c6b750e1 8250RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8251if test -n "$RUNTEST"; then
81ecdfbb
RW
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8253$as_echo "$RUNTEST" >&6; }
be01d343 8254else
81ecdfbb
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
be01d343 8257fi
a0da8069 8258
81ecdfbb 8259
c6b750e1 8260 test -n "$RUNTEST" && break
be01d343
PB
8261done
8262test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8263
be01d343
PB
8264case " $configdirs " in
8265 *" dejagnu "*)
6b89cc21 8266 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8267 ;;
8268esac
a0da8069
NN
8269
8270
a0da8069 8271# Host tools.
859789af
AC
8272ncn_tool_prefix=
8273test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8274ncn_target_tool_prefix=
8275test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8276
9a819804
AO
8277
8278
8279if test -n "$AR"; then
8280 ac_cv_prog_AR=$AR
8281elif test -n "$ac_cv_prog_AR"; then
8282 AR=$ac_cv_prog_AR
8283fi
8284
8285if test -n "$ac_cv_prog_AR"; then
8286 for ncn_progname in ar; do
8287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8288set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8291if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8292 $as_echo_n "(cached) " >&6
9a819804
AO
8293else
8294 if test -n "$AR"; then
8295 ac_cv_prog_AR="$AR" # Let the user override the test.
8296else
8297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
81ecdfbb 8302 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8304 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8306 break 2
8307 fi
8308done
81ecdfbb
RW
8309 done
8310IFS=$as_save_IFS
9a819804
AO
8311
8312fi
8313fi
8314AR=$ac_cv_prog_AR
8315if test -n "$AR"; then
81ecdfbb
RW
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8317$as_echo "$AR" >&6; }
9a819804 8318else
81ecdfbb
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320$as_echo "no" >&6; }
9a819804
AO
8321fi
8322
81ecdfbb 8323
9a819804
AO
8324 done
8325fi
8326
8327for ncn_progname in ar; do
05cbd757
PB
8328 if test -n "$ncn_tool_prefix"; then
8329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8330set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8333if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8334 $as_echo_n "(cached) " >&6
859789af
AC
8335else
8336 if test -n "$AR"; then
8337 ac_cv_prog_AR="$AR" # Let the user override the test.
8338else
c6b750e1
DJ
8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
81ecdfbb 8344 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8346 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8348 break 2
8349 fi
8350done
81ecdfbb
RW
8351 done
8352IFS=$as_save_IFS
c6b750e1 8353
859789af
AC
8354fi
8355fi
c6b750e1 8356AR=$ac_cv_prog_AR
859789af 8357if test -n "$AR"; then
81ecdfbb
RW
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8359$as_echo "$AR" >&6; }
859789af 8360else
81ecdfbb
RW
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362$as_echo "no" >&6; }
859789af
AC
8363fi
8364
81ecdfbb 8365
05cbd757
PB
8366 fi
8367 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8369set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8372if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8373 $as_echo_n "(cached) " >&6
859789af 8374else
05cbd757
PB
8375 if test -n "$AR"; then
8376 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8377else
c6b750e1
DJ
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
81ecdfbb 8383 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8385 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8387 break 2
8388 fi
8389done
81ecdfbb
RW
8390 done
8391IFS=$as_save_IFS
c6b750e1 8392
859789af
AC
8393fi
8394fi
c6b750e1 8395AR=$ac_cv_prog_AR
05cbd757 8396if test -n "$AR"; then
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8398$as_echo "$AR" >&6; }
859789af 8399else
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
859789af 8402fi
c6b750e1 8403
81ecdfbb 8404
05cbd757
PB
8405 fi
8406 test -n "$ac_cv_prog_AR" && break
8407done
8408
8409if test -z "$ac_cv_prog_AR" ; then
8410 set dummy ar
8411 if test $build = $host ; then
8412 AR="$2"
859789af 8413 else
05cbd757 8414 AR="${ncn_tool_prefix}$2"
859789af 8415 fi
859789af
AC
8416fi
8417
9a819804
AO
8418
8419
8420if test -n "$AS"; then
8421 ac_cv_prog_AS=$AS
8422elif test -n "$ac_cv_prog_AS"; then
8423 AS=$ac_cv_prog_AS
8424fi
8425
8426if test -n "$ac_cv_prog_AS"; then
8427 for ncn_progname in as; do
8428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8429set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8432if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8433 $as_echo_n "(cached) " >&6
9a819804
AO
8434else
8435 if test -n "$AS"; then
8436 ac_cv_prog_AS="$AS" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
81ecdfbb 8443 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8445 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8447 break 2
8448 fi
8449done
81ecdfbb
RW
8450 done
8451IFS=$as_save_IFS
9a819804
AO
8452
8453fi
8454fi
8455AS=$ac_cv_prog_AS
8456if test -n "$AS"; then
81ecdfbb
RW
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8458$as_echo "$AS" >&6; }
9a819804 8459else
81ecdfbb
RW
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
9a819804
AO
8462fi
8463
81ecdfbb 8464
9a819804
AO
8465 done
8466fi
8467
8468for ncn_progname in as; do
05cbd757
PB
8469 if test -n "$ncn_tool_prefix"; then
8470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8474if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8475 $as_echo_n "(cached) " >&6
859789af
AC
8476else
8477 if test -n "$AS"; then
8478 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8479else
8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
81ecdfbb 8485 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8487 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8489 break 2
8490 fi
8491done
81ecdfbb
RW
8492 done
8493IFS=$as_save_IFS
c6b750e1 8494
859789af
AC
8495fi
8496fi
c6b750e1 8497AS=$ac_cv_prog_AS
859789af 8498if test -n "$AS"; then
81ecdfbb
RW
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8500$as_echo "$AS" >&6; }
859789af 8501else
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503$as_echo "no" >&6; }
859789af
AC
8504fi
8505
81ecdfbb 8506
05cbd757
PB
8507 fi
8508 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8510set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8513if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8514 $as_echo_n "(cached) " >&6
859789af 8515else
05cbd757
PB
8516 if test -n "$AS"; then
8517 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8518else
c6b750e1
DJ
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
81ecdfbb 8524 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8526 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8528 break 2
8529 fi
8530done
81ecdfbb
RW
8531 done
8532IFS=$as_save_IFS
c6b750e1 8533
859789af
AC
8534fi
8535fi
c6b750e1 8536AS=$ac_cv_prog_AS
05cbd757 8537if test -n "$AS"; then
81ecdfbb
RW
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8539$as_echo "$AS" >&6; }
859789af 8540else
81ecdfbb
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
859789af 8543fi
c6b750e1 8544
81ecdfbb 8545
05cbd757
PB
8546 fi
8547 test -n "$ac_cv_prog_AS" && break
8548done
8549
8550if test -z "$ac_cv_prog_AS" ; then
8551 set dummy as
8552 if test $build = $host ; then
8553 AS="$2"
859789af 8554 else
05cbd757 8555 AS="${ncn_tool_prefix}$2"
859789af 8556 fi
859789af
AC
8557fi
8558
9a819804
AO
8559
8560
8561if test -n "$DLLTOOL"; then
8562 ac_cv_prog_DLLTOOL=$DLLTOOL
8563elif test -n "$ac_cv_prog_DLLTOOL"; then
8564 DLLTOOL=$ac_cv_prog_DLLTOOL
8565fi
8566
8567if test -n "$ac_cv_prog_DLLTOOL"; then
8568 for ncn_progname in dlltool; do
8569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8570set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8573if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8574 $as_echo_n "(cached) " >&6
9a819804
AO
8575else
8576 if test -n "$DLLTOOL"; then
8577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8578else
8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
81ecdfbb 8584 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8586 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8588 break 2
8589 fi
8590done
81ecdfbb
RW
8591 done
8592IFS=$as_save_IFS
9a819804
AO
8593
8594fi
8595fi
8596DLLTOOL=$ac_cv_prog_DLLTOOL
8597if test -n "$DLLTOOL"; then
81ecdfbb
RW
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8599$as_echo "$DLLTOOL" >&6; }
9a819804 8600else
81ecdfbb
RW
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
9a819804
AO
8603fi
8604
81ecdfbb 8605
9a819804
AO
8606 done
8607fi
8608
8609for ncn_progname in dlltool; do
05cbd757
PB
8610 if test -n "$ncn_tool_prefix"; then
8611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8612set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8615if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8616 $as_echo_n "(cached) " >&6
859789af
AC
8617else
8618 if test -n "$DLLTOOL"; then
8619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8620else
c6b750e1
DJ
8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
81ecdfbb 8626 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8628 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8630 break 2
8631 fi
8632done
81ecdfbb
RW
8633 done
8634IFS=$as_save_IFS
c6b750e1 8635
859789af
AC
8636fi
8637fi
c6b750e1 8638DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8639if test -n "$DLLTOOL"; then
81ecdfbb
RW
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8641$as_echo "$DLLTOOL" >&6; }
859789af 8642else
81ecdfbb
RW
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
859789af
AC
8645fi
8646
81ecdfbb 8647
05cbd757
PB
8648 fi
8649 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8651set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8654if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8655 $as_echo_n "(cached) " >&6
859789af 8656else
05cbd757
PB
8657 if test -n "$DLLTOOL"; then
8658 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8659else
c6b750e1
DJ
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
81ecdfbb 8665 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8667 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8669 break 2
8670 fi
8671done
81ecdfbb
RW
8672 done
8673IFS=$as_save_IFS
c6b750e1 8674
859789af
AC
8675fi
8676fi
c6b750e1 8677DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8678if test -n "$DLLTOOL"; then
81ecdfbb
RW
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8680$as_echo "$DLLTOOL" >&6; }
859789af 8681else
81ecdfbb
RW
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
859789af 8684fi
c6b750e1 8685
81ecdfbb 8686
05cbd757
PB
8687 fi
8688 test -n "$ac_cv_prog_DLLTOOL" && break
8689done
8690
8691if test -z "$ac_cv_prog_DLLTOOL" ; then
8692 set dummy dlltool
8693 if test $build = $host ; then
8694 DLLTOOL="$2"
859789af 8695 else
05cbd757 8696 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8697 fi
859789af
AC
8698fi
8699
9a819804
AO
8700
8701
8702if test -n "$LD"; then
8703 ac_cv_prog_LD=$LD
8704elif test -n "$ac_cv_prog_LD"; then
8705 LD=$ac_cv_prog_LD
8706fi
8707
8708if test -n "$ac_cv_prog_LD"; then
8709 for ncn_progname in ld; do
8710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8711set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8714if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8715 $as_echo_n "(cached) " >&6
9a819804
AO
8716else
8717 if test -n "$LD"; then
8718 ac_cv_prog_LD="$LD" # Let the user override the test.
8719else
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
81ecdfbb 8725 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8727 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8729 break 2
8730 fi
8731done
81ecdfbb
RW
8732 done
8733IFS=$as_save_IFS
9a819804
AO
8734
8735fi
8736fi
8737LD=$ac_cv_prog_LD
8738if test -n "$LD"; then
81ecdfbb
RW
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8740$as_echo "$LD" >&6; }
9a819804 8741else
81ecdfbb
RW
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743$as_echo "no" >&6; }
9a819804
AO
8744fi
8745
81ecdfbb 8746
9a819804
AO
8747 done
8748fi
8749
8750for ncn_progname in ld; do
05cbd757
PB
8751 if test -n "$ncn_tool_prefix"; then
8752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8753set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8756if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8757 $as_echo_n "(cached) " >&6
859789af
AC
8758else
8759 if test -n "$LD"; then
8760 ac_cv_prog_LD="$LD" # Let the user override the test.
8761else
c6b750e1
DJ
8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH
8764do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
81ecdfbb 8767 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8769 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8771 break 2
8772 fi
8773done
81ecdfbb
RW
8774 done
8775IFS=$as_save_IFS
c6b750e1 8776
859789af
AC
8777fi
8778fi
c6b750e1 8779LD=$ac_cv_prog_LD
859789af 8780if test -n "$LD"; then
81ecdfbb
RW
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8782$as_echo "$LD" >&6; }
859789af 8783else
81ecdfbb
RW
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
859789af
AC
8786fi
8787
81ecdfbb 8788
05cbd757
PB
8789 fi
8790 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8795if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8796 $as_echo_n "(cached) " >&6
859789af 8797else
05cbd757
PB
8798 if test -n "$LD"; then
8799 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8800else
c6b750e1
DJ
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
81ecdfbb 8806 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8808 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8810 break 2
8811 fi
8812done
81ecdfbb
RW
8813 done
8814IFS=$as_save_IFS
c6b750e1 8815
859789af
AC
8816fi
8817fi
c6b750e1 8818LD=$ac_cv_prog_LD
05cbd757 8819if test -n "$LD"; then
81ecdfbb
RW
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8821$as_echo "$LD" >&6; }
859789af 8822else
81ecdfbb
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824$as_echo "no" >&6; }
859789af 8825fi
c6b750e1 8826
81ecdfbb 8827
05cbd757
PB
8828 fi
8829 test -n "$ac_cv_prog_LD" && break
8830done
8831
8832if test -z "$ac_cv_prog_LD" ; then
8833 set dummy ld
8834 if test $build = $host ; then
8835 LD="$2"
859789af 8836 else
05cbd757 8837 LD="${ncn_tool_prefix}$2"
859789af 8838 fi
859789af
AC
8839fi
8840
9a819804
AO
8841
8842
8843if test -n "$LIPO"; then
8844 ac_cv_prog_LIPO=$LIPO
8845elif test -n "$ac_cv_prog_LIPO"; then
8846 LIPO=$ac_cv_prog_LIPO
8847fi
8848
8849if test -n "$ac_cv_prog_LIPO"; then
8850 for ncn_progname in lipo; do
8851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8852set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8855if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8856 $as_echo_n "(cached) " >&6
9a819804
AO
8857else
8858 if test -n "$LIPO"; then
8859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8860else
8861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862for as_dir in $PATH
8863do
8864 IFS=$as_save_IFS
8865 test -z "$as_dir" && as_dir=.
81ecdfbb 8866 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8868 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8870 break 2
8871 fi
8872done
81ecdfbb
RW
8873 done
8874IFS=$as_save_IFS
9a819804
AO
8875
8876fi
8877fi
8878LIPO=$ac_cv_prog_LIPO
8879if test -n "$LIPO"; then
81ecdfbb
RW
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8881$as_echo "$LIPO" >&6; }
9a819804 8882else
81ecdfbb
RW
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884$as_echo "no" >&6; }
9a819804
AO
8885fi
8886
81ecdfbb 8887
9a819804
AO
8888 done
8889fi
8890
8891for ncn_progname in lipo; do
be01d343
PB
8892 if test -n "$ncn_tool_prefix"; then
8893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8894set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8897if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8898 $as_echo_n "(cached) " >&6
be01d343
PB
8899else
8900 if test -n "$LIPO"; then
8901 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8902else
c6b750e1
DJ
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
81ecdfbb 8908 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8910 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8912 break 2
8913 fi
8914done
81ecdfbb
RW
8915 done
8916IFS=$as_save_IFS
c6b750e1 8917
be01d343
PB
8918fi
8919fi
c6b750e1 8920LIPO=$ac_cv_prog_LIPO
be01d343 8921if test -n "$LIPO"; then
81ecdfbb
RW
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8923$as_echo "$LIPO" >&6; }
be01d343 8924else
81ecdfbb
RW
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926$as_echo "no" >&6; }
be01d343
PB
8927fi
8928
81ecdfbb 8929
be01d343
PB
8930 fi
8931 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8936if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8937 $as_echo_n "(cached) " >&6
be01d343
PB
8938else
8939 if test -n "$LIPO"; then
8940 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8941else
c6b750e1
DJ
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
81ecdfbb 8947 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8949 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8951 break 2
8952 fi
8953done
81ecdfbb
RW
8954 done
8955IFS=$as_save_IFS
c6b750e1 8956
be01d343
PB
8957fi
8958fi
c6b750e1 8959LIPO=$ac_cv_prog_LIPO
be01d343 8960if test -n "$LIPO"; then
81ecdfbb
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8962$as_echo "$LIPO" >&6; }
be01d343 8963else
81ecdfbb
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
be01d343 8966fi
c6b750e1 8967
81ecdfbb 8968
be01d343
PB
8969 fi
8970 test -n "$ac_cv_prog_LIPO" && break
8971done
8972
8973if test -z "$ac_cv_prog_LIPO" ; then
8974 set dummy lipo
8975 if test $build = $host ; then
8976 LIPO="$2"
8977 else
8978 LIPO="${ncn_tool_prefix}$2"
8979 fi
8980fi
8981
9a819804
AO
8982
8983
8984if test -n "$NM"; then
8985 ac_cv_prog_NM=$NM
8986elif test -n "$ac_cv_prog_NM"; then
8987 NM=$ac_cv_prog_NM
8988fi
8989
8990if test -n "$ac_cv_prog_NM"; then
8991 for ncn_progname in nm; do
8992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8993set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8996if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8997 $as_echo_n "(cached) " >&6
859789af
AC
8998else
8999 if test -n "$NM"; then
9000 ac_cv_prog_NM="$NM" # Let the user override the test.
9001else
c6b750e1
DJ
9002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003for as_dir in $PATH
9004do
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
81ecdfbb 9007 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9009 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9011 break 2
9012 fi
9013done
81ecdfbb
RW
9014 done
9015IFS=$as_save_IFS
c6b750e1 9016
859789af
AC
9017fi
9018fi
c6b750e1 9019NM=$ac_cv_prog_NM
859789af 9020if test -n "$NM"; then
81ecdfbb
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9022$as_echo "$NM" >&6; }
859789af 9023else
81ecdfbb
RW
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025$as_echo "no" >&6; }
859789af
AC
9026fi
9027
81ecdfbb 9028
9a819804
AO
9029 done
9030fi
9031
9032for ncn_progname in nm; do
9033 if test -n "$ncn_tool_prefix"; then
9034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9035set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9038if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9039 $as_echo_n "(cached) " >&6
859789af 9040else
05cbd757
PB
9041 if test -n "$NM"; then
9042 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9043else
c6b750e1
DJ
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
81ecdfbb 9049 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9051 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9053 break 2
9054 fi
9055done
81ecdfbb
RW
9056 done
9057IFS=$as_save_IFS
c6b750e1 9058
859789af
AC
9059fi
9060fi
c6b750e1 9061NM=$ac_cv_prog_NM
05cbd757 9062if test -n "$NM"; then
81ecdfbb
RW
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9064$as_echo "$NM" >&6; }
859789af 9065else
81ecdfbb
RW
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
859789af 9068fi
c6b750e1 9069
81ecdfbb 9070
05cbd757 9071 fi
9a819804
AO
9072 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9074set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9077if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9078 $as_echo_n "(cached) " >&6
9a819804
AO
9079else
9080 if test -n "$NM"; then
9081 ac_cv_prog_NM="$NM" # Let the user override the test.
9082else
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
81ecdfbb 9088 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9090 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9092 break 2
9093 fi
9094done
81ecdfbb
RW
9095 done
9096IFS=$as_save_IFS
9a819804
AO
9097
9098fi
9099fi
9100NM=$ac_cv_prog_NM
9101if test -n "$NM"; then
81ecdfbb
RW
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9103$as_echo "$NM" >&6; }
9a819804 9104else
81ecdfbb
RW
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
9a819804
AO
9107fi
9108
81ecdfbb 9109
9a819804
AO
9110 fi
9111 test -n "$ac_cv_prog_NM" && break
9112done
9113
9114if test -z "$ac_cv_prog_NM" ; then
9115 set dummy nm
9116 if test $build = $host ; then
9117 NM="$2"
9118 else
9119 NM="${ncn_tool_prefix}$2"
9120 fi
9121fi
9122
9123
9124
9125if test -n "$RANLIB"; then
9126 ac_cv_prog_RANLIB=$RANLIB
9127elif test -n "$ac_cv_prog_RANLIB"; then
9128 RANLIB=$ac_cv_prog_RANLIB
9129fi
9130
9131if test -n "$ac_cv_prog_RANLIB"; then
9132 for ncn_progname in ranlib; do
9133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9134set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9137if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9138 $as_echo_n "(cached) " >&6
9a819804
AO
9139else
9140 if test -n "$RANLIB"; then
9141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
81ecdfbb 9148 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9150 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9152 break 2
9153 fi
9154done
81ecdfbb
RW
9155 done
9156IFS=$as_save_IFS
9a819804
AO
9157
9158fi
9159fi
9160RANLIB=$ac_cv_prog_RANLIB
9161if test -n "$RANLIB"; then
81ecdfbb
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9163$as_echo "$RANLIB" >&6; }
9a819804 9164else
81ecdfbb
RW
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9a819804
AO
9167fi
9168
81ecdfbb 9169
9a819804
AO
9170 done
9171fi
859789af 9172
9a819804 9173for ncn_progname in ranlib; do
05cbd757
PB
9174 if test -n "$ncn_tool_prefix"; then
9175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9176set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9179if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9180 $as_echo_n "(cached) " >&6
859789af
AC
9181else
9182 if test -n "$RANLIB"; then
9183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9184else
c6b750e1
DJ
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
81ecdfbb 9190 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9192 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9194 break 2
9195 fi
9196done
81ecdfbb
RW
9197 done
9198IFS=$as_save_IFS
c6b750e1 9199
859789af
AC
9200fi
9201fi
c6b750e1 9202RANLIB=$ac_cv_prog_RANLIB
859789af 9203if test -n "$RANLIB"; then
81ecdfbb
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9205$as_echo "$RANLIB" >&6; }
859789af 9206else
81ecdfbb
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208$as_echo "no" >&6; }
859789af
AC
9209fi
9210
81ecdfbb 9211
05cbd757
PB
9212 fi
9213 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9215set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9218if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9219 $as_echo_n "(cached) " >&6
859789af 9220else
05cbd757
PB
9221 if test -n "$RANLIB"; then
9222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9223else
c6b750e1
DJ
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
81ecdfbb 9229 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9231 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9233 break 2
9234 fi
9235done
81ecdfbb
RW
9236 done
9237IFS=$as_save_IFS
c6b750e1 9238
859789af
AC
9239fi
9240fi
c6b750e1 9241RANLIB=$ac_cv_prog_RANLIB
05cbd757 9242if test -n "$RANLIB"; then
81ecdfbb
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9244$as_echo "$RANLIB" >&6; }
859789af 9245else
81ecdfbb
RW
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
859789af 9248fi
c6b750e1 9249
81ecdfbb 9250
859789af 9251 fi
05cbd757
PB
9252 test -n "$ac_cv_prog_RANLIB" && break
9253done
9254
9255if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9256 RANLIB="true"
859789af
AC
9257fi
9258
9a819804
AO
9259
9260
9261if test -n "$STRIP"; then
9262 ac_cv_prog_STRIP=$STRIP
9263elif test -n "$ac_cv_prog_STRIP"; then
9264 STRIP=$ac_cv_prog_STRIP
9265fi
9266
9267if test -n "$ac_cv_prog_STRIP"; then
9268 for ncn_progname in strip; do
9269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9270set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9273if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9274 $as_echo_n "(cached) " >&6
9a819804
AO
9275else
9276 if test -n "$STRIP"; then
9277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9278else
9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280for as_dir in $PATH
9281do
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
81ecdfbb 9284 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9286 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9288 break 2
9289 fi
9290done
81ecdfbb
RW
9291 done
9292IFS=$as_save_IFS
9a819804
AO
9293
9294fi
9295fi
9296STRIP=$ac_cv_prog_STRIP
9297if test -n "$STRIP"; then
81ecdfbb
RW
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9299$as_echo "$STRIP" >&6; }
9a819804 9300else
81ecdfbb
RW
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9a819804
AO
9303fi
9304
81ecdfbb 9305
9a819804
AO
9306 done
9307fi
9308
9309for ncn_progname in strip; do
be01d343
PB
9310 if test -n "$ncn_tool_prefix"; then
9311 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9312set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9315if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9316 $as_echo_n "(cached) " >&6
be01d343
PB
9317else
9318 if test -n "$STRIP"; then
9319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9320else
c6b750e1
DJ
9321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
81ecdfbb 9326 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9328 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9330 break 2
9331 fi
9332done
81ecdfbb
RW
9333 done
9334IFS=$as_save_IFS
c6b750e1 9335
be01d343
PB
9336fi
9337fi
c6b750e1 9338STRIP=$ac_cv_prog_STRIP
be01d343 9339if test -n "$STRIP"; then
81ecdfbb
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9341$as_echo "$STRIP" >&6; }
be01d343 9342else
81ecdfbb
RW
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344$as_echo "no" >&6; }
be01d343
PB
9345fi
9346
81ecdfbb 9347
be01d343
PB
9348 fi
9349 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9351set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9354if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9355 $as_echo_n "(cached) " >&6
be01d343
PB
9356else
9357 if test -n "$STRIP"; then
9358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9359else
c6b750e1
DJ
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
81ecdfbb 9365 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9367 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9369 break 2
9370 fi
9371done
81ecdfbb
RW
9372 done
9373IFS=$as_save_IFS
c6b750e1 9374
be01d343
PB
9375fi
9376fi
c6b750e1 9377STRIP=$ac_cv_prog_STRIP
be01d343 9378if test -n "$STRIP"; then
81ecdfbb
RW
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9380$as_echo "$STRIP" >&6; }
be01d343 9381else
81ecdfbb
RW
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
be01d343 9384fi
c6b750e1 9385
81ecdfbb 9386
be01d343
PB
9387 fi
9388 test -n "$ac_cv_prog_STRIP" && break
9389done
9390
9391if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9392 STRIP="true"
be01d343
PB
9393fi
9394
9a819804
AO
9395
9396
9397if test -n "$WINDRES"; then
9398 ac_cv_prog_WINDRES=$WINDRES
9399elif test -n "$ac_cv_prog_WINDRES"; then
9400 WINDRES=$ac_cv_prog_WINDRES
9401fi
9402
9403if test -n "$ac_cv_prog_WINDRES"; then
9404 for ncn_progname in windres; do
9405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9409if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9410 $as_echo_n "(cached) " >&6
9a819804
AO
9411else
9412 if test -n "$WINDRES"; then
9413 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9414else
9415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416for as_dir in $PATH
9417do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
81ecdfbb 9420 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9422 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9424 break 2
9425 fi
9426done
81ecdfbb
RW
9427 done
9428IFS=$as_save_IFS
9a819804
AO
9429
9430fi
9431fi
9432WINDRES=$ac_cv_prog_WINDRES
9433if test -n "$WINDRES"; then
81ecdfbb
RW
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9435$as_echo "$WINDRES" >&6; }
9a819804 9436else
81ecdfbb
RW
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438$as_echo "no" >&6; }
9a819804
AO
9439fi
9440
81ecdfbb 9441
9a819804
AO
9442 done
9443fi
9444
9445for ncn_progname in windres; do
05cbd757
PB
9446 if test -n "$ncn_tool_prefix"; then
9447 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9448set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9451if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9452 $as_echo_n "(cached) " >&6
859789af
AC
9453else
9454 if test -n "$WINDRES"; then
9455 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9456else
c6b750e1
DJ
9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458for as_dir in $PATH
9459do
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
81ecdfbb 9462 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9464 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9466 break 2
9467 fi
9468done
81ecdfbb
RW
9469 done
9470IFS=$as_save_IFS
c6b750e1 9471
859789af
AC
9472fi
9473fi
c6b750e1 9474WINDRES=$ac_cv_prog_WINDRES
859789af 9475if test -n "$WINDRES"; then
81ecdfbb
RW
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9477$as_echo "$WINDRES" >&6; }
859789af 9478else
81ecdfbb
RW
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
859789af
AC
9481fi
9482
81ecdfbb 9483
05cbd757
PB
9484 fi
9485 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9490if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9491 $as_echo_n "(cached) " >&6
859789af 9492else
05cbd757
PB
9493 if test -n "$WINDRES"; then
9494 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9495else
c6b750e1
DJ
9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497for as_dir in $PATH
9498do
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
81ecdfbb 9501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9503 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9505 break 2
9506 fi
9507done
81ecdfbb
RW
9508 done
9509IFS=$as_save_IFS
c6b750e1 9510
859789af
AC
9511fi
9512fi
c6b750e1 9513WINDRES=$ac_cv_prog_WINDRES
05cbd757 9514if test -n "$WINDRES"; then
81ecdfbb
RW
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9516$as_echo "$WINDRES" >&6; }
859789af 9517else
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519$as_echo "no" >&6; }
859789af 9520fi
c6b750e1 9521
81ecdfbb 9522
05cbd757
PB
9523 fi
9524 test -n "$ac_cv_prog_WINDRES" && break
9525done
9526
9527if test -z "$ac_cv_prog_WINDRES" ; then
9528 set dummy windres
9529 if test $build = $host ; then
9530 WINDRES="$2"
859789af 9531 else
05cbd757 9532 WINDRES="${ncn_tool_prefix}$2"
859789af 9533 fi
859789af
AC
9534fi
9535
9a819804
AO
9536
9537
0c24b341
NC
9538if test -n "$WINDMC"; then
9539 ac_cv_prog_WINDMC=$WINDMC
9540elif test -n "$ac_cv_prog_WINDMC"; then
9541 WINDMC=$ac_cv_prog_WINDMC
9542fi
9543
9544if test -n "$ac_cv_prog_WINDMC"; then
9545 for ncn_progname in windmc; do
9546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9550if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9551 $as_echo_n "(cached) " >&6
0c24b341
NC
9552else
9553 if test -n "$WINDMC"; then
9554 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
81ecdfbb 9561 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9563 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9565 break 2
9566 fi
9567done
81ecdfbb
RW
9568 done
9569IFS=$as_save_IFS
0c24b341
NC
9570
9571fi
9572fi
9573WINDMC=$ac_cv_prog_WINDMC
9574if test -n "$WINDMC"; then
81ecdfbb
RW
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9576$as_echo "$WINDMC" >&6; }
0c24b341 9577else
81ecdfbb
RW
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579$as_echo "no" >&6; }
0c24b341
NC
9580fi
9581
81ecdfbb 9582
0c24b341
NC
9583 done
9584fi
9585
9586for ncn_progname in windmc; do
9587 if test -n "$ncn_tool_prefix"; then
9588 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9589set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9592if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9593 $as_echo_n "(cached) " >&6
0c24b341
NC
9594else
9595 if test -n "$WINDMC"; then
9596 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9597else
9598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599for as_dir in $PATH
9600do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
81ecdfbb 9603 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9605 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9607 break 2
9608 fi
9609done
81ecdfbb
RW
9610 done
9611IFS=$as_save_IFS
0c24b341
NC
9612
9613fi
9614fi
9615WINDMC=$ac_cv_prog_WINDMC
9616if test -n "$WINDMC"; then
81ecdfbb
RW
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9618$as_echo "$WINDMC" >&6; }
0c24b341 9619else
81ecdfbb
RW
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621$as_echo "no" >&6; }
0c24b341
NC
9622fi
9623
81ecdfbb 9624
0c24b341
NC
9625 fi
9626 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9631if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9632 $as_echo_n "(cached) " >&6
0c24b341
NC
9633else
9634 if test -n "$WINDMC"; then
9635 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
81ecdfbb 9642 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9644 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9646 break 2
9647 fi
9648done
81ecdfbb
RW
9649 done
9650IFS=$as_save_IFS
0c24b341
NC
9651
9652fi
9653fi
9654WINDMC=$ac_cv_prog_WINDMC
9655if test -n "$WINDMC"; then
81ecdfbb
RW
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9657$as_echo "$WINDMC" >&6; }
0c24b341 9658else
81ecdfbb
RW
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660$as_echo "no" >&6; }
0c24b341
NC
9661fi
9662
81ecdfbb 9663
0c24b341
NC
9664 fi
9665 test -n "$ac_cv_prog_WINDMC" && break
9666done
9667
9668if test -z "$ac_cv_prog_WINDMC" ; then
9669 set dummy windmc
9670 if test $build = $host ; then
9671 WINDMC="$2"
9672 else
9673 WINDMC="${ncn_tool_prefix}$2"
9674 fi
9675fi
9676
9677
9678
9a819804
AO
9679if test -n "$OBJCOPY"; then
9680 ac_cv_prog_OBJCOPY=$OBJCOPY
9681elif test -n "$ac_cv_prog_OBJCOPY"; then
9682 OBJCOPY=$ac_cv_prog_OBJCOPY
9683fi
9684
9685if test -n "$ac_cv_prog_OBJCOPY"; then
9686 for ncn_progname in objcopy; do
9687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9691if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9692 $as_echo_n "(cached) " >&6
9a819804
AO
9693else
9694 if test -n "$OBJCOPY"; then
9695 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9696else
9697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698for as_dir in $PATH
9699do
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
81ecdfbb 9702 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9704 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9706 break 2
9707 fi
9708done
81ecdfbb
RW
9709 done
9710IFS=$as_save_IFS
9a819804
AO
9711
9712fi
9713fi
9714OBJCOPY=$ac_cv_prog_OBJCOPY
9715if test -n "$OBJCOPY"; then
81ecdfbb
RW
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9717$as_echo "$OBJCOPY" >&6; }
9a819804 9718else
81ecdfbb
RW
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720$as_echo "no" >&6; }
9a819804
AO
9721fi
9722
81ecdfbb 9723
9a819804
AO
9724 done
9725fi
9726
9727for ncn_progname in objcopy; do
05cbd757
PB
9728 if test -n "$ncn_tool_prefix"; then
9729 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9730set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9733if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9734 $as_echo_n "(cached) " >&6
859789af
AC
9735else
9736 if test -n "$OBJCOPY"; then
9737 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9738else
c6b750e1
DJ
9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740for as_dir in $PATH
9741do
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
81ecdfbb 9744 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9746 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9748 break 2
9749 fi
9750done
81ecdfbb
RW
9751 done
9752IFS=$as_save_IFS
c6b750e1 9753
859789af
AC
9754fi
9755fi
c6b750e1 9756OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9757if test -n "$OBJCOPY"; then
81ecdfbb
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9759$as_echo "$OBJCOPY" >&6; }
859789af 9760else
81ecdfbb
RW
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762$as_echo "no" >&6; }
859789af
AC
9763fi
9764
81ecdfbb 9765
05cbd757
PB
9766 fi
9767 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9769set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9772if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9773 $as_echo_n "(cached) " >&6
859789af 9774else
05cbd757
PB
9775 if test -n "$OBJCOPY"; then
9776 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9777else
c6b750e1
DJ
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
81ecdfbb 9783 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9785 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9787 break 2
9788 fi
9789done
81ecdfbb
RW
9790 done
9791IFS=$as_save_IFS
c6b750e1 9792
859789af
AC
9793fi
9794fi
c6b750e1 9795OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9796if test -n "$OBJCOPY"; then
81ecdfbb
RW
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9798$as_echo "$OBJCOPY" >&6; }
859789af 9799else
81ecdfbb
RW
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
859789af 9802fi
c6b750e1 9803
81ecdfbb 9804
05cbd757
PB
9805 fi
9806 test -n "$ac_cv_prog_OBJCOPY" && break
9807done
9808
9809if test -z "$ac_cv_prog_OBJCOPY" ; then
9810 set dummy objcopy
9811 if test $build = $host ; then
9812 OBJCOPY="$2"
859789af 9813 else
05cbd757 9814 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9815 fi
859789af
AC
9816fi
9817
9a819804
AO
9818
9819
9820if test -n "$OBJDUMP"; then
9821 ac_cv_prog_OBJDUMP=$OBJDUMP
9822elif test -n "$ac_cv_prog_OBJDUMP"; then
9823 OBJDUMP=$ac_cv_prog_OBJDUMP
9824fi
9825
9826if test -n "$ac_cv_prog_OBJDUMP"; then
9827 for ncn_progname in objdump; do
9828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9832if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9833 $as_echo_n "(cached) " >&6
9a819804
AO
9834else
9835 if test -n "$OBJDUMP"; then
9836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9837else
9838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839for as_dir in $PATH
9840do
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
81ecdfbb 9843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9845 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9847 break 2
9848 fi
9849done
81ecdfbb
RW
9850 done
9851IFS=$as_save_IFS
9a819804
AO
9852
9853fi
9854fi
9855OBJDUMP=$ac_cv_prog_OBJDUMP
9856if test -n "$OBJDUMP"; then
81ecdfbb
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9858$as_echo "$OBJDUMP" >&6; }
9a819804 9859else
81ecdfbb
RW
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861$as_echo "no" >&6; }
9a819804
AO
9862fi
9863
81ecdfbb 9864
9a819804
AO
9865 done
9866fi
9867
9868for ncn_progname in objdump; do
05cbd757
PB
9869 if test -n "$ncn_tool_prefix"; then
9870 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9871set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9874if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9875 $as_echo_n "(cached) " >&6
859789af
AC
9876else
9877 if test -n "$OBJDUMP"; then
9878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9879else
c6b750e1
DJ
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
81ecdfbb 9885 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9887 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9889 break 2
9890 fi
9891done
81ecdfbb
RW
9892 done
9893IFS=$as_save_IFS
c6b750e1 9894
859789af
AC
9895fi
9896fi
c6b750e1 9897OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9898if test -n "$OBJDUMP"; then
81ecdfbb
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9900$as_echo "$OBJDUMP" >&6; }
859789af 9901else
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
859789af
AC
9904fi
9905
81ecdfbb 9906
05cbd757
PB
9907 fi
9908 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9913if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9914 $as_echo_n "(cached) " >&6
859789af 9915else
05cbd757
PB
9916 if test -n "$OBJDUMP"; then
9917 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9918else
c6b750e1
DJ
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
81ecdfbb 9924 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9926 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9928 break 2
9929 fi
9930done
81ecdfbb
RW
9931 done
9932IFS=$as_save_IFS
c6b750e1 9933
859789af
AC
9934fi
9935fi
c6b750e1 9936OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9937if test -n "$OBJDUMP"; then
81ecdfbb
RW
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9939$as_echo "$OBJDUMP" >&6; }
859789af 9940else
81ecdfbb
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942$as_echo "no" >&6; }
859789af 9943fi
c6b750e1 9944
81ecdfbb 9945
05cbd757
PB
9946 fi
9947 test -n "$ac_cv_prog_OBJDUMP" && break
9948done
9949
9950if test -z "$ac_cv_prog_OBJDUMP" ; then
9951 set dummy objdump
9952 if test $build = $host ; then
9953 OBJDUMP="$2"
859789af 9954 else
05cbd757 9955 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9956 fi
859789af
AC
9957fi
9958
a0da8069
NN
9959
9960
b121d7d4
DD
9961if test -n "$READELF"; then
9962 ac_cv_prog_READELF=$READELF
9963elif test -n "$ac_cv_prog_READELF"; then
9964 READELF=$ac_cv_prog_READELF
9965fi
9966
9967if test -n "$ac_cv_prog_READELF"; then
9968 for ncn_progname in readelf; do
9969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9970set dummy ${ncn_progname}; ac_word=$2
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9973if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9974 $as_echo_n "(cached) " >&6
9975else
9976 if test -n "$READELF"; then
9977 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9978else
9979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980for as_dir in $PATH
9981do
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9986 ac_cv_prog_READELF="${ncn_progname}"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 break 2
9989 fi
9990done
9991 done
9992IFS=$as_save_IFS
9993
9994fi
9995fi
9996READELF=$ac_cv_prog_READELF
9997if test -n "$READELF"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9999$as_echo "$READELF" >&6; }
10000else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002$as_echo "no" >&6; }
10003fi
10004
10005
10006 done
10007fi
10008
10009for ncn_progname in readelf; do
10010 if test -n "$ncn_tool_prefix"; then
10011 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10012set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10015if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10016 $as_echo_n "(cached) " >&6
10017else
10018 if test -n "$READELF"; then
10019 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10028 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033 done
10034IFS=$as_save_IFS
10035
10036fi
10037fi
10038READELF=$ac_cv_prog_READELF
10039if test -n "$READELF"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10041$as_echo "$READELF" >&6; }
10042else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044$as_echo "no" >&6; }
10045fi
10046
10047
10048 fi
10049 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10051set dummy ${ncn_progname}; ac_word=$2
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10054if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10055 $as_echo_n "(cached) " >&6
10056else
10057 if test -n "$READELF"; then
10058 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10059else
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10067 ac_cv_prog_READELF="${ncn_progname}"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072 done
10073IFS=$as_save_IFS
10074
10075fi
10076fi
10077READELF=$ac_cv_prog_READELF
10078if test -n "$READELF"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10080$as_echo "$READELF" >&6; }
10081else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083$as_echo "no" >&6; }
10084fi
10085
10086
10087 fi
10088 test -n "$ac_cv_prog_READELF" && break
10089done
10090
10091if test -z "$ac_cv_prog_READELF" ; then
10092 set dummy readelf
10093 if test $build = $host ; then
10094 READELF="$2"
10095 else
10096 READELF="${ncn_tool_prefix}$2"
10097 fi
10098fi
10099
10100
10101
a0da8069
NN
10102
10103
10104
50ad1254
L
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10106$as_echo_n "checking for -plugin option... " >&6; }
10107
10108plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10109plugin_option=
10110for plugin in $plugin_names; do
10111 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10112 if test x$plugin_so = x$plugin; then
10113 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10114 fi
10115 if test x$plugin_so != x$plugin; then
10116 plugin_option="--plugin $plugin_so"
10117 break
10118 fi
10119done
03c02f31
L
10120if test -n "$ac_tool_prefix"; then
10121 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10122set dummy ${ac_tool_prefix}ar; ac_word=$2
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124$as_echo_n "checking for $ac_word... " >&6; }
10125if ${ac_cv_prog_AR+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127else
10128 if test -n "$AR"; then
10129 ac_cv_prog_AR="$AR" # Let the user override the test.
10130else
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_prog_AR="${ac_tool_prefix}ar"
10139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143 done
10144IFS=$as_save_IFS
10145
10146fi
10147fi
10148AR=$ac_cv_prog_AR
10149if test -n "$AR"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10151$as_echo "$AR" >&6; }
10152else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154$as_echo "no" >&6; }
10155fi
10156
10157
10158fi
10159if test -z "$ac_cv_prog_AR"; then
10160 ac_ct_AR=$AR
10161 # Extract the first word of "ar", so it can be a program name with args.
10162set dummy ar; ac_word=$2
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164$as_echo_n "checking for $ac_word... " >&6; }
10165if ${ac_cv_prog_ac_ct_AR+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167else
10168 if test -n "$ac_ct_AR"; then
10169 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10170else
10171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10172for as_dir in $PATH
10173do
10174 IFS=$as_save_IFS
10175 test -z "$as_dir" && as_dir=.
10176 for ac_exec_ext in '' $ac_executable_extensions; do
10177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10178 ac_cv_prog_ac_ct_AR="ar"
10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 break 2
10181 fi
10182done
10183 done
10184IFS=$as_save_IFS
10185
10186fi
10187fi
10188ac_ct_AR=$ac_cv_prog_ac_ct_AR
10189if test -n "$ac_ct_AR"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10191$as_echo "$ac_ct_AR" >&6; }
10192else
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194$as_echo "no" >&6; }
10195fi
10196
10197 if test "x$ac_ct_AR" = x; then
10198 AR=""
10199 else
10200 case $cross_compiling:$ac_tool_warned in
10201yes:)
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10204ac_tool_warned=yes ;;
10205esac
10206 AR=$ac_ct_AR
10207 fi
10208else
10209 AR="$ac_cv_prog_AR"
10210fi
10211
10212if test "${AR}" = "" ; then
10213 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10214fi
10215touch conftest.c
10216${AR} $plugin_option rc conftest.a conftest.c
10217if test "$?" != 0; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10219$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10220 plugin_option=
10221fi
10222rm -f conftest.*
50ad1254
L
10223if test -n "$plugin_option"; then
10224 PLUGIN_OPTION="$plugin_option"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10226$as_echo "$plugin_option" >&6; }
10227else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229$as_echo "no" >&6; }
10230fi
10231
10232AR_PLUGIN_OPTION=
10233RANLIB_PLUGIN_OPTION=
10234if test -n "$PLUGIN_OPTION"; then
10235 if $AR --help 2>&1 | grep -q "\--plugin"; then
10236 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10237 fi
10238 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10239 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10240 fi
44124a46
L
10241else
10242 if test "$enable_pgo_build" != "no"; then
10243 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10244 fi
50ad1254
L
10245fi
10246
10247
10248
be01d343 10249# Target tools.
c6b750e1 10250
81ecdfbb
RW
10251# Check whether --with-build-time-tools was given.
10252if test "${with_build_time_tools+set}" = set; then :
10253 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10254 x/*) ;;
10255 *)
10256 with_build_time_tools=
81ecdfbb
RW
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10258$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10259 ;;
10260 esac
859789af 10261else
2429c060 10262 with_build_time_tools=
81ecdfbb
RW
10263fi
10264
859789af 10265
9a819804
AO
10266
10267
10268if test -n "$CC_FOR_TARGET"; then
10269 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10270elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10271 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10272fi
10273
10274if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10275 for ncn_progname in cc gcc; do
10276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10277set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10280if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10281 $as_echo_n "(cached) " >&6
9a819804
AO
10282else
10283 if test -n "$CC_FOR_TARGET"; then
10284 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10285else
10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
81ecdfbb 10291 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10293 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10295 break 2
10296 fi
10297done
81ecdfbb
RW
10298 done
10299IFS=$as_save_IFS
9a819804
AO
10300
10301fi
10302fi
10303CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10304if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10306$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10307else
81ecdfbb
RW
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309$as_echo "no" >&6; }
9a819804
AO
10310fi
10311
81ecdfbb 10312
9a819804
AO
10313 done
10314fi
10315
10316if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10317 for ncn_progname in cc gcc; do
81ecdfbb
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10319$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10320 if test -x $with_build_time_tools/${ncn_progname}; then
10321 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10323$as_echo "yes" >&6; }
cac3d6c4 10324 break
2429c060 10325 else
81ecdfbb
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327$as_echo "no" >&6; }
cac3d6c4
CM
10328 fi
10329 done
55db4b87
PB
10330fi
10331
2429c060
PB
10332if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10333 for ncn_progname in cc gcc; do
10334 if test -n "$ncn_target_tool_prefix"; then
10335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10339if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10340 $as_echo_n "(cached) " >&6
55db4b87
PB
10341else
10342 if test -n "$CC_FOR_TARGET"; then
10343 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10344else
c6b750e1
DJ
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
81ecdfbb 10350 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10352 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10354 break 2
10355 fi
10356done
81ecdfbb
RW
10357 done
10358IFS=$as_save_IFS
c6b750e1 10359
55db4b87
PB
10360fi
10361fi
c6b750e1 10362CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10363if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10365$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10366else
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
55db4b87
PB
10369fi
10370
81ecdfbb 10371
2429c060
PB
10372 fi
10373 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10375set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10378if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10379 $as_echo_n "(cached) " >&6
55db4b87 10380else
05cbd757
PB
10381 if test -n "$CC_FOR_TARGET"; then
10382 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10383else
c6b750e1
DJ
10384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385for as_dir in $PATH
10386do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
81ecdfbb 10389 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10391 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10393 break 2
10394 fi
10395done
81ecdfbb
RW
10396 done
10397IFS=$as_save_IFS
c6b750e1 10398
55db4b87
PB
10399fi
10400fi
c6b750e1 10401CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10402if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10404$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10405else
81ecdfbb
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
55db4b87 10408fi
c6b750e1 10409
81ecdfbb 10410
2429c060
PB
10411 fi
10412 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10413 done
10414fi
c6b750e1 10415
05cbd757
PB
10416if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10417 set dummy cc gcc
10418 if test $build = $target ; then
10419 CC_FOR_TARGET="$2"
55db4b87 10420 else
05cbd757 10421 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10422 fi
d3f5afc4
MS
10423else
10424 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10425fi
10426
9a819804
AO
10427
10428
10429if test -n "$CXX_FOR_TARGET"; then
10430 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10431elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10432 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10433fi
10434
10435if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10436 for ncn_progname in c++ g++ cxx gxx; do
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10441if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10442 $as_echo_n "(cached) " >&6
9a819804
AO
10443else
10444 if test -n "$CXX_FOR_TARGET"; then
10445 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
81ecdfbb 10452 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10454 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10456 break 2
10457 fi
10458done
81ecdfbb
RW
10459 done
10460IFS=$as_save_IFS
9a819804
AO
10461
10462fi
10463fi
10464CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10465if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10467$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10468else
81ecdfbb
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
9a819804
AO
10471fi
10472
81ecdfbb 10473
9a819804
AO
10474 done
10475fi
10476
10477if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10478 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10480$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10481 if test -x $with_build_time_tools/${ncn_progname}; then
10482 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10484$as_echo "yes" >&6; }
2429c060
PB
10485 break
10486 else
81ecdfbb
RW
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488$as_echo "no" >&6; }
2429c060
PB
10489 fi
10490 done
10491fi
10492
10493if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10494 for ncn_progname in c++ g++ cxx gxx; do
10495 if test -n "$ncn_target_tool_prefix"; then
10496 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10497set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10500if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10501 $as_echo_n "(cached) " >&6
55db4b87
PB
10502else
10503 if test -n "$CXX_FOR_TARGET"; then
10504 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10505else
c6b750e1
DJ
10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $PATH
10508do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
81ecdfbb 10511 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10513 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10515 break 2
10516 fi
10517done
81ecdfbb
RW
10518 done
10519IFS=$as_save_IFS
c6b750e1 10520
55db4b87
PB
10521fi
10522fi
c6b750e1 10523CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10524if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10526$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10527else
81ecdfbb
RW
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529$as_echo "no" >&6; }
55db4b87
PB
10530fi
10531
81ecdfbb 10532
2429c060
PB
10533 fi
10534 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10536set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10539if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10540 $as_echo_n "(cached) " >&6
55db4b87 10541else
05cbd757
PB
10542 if test -n "$CXX_FOR_TARGET"; then
10543 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10544else
c6b750e1
DJ
10545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546for as_dir in $PATH
10547do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
81ecdfbb 10550 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10552 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10554 break 2
10555 fi
10556done
81ecdfbb
RW
10557 done
10558IFS=$as_save_IFS
c6b750e1 10559
55db4b87
PB
10560fi
10561fi
c6b750e1 10562CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10563if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10565$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10566else
81ecdfbb
RW
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
55db4b87 10569fi
c6b750e1 10570
81ecdfbb 10571
2429c060
PB
10572 fi
10573 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10574 done
10575fi
c6b750e1 10576
05cbd757
PB
10577if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10578 set dummy c++ g++ cxx gxx
10579 if test $build = $target ; then
10580 CXX_FOR_TARGET="$2"
55db4b87 10581 else
05cbd757 10582 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10583 fi
d3f5afc4
MS
10584else
10585 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10586fi
10587
9a819804
AO
10588
10589
10590if test -n "$GCC_FOR_TARGET"; then
10591 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10592elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10593 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10594fi
10595
10596if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10597 for ncn_progname in gcc; do
10598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10599set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10602if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10603 $as_echo_n "(cached) " >&6
9a819804
AO
10604else
10605 if test -n "$GCC_FOR_TARGET"; then
10606 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10607else
10608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
81ecdfbb 10613 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10615 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10617 break 2
10618 fi
10619done
81ecdfbb
RW
10620 done
10621IFS=$as_save_IFS
9a819804
AO
10622
10623fi
10624fi
10625GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10626if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10628$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10629else
81ecdfbb
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
9a819804
AO
10632fi
10633
81ecdfbb 10634
9a819804
AO
10635 done
10636fi
10637
10638if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10639 for ncn_progname in gcc; do
81ecdfbb
RW
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10641$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10642 if test -x $with_build_time_tools/${ncn_progname}; then
10643 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645$as_echo "yes" >&6; }
2429c060
PB
10646 break
10647 else
81ecdfbb
RW
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
2429c060
PB
10650 fi
10651 done
10652fi
10653
10654if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10655 for ncn_progname in gcc; do
10656 if test -n "$ncn_target_tool_prefix"; then
10657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10658set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10661if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10662 $as_echo_n "(cached) " >&6
859789af 10663else
2429c060
PB
10664 if test -n "$GCC_FOR_TARGET"; then
10665 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10666else
c6b750e1
DJ
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
81ecdfbb 10672 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10674 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10676 break 2
10677 fi
10678done
81ecdfbb
RW
10679 done
10680IFS=$as_save_IFS
c6b750e1 10681
55db4b87
PB
10682fi
10683fi
c6b750e1 10684GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10685if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10687$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10688else
81ecdfbb
RW
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
55db4b87
PB
10691fi
10692
81ecdfbb 10693
2429c060
PB
10694 fi
10695 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10697set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10700if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10701 $as_echo_n "(cached) " >&6
55db4b87 10702else
05cbd757
PB
10703 if test -n "$GCC_FOR_TARGET"; then
10704 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10705else
c6b750e1
DJ
10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $PATH
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
81ecdfbb 10711 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10713 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10715 break 2
10716 fi
10717done
81ecdfbb
RW
10718 done
10719IFS=$as_save_IFS
c6b750e1 10720
55db4b87
PB
10721fi
10722fi
c6b750e1 10723GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10724if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10726$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10727else
81ecdfbb
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
55db4b87 10730fi
c6b750e1 10731
81ecdfbb 10732
2429c060
PB
10733 fi
10734 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10735 done
10736fi
c6b750e1 10737
05cbd757
PB
10738if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10739 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10740else
10741 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10742fi
10743
9a819804
AO
10744
10745
9a819804
AO
10746if test -n "$GFORTRAN_FOR_TARGET"; then
10747 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10748elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10749 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10750fi
10751
9a819804
AO
10752if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10753 for ncn_progname in gfortran; do
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10755set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10758if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10759 $as_echo_n "(cached) " >&6
55db4b87 10760else
9a819804
AO
10761 if test -n "$GFORTRAN_FOR_TARGET"; then
10762 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10763else
c6b750e1
DJ
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
81ecdfbb 10769 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10771 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10773 break 2
10774 fi
10775done
81ecdfbb
RW
10776 done
10777IFS=$as_save_IFS
c6b750e1 10778
55db4b87
PB
10779fi
10780fi
9a819804
AO
10781GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10782if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10784$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10785else
81ecdfbb
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
55db4b87 10788fi
c6b750e1 10789
81ecdfbb 10790
2429c060
PB
10791 done
10792fi
c6b750e1 10793
9a819804 10794if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10795 for ncn_progname in gfortran; do
81ecdfbb
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10797$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10798 if test -x $with_build_time_tools/${ncn_progname}; then
10799 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10801$as_echo "yes" >&6; }
2429c060
PB
10802 break
10803 else
81ecdfbb
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805$as_echo "no" >&6; }
2429c060
PB
10806 fi
10807 done
10808fi
10809
10810if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10811 for ncn_progname in gfortran; do
10812 if test -n "$ncn_target_tool_prefix"; then
10813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10814set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10817if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10818 $as_echo_n "(cached) " >&6
55db4b87
PB
10819else
10820 if test -n "$GFORTRAN_FOR_TARGET"; then
10821 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10822else
c6b750e1
DJ
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
81ecdfbb 10828 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10830 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10832 break 2
10833 fi
10834done
81ecdfbb
RW
10835 done
10836IFS=$as_save_IFS
c6b750e1 10837
55db4b87
PB
10838fi
10839fi
c6b750e1 10840GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10841if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10843$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10844else
81ecdfbb
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
55db4b87
PB
10847fi
10848
81ecdfbb 10849
2429c060
PB
10850 fi
10851 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10856if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10857 $as_echo_n "(cached) " >&6
55db4b87 10858else
05cbd757 10859 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10860 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10861else
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
81ecdfbb 10867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10869 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10871 break 2
10872 fi
10873done
81ecdfbb
RW
10874 done
10875IFS=$as_save_IFS
c6b750e1 10876
55db4b87
PB
10877fi
10878fi
c6b750e1 10879GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10880if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10882$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10883else
81ecdfbb
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
55db4b87 10886fi
c6b750e1 10887
81ecdfbb 10888
2429c060
PB
10889 fi
10890 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10891 done
10892fi
c6b750e1 10893
05cbd757
PB
10894if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10895 set dummy gfortran
10896 if test $build = $target ; then
10897 GFORTRAN_FOR_TARGET="$2"
55db4b87 10898 else
05cbd757 10899 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10900 fi
d3f5afc4
MS
10901else
10902 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10903fi
10904
2429c060
PB
10905
10906
e552509b
ILT
10907if test -n "$GOC_FOR_TARGET"; then
10908 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10909elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10910 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10911fi
10912
10913if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10914 for ncn_progname in gccgo; do
10915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10916set dummy ${ncn_progname}; ac_word=$2
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10919if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10920 $as_echo_n "(cached) " >&6
10921else
10922 if test -n "$GOC_FOR_TARGET"; then
10923 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10924else
10925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926for as_dir in $PATH
10927do
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10932 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10935 fi
10936done
10937 done
10938IFS=$as_save_IFS
10939
10940fi
10941fi
10942GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10943if test -n "$GOC_FOR_TARGET"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10945$as_echo "$GOC_FOR_TARGET" >&6; }
10946else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948$as_echo "no" >&6; }
10949fi
10950
10951
10952 done
10953fi
10954
10955if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10956 for ncn_progname in gccgo; do
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10958$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10959 if test -x $with_build_time_tools/${ncn_progname}; then
10960 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10962$as_echo "yes" >&6; }
10963 break
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967 fi
10968 done
10969fi
10970
10971if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10972 for ncn_progname in gccgo; do
10973 if test -n "$ncn_target_tool_prefix"; then
10974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10978if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$GOC_FOR_TARGET"; then
10982 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10991 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996 done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11002if test -n "$GOC_FOR_TARGET"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11004$as_echo "$GOC_FOR_TARGET" >&6; }
11005else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010
11011 fi
11012 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11014set dummy ${ncn_progname}; ac_word=$2
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11017if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11018 $as_echo_n "(cached) " >&6
11019else
11020 if test -n "$GOC_FOR_TARGET"; then
11021 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11022else
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11030 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035 done
11036IFS=$as_save_IFS
11037
11038fi
11039fi
11040GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11041if test -n "$GOC_FOR_TARGET"; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11043$as_echo "$GOC_FOR_TARGET" >&6; }
11044else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046$as_echo "no" >&6; }
11047fi
11048
11049
11050 fi
11051 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11052 done
11053fi
11054
11055if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11056 set dummy gccgo
11057 if test $build = $target ; then
11058 GOC_FOR_TARGET="$2"
11059 else
11060 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11061 fi
11062else
11063 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11064fi
11065
11066
11067
2429c060
PB
11068cat > conftest.c << \EOF
11069#ifdef __GNUC__
11070 gcc_yay;
11071#endif
11072EOF
11073if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11074 have_gcc_for_target=yes
859789af 11075else
2429c060
PB
11076 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11077 have_gcc_for_target=no
859789af 11078fi
2429c060
PB
11079rm conftest.c
11080
11081
11082
859789af 11083
2429c060
PB
11084if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11085 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11087$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11088 if test -x $with_build_time_tools/ar; then
11089 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11090 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11092$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11093 else
81ecdfbb
RW
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
3a35eeb3 11096 fi
2429c060
PB
11097 elif test $build != $host && test $have_gcc_for_target = yes; then
11098 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11099 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11100 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11101 fi
2429c060 11102fi
c6b750e1 11103if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11104 # Extract the first word of "ar", so it can be a program name with args.
11105set dummy ar; ac_word=$2
81ecdfbb
RW
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11108if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11109 $as_echo_n "(cached) " >&6
859789af 11110else
c6b750e1
DJ
11111 case $AR_FOR_TARGET in
11112 [\\/]* | ?:[\\/]*)
2429c060
PB
11113 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11114 ;;
2429c060 11115 *)
c6b750e1
DJ
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $gcc_cv_tool_dirs
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
81ecdfbb 11121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11123 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11125 break 2
11126 fi
11127done
81ecdfbb
RW
11128 done
11129IFS=$as_save_IFS
c6b750e1 11130
2429c060
PB
11131 ;;
11132esac
859789af 11133fi
c6b750e1 11134AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11135if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11137$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11138else
81ecdfbb
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
859789af 11141fi
05cbd757 11142
81ecdfbb 11143
2429c060
PB
11144fi
11145if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11146
11147
11148if test -n "$AR_FOR_TARGET"; then
11149 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11150elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11151 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11152fi
11153
11154if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11155 for ncn_progname in ar; do
11156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11160if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11161 $as_echo_n "(cached) " >&6
9a819804
AO
11162else
11163 if test -n "$AR_FOR_TARGET"; then
11164 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11165else
11166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167for as_dir in $PATH
11168do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
81ecdfbb 11171 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11175 break 2
11176 fi
11177done
81ecdfbb
RW
11178 done
11179IFS=$as_save_IFS
9a819804
AO
11180
11181fi
11182fi
11183AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11184if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11186$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11187else
81ecdfbb
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
9a819804
AO
11190fi
11191
81ecdfbb 11192
9a819804
AO
11193 done
11194fi
11195
11196if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11197 for ncn_progname in ar; do
81ecdfbb
RW
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11199$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11200 if test -x $with_build_time_tools/${ncn_progname}; then
11201 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11203$as_echo "yes" >&6; }
2429c060
PB
11204 break
11205 else
81ecdfbb
RW
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
2429c060
PB
11208 fi
11209 done
859789af
AC
11210fi
11211
2429c060
PB
11212if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11213 for ncn_progname in ar; do
11214 if test -n "$ncn_target_tool_prefix"; then
11215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11216set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11219if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11220 $as_echo_n "(cached) " >&6
7e0f7140 11221else
2429c060
PB
11222 if test -n "$AR_FOR_TARGET"; then
11223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11224else
c6b750e1
DJ
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
81ecdfbb 11230 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11232 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11234 break 2
11235 fi
11236done
81ecdfbb
RW
11237 done
11238IFS=$as_save_IFS
c6b750e1 11239
7e0f7140
GK
11240fi
11241fi
c6b750e1 11242AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11243if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11245$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11246else
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248$as_echo "no" >&6; }
7e0f7140
GK
11249fi
11250
81ecdfbb 11251
2429c060
PB
11252 fi
11253 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11255set dummy ${ncn_progname}; 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_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11259 $as_echo_n "(cached) " >&6
7e0f7140 11260else
2429c060
PB
11261 if test -n "$AR_FOR_TARGET"; then
11262 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11263else
c6b750e1
DJ
11264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265for as_dir in $PATH
11266do
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
81ecdfbb 11269 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11271 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11273 break 2
11274 fi
11275done
81ecdfbb
RW
11276 done
11277IFS=$as_save_IFS
c6b750e1 11278
7e0f7140
GK
11279fi
11280fi
c6b750e1 11281AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11282if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11284$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11285else
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287$as_echo "no" >&6; }
7e0f7140 11288fi
c6b750e1 11289
81ecdfbb 11290
2429c060
PB
11291 fi
11292 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11293 done
11294fi
c6b750e1 11295
2429c060
PB
11296if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11297 set dummy ar
7e0f7140 11298 if test $build = $target ; then
2429c060 11299 AR_FOR_TARGET="$2"
7e0f7140 11300 else
2429c060 11301 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11302 fi
d3f5afc4
MS
11303else
11304 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11305fi
11306
3a35eeb3
PB
11307else
11308 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11309fi
11310
11311
11312
11313
11314if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11315 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11317$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11318 if test -x $with_build_time_tools/as; then
11319 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11320 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11322$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11323 else
81ecdfbb
RW
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325$as_echo "no" >&6; }
3a35eeb3 11326 fi
2429c060
PB
11327 elif test $build != $host && test $have_gcc_for_target = yes; then
11328 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11329 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11330 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11331 fi
11332fi
c6b750e1 11333if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11334 # Extract the first word of "as", so it can be a program name with args.
11335set dummy as; ac_word=$2
81ecdfbb
RW
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11338if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11339 $as_echo_n "(cached) " >&6
2429c060 11340else
c6b750e1
DJ
11341 case $AS_FOR_TARGET in
11342 [\\/]* | ?:[\\/]*)
2429c060
PB
11343 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11344 ;;
2429c060 11345 *)
c6b750e1
DJ
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $gcc_cv_tool_dirs
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
81ecdfbb 11351 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11353 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11355 break 2
11356 fi
11357done
81ecdfbb
RW
11358 done
11359IFS=$as_save_IFS
c6b750e1 11360
2429c060
PB
11361 ;;
11362esac
11363fi
c6b750e1 11364AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11365if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11367$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11368else
81ecdfbb
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
2429c060
PB
11371fi
11372
81ecdfbb 11373
2429c060
PB
11374fi
11375if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11376
11377
11378if test -n "$AS_FOR_TARGET"; then
11379 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11380elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11381 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11382fi
11383
11384if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11385 for ncn_progname in as; do
11386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11387set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11390if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11391 $as_echo_n "(cached) " >&6
9a819804
AO
11392else
11393 if test -n "$AS_FOR_TARGET"; then
11394 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11395else
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
81ecdfbb 11401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11403 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11405 break 2
11406 fi
11407done
81ecdfbb
RW
11408 done
11409IFS=$as_save_IFS
9a819804
AO
11410
11411fi
11412fi
11413AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11414if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11416$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11417else
81ecdfbb
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
9a819804
AO
11420fi
11421
81ecdfbb 11422
9a819804
AO
11423 done
11424fi
11425
11426if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11427 for ncn_progname in as; do
81ecdfbb
RW
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11429$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11430 if test -x $with_build_time_tools/${ncn_progname}; then
11431 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
2429c060
PB
11434 break
11435 else
81ecdfbb
RW
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
2429c060
PB
11438 fi
11439 done
11440fi
11441
11442if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11443 for ncn_progname in as; do
11444 if test -n "$ncn_target_tool_prefix"; then
11445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11446set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11449if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11450 $as_echo_n "(cached) " >&6
2429c060
PB
11451else
11452 if test -n "$AS_FOR_TARGET"; then
11453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11454else
c6b750e1
DJ
11455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $PATH
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
81ecdfbb 11460 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11462 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11464 break 2
11465 fi
11466done
81ecdfbb
RW
11467 done
11468IFS=$as_save_IFS
c6b750e1 11469
2429c060
PB
11470fi
11471fi
c6b750e1 11472AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11473if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11475$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11476else
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478$as_echo "no" >&6; }
2429c060
PB
11479fi
11480
81ecdfbb 11481
2429c060
PB
11482 fi
11483 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485set dummy ${ncn_progname}; 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_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11489 $as_echo_n "(cached) " >&6
2429c060
PB
11490else
11491 if test -n "$AS_FOR_TARGET"; then
11492 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11493else
c6b750e1
DJ
11494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
81ecdfbb 11499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11501 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11503 break 2
11504 fi
11505done
81ecdfbb
RW
11506 done
11507IFS=$as_save_IFS
c6b750e1 11508
2429c060
PB
11509fi
11510fi
c6b750e1 11511AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11512if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11514$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11515else
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517$as_echo "no" >&6; }
2429c060 11518fi
c6b750e1 11519
81ecdfbb 11520
2429c060
PB
11521 fi
11522 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11523 done
11524fi
c6b750e1 11525
2429c060
PB
11526if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11527 set dummy as
11528 if test $build = $target ; then
11529 AS_FOR_TARGET="$2"
11530 else
11531 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11532 fi
d3f5afc4
MS
11533else
11534 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11535fi
11536
3a35eeb3
PB
11537else
11538 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11539fi
11540
11541
11542
11543
11544if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11545 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11547$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11548 if test -x $with_build_time_tools/dlltool; then
11549 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11550 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11552$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11553 else
81ecdfbb
RW
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
3a35eeb3 11556 fi
2429c060
PB
11557 elif test $build != $host && test $have_gcc_for_target = yes; then
11558 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11559 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11560 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11561 fi
11562fi
c6b750e1 11563if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11564 # Extract the first word of "dlltool", so it can be a program name with args.
11565set dummy dlltool; ac_word=$2
81ecdfbb
RW
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11568if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11569 $as_echo_n "(cached) " >&6
2429c060 11570else
c6b750e1
DJ
11571 case $DLLTOOL_FOR_TARGET in
11572 [\\/]* | ?:[\\/]*)
2429c060
PB
11573 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11574 ;;
2429c060 11575 *)
c6b750e1
DJ
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $gcc_cv_tool_dirs
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
81ecdfbb 11581 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11583 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11585 break 2
11586 fi
11587done
81ecdfbb
RW
11588 done
11589IFS=$as_save_IFS
c6b750e1 11590
2429c060
PB
11591 ;;
11592esac
11593fi
c6b750e1 11594DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11595if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11597$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11598else
81ecdfbb
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; }
2429c060
PB
11601fi
11602
81ecdfbb 11603
2429c060
PB
11604fi
11605if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11606
11607
11608if test -n "$DLLTOOL_FOR_TARGET"; then
11609 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11610elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11611 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11612fi
11613
11614if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11615 for ncn_progname in dlltool; do
11616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11617set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11620if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11621 $as_echo_n "(cached) " >&6
9a819804
AO
11622else
11623 if test -n "$DLLTOOL_FOR_TARGET"; then
11624 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11625else
11626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627for as_dir in $PATH
11628do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
81ecdfbb 11631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11633 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11635 break 2
11636 fi
11637done
81ecdfbb
RW
11638 done
11639IFS=$as_save_IFS
9a819804
AO
11640
11641fi
11642fi
11643DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11644if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11646$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11647else
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
9a819804
AO
11650fi
11651
81ecdfbb 11652
9a819804
AO
11653 done
11654fi
11655
11656if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11657 for ncn_progname in dlltool; do
81ecdfbb
RW
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11659$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11660 if test -x $with_build_time_tools/${ncn_progname}; then
11661 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663$as_echo "yes" >&6; }
2429c060
PB
11664 break
11665 else
81ecdfbb
RW
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667$as_echo "no" >&6; }
2429c060
PB
11668 fi
11669 done
11670fi
11671
11672if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11673 for ncn_progname in dlltool; do
11674 if test -n "$ncn_target_tool_prefix"; then
11675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11676set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11679if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11680 $as_echo_n "(cached) " >&6
2429c060
PB
11681else
11682 if test -n "$DLLTOOL_FOR_TARGET"; then
11683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11684else
c6b750e1
DJ
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
81ecdfbb 11690 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11694 break 2
11695 fi
11696done
81ecdfbb
RW
11697 done
11698IFS=$as_save_IFS
c6b750e1 11699
2429c060
PB
11700fi
11701fi
c6b750e1 11702DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11703if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11705$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11706else
81ecdfbb
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
2429c060
PB
11709fi
11710
81ecdfbb 11711
2429c060
PB
11712 fi
11713 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715set dummy ${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11719 $as_echo_n "(cached) " >&6
2429c060
PB
11720else
11721 if test -n "$DLLTOOL_FOR_TARGET"; then
11722 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11723else
c6b750e1
DJ
11724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725for as_dir in $PATH
11726do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
81ecdfbb 11729 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11731 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11733 break 2
11734 fi
11735done
81ecdfbb
RW
11736 done
11737IFS=$as_save_IFS
c6b750e1 11738
2429c060
PB
11739fi
11740fi
c6b750e1 11741DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11742if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11744$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11745else
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
2429c060 11748fi
c6b750e1 11749
81ecdfbb 11750
2429c060
PB
11751 fi
11752 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11753 done
11754fi
c6b750e1 11755
2429c060
PB
11756if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11757 set dummy dlltool
11758 if test $build = $target ; then
11759 DLLTOOL_FOR_TARGET="$2"
11760 else
11761 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11762 fi
d3f5afc4
MS
11763else
11764 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11765fi
11766
3a35eeb3
PB
11767else
11768 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11769fi
11770
11771
11772
11773
11774if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11775 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11777$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11778 if test -x $with_build_time_tools/ld; then
11779 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11780 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11782$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11783 else
81ecdfbb
RW
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785$as_echo "no" >&6; }
3a35eeb3 11786 fi
2429c060
PB
11787 elif test $build != $host && test $have_gcc_for_target = yes; then
11788 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11789 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11790 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11791 fi
11792fi
c6b750e1 11793if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11794 # Extract the first word of "ld", so it can be a program name with args.
11795set dummy ld; ac_word=$2
81ecdfbb
RW
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11798if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11799 $as_echo_n "(cached) " >&6
2429c060 11800else
c6b750e1
DJ
11801 case $LD_FOR_TARGET in
11802 [\\/]* | ?:[\\/]*)
2429c060
PB
11803 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11804 ;;
2429c060 11805 *)
c6b750e1
DJ
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $gcc_cv_tool_dirs
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
81ecdfbb 11811 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11813 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11815 break 2
11816 fi
11817done
81ecdfbb
RW
11818 done
11819IFS=$as_save_IFS
c6b750e1 11820
2429c060
PB
11821 ;;
11822esac
11823fi
c6b750e1 11824LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11825if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11827$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11828else
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
2429c060
PB
11831fi
11832
81ecdfbb 11833
2429c060
PB
11834fi
11835if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11836
11837
11838if test -n "$LD_FOR_TARGET"; then
11839 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11840elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11841 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11842fi
11843
11844if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11845 for ncn_progname in ld; do
11846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11847set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11850if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11851 $as_echo_n "(cached) " >&6
9a819804
AO
11852else
11853 if test -n "$LD_FOR_TARGET"; then
11854 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11855else
11856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857for as_dir in $PATH
11858do
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
81ecdfbb 11861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11863 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11865 break 2
11866 fi
11867done
81ecdfbb
RW
11868 done
11869IFS=$as_save_IFS
9a819804
AO
11870
11871fi
11872fi
11873LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11874if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11876$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11877else
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
9a819804
AO
11880fi
11881
81ecdfbb 11882
9a819804
AO
11883 done
11884fi
11885
11886if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11887 for ncn_progname in ld; do
81ecdfbb
RW
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11889$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11890 if test -x $with_build_time_tools/${ncn_progname}; then
11891 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893$as_echo "yes" >&6; }
2429c060
PB
11894 break
11895 else
81ecdfbb
RW
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
2429c060
PB
11898 fi
11899 done
11900fi
11901
11902if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11903 for ncn_progname in ld; do
11904 if test -n "$ncn_target_tool_prefix"; then
11905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11909if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11910 $as_echo_n "(cached) " >&6
2429c060
PB
11911else
11912 if test -n "$LD_FOR_TARGET"; then
11913 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11914else
c6b750e1
DJ
11915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
81ecdfbb 11920 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11922 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11924 break 2
11925 fi
11926done
81ecdfbb
RW
11927 done
11928IFS=$as_save_IFS
c6b750e1 11929
2429c060
PB
11930fi
11931fi
c6b750e1 11932LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11933if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11935$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11936else
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
2429c060
PB
11939fi
11940
81ecdfbb 11941
2429c060
PB
11942 fi
11943 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11945set dummy ${ncn_progname}; 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_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11949 $as_echo_n "(cached) " >&6
2429c060
PB
11950else
11951 if test -n "$LD_FOR_TARGET"; then
11952 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11953else
c6b750e1
DJ
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
81ecdfbb 11959 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11961 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11963 break 2
11964 fi
11965done
81ecdfbb
RW
11966 done
11967IFS=$as_save_IFS
c6b750e1 11968
2429c060
PB
11969fi
11970fi
c6b750e1 11971LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11972if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11974$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11975else
81ecdfbb
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
2429c060 11978fi
c6b750e1 11979
81ecdfbb 11980
2429c060
PB
11981 fi
11982 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11983 done
11984fi
c6b750e1 11985
2429c060
PB
11986if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11987 set dummy ld
11988 if test $build = $target ; then
11989 LD_FOR_TARGET="$2"
11990 else
11991 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11992 fi
d3f5afc4
MS
11993else
11994 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11995fi
11996
3a35eeb3
PB
11997else
11998 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11999fi
12000
12001
12002
12003
12004if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12005 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12007$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12008 if test -x $with_build_time_tools/lipo; then
12009 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12010 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12012$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12013 else
81ecdfbb
RW
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
3a35eeb3 12016 fi
2429c060
PB
12017 elif test $build != $host && test $have_gcc_for_target = yes; then
12018 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12019 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12020 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12021 fi
12022fi
9a819804
AO
12023if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12024 # Extract the first word of "lipo", so it can be a program name with args.
12025set dummy lipo; ac_word=$2
81ecdfbb
RW
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12028if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12029 $as_echo_n "(cached) " >&6
9a819804
AO
12030else
12031 case $LIPO_FOR_TARGET in
12032 [\\/]* | ?:[\\/]*)
12033 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12034 ;;
12035 *)
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $gcc_cv_tool_dirs
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
81ecdfbb 12041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12043 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12045 break 2
12046 fi
12047done
81ecdfbb
RW
12048 done
12049IFS=$as_save_IFS
9a819804
AO
12050
12051 ;;
12052esac
12053fi
12054LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12055if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12057$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12058else
81ecdfbb
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
9a819804
AO
12061fi
12062
81ecdfbb 12063
9a819804
AO
12064fi
12065if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12066
12067
12068if test -n "$LIPO_FOR_TARGET"; then
12069 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12070elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12071 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12072fi
12073
12074if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12075 for ncn_progname in lipo; do
12076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12077set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12080if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12081 $as_echo_n "(cached) " >&6
2429c060 12082else
9a819804
AO
12083 if test -n "$LIPO_FOR_TARGET"; then
12084 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12085else
12086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087for as_dir in $PATH
c6b750e1
DJ
12088do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
81ecdfbb 12091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12093 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12095 break 2
12096 fi
12097done
81ecdfbb
RW
12098 done
12099IFS=$as_save_IFS
c6b750e1 12100
2429c060 12101fi
9a819804
AO
12102fi
12103LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12104if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12106$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12107else
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
2429c060
PB
12110fi
12111
81ecdfbb 12112
9a819804 12113 done
2429c060 12114fi
9a819804
AO
12115
12116if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12117 for ncn_progname in lipo; do
81ecdfbb
RW
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12119$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12120 if test -x $with_build_time_tools/${ncn_progname}; then
12121 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123$as_echo "yes" >&6; }
2429c060
PB
12124 break
12125 else
81ecdfbb
RW
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
2429c060
PB
12128 fi
12129 done
12130fi
12131
12132if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12133 for ncn_progname in lipo; do
12134 if test -n "$ncn_target_tool_prefix"; then
12135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12136set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12139if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12140 $as_echo_n "(cached) " >&6
2429c060
PB
12141else
12142 if test -n "$LIPO_FOR_TARGET"; then
12143 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12144else
c6b750e1
DJ
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
81ecdfbb 12150 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12152 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12154 break 2
12155 fi
12156done
81ecdfbb
RW
12157 done
12158IFS=$as_save_IFS
c6b750e1 12159
2429c060
PB
12160fi
12161fi
c6b750e1 12162LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12163if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12165$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12166else
81ecdfbb
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
2429c060
PB
12169fi
12170
81ecdfbb 12171
2429c060
PB
12172 fi
12173 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
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_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12179 $as_echo_n "(cached) " >&6
2429c060
PB
12180else
12181 if test -n "$LIPO_FOR_TARGET"; then
12182 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12183else
c6b750e1
DJ
12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
81ecdfbb 12189 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12191 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12193 break 2
12194 fi
12195done
81ecdfbb
RW
12196 done
12197IFS=$as_save_IFS
c6b750e1 12198
2429c060
PB
12199fi
12200fi
c6b750e1 12201LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12202if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12204$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12205else
81ecdfbb
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207$as_echo "no" >&6; }
2429c060 12208fi
c6b750e1 12209
81ecdfbb 12210
2429c060
PB
12211 fi
12212 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12213 done
12214fi
c6b750e1 12215
2429c060
PB
12216if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12217 set dummy lipo
12218 if test $build = $target ; then
12219 LIPO_FOR_TARGET="$2"
12220 else
12221 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12222 fi
d3f5afc4
MS
12223else
12224 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12225fi
12226
3a35eeb3
PB
12227else
12228 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12229fi
12230
12231
12232
12233
12234if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12235 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12237$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12238 if test -x $with_build_time_tools/nm; then
12239 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12240 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12242$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12243 else
81ecdfbb
RW
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
3a35eeb3 12246 fi
2429c060
PB
12247 elif test $build != $host && test $have_gcc_for_target = yes; then
12248 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12249 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12250 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12251 fi
12252fi
c6b750e1 12253if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12254 # Extract the first word of "nm", so it can be a program name with args.
12255set dummy nm; ac_word=$2
81ecdfbb
RW
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12258if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12259 $as_echo_n "(cached) " >&6
2429c060 12260else
c6b750e1
DJ
12261 case $NM_FOR_TARGET in
12262 [\\/]* | ?:[\\/]*)
2429c060
PB
12263 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12264 ;;
2429c060 12265 *)
c6b750e1
DJ
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $gcc_cv_tool_dirs
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
81ecdfbb 12271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12273 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12275 break 2
12276 fi
12277done
81ecdfbb
RW
12278 done
12279IFS=$as_save_IFS
c6b750e1 12280
2429c060
PB
12281 ;;
12282esac
12283fi
c6b750e1 12284NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12285if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12287$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12288else
81ecdfbb
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
2429c060
PB
12291fi
12292
81ecdfbb 12293
2429c060
PB
12294fi
12295if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12296
12297
12298if test -n "$NM_FOR_TARGET"; then
12299 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12300elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12301 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12302fi
12303
12304if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12305 for ncn_progname in nm; do
12306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12307set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12310if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12311 $as_echo_n "(cached) " >&6
9a819804
AO
12312else
12313 if test -n "$NM_FOR_TARGET"; then
12314 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12315else
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
81ecdfbb 12321 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12323 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12325 break 2
12326 fi
12327done
81ecdfbb
RW
12328 done
12329IFS=$as_save_IFS
9a819804
AO
12330
12331fi
12332fi
12333NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12334if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12336$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12337else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
9a819804
AO
12340fi
12341
81ecdfbb 12342
9a819804
AO
12343 done
12344fi
12345
12346if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12347 for ncn_progname in nm; do
81ecdfbb
RW
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12349$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12350 if test -x $with_build_time_tools/${ncn_progname}; then
12351 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353$as_echo "yes" >&6; }
2429c060
PB
12354 break
12355 else
81ecdfbb
RW
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357$as_echo "no" >&6; }
2429c060
PB
12358 fi
12359 done
12360fi
12361
12362if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12363 for ncn_progname in nm; do
12364 if test -n "$ncn_target_tool_prefix"; then
12365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12366set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12369if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12370 $as_echo_n "(cached) " >&6
859789af 12371else
55db4b87
PB
12372 if test -n "$NM_FOR_TARGET"; then
12373 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12374else
c6b750e1
DJ
12375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376for as_dir in $PATH
12377do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
81ecdfbb 12380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12382 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12384 break 2
12385 fi
12386done
81ecdfbb
RW
12387 done
12388IFS=$as_save_IFS
c6b750e1 12389
859789af
AC
12390fi
12391fi
c6b750e1 12392NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12393if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12395$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12396else
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398$as_echo "no" >&6; }
859789af
AC
12399fi
12400
81ecdfbb 12401
2429c060
PB
12402 fi
12403 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12405set dummy ${ncn_progname}; 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_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12409 $as_echo_n "(cached) " >&6
859789af 12410else
05cbd757
PB
12411 if test -n "$NM_FOR_TARGET"; then
12412 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12413else
c6b750e1
DJ
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
81ecdfbb 12419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12421 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12423 break 2
12424 fi
12425done
81ecdfbb
RW
12426 done
12427IFS=$as_save_IFS
c6b750e1 12428
859789af
AC
12429fi
12430fi
c6b750e1 12431NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12432if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12434$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12435else
81ecdfbb
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
859789af 12438fi
c6b750e1 12439
81ecdfbb 12440
2429c060
PB
12441 fi
12442 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12443 done
12444fi
c6b750e1 12445
05cbd757
PB
12446if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12447 set dummy nm
12448 if test $build = $target ; then
12449 NM_FOR_TARGET="$2"
859789af 12450 else
05cbd757 12451 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12452 fi
d3f5afc4
MS
12453else
12454 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12455fi
12456
3a35eeb3
PB
12457else
12458 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12459fi
12460
12461
12462
12463
6b91c541
AP
12464if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12465 if test -n "$with_build_time_tools"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12467$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12468 if test -x $with_build_time_tools/objcopy; then
12469 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12470 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12472$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476 fi
12477 elif test $build != $host && test $have_gcc_for_target = yes; then
12478 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12479 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12480 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12481 fi
12482fi
12483if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12484 # Extract the first word of "objcopy", so it can be a program name with args.
12485set dummy objcopy; ac_word=$2
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12488if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12489 $as_echo_n "(cached) " >&6
12490else
12491 case $OBJCOPY_FOR_TARGET in
12492 [\\/]* | ?:[\\/]*)
12493 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12494 ;;
12495 *)
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $gcc_cv_tool_dirs
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12503 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 break 2
12506 fi
12507done
12508 done
12509IFS=$as_save_IFS
12510
12511 ;;
12512esac
12513fi
12514OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12515if test -n "$OBJCOPY_FOR_TARGET"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12517$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12518else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520$as_echo "no" >&6; }
12521fi
12522
12523
12524fi
12525if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12526
12527
12528if test -n "$OBJCOPY_FOR_TARGET"; then
12529 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12530elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12531 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12532fi
12533
12534if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12535 for ncn_progname in objcopy; do
12536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12537set dummy ${ncn_progname}; ac_word=$2
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12540if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12541 $as_echo_n "(cached) " >&6
12542else
12543 if test -n "$OBJCOPY_FOR_TARGET"; then
12544 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12545else
12546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547for as_dir in $PATH
12548do
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12553 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12556 fi
12557done
12558 done
12559IFS=$as_save_IFS
12560
12561fi
12562fi
12563OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12564if test -n "$OBJCOPY_FOR_TARGET"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12566$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12567else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
12570fi
12571
12572
12573 done
12574fi
12575
12576if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12577 for ncn_progname in objcopy; do
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12579$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12580 if test -x $with_build_time_tools/${ncn_progname}; then
12581 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583$as_echo "yes" >&6; }
12584 break
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588 fi
12589 done
12590fi
12591
12592if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12593 for ncn_progname in objcopy; do
12594 if test -n "$ncn_target_tool_prefix"; then
12595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12596set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12599if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12600 $as_echo_n "(cached) " >&6
12601else
12602 if test -n "$OBJCOPY_FOR_TARGET"; then
12603 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12604else
12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606for as_dir in $PATH
12607do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12612 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12615 fi
12616done
12617 done
12618IFS=$as_save_IFS
12619
12620fi
12621fi
12622OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12623if test -n "$OBJCOPY_FOR_TARGET"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12625$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12626else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
12629fi
12630
12631
12632 fi
12633 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12635set dummy ${ncn_progname}; ac_word=$2
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_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12639 $as_echo_n "(cached) " >&6
12640else
12641 if test -n "$OBJCOPY_FOR_TARGET"; then
12642 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12643else
12644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645for as_dir in $PATH
12646do
12647 IFS=$as_save_IFS
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12651 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 break 2
12654 fi
12655done
12656 done
12657IFS=$as_save_IFS
12658
12659fi
12660fi
12661OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12662if test -n "$OBJCOPY_FOR_TARGET"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12664$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12665else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667$as_echo "no" >&6; }
12668fi
12669
12670
12671 fi
12672 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12673 done
12674fi
12675
12676if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12677 set dummy objcopy
12678 if test $build = $target ; then
12679 OBJCOPY_FOR_TARGET="$2"
12680 else
12681 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12682 fi
12683else
12684 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12685fi
12686
12687else
12688 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12689fi
12690
12691
12692
12693
2429c060
PB
12694if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12695 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12697$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12698 if test -x $with_build_time_tools/objdump; then
12699 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12700 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12702$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12703 else
81ecdfbb
RW
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
3a35eeb3 12706 fi
2429c060
PB
12707 elif test $build != $host && test $have_gcc_for_target = yes; then
12708 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12709 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12710 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12711 fi
12712fi
c6b750e1 12713if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12714 # Extract the first word of "objdump", so it can be a program name with args.
12715set dummy objdump; ac_word=$2
81ecdfbb
RW
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12718if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12719 $as_echo_n "(cached) " >&6
2429c060 12720else
c6b750e1
DJ
12721 case $OBJDUMP_FOR_TARGET in
12722 [\\/]* | ?:[\\/]*)
2429c060
PB
12723 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12724 ;;
2429c060 12725 *)
c6b750e1
DJ
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727for as_dir in $gcc_cv_tool_dirs
12728do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
81ecdfbb 12731 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12733 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12735 break 2
12736 fi
12737done
81ecdfbb
RW
12738 done
12739IFS=$as_save_IFS
c6b750e1 12740
2429c060
PB
12741 ;;
12742esac
12743fi
c6b750e1 12744OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12745if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12747$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12748else
81ecdfbb
RW
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
2429c060
PB
12751fi
12752
81ecdfbb 12753
2429c060
PB
12754fi
12755if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12756
12757
12758if test -n "$OBJDUMP_FOR_TARGET"; then
12759 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12760elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12761 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12762fi
12763
12764if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12765 for ncn_progname in objdump; do
12766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12770if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12771 $as_echo_n "(cached) " >&6
9a819804
AO
12772else
12773 if test -n "$OBJDUMP_FOR_TARGET"; then
12774 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12775else
12776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777for as_dir in $PATH
12778do
12779 IFS=$as_save_IFS
12780 test -z "$as_dir" && as_dir=.
81ecdfbb 12781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12783 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12785 break 2
12786 fi
12787done
81ecdfbb
RW
12788 done
12789IFS=$as_save_IFS
9a819804
AO
12790
12791fi
12792fi
12793OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12794if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12796$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12797else
81ecdfbb
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
9a819804
AO
12800fi
12801
81ecdfbb 12802
9a819804
AO
12803 done
12804fi
12805
12806if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12807 for ncn_progname in objdump; do
81ecdfbb
RW
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12809$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12810 if test -x $with_build_time_tools/${ncn_progname}; then
12811 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12813$as_echo "yes" >&6; }
2429c060
PB
12814 break
12815 else
81ecdfbb
RW
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
2429c060
PB
12818 fi
12819 done
12820fi
12821
12822if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12823 for ncn_progname in objdump; do
12824 if test -n "$ncn_target_tool_prefix"; then
12825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12826set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12829if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12830 $as_echo_n "(cached) " >&6
5ae72758
DJ
12831else
12832 if test -n "$OBJDUMP_FOR_TARGET"; then
12833 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12834else
c6b750e1
DJ
12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
81ecdfbb 12840 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12842 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12844 break 2
12845 fi
12846done
81ecdfbb
RW
12847 done
12848IFS=$as_save_IFS
c6b750e1 12849
5ae72758
DJ
12850fi
12851fi
c6b750e1 12852OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12853if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12855$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12856else
81ecdfbb
RW
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
5ae72758
DJ
12859fi
12860
81ecdfbb 12861
2429c060
PB
12862 fi
12863 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12865set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
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_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12869 $as_echo_n "(cached) " >&6
5ae72758
DJ
12870else
12871 if test -n "$OBJDUMP_FOR_TARGET"; then
12872 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12873else
c6b750e1
DJ
12874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875for as_dir in $PATH
12876do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
81ecdfbb 12879 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12881 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12883 break 2
12884 fi
12885done
81ecdfbb
RW
12886 done
12887IFS=$as_save_IFS
c6b750e1 12888
5ae72758
DJ
12889fi
12890fi
c6b750e1 12891OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12892if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12894$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12895else
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897$as_echo "no" >&6; }
5ae72758 12898fi
c6b750e1 12899
81ecdfbb 12900
2429c060
PB
12901 fi
12902 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12903 done
12904fi
c6b750e1 12905
5ae72758
DJ
12906if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12907 set dummy objdump
12908 if test $build = $target ; then
12909 OBJDUMP_FOR_TARGET="$2"
12910 else
12911 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12912 fi
d3f5afc4
MS
12913else
12914 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12915fi
12916
3a35eeb3
PB
12917else
12918 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12919fi
12920
12921
12922
12923
12924if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12925 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12927$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12928 if test -x $with_build_time_tools/ranlib; then
12929 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12930 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12932$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12933 else
81ecdfbb
RW
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
3a35eeb3 12936 fi
2429c060
PB
12937 elif test $build != $host && test $have_gcc_for_target = yes; then
12938 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12939 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12940 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12941 fi
12942fi
c6b750e1 12943if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12944 # Extract the first word of "ranlib", so it can be a program name with args.
12945set dummy ranlib; ac_word=$2
81ecdfbb
RW
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12948if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12949 $as_echo_n "(cached) " >&6
2429c060 12950else
c6b750e1
DJ
12951 case $RANLIB_FOR_TARGET in
12952 [\\/]* | ?:[\\/]*)
2429c060
PB
12953 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12954 ;;
2429c060 12955 *)
c6b750e1
DJ
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $gcc_cv_tool_dirs
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
81ecdfbb 12961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12963 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12965 break 2
12966 fi
12967done
81ecdfbb
RW
12968 done
12969IFS=$as_save_IFS
c6b750e1 12970
2429c060
PB
12971 ;;
12972esac
12973fi
c6b750e1 12974RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12975if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12977$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12978else
81ecdfbb
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
2429c060
PB
12981fi
12982
81ecdfbb 12983
2429c060
PB
12984fi
12985if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12986
12987
12988if test -n "$RANLIB_FOR_TARGET"; then
12989 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12990elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12991 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12992fi
12993
12994if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12995 for ncn_progname in ranlib; do
12996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12997set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13000if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13001 $as_echo_n "(cached) " >&6
9a819804
AO
13002else
13003 if test -n "$RANLIB_FOR_TARGET"; then
13004 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13005else
13006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007for as_dir in $PATH
13008do
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
81ecdfbb 13011 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13013 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13015 break 2
13016 fi
13017done
81ecdfbb
RW
13018 done
13019IFS=$as_save_IFS
9a819804
AO
13020
13021fi
13022fi
13023RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13024if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13026$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13027else
81ecdfbb
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
9a819804
AO
13030fi
13031
81ecdfbb 13032
9a819804
AO
13033 done
13034fi
13035
13036if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13037 for ncn_progname in ranlib; do
81ecdfbb
RW
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13039$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13040 if test -x $with_build_time_tools/${ncn_progname}; then
13041 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043$as_echo "yes" >&6; }
2429c060
PB
13044 break
13045 else
81ecdfbb
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047$as_echo "no" >&6; }
2429c060
PB
13048 fi
13049 done
13050fi
13051
13052if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13053 for ncn_progname in ranlib; do
13054 if test -n "$ncn_target_tool_prefix"; then
13055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13056set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13059if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13060 $as_echo_n "(cached) " >&6
859789af 13061else
55db4b87
PB
13062 if test -n "$RANLIB_FOR_TARGET"; then
13063 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13064else
c6b750e1
DJ
13065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066for as_dir in $PATH
13067do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
81ecdfbb 13070 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13072 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13074 break 2
13075 fi
13076done
81ecdfbb
RW
13077 done
13078IFS=$as_save_IFS
c6b750e1 13079
859789af
AC
13080fi
13081fi
c6b750e1 13082RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13083if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13085$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13086else
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088$as_echo "no" >&6; }
859789af
AC
13089fi
13090
81ecdfbb 13091
2429c060
PB
13092 fi
13093 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13095set dummy ${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13099 $as_echo_n "(cached) " >&6
859789af 13100else
05cbd757
PB
13101 if test -n "$RANLIB_FOR_TARGET"; then
13102 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13103else
c6b750e1
DJ
13104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105for as_dir in $PATH
13106do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
81ecdfbb 13109 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13111 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13113 break 2
13114 fi
13115done
81ecdfbb
RW
13116 done
13117IFS=$as_save_IFS
c6b750e1 13118
859789af
AC
13119fi
13120fi
c6b750e1 13121RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13122if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13124$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13125else
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127$as_echo "no" >&6; }
859789af 13128fi
c6b750e1 13129
81ecdfbb 13130
2429c060
PB
13131 fi
13132 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13133 done
13134fi
c6b750e1 13135
2429c060
PB
13136if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13137 set dummy ranlib
13138 if test $build = $target ; then
13139 RANLIB_FOR_TARGET="$2"
13140 else
13141 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13142 fi
d3f5afc4
MS
13143else
13144 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13145fi
05cbd757 13146
3a35eeb3
PB
13147else
13148 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13149fi
13150
2429c060
PB
13151
13152
13153
b121d7d4
DD
13154if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13155 if test -n "$with_build_time_tools"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13157$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13158 if test -x $with_build_time_tools/readelf; then
13159 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13160 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13162$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165$as_echo "no" >&6; }
13166 fi
13167 elif test $build != $host && test $have_gcc_for_target = yes; then
13168 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13169 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13170 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13171 fi
13172fi
13173if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13174 # Extract the first word of "readelf", so it can be a program name with args.
13175set dummy readelf; ac_word=$2
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13178if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13179 $as_echo_n "(cached) " >&6
13180else
13181 case $READELF_FOR_TARGET in
13182 [\\/]* | ?:[\\/]*)
13183 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13184 ;;
13185 *)
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $gcc_cv_tool_dirs
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13193 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197done
13198 done
13199IFS=$as_save_IFS
13200
13201 ;;
13202esac
13203fi
13204READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13205if test -n "$READELF_FOR_TARGET"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13207$as_echo "$READELF_FOR_TARGET" >&6; }
13208else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212
13213
13214fi
13215if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13216
13217
13218if test -n "$READELF_FOR_TARGET"; then
13219 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13220elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13221 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13222fi
13223
13224if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13225 for ncn_progname in readelf; do
13226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13227set dummy ${ncn_progname}; ac_word=$2
13228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13230if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13231 $as_echo_n "(cached) " >&6
13232else
13233 if test -n "$READELF_FOR_TARGET"; then
13234 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13235else
13236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237for as_dir in $PATH
13238do
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13243 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13245 break 2
13246 fi
13247done
13248 done
13249IFS=$as_save_IFS
13250
13251fi
13252fi
13253READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13254if test -n "$READELF_FOR_TARGET"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13256$as_echo "$READELF_FOR_TARGET" >&6; }
13257else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
13260fi
13261
13262
13263 done
13264fi
13265
13266if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13267 for ncn_progname in readelf; do
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13269$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13270 if test -x $with_build_time_tools/${ncn_progname}; then
13271 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13273$as_echo "yes" >&6; }
13274 break
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278 fi
13279 done
13280fi
13281
13282if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13283 for ncn_progname in readelf; do
13284 if test -n "$ncn_target_tool_prefix"; then
13285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13289if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13290 $as_echo_n "(cached) " >&6
13291else
13292 if test -n "$READELF_FOR_TARGET"; then
13293 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13294else
13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13302 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306done
13307 done
13308IFS=$as_save_IFS
13309
13310fi
13311fi
13312READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13313if test -n "$READELF_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13315$as_echo "$READELF_FOR_TARGET" >&6; }
13316else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318$as_echo "no" >&6; }
13319fi
13320
13321
13322 fi
13323 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13325set dummy ${ncn_progname}; ac_word=$2
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_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13329 $as_echo_n "(cached) " >&6
13330else
13331 if test -n "$READELF_FOR_TARGET"; then
13332 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13333else
13334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335for as_dir in $PATH
13336do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13341 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 break 2
13344 fi
13345done
13346 done
13347IFS=$as_save_IFS
13348
13349fi
13350fi
13351READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13352if test -n "$READELF_FOR_TARGET"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13354$as_echo "$READELF_FOR_TARGET" >&6; }
13355else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357$as_echo "no" >&6; }
13358fi
13359
13360
13361 fi
13362 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13363 done
13364fi
13365
13366if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13367 set dummy readelf
13368 if test $build = $target ; then
13369 READELF_FOR_TARGET="$2"
13370 else
13371 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13372 fi
13373else
13374 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13375fi
13376
13377else
13378 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13379fi
13380
13381
13382
13383
2429c060
PB
13384if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13385 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13387$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13388 if test -x $with_build_time_tools/strip; then
13389 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13390 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13392$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13393 else
81ecdfbb
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395$as_echo "no" >&6; }
3a35eeb3 13396 fi
2429c060
PB
13397 elif test $build != $host && test $have_gcc_for_target = yes; then
13398 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13399 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13400 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13401 fi
13402fi
c6b750e1 13403if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13404 # Extract the first word of "strip", so it can be a program name with args.
13405set dummy strip; ac_word=$2
81ecdfbb
RW
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13408if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13409 $as_echo_n "(cached) " >&6
2429c060 13410else
c6b750e1
DJ
13411 case $STRIP_FOR_TARGET in
13412 [\\/]* | ?:[\\/]*)
2429c060
PB
13413 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13414 ;;
2429c060 13415 *)
c6b750e1
DJ
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417for as_dir in $gcc_cv_tool_dirs
13418do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
81ecdfbb 13421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13423 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13425 break 2
13426 fi
13427done
81ecdfbb
RW
13428 done
13429IFS=$as_save_IFS
c6b750e1 13430
2429c060
PB
13431 ;;
13432esac
13433fi
c6b750e1 13434STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13435if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13437$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13438else
81ecdfbb
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
2429c060
PB
13441fi
13442
81ecdfbb 13443
2429c060
PB
13444fi
13445if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13446
13447
13448if test -n "$STRIP_FOR_TARGET"; then
13449 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13450elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13451 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13452fi
13453
13454if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13455 for ncn_progname in strip; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13457set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13460if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13461 $as_echo_n "(cached) " >&6
9a819804
AO
13462else
13463 if test -n "$STRIP_FOR_TARGET"; then
13464 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13465else
13466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467for as_dir in $PATH
13468do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
81ecdfbb 13471 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13473 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13475 break 2
13476 fi
13477done
81ecdfbb
RW
13478 done
13479IFS=$as_save_IFS
9a819804
AO
13480
13481fi
13482fi
13483STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13484if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13486$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13487else
81ecdfbb
RW
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
9a819804
AO
13490fi
13491
81ecdfbb 13492
9a819804
AO
13493 done
13494fi
13495
13496if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13497 for ncn_progname in strip; do
81ecdfbb
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13499$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503$as_echo "yes" >&6; }
2429c060
PB
13504 break
13505 else
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
2429c060
PB
13508 fi
13509 done
13510fi
13511
13512if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13513 for ncn_progname in strip; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13516set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13519if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13520 $as_echo_n "(cached) " >&6
7e0f7140
GK
13521else
13522 if test -n "$STRIP_FOR_TARGET"; then
13523 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
81ecdfbb 13530 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13532 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13534 break 2
13535 fi
13536done
81ecdfbb
RW
13537 done
13538IFS=$as_save_IFS
c6b750e1 13539
7e0f7140
GK
13540fi
13541fi
c6b750e1 13542STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13543if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13545$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13546else
81ecdfbb
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
7e0f7140
GK
13549fi
13550
81ecdfbb 13551
2429c060
PB
13552 fi
13553 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13555set dummy ${ncn_progname}; 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_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13559 $as_echo_n "(cached) " >&6
7e0f7140
GK
13560else
13561 if test -n "$STRIP_FOR_TARGET"; then
13562 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13563else
c6b750e1
DJ
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
81ecdfbb 13569 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13571 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13573 break 2
13574 fi
13575done
81ecdfbb
RW
13576 done
13577IFS=$as_save_IFS
c6b750e1 13578
7e0f7140
GK
13579fi
13580fi
c6b750e1 13581STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13582if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13584$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13585else
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
7e0f7140 13588fi
c6b750e1 13589
81ecdfbb 13590
2429c060
PB
13591 fi
13592 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13593 done
13594fi
c6b750e1 13595
7e0f7140
GK
13596if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13597 set dummy strip
13598 if test $build = $target ; then
13599 STRIP_FOR_TARGET="$2"
13600 else
13601 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13602 fi
d3f5afc4
MS
13603else
13604 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13605fi
13606
3a35eeb3
PB
13607else
13608 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13609fi
13610
13611
13612
13613
13614if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13615 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13617$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13618 if test -x $with_build_time_tools/windres; then
13619 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13620 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13622$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13623 else
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625$as_echo "no" >&6; }
3a35eeb3 13626 fi
2429c060
PB
13627 elif test $build != $host && test $have_gcc_for_target = yes; then
13628 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13629 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13630 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13631 fi
13632fi
c6b750e1 13633if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13634 # Extract the first word of "windres", so it can be a program name with args.
13635set dummy windres; ac_word=$2
81ecdfbb
RW
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13638if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13639 $as_echo_n "(cached) " >&6
2429c060 13640else
c6b750e1
DJ
13641 case $WINDRES_FOR_TARGET in
13642 [\\/]* | ?:[\\/]*)
2429c060
PB
13643 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13644 ;;
2429c060 13645 *)
c6b750e1
DJ
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647for as_dir in $gcc_cv_tool_dirs
13648do
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
81ecdfbb 13651 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13653 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13655 break 2
13656 fi
13657done
81ecdfbb
RW
13658 done
13659IFS=$as_save_IFS
c6b750e1 13660
2429c060
PB
13661 ;;
13662esac
13663fi
c6b750e1 13664WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13665if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13667$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13668else
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
2429c060
PB
13671fi
13672
81ecdfbb 13673
2429c060
PB
13674fi
13675if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13676
13677
13678if test -n "$WINDRES_FOR_TARGET"; then
13679 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13680elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13681 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13682fi
13683
13684if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13685 for ncn_progname in windres; do
13686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13687set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13690if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13691 $as_echo_n "(cached) " >&6
9a819804
AO
13692else
13693 if test -n "$WINDRES_FOR_TARGET"; then
13694 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13695else
13696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697for as_dir in $PATH
13698do
13699 IFS=$as_save_IFS
13700 test -z "$as_dir" && as_dir=.
81ecdfbb 13701 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13703 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13705 break 2
13706 fi
13707done
81ecdfbb
RW
13708 done
13709IFS=$as_save_IFS
9a819804
AO
13710
13711fi
13712fi
13713WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13714if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13716$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13717else
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
9a819804
AO
13720fi
13721
81ecdfbb 13722
9a819804
AO
13723 done
13724fi
13725
13726if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13727 for ncn_progname in windres; do
81ecdfbb
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13729$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13730 if test -x $with_build_time_tools/${ncn_progname}; then
13731 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13733$as_echo "yes" >&6; }
2429c060
PB
13734 break
13735 else
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
2429c060
PB
13738 fi
13739 done
13740fi
13741
13742if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13743 for ncn_progname in windres; do
13744 if test -n "$ncn_target_tool_prefix"; then
13745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13746set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13749if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13750 $as_echo_n "(cached) " >&6
859789af 13751else
55db4b87
PB
13752 if test -n "$WINDRES_FOR_TARGET"; then
13753 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13754else
c6b750e1
DJ
13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756for as_dir in $PATH
13757do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
81ecdfbb 13760 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13762 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13764 break 2
13765 fi
13766done
81ecdfbb
RW
13767 done
13768IFS=$as_save_IFS
c6b750e1 13769
859789af
AC
13770fi
13771fi
c6b750e1 13772WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13773if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13775$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13776else
81ecdfbb
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778$as_echo "no" >&6; }
859789af
AC
13779fi
13780
81ecdfbb 13781
2429c060
PB
13782 fi
13783 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13785set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13788if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13789 $as_echo_n "(cached) " >&6
859789af 13790else
05cbd757
PB
13791 if test -n "$WINDRES_FOR_TARGET"; then
13792 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13793else
c6b750e1
DJ
13794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795for as_dir in $PATH
13796do
13797 IFS=$as_save_IFS
13798 test -z "$as_dir" && as_dir=.
81ecdfbb 13799 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13801 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13803 break 2
13804 fi
13805done
81ecdfbb
RW
13806 done
13807IFS=$as_save_IFS
c6b750e1 13808
859789af
AC
13809fi
13810fi
c6b750e1 13811WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13812if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13814$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13815else
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817$as_echo "no" >&6; }
859789af 13818fi
c6b750e1 13819
81ecdfbb 13820
2429c060
PB
13821 fi
13822 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13823 done
13824fi
c6b750e1 13825
05cbd757
PB
13826if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13827 set dummy windres
13828 if test $build = $target ; then
13829 WINDRES_FOR_TARGET="$2"
859789af 13830 else
05cbd757 13831 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13832 fi
d3f5afc4
MS
13833else
13834 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13835fi
13836
3a35eeb3
PB
13837else
13838 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13839fi
13840
852e5f18 13841
0c24b341
NC
13842
13843
13844if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13845 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13847$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13848 if test -x $with_build_time_tools/windmc; then
13849 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13850 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13852$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13853 else
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855$as_echo "no" >&6; }
0c24b341
NC
13856 fi
13857 elif test $build != $host && test $have_gcc_for_target = yes; then
13858 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13859 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13860 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13861 fi
13862fi
13863if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13864 # Extract the first word of "windmc", so it can be a program name with args.
13865set dummy windmc; ac_word=$2
81ecdfbb
RW
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13868if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13869 $as_echo_n "(cached) " >&6
0c24b341
NC
13870else
13871 case $WINDMC_FOR_TARGET in
13872 [\\/]* | ?:[\\/]*)
13873 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13874 ;;
13875 *)
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $gcc_cv_tool_dirs
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
81ecdfbb 13881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13883 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13885 break 2
13886 fi
13887done
81ecdfbb
RW
13888 done
13889IFS=$as_save_IFS
0c24b341
NC
13890
13891 ;;
13892esac
13893fi
13894WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13895if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13897$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13898else
81ecdfbb
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900$as_echo "no" >&6; }
0c24b341
NC
13901fi
13902
81ecdfbb 13903
0c24b341
NC
13904fi
13905if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13906
13907
13908if test -n "$WINDMC_FOR_TARGET"; then
13909 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13910elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13911 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13912fi
13913
13914if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13915 for ncn_progname in windmc; do
13916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13917set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13920if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13921 $as_echo_n "(cached) " >&6
0c24b341
NC
13922else
13923 if test -n "$WINDMC_FOR_TARGET"; then
13924 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13925else
13926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927for as_dir in $PATH
13928do
13929 IFS=$as_save_IFS
13930 test -z "$as_dir" && as_dir=.
81ecdfbb 13931 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13933 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13935 break 2
13936 fi
13937done
81ecdfbb
RW
13938 done
13939IFS=$as_save_IFS
0c24b341
NC
13940
13941fi
13942fi
13943WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13944if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13946$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13947else
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949$as_echo "no" >&6; }
0c24b341
NC
13950fi
13951
81ecdfbb 13952
0c24b341
NC
13953 done
13954fi
13955
13956if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13957 for ncn_progname in windmc; do
81ecdfbb
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13959$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13960 if test -x $with_build_time_tools/${ncn_progname}; then
13961 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13963$as_echo "yes" >&6; }
0c24b341
NC
13964 break
13965 else
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967$as_echo "no" >&6; }
0c24b341
NC
13968 fi
13969 done
13970fi
13971
13972if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13973 for ncn_progname in windmc; do
13974 if test -n "$ncn_target_tool_prefix"; then
13975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13976set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13979if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13980 $as_echo_n "(cached) " >&6
0c24b341
NC
13981else
13982 if test -n "$WINDMC_FOR_TARGET"; then
13983 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13984else
13985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986for as_dir in $PATH
13987do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
81ecdfbb 13990 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13992 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13994 break 2
13995 fi
13996done
81ecdfbb
RW
13997 done
13998IFS=$as_save_IFS
0c24b341
NC
13999
14000fi
14001fi
14002WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14003if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14005$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14006else
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008$as_echo "no" >&6; }
0c24b341
NC
14009fi
14010
81ecdfbb 14011
0c24b341
NC
14012 fi
14013 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14015set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14018if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14019 $as_echo_n "(cached) " >&6
0c24b341
NC
14020else
14021 if test -n "$WINDMC_FOR_TARGET"; then
14022 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14023else
14024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025for as_dir in $PATH
14026do
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
81ecdfbb 14029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14031 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14033 break 2
14034 fi
14035done
81ecdfbb
RW
14036 done
14037IFS=$as_save_IFS
0c24b341
NC
14038
14039fi
14040fi
14041WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14042if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14044$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14045else
81ecdfbb
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047$as_echo "no" >&6; }
0c24b341
NC
14048fi
14049
81ecdfbb 14050
0c24b341
NC
14051 fi
14052 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14053 done
14054fi
14055
14056if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14057 set dummy windmc
14058 if test $build = $target ; then
14059 WINDMC_FOR_TARGET="$2"
14060 else
14061 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14062 fi
14063else
14064 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14065fi
14066
14067else
14068 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14069fi
14070
14071
be01d343
PB
14072RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14073
81ecdfbb
RW
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14075$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14076if test "x${build}" != "x${host}" ; then
2429c060
PB
14077 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
b8025f34 14079 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14082 else
14083 # Canadian cross, just use what we found
81ecdfbb
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14085$as_echo "pre-installed" >&6; }
2429c060 14086 fi
be01d343
PB
14087else
14088 ok=yes
14089 case " ${configdirs} " in
14090 *" binutils "*) ;;
14091 *) ok=no ;;
14092 esac
c6b750e1 14093
be01d343
PB
14094 if test $ok = yes; then
14095 # An in-tree tool is available and we can use it
14096 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14098$as_echo "just compiled" >&6; }
2429c060
PB
14099 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14100 # We already found the complete path
b8025f34 14101 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14103$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14104 elif test "x$target" = "x$host"; then
14105 # We can use an host tool
14106 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14108$as_echo "host tool" >&6; }
be01d343
PB
14109 else
14110 # We need a cross tool
81ecdfbb
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112$as_echo "pre-installed" >&6; }
be01d343
PB
14113 fi
14114fi
4b900473 14115
81ecdfbb
RW
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14117$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14118if test "x${build}" != "x${host}" ; then
2429c060
PB
14119 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
b8025f34 14121 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14124 else
14125 # Canadian cross, just use what we found
81ecdfbb
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14127$as_echo "pre-installed" >&6; }
2429c060 14128 fi
be01d343
PB
14129else
14130 ok=yes
14131 case " ${configdirs} " in
14132 *" gas "*) ;;
14133 *) ok=no ;;
14134 esac
c6b750e1 14135
be01d343
PB
14136 if test $ok = yes; then
14137 # An in-tree tool is available and we can use it
14138 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14140$as_echo "just compiled" >&6; }
2429c060
PB
14141 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
b8025f34 14143 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14146 elif test "x$target" = "x$host"; then
14147 # We can use an host tool
14148 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14150$as_echo "host tool" >&6; }
be01d343
PB
14151 else
14152 # We need a cross tool
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
be01d343
PB
14155 fi
14156fi
4b900473 14157
81ecdfbb
RW
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14159$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14160if test "x${build}" != "x${host}" ; then
2429c060
PB
14161 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
b8025f34 14163 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14166 else
14167 # Canadian cross, just use what we found
81ecdfbb
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14169$as_echo "pre-installed" >&6; }
2429c060 14170 fi
be01d343
PB
14171else
14172 ok=yes
14173 case " ${configdirs} " in
14174 *" gcc "*) ;;
14175 *) ok=no ;;
14176 esac
c6b750e1 14177
be01d343
PB
14178 if test $ok = yes; then
14179 # An in-tree tool is available and we can use it
14180 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14182$as_echo "just compiled" >&6; }
2429c060
PB
14183 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
b8025f34 14185 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14188 elif test "x$target" = "x$host"; then
14189 # We can use an host tool
14190 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14192$as_echo "host tool" >&6; }
be01d343
PB
14193 else
14194 # We need a cross tool
81ecdfbb
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196$as_echo "pre-installed" >&6; }
be01d343
PB
14197 fi
14198fi
4b900473 14199
81ecdfbb
RW
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14201$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14202if test "x${build}" != "x${host}" ; then
2429c060
PB
14203 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
b8025f34 14205 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14208 else
14209 # Canadian cross, just use what we found
81ecdfbb
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14211$as_echo "pre-installed" >&6; }
2429c060 14212 fi
be01d343
PB
14213else
14214 ok=yes
14215 case " ${configdirs} " in
14216 *" gcc "*) ;;
14217 *) ok=no ;;
14218 esac
14219 case ,${enable_languages}, in
14220 *,c++,*) ;;
14221 *) ok=no ;;
14222 esac
14223 if test $ok = yes; then
14224 # An in-tree tool is available and we can use it
95e43135 14225 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
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14227$as_echo "just compiled" >&6; }
2429c060
PB
14228 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
b8025f34 14230 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14233 elif test "x$target" = "x$host"; then
14234 # We can use an host tool
14235 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14237$as_echo "host tool" >&6; }
be01d343
PB
14238 else
14239 # We need a cross tool
81ecdfbb
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241$as_echo "pre-installed" >&6; }
be01d343
PB
14242 fi
14243fi
4b900473 14244
81ecdfbb
RW
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14246$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14247if test "x${build}" != "x${host}" ; then
2429c060
PB
14248 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14249 # We already found the complete path
b8025f34 14250 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14252$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14253 else
14254 # Canadian cross, just use what we found
81ecdfbb
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14256$as_echo "pre-installed" >&6; }
2429c060 14257 fi
be01d343
PB
14258else
14259 ok=yes
14260 case " ${configdirs} " in
14261 *" gcc "*) ;;
14262 *) ok=no ;;
14263 esac
14264 case ,${enable_languages}, in
14265 *,c++,*) ;;
14266 *) ok=no ;;
14267 esac
14268 if test $ok = yes; then
14269 # An in-tree tool is available and we can use it
95e43135 14270 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
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14272$as_echo "just compiled" >&6; }
2429c060
PB
14273 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14274 # We already found the complete path
b8025f34 14275 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14277$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14278 elif test "x$target" = "x$host"; then
14279 # We can use an host tool
14280 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14282$as_echo "host tool" >&6; }
be01d343
PB
14283 else
14284 # We need a cross tool
81ecdfbb
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14286$as_echo "pre-installed" >&6; }
be01d343
PB
14287 fi
14288fi
4b900473 14289
81ecdfbb
RW
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14291$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14292if test "x${build}" != "x${host}" ; then
2429c060
PB
14293 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14294 # We already found the complete path
b8025f34 14295 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14297$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14298 else
14299 # Canadian cross, just use what we found
81ecdfbb
RW
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14301$as_echo "pre-installed" >&6; }
2429c060 14302 fi
be01d343
PB
14303else
14304 ok=yes
14305 case " ${configdirs} " in
14306 *" binutils "*) ;;
14307 *) ok=no ;;
14308 esac
c6b750e1 14309
be01d343
PB
14310 if test $ok = yes; then
14311 # An in-tree tool is available and we can use it
14312 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14314$as_echo "just compiled" >&6; }
2429c060
PB
14315 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14316 # We already found the complete path
b8025f34 14317 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14320 elif test "x$target" = "x$host"; then
14321 # We can use an host tool
14322 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14324$as_echo "host tool" >&6; }
be01d343
PB
14325 else
14326 # We need a cross tool
81ecdfbb
RW
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14328$as_echo "pre-installed" >&6; }
be01d343
PB
14329 fi
14330fi
4b900473 14331
81ecdfbb
RW
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14333$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14334if test "x${build}" != "x${host}" ; then
2429c060
PB
14335 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
b8025f34 14337 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14340 else
14341 # Canadian cross, just use what we found
81ecdfbb
RW
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14343$as_echo "pre-installed" >&6; }
2429c060 14344 fi
be01d343
PB
14345else
14346 ok=yes
14347 case " ${configdirs} " in
14348 *" gcc "*) ;;
14349 *) ok=no ;;
14350 esac
c6b750e1 14351
be01d343
PB
14352 if test $ok = yes; then
14353 # An in-tree tool is available and we can use it
14354 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14356$as_echo "just compiled" >&6; }
2429c060
PB
14357 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14358 # We already found the complete path
b8025f34 14359 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14361$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14362 elif test "x$target" = "x$host"; then
14363 # We can use an host tool
14364 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14366$as_echo "host tool" >&6; }
be01d343
PB
14367 else
14368 # We need a cross tool
81ecdfbb
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14370$as_echo "pre-installed" >&6; }
be01d343
PB
14371 fi
14372fi
4b900473 14373
81ecdfbb
RW
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14375$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14376if test "x${build}" != "x${host}" ; then
2429c060
PB
14377 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14378 # We already found the complete path
b8025f34 14379 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14381$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14382 else
14383 # Canadian cross, just use what we found
81ecdfbb
RW
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385$as_echo "pre-installed" >&6; }
2429c060 14386 fi
be01d343
PB
14387else
14388 ok=yes
14389 case " ${configdirs} " in
14390 *" gcc "*) ;;
14391 *) ok=no ;;
14392 esac
14393 case ,${enable_languages}, in
14394 *,fortran,*) ;;
14395 *) ok=no ;;
14396 esac
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401$as_echo "just compiled" >&6; }
2429c060
PB
14402 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
b8025f34 14404 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411$as_echo "host tool" >&6; }
be01d343
PB
14412 else
14413 # We need a cross tool
81ecdfbb
RW
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
be01d343
PB
14416 fi
14417fi
4b900473 14418
e552509b
ILT
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14420$as_echo_n "checking where to find the target gccgo... " >&6; }
14421if test "x${build}" != "x${host}" ; then
14422 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $GOC_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
14427 else
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430$as_echo "pre-installed" >&6; }
14431 fi
14432else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" gcc "*) ;;
14436 *) ok=no ;;
14437 esac
14438 case ,${enable_languages}, in
14439 *,go,*) ;;
14440 *) ok=no ;;
14441 esac
14442 if test $ok = yes; then
14443 # An in-tree tool is available and we can use it
14444 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14446$as_echo "just compiled" >&6; }
14447 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14448 # We already found the complete path
14449 ac_dir=`dirname $GOC_FOR_TARGET`
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14451$as_echo "pre-installed in $ac_dir" >&6; }
14452 elif test "x$target" = "x$host"; then
14453 # We can use an host tool
14454 GOC_FOR_TARGET='$(GOC)'
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14456$as_echo "host tool" >&6; }
14457 else
14458 # We need a cross tool
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460$as_echo "pre-installed" >&6; }
14461 fi
14462fi
14463
81ecdfbb
RW
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14465$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14466if test "x${build}" != "x${host}" ; then
2429c060
PB
14467 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
b8025f34 14469 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14472 else
14473 # Canadian cross, just use what we found
81ecdfbb
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
2429c060 14476 fi
be01d343
PB
14477else
14478 ok=yes
14479 case " ${configdirs} " in
14480 *" ld "*) ;;
14481 *) ok=no ;;
14482 esac
c6b750e1 14483
be01d343
PB
14484 if test $ok = yes; then
14485 # An in-tree tool is available and we can use it
14486 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14488$as_echo "just compiled" >&6; }
2429c060
PB
14489 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14490 # We already found the complete path
b8025f34 14491 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14493$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14494 elif test "x$target" = "x$host"; then
14495 # We can use an host tool
14496 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14498$as_echo "host tool" >&6; }
be01d343
PB
14499 else
14500 # We need a cross tool
81ecdfbb
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14502$as_echo "pre-installed" >&6; }
be01d343
PB
14503 fi
14504fi
4b900473 14505
81ecdfbb
RW
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14507$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14508if test "x${build}" != "x${host}" ; then
2429c060
PB
14509 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
b8025f34 14511 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14514 else
14515 # Canadian cross, just use what we found
81ecdfbb
RW
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14517$as_echo "pre-installed" >&6; }
2429c060 14518 fi
be01d343 14519else
2429c060
PB
14520 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14521 # We already found the complete path
b8025f34 14522 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14524$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14525 elif test "x$target" = "x$host"; then
be01d343
PB
14526 # We can use an host tool
14527 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14529$as_echo "host tool" >&6; }
be01d343
PB
14530 else
14531 # We need a cross tool
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14533$as_echo "pre-installed" >&6; }
be01d343
PB
14534 fi
14535fi
4b900473 14536
81ecdfbb
RW
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14538$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14539if test "x${build}" != "x${host}" ; then
2429c060
PB
14540 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
b8025f34 14542 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14545 else
14546 # Canadian cross, just use what we found
81ecdfbb
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14548$as_echo "pre-installed" >&6; }
2429c060 14549 fi
be01d343
PB
14550else
14551 ok=yes
14552 case " ${configdirs} " in
14553 *" binutils "*) ;;
14554 *) ok=no ;;
14555 esac
c6b750e1 14556
be01d343
PB
14557 if test $ok = yes; then
14558 # An in-tree tool is available and we can use it
14559 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14561$as_echo "just compiled" >&6; }
2429c060
PB
14562 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14563 # We already found the complete path
b8025f34 14564 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14566$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14567 elif test "x$target" = "x$host"; then
14568 # We can use an host tool
14569 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14571$as_echo "host tool" >&6; }
be01d343
PB
14572 else
14573 # We need a cross tool
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575$as_echo "pre-installed" >&6; }
be01d343
PB
14576 fi
14577fi
4b900473 14578
6b91c541
AP
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14580$as_echo_n "checking where to find the target objcopy... " >&6; }
14581if test "x${build}" != "x${host}" ; then
14582 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
14587 else
14588 # Canadian cross, just use what we found
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590$as_echo "pre-installed" >&6; }
14591 fi
14592else
14593 ok=yes
14594 case " ${configdirs} " in
14595 *" binutils "*) ;;
14596 *) ok=no ;;
14597 esac
14598
14599 if test $ok = yes; then
14600 # An in-tree tool is available and we can use it
14601 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14603$as_echo "just compiled" >&6; }
14604 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
14606 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608$as_echo "pre-installed in $ac_dir" >&6; }
14609 elif test "x$target" = "x$host"; then
14610 # We can use an host tool
1b6c0831 14611 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14613$as_echo "host tool" >&6; }
14614 else
14615 # We need a cross tool
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14617$as_echo "pre-installed" >&6; }
14618 fi
14619fi
14620
81ecdfbb
RW
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14622$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14623if test "x${build}" != "x${host}" ; then
2429c060
PB
14624 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
b8025f34 14626 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14629 else
14630 # Canadian cross, just use what we found
81ecdfbb
RW
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14632$as_echo "pre-installed" >&6; }
2429c060 14633 fi
be01d343
PB
14634else
14635 ok=yes
14636 case " ${configdirs} " in
14637 *" binutils "*) ;;
14638 *) ok=no ;;
14639 esac
c6b750e1 14640
be01d343
PB
14641 if test $ok = yes; then
14642 # An in-tree tool is available and we can use it
14643 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14645$as_echo "just compiled" >&6; }
2429c060
PB
14646 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
b8025f34 14648 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14651 elif test "x$target" = "x$host"; then
14652 # We can use an host tool
14653 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14655$as_echo "host tool" >&6; }
be01d343
PB
14656 else
14657 # We need a cross tool
81ecdfbb
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659$as_echo "pre-installed" >&6; }
be01d343
PB
14660 fi
14661fi
4b900473 14662
81ecdfbb
RW
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14664$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14665if test "x${build}" != "x${host}" ; then
2429c060
PB
14666 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
b8025f34 14668 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14671 else
14672 # Canadian cross, just use what we found
81ecdfbb
RW
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674$as_echo "pre-installed" >&6; }
2429c060 14675 fi
be01d343
PB
14676else
14677 ok=yes
14678 case " ${configdirs} " in
14679 *" binutils "*) ;;
14680 *) ok=no ;;
14681 esac
c6b750e1 14682
be01d343
PB
14683 if test $ok = yes; then
14684 # An in-tree tool is available and we can use it
14685 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14687$as_echo "just compiled" >&6; }
2429c060
PB
14688 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14689 # We already found the complete path
b8025f34 14690 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14692$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14693 elif test "x$target" = "x$host"; then
14694 # We can use an host tool
14695 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14697$as_echo "host tool" >&6; }
be01d343
PB
14698 else
14699 # We need a cross tool
81ecdfbb
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14701$as_echo "pre-installed" >&6; }
be01d343
PB
14702 fi
14703fi
4b900473 14704
b121d7d4
DD
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14706$as_echo_n "checking where to find the target readelf... " >&6; }
14707if test "x${build}" != "x${host}" ; then
14708 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
14710 ac_dir=`dirname $READELF_FOR_TARGET`
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712$as_echo "pre-installed in $ac_dir" >&6; }
14713 else
14714 # Canadian cross, just use what we found
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14716$as_echo "pre-installed" >&6; }
14717 fi
14718else
14719 ok=yes
14720 case " ${configdirs} " in
14721 *" binutils "*) ;;
14722 *) ok=no ;;
14723 esac
14724
14725 if test $ok = yes; then
14726 # An in-tree tool is available and we can use it
14727 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14729$as_echo "just compiled" >&6; }
14730 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
14732 ac_dir=`dirname $READELF_FOR_TARGET`
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734$as_echo "pre-installed in $ac_dir" >&6; }
14735 elif test "x$target" = "x$host"; then
14736 # We can use an host tool
14737 READELF_FOR_TARGET='$(READELF)'
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14739$as_echo "host tool" >&6; }
14740 else
14741 # We need a cross tool
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743$as_echo "pre-installed" >&6; }
14744 fi
14745fi
14746
81ecdfbb
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14748$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14749if test "x${build}" != "x${host}" ; then
2429c060
PB
14750 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14751 # We already found the complete path
b8025f34 14752 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14754$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14755 else
14756 # Canadian cross, just use what we found
81ecdfbb
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14758$as_echo "pre-installed" >&6; }
2429c060 14759 fi
be01d343
PB
14760else
14761 ok=yes
14762 case " ${configdirs} " in
14763 *" binutils "*) ;;
14764 *) ok=no ;;
14765 esac
c6b750e1 14766
be01d343
PB
14767 if test $ok = yes; then
14768 # An in-tree tool is available and we can use it
9b980aa1 14769 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14771$as_echo "just compiled" >&6; }
2429c060
PB
14772 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14773 # We already found the complete path
b8025f34 14774 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14776$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14777 elif test "x$target" = "x$host"; then
14778 # We can use an host tool
14779 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14781$as_echo "host tool" >&6; }
be01d343
PB
14782 else
14783 # We need a cross tool
81ecdfbb
RW
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14785$as_echo "pre-installed" >&6; }
be01d343
PB
14786 fi
14787fi
4b900473 14788
81ecdfbb
RW
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14790$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14791if test "x${build}" != "x${host}" ; then
2429c060
PB
14792 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14793 # We already found the complete path
b8025f34 14794 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14796$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14797 else
14798 # Canadian cross, just use what we found
81ecdfbb
RW
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14800$as_echo "pre-installed" >&6; }
2429c060 14801 fi
be01d343
PB
14802else
14803 ok=yes
14804 case " ${configdirs} " in
14805 *" binutils "*) ;;
14806 *) ok=no ;;
14807 esac
c6b750e1 14808
be01d343
PB
14809 if test $ok = yes; then
14810 # An in-tree tool is available and we can use it
14811 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14813$as_echo "just compiled" >&6; }
2429c060
PB
14814 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14815 # We already found the complete path
b8025f34 14816 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14818$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14819 elif test "x$target" = "x$host"; then
14820 # We can use an host tool
14821 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14823$as_echo "host tool" >&6; }
be01d343
PB
14824 else
14825 # We need a cross tool
81ecdfbb
RW
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14827$as_echo "pre-installed" >&6; }
be01d343 14828 fi
a0da8069 14829fi
54752a6b 14830
81ecdfbb
RW
14831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14832$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14833if test "x${build}" != "x${host}" ; then
14834 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14835 # We already found the complete path
14836 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14838$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14839 else
14840 # Canadian cross, just use what we found
81ecdfbb
RW
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14842$as_echo "pre-installed" >&6; }
0c24b341
NC
14843 fi
14844else
14845 ok=yes
14846 case " ${configdirs} " in
14847 *" binutils "*) ;;
14848 *) ok=no ;;
14849 esac
14850
14851 if test $ok = yes; then
14852 # An in-tree tool is available and we can use it
14853 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14855$as_echo "just compiled" >&6; }
0c24b341
NC
14856 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14857 # We already found the complete path
14858 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14860$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14861 elif test "x$target" = "x$host"; then
14862 # We can use an host tool
14863 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14865$as_echo "host tool" >&6; }
0c24b341
NC
14866 else
14867 # We need a cross tool
81ecdfbb
RW
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14869$as_echo "pre-installed" >&6; }
0c24b341
NC
14870 fi
14871fi
14872
54752a6b
NN
14873
14874
be01d343 14875
4b900473 14876
a0da8069
NN
14877# Certain tools may need extra flags.
14878AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14879RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14880NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14881
be01d343
PB
14882# When building target libraries, except in a Canadian cross, we use
14883# the same toolchain as the compiler we just built.
14884COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14885COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14886COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14887if test $host = $build; then
14888 case " $configdirs " in
14889 *" gcc "*)
14890 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14891 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14892 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14893 ;;
14894 esac
14895fi
14896
14897
14898
14899
14900
81ecdfbb
RW
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14902$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14903# Check whether --enable-maintainer-mode was given.
14904if test "${enable_maintainer_mode+set}" = set; then :
14905 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14906else
14907 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14908fi
14909
14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14911$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14912
14913
14914if test "$USE_MAINTAINER_MODE" = yes; then
14915 MAINTAINER_MODE_TRUE=
14916 MAINTAINER_MODE_FALSE='#'
14917else
14918 MAINTAINER_MODE_TRUE='#'
14919 MAINTAINER_MODE_FALSE=
c6b750e1 14920fi
3d5e36ae
AO
14921MAINT=$MAINTAINER_MODE_TRUE
14922
1d39f329
NN
14923# ---------------------
14924# GCC bootstrap support
14925# ---------------------
14926
14927# Stage specific cflags for build.
14928stage1_cflags="-g"
14929case $build in
14930 vax-*-*)
14931 case ${GCC} in
14932 yes) stage1_cflags="-g -Wa,-J" ;;
14933 *) stage1_cflags="-g -J" ;;
14934 esac ;;
1d39f329
NN
14935esac
14936
1d89b610 14937
1d39f329 14938
8a0d8a5c 14939# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14940# Check whether --enable-stage1-checking was given.
14941if test "${enable_stage1_checking+set}" = set; then :
14942 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14943else
5566c1fa 14944 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14945 # For --disable-checking or implicit --enable-checking=release, avoid
14946 # setting --enable-checking=gc in the default stage1 checking for LTO
14947 # bootstraps. See PR62077.
ce6c656d
L
14948 case $BUILD_CONFIG in
14949 *lto*)
05a13254
NC
14950 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14951 *)
14952 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14953 esac
05a13254
NC
14954 if test "x$enable_checking" = x && \
14955 test -d ${srcdir}/gcc && \
14956 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14957 stage1_checking=--enable-checking=yes,types,extra
14958 fi
8a0d8a5c 14959else
5566c1fa 14960 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14961fi
81ecdfbb 14962fi
8a0d8a5c
PB
14963
14964
c6b750e1 14965
81ecdfbb
RW
14966# Enable -Werror in bootstrap stage2 and later.
14967# Check whether --enable-werror was given.
14968if test "${enable_werror+set}" = set; then :
14969 enableval=$enable_werror;
1a6f2dc7
NN
14970case ${enable_werror} in
14971 yes) stage2_werror_flag="--enable-werror-always" ;;
14972 *) stage2_werror_flag="" ;;
1d39f329
NN
14973esac
14974
82033c9b 14975else
82033c9b 14976
bf41f30d
NC
14977if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14978 case $BUILD_CONFIG in
14979 bootstrap-debug)
14980 stage2_werror_flag="--enable-werror-always" ;;
14981 "")
14982 stage2_werror_flag="--enable-werror-always" ;;
14983 esac
14984fi
82033c9b 14985
bf41f30d 14986fi
82033c9b 14987
1b6c0831 14988
1b6c0831 14989
1b6c0831 14990
e8a5fa9c
RW
14991# Specify what files to not compare during bootstrap.
14992
14993compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14994case "$target" in
14995 hppa*64*-*-hpux*) ;;
bf41f30d 14996 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14997 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14998esac
14999
15000
81ecdfbb
RW
15001ac_config_files="$ac_config_files Makefile"
15002
c6b750e1 15003cat >confcache <<\_ACEOF
a0da8069
NN
15004# This file is a shell script that caches the results of configure
15005# tests run on this system so they can be shared between configure
c6b750e1
DJ
15006# scripts and configure runs, see configure's option --config-cache.
15007# It is not useful on other systems. If it contains results you don't
15008# want to keep, you may remove or edit it.
a0da8069 15009#
c6b750e1
DJ
15010# config.status only pays attention to the cache file if you give it
15011# the --recheck option to rerun configure.
a0da8069 15012#
c6b750e1
DJ
15013# `ac_cv_env_foo' variables (set or unset) will be overridden when
15014# loading this file, other *unset* `ac_cv_foo' will be assigned the
15015# following values.
15016
15017_ACEOF
15018
a0da8069
NN
15019# The following way of writing the cache mishandles newlines in values,
15020# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15021# So, we kill variables containing newlines.
a0da8069
NN
15022# Ultrix sh set writes to stderr and can't be redirected directly,
15023# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15024(
15025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15026 eval ac_val=\$$ac_var
15027 case $ac_val in #(
15028 *${as_nl}*)
15029 case $ac_var in #(
15030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15032 esac
15033 case $ac_var in #(
15034 _ | IFS | as_nl) ;; #(
15035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15036 *) { eval $ac_var=; unset $ac_var;} ;;
15037 esac ;;
15038 esac
15039 done
15040
c6b750e1 15041 (set) 2>&1 |
81ecdfbb
RW
15042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15043 *${as_nl}ac_space=\ *)
15044 # `set' does not quote correctly, so add quotes: double-quote
15045 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15046 sed -n \
15047 "s/'/'\\\\''/g;
15048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15049 ;; #(
c6b750e1
DJ
15050 *)
15051 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15053 ;;
81ecdfbb
RW
15054 esac |
15055 sort
15056) |
c6b750e1 15057 sed '
81ecdfbb 15058 /^ac_cv_env_/b end
c6b750e1 15059 t clear
81ecdfbb 15060 :clear
c6b750e1
DJ
15061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15062 t end
81ecdfbb
RW
15063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15064 :end' >>confcache
15065if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15066 if test -w "$cache_file"; then
d0ac1c44 15067 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15069$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15070 if test ! -f "$cache_file" || test -h "$cache_file"; then
15071 cat confcache >"$cache_file"
15072 else
15073 case $cache_file in #(
15074 */* | ?:*)
15075 mv -f confcache "$cache_file"$$ &&
15076 mv -f "$cache_file"$$ "$cache_file" ;; #(
15077 *)
15078 mv -f confcache "$cache_file" ;;
15079 esac
15080 fi
15081 fi
a0da8069 15082 else
81ecdfbb
RW
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15084$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15085 fi
852e5f18 15086fi
a0da8069 15087rm -f confcache
852e5f18 15088
a0da8069
NN
15089test "x$prefix" = xNONE && prefix=$ac_default_prefix
15090# Let make expand exec_prefix.
15091test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15092
a0da8069
NN
15093# Transform confdefs.h into DEFS.
15094# Protect against shell expansion while executing Makefile rules.
15095# Protect against Makefile macro expansion.
c6b750e1
DJ
15096#
15097# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15098# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15099# look for a macro that doesn't take arguments.
81ecdfbb
RW
15100ac_script='
15101:mline
15102/\\$/{
15103 N
15104 s,\\\n,,
15105 b mline
15106}
c6b750e1 15107t clear
81ecdfbb
RW
15108:clear
15109s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15110t quote
81ecdfbb 15111s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15112t quote
81ecdfbb
RW
15113b any
15114:quote
15115s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15116s/\[/\\&/g
15117s/\]/\\&/g
15118s/\$/$$/g
15119H
15120:any
15121${
15122 g
15123 s/^\n//
15124 s/\n/ /g
15125 p
15126}
15127'
15128DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15129
15130
15131ac_libobjs=
15132ac_ltlibobjs=
d0ac1c44 15133U=
c6b750e1
DJ
15134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15135 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15137 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15139 # will be set to the directory where LIBOBJS objects are built.
15140 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15141 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15142done
15143LIBOBJS=$ac_libobjs
852e5f18 15144
c6b750e1 15145LTLIBOBJS=$ac_ltlibobjs
376a0e54 15146
cac3d6c4 15147
c6b750e1 15148
d0ac1c44 15149: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15150ac_write_fail=0
c6b750e1
DJ
15151ac_clean_files_save=$ac_clean_files
15152ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15154$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15155as_write_fail=0
15156cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15157#! $SHELL
15158# Generated by $as_me.
a0da8069 15159# Run this file to recreate the current configuration.
a0da8069 15160# Compiler output produced by configure, useful for debugging
c6b750e1 15161# configure, is in config.log if it exists.
376a0e54 15162
c6b750e1
DJ
15163debug=false
15164ac_cs_recheck=false
15165ac_cs_silent=false
c6b750e1 15166
81ecdfbb
RW
15167SHELL=\${CONFIG_SHELL-$SHELL}
15168export SHELL
15169_ASEOF
15170cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15171## -------------------- ##
15172## M4sh Initialization. ##
15173## -------------------- ##
15174
15175# Be more Bourne compatible
15176DUALCASE=1; export DUALCASE # for MKS sh
15177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15178 emulate sh
15179 NULLCMD=:
81ecdfbb 15180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15181 # is contrary to our usage. Disable this feature.
15182 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15183 setopt NO_GLOB_SUBST
15184else
15185 case `(set -o) 2>/dev/null` in #(
15186 *posix*) :
15187 set -o posix ;; #(
15188 *) :
15189 ;;
15190esac
c6b750e1 15191fi
c6b750e1 15192
81ecdfbb
RW
15193
15194as_nl='
15195'
15196export as_nl
15197# Printing a long string crashes Solaris 7 /usr/bin/printf.
15198as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15199as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15201# Prefer a ksh shell builtin over an external printf program on Solaris,
15202# but without wasting forks for bash or zsh.
15203if test -z "$BASH_VERSION$ZSH_VERSION" \
15204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15205 as_echo='print -r --'
15206 as_echo_n='print -rn --'
15207elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15208 as_echo='printf %s\n'
15209 as_echo_n='printf %s'
15210else
15211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15213 as_echo_n='/usr/ucb/echo -n'
15214 else
15215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15216 as_echo_n_body='eval
15217 arg=$1;
15218 case $arg in #(
15219 *"$as_nl"*)
15220 expr "X$arg" : "X\\(.*\\)$as_nl";
15221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15222 esac;
15223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15224 '
15225 export as_echo_n_body
15226 as_echo_n='sh -c $as_echo_n_body as_echo'
15227 fi
15228 export as_echo_body
15229 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15230fi
15231
81ecdfbb
RW
15232# The user is always right.
15233if test "${PATH_SEPARATOR+set}" != set; then
15234 PATH_SEPARATOR=:
15235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15237 PATH_SEPARATOR=';'
15238 }
15239fi
15240
15241
15242# IFS
15243# We need space, tab and new line, in precisely that order. Quoting is
15244# there to prevent editors from complaining about space-tab.
15245# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15246# splitting by setting IFS to empty value.)
15247IFS=" "" $as_nl"
15248
15249# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15250as_myself=
81ecdfbb
RW
15251case $0 in #((
15252 *[\\/]* ) as_myself=$0 ;;
15253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254for as_dir in $PATH
15255do
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15259 done
15260IFS=$as_save_IFS
15261
15262 ;;
15263esac
15264# We did not find ourselves, most probably we were run as `sh COMMAND'
15265# in which case we are not to be found in the path.
15266if test "x$as_myself" = x; then
15267 as_myself=$0
15268fi
15269if test ! -f "$as_myself"; then
15270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15271 exit 1
15272fi
c6b750e1 15273
81ecdfbb
RW
15274# Unset variables that we do not need and which cause bugs (e.g. in
15275# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15276# suppresses any "Segmentation fault" message there. '((' could
15277# trigger a bug in pdksh 5.2.14.
15278for as_var in BASH_ENV ENV MAIL MAILPATH
15279do eval test x\${$as_var+set} = xset \
15280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15281done
c6b750e1
DJ
15282PS1='$ '
15283PS2='> '
15284PS4='+ '
15285
15286# NLS nuisances.
81ecdfbb
RW
15287LC_ALL=C
15288export LC_ALL
15289LANGUAGE=C
15290export LANGUAGE
15291
15292# CDPATH.
15293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15294
15295
d0ac1c44
SM
15296# as_fn_error STATUS ERROR [LINENO LOG_FD]
15297# ----------------------------------------
81ecdfbb
RW
15298# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15299# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15300# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15301as_fn_error ()
15302{
d0ac1c44
SM
15303 as_status=$1; test $as_status -eq 0 && as_status=1
15304 if test "$4"; then
15305 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15307 fi
d0ac1c44 15308 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15309 as_fn_exit $as_status
15310} # as_fn_error
15311
15312
15313# as_fn_set_status STATUS
15314# -----------------------
15315# Set $? to STATUS, without forking.
15316as_fn_set_status ()
15317{
15318 return $1
15319} # as_fn_set_status
15320
15321# as_fn_exit STATUS
15322# -----------------
15323# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15324as_fn_exit ()
15325{
15326 set +e
15327 as_fn_set_status $1
15328 exit $1
15329} # as_fn_exit
15330
15331# as_fn_unset VAR
15332# ---------------
15333# Portably unset VAR.
15334as_fn_unset ()
15335{
15336 { eval $1=; unset $1;}
15337}
15338as_unset=as_fn_unset
15339# as_fn_append VAR VALUE
15340# ----------------------
15341# Append the text in VALUE to the end of the definition contained in VAR. Take
15342# advantage of any shell optimizations that allow amortized linear growth over
15343# repeated appends, instead of the typical quadratic growth present in naive
15344# implementations.
15345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15346 eval 'as_fn_append ()
15347 {
15348 eval $1+=\$2
15349 }'
15350else
15351 as_fn_append ()
15352 {
15353 eval $1=\$$1\$2
15354 }
15355fi # as_fn_append
15356
15357# as_fn_arith ARG...
15358# ------------------
15359# Perform arithmetic evaluation on the ARGs, and store the result in the
15360# global $as_val. Take advantage of shells that can avoid forks. The arguments
15361# must be portable across $(()) and expr.
15362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15363 eval 'as_fn_arith ()
15364 {
15365 as_val=$(( $* ))
15366 }'
15367else
15368 as_fn_arith ()
15369 {
15370 as_val=`expr "$@" || test $? -eq 1`
15371 }
15372fi # as_fn_arith
15373
c6b750e1 15374
81ecdfbb
RW
15375if expr a : '\(a\)' >/dev/null 2>&1 &&
15376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15377 as_expr=expr
15378else
15379 as_expr=false
15380fi
15381
81ecdfbb 15382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15383 as_basename=basename
15384else
15385 as_basename=false
15386fi
15387
81ecdfbb
RW
15388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15389 as_dirname=dirname
15390else
15391 as_dirname=false
15392fi
c6b750e1 15393
81ecdfbb 15394as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15396 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15398$as_echo X/"$0" |
15399 sed '/^.*\/\([^/][^/]*\)\/*$/{
15400 s//\1/
15401 q
15402 }
15403 /^X\/\(\/\/\)$/{
15404 s//\1/
15405 q
15406 }
15407 /^X\/\(\/\).*/{
15408 s//\1/
15409 q
15410 }
15411 s/.*/./; q'`
c6b750e1 15412
c6b750e1
DJ
15413# Avoid depending upon Character Ranges.
15414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15417as_cr_digits='0123456789'
15418as_cr_alnum=$as_cr_Letters$as_cr_digits
15419
81ecdfbb
RW
15420ECHO_C= ECHO_N= ECHO_T=
15421case `echo -n x` in #(((((
15422-n*)
15423 case `echo 'xy\c'` in
15424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15425 xy) ECHO_C='\c';;
15426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15427 ECHO_T=' ';;
15428 esac;;
15429*)
15430 ECHO_N='-n';;
c6b750e1
DJ
15431esac
15432
81ecdfbb
RW
15433rm -f conf$$ conf$$.exe conf$$.file
15434if test -d conf$$.dir; then
15435 rm -f conf$$.dir/conf$$.file
c6b750e1 15436else
81ecdfbb
RW
15437 rm -f conf$$.dir
15438 mkdir conf$$.dir 2>/dev/null
c6b750e1 15439fi
81ecdfbb
RW
15440if (echo >conf$$.file) 2>/dev/null; then
15441 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15442 as_ln_s='ln -s'
81ecdfbb
RW
15443 # ... but there are two gotchas:
15444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15446 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15448 as_ln_s='cp -pR'
81ecdfbb
RW
15449 elif ln conf$$.file conf$$ 2>/dev/null; then
15450 as_ln_s=ln
15451 else
d0ac1c44 15452 as_ln_s='cp -pR'
c6b750e1 15453 fi
c6b750e1 15454else
d0ac1c44 15455 as_ln_s='cp -pR'
c6b750e1 15456fi
81ecdfbb
RW
15457rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15458rmdir conf$$.dir 2>/dev/null
15459
15460
15461# as_fn_mkdir_p
15462# -------------
15463# Create "$as_dir" as a directory, including parents if necessary.
15464as_fn_mkdir_p ()
15465{
15466
15467 case $as_dir in #(
15468 -*) as_dir=./$as_dir;;
15469 esac
15470 test -d "$as_dir" || eval $as_mkdir_p || {
15471 as_dirs=
15472 while :; do
15473 case $as_dir in #(
15474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15475 *) as_qdir=$as_dir;;
15476 esac
15477 as_dirs="'$as_qdir' $as_dirs"
15478 as_dir=`$as_dirname -- "$as_dir" ||
15479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15480 X"$as_dir" : 'X\(//\)[^/]' \| \
15481 X"$as_dir" : 'X\(//\)$' \| \
15482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15483$as_echo X"$as_dir" |
15484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15485 s//\1/
15486 q
15487 }
15488 /^X\(\/\/\)[^/].*/{
15489 s//\1/
15490 q
15491 }
15492 /^X\(\/\/\)$/{
15493 s//\1/
15494 q
15495 }
15496 /^X\(\/\).*/{
15497 s//\1/
15498 q
15499 }
15500 s/.*/./; q'`
15501 test -d "$as_dir" && break
15502 done
15503 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15505
c6b750e1 15506
81ecdfbb 15507} # as_fn_mkdir_p
c6b750e1 15508if mkdir -p . 2>/dev/null; then
81ecdfbb 15509 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15510else
15511 test -d ./-p && rmdir ./-p
15512 as_mkdir_p=false
15513fi
15514
d0ac1c44
SM
15515
15516# as_fn_executable_p FILE
15517# -----------------------
15518# Test if FILE is an executable regular file.
15519as_fn_executable_p ()
15520{
15521 test -f "$1" && test -x "$1"
15522} # as_fn_executable_p
15523as_test_x='test -x'
15524as_executable_p=as_fn_executable_p
c6b750e1
DJ
15525
15526# Sed expression to map a string onto a valid CPP name.
15527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15528
15529# Sed expression to map a string onto a valid variable name.
15530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15531
15532
c6b750e1 15533exec 6>&1
81ecdfbb
RW
15534## ----------------------------------- ##
15535## Main body of $CONFIG_STATUS script. ##
15536## ----------------------------------- ##
15537_ASEOF
15538test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15539
15540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15541# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15542# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15543# values after options handling.
15544ac_log="
c6b750e1 15545This file was extended by $as_me, which was
d0ac1c44 15546generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15547
15548 CONFIG_FILES = $CONFIG_FILES
15549 CONFIG_HEADERS = $CONFIG_HEADERS
15550 CONFIG_LINKS = $CONFIG_LINKS
15551 CONFIG_COMMANDS = $CONFIG_COMMANDS
15552 $ $0 $@
15553
81ecdfbb
RW
15554on `(hostname || uname -n) 2>/dev/null | sed 1q`
15555"
15556
c6b750e1
DJ
15557_ACEOF
15558
81ecdfbb
RW
15559case $ac_config_files in *"
15560"*) set x $ac_config_files; shift; ac_config_files=$*;;
15561esac
c6b750e1 15562
c6b750e1 15563
c6b750e1 15564
81ecdfbb
RW
15565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15566# Files that config.status was made for.
15567config_files="$ac_config_files"
c6b750e1 15568
81ecdfbb 15569_ACEOF
c6b750e1 15570
81ecdfbb 15571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15572ac_cs_usage="\
81ecdfbb
RW
15573\`$as_me' instantiates files and other configuration actions
15574from templates according to the current configuration. Unless the files
15575and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15576
81ecdfbb 15577Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15578
15579 -h, --help print this help, then exit
81ecdfbb 15580 -V, --version print version number and configuration settings, then exit
d0ac1c44 15581 --config print configuration, then exit
81ecdfbb
RW
15582 -q, --quiet, --silent
15583 do not print progress messages
c6b750e1
DJ
15584 -d, --debug don't remove temporary files
15585 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15586 --file=FILE[:TEMPLATE]
15587 instantiate the configuration file FILE
c6b750e1
DJ
15588
15589Configuration files:
15590$config_files
15591
81ecdfbb 15592Report bugs to the package provider."
c6b750e1 15593
81ecdfbb
RW
15594_ACEOF
15595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15596ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15597ac_cs_version="\\
15598config.status
d0ac1c44
SM
15599configured by $0, generated by GNU Autoconf 2.69,
15600 with options \\"\$ac_cs_config\\"
c6b750e1 15601
d0ac1c44 15602Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15603This config.status script is free software; the Free Software Foundation
15604gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15605
15606ac_pwd='$ac_pwd'
15607srcdir='$srcdir'
15608INSTALL='$INSTALL'
8e957354 15609AWK='$AWK'
81ecdfbb 15610test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15611_ACEOF
15612
81ecdfbb
RW
15613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15615ac_need_defaults=:
15616while test $# != 0
a0da8069 15617do
c6b750e1 15618 case $1 in
d0ac1c44 15619 --*=?*)
81ecdfbb
RW
15620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15622 ac_shift=:
15623 ;;
d0ac1c44
SM
15624 --*=)
15625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15626 ac_optarg=
15627 ac_shift=:
15628 ;;
81ecdfbb 15629 *)
c6b750e1
DJ
15630 ac_option=$1
15631 ac_optarg=$2
15632 ac_shift=shift
15633 ;;
c6b750e1
DJ
15634 esac
15635
15636 case $ac_option in
15637 # Handling of the options.
a0da8069 15638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15639 ac_cs_recheck=: ;;
81ecdfbb
RW
15640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15641 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15642 --config | --confi | --conf | --con | --co | --c )
15643 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15644 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15645 debug=: ;;
15646 --file | --fil | --fi | --f )
15647 $ac_shift
81ecdfbb
RW
15648 case $ac_optarg in
15649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15650 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15651 esac
15652 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15653 ac_need_defaults=false;;
81ecdfbb
RW
15654 --he | --h | --help | --hel | -h )
15655 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15658 ac_cs_silent=: ;;
15659
15660 # This is an error.
d0ac1c44 15661 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15662Try \`$0 --help' for more information." ;;
c6b750e1 15663
81ecdfbb
RW
15664 *) as_fn_append ac_config_targets " $1"
15665 ac_need_defaults=false ;;
c6b750e1 15666
376a0e54 15667 esac
c6b750e1 15668 shift
376a0e54
CM
15669done
15670
c6b750e1 15671ac_configure_extra_args=
376a0e54 15672
c6b750e1
DJ
15673if $ac_cs_silent; then
15674 exec 6>/dev/null
15675 ac_configure_extra_args="$ac_configure_extra_args --silent"
15676fi
376a0e54 15677
c6b750e1 15678_ACEOF
81ecdfbb 15679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15680if \$ac_cs_recheck; then
d0ac1c44 15681 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15682 shift
15683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15684 CONFIG_SHELL='$SHELL'
15685 export CONFIG_SHELL
15686 exec "\$@"
c6b750e1
DJ
15687fi
15688
15689_ACEOF
81ecdfbb
RW
15690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691exec 5>>config.log
15692{
15693 echo
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695## Running $as_me. ##
15696_ASBOX
15697 $as_echo "$ac_log"
15698} >&5
c6b750e1 15699
81ecdfbb
RW
15700_ACEOF
15701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15702#
15703# INIT-COMMANDS
15704#
15705extrasub_build="$extrasub_build"
15706 extrasub_host="$extrasub_host"
15707 extrasub_target="$extrasub_target"
15708
81ecdfbb 15709_ACEOF
c6b750e1 15710
81ecdfbb 15711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15712
81ecdfbb 15713# Handling of arguments.
c6b750e1
DJ
15714for ac_config_target in $ac_config_targets
15715do
81ecdfbb
RW
15716 case $ac_config_target in
15717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15718
d0ac1c44 15719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15720 esac
15721done
15722
81ecdfbb 15723
c6b750e1
DJ
15724# If the user did not use the arguments to specify the items to instantiate,
15725# then the envvar interface is used. Set only those that are not.
15726# We use the long form for the default assignment because of an extremely
15727# bizarre bug on SunOS 4.1.3.
15728if $ac_need_defaults; then
15729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15730fi
15731
15732# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15733# simply because there is no reason against having it here, and in addition,
c6b750e1 15734# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15735# Hook for its removal unless debugging.
15736# Note that there is a small window in which the directory will not be cleaned:
15737# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15738$debug ||
15739{
d0ac1c44 15740 tmp= ac_tmp=
81ecdfbb 15741 trap 'exit_status=$?
d0ac1c44
SM
15742 : "${ac_tmp:=$tmp}"
15743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15744' 0
15745 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15746}
c6b750e1
DJ
15747# Create a (secure) tmp directory for tmp files.
15748
15749{
81ecdfbb 15750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15751 test -d "$tmp"
c6b750e1
DJ
15752} ||
15753{
81ecdfbb
RW
15754 tmp=./conf$$-$RANDOM
15755 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15756} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15757ac_tmp=$tmp
81ecdfbb
RW
15758
15759# Set up the scripts for CONFIG_FILES section.
15760# No need to generate them if there are no CONFIG_FILES.
15761# This happens for instance with `./config.status config.h'.
15762if test -n "$CONFIG_FILES"; then
15763
15764if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15765 ac_cs_awk_getline=:
15766 ac_cs_awk_pipe_init=
15767 ac_cs_awk_read_file='
15768 while ((getline aline < (F[key])) > 0)
15769 print(aline)
15770 close(F[key])'
15771 ac_cs_awk_pipe_fini=
15772else
15773 ac_cs_awk_getline=false
15774 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15775 ac_cs_awk_read_file='
15776 print "|#_!!_#|"
15777 print "cat " F[key] " &&"
15778 '$ac_cs_awk_pipe_init
15779 # The final `:' finishes the AND list.
15780 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15781fi
15782ac_cr=`echo X | tr X '\015'`
15783# On cygwin, bash can eat \r inside `` if the user requested igncr.
15784# But we know of no other shell where ac_cr would be empty at this
15785# point, so we can use a bashism as a fallback.
15786if test "x$ac_cr" = x; then
15787 eval ac_cr=\$\'\\r\'
15788fi
15789ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15790if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15791 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15792else
15793 ac_cs_awk_cr=$ac_cr
15794fi
15795
d0ac1c44 15796echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15797_ACEOF
15798
15799# Create commands to substitute file output variables.
c6b750e1 15800{
81ecdfbb 15801 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15802 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15803 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15804 echo "_ACAWK" &&
15805 echo "_ACEOF"
15806} >conf$$files.sh &&
15807. ./conf$$files.sh ||
d0ac1c44 15808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15809rm -f conf$$files.sh
c6b750e1 15810
81ecdfbb
RW
15811{
15812 echo "cat >conf$$subs.awk <<_ACEOF" &&
15813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15814 echo "_ACEOF"
15815} >conf$$subs.sh ||
d0ac1c44
SM
15816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15817ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15818ac_delim='%!_!# '
15819for ac_last_try in false false false false false :; do
15820 . ./conf$$subs.sh ||
d0ac1c44 15821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15822
15823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15824 if test $ac_delim_n = $ac_delim_num; then
15825 break
15826 elif $ac_last_try; then
d0ac1c44 15827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15828 else
15829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15830 fi
15831done
15832rm -f conf$$subs.sh
15833
15834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15835cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15836_ACEOF
81ecdfbb
RW
15837sed -n '
15838h
15839s/^/S["/; s/!.*/"]=/
15840p
15841g
15842s/^[^!]*!//
15843:repl
15844t repl
15845s/'"$ac_delim"'$//
15846t delim
15847:nl
15848h
d0ac1c44 15849s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15850t more1
15851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15852p
15853n
15854b repl
15855:more1
15856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15857p
15858g
15859s/.\{148\}//
15860t nl
15861:delim
15862h
d0ac1c44 15863s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15864t more2
15865s/["\\]/\\&/g; s/^/"/; s/$/"/
15866p
15867b
15868:more2
15869s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15870p
15871g
15872s/.\{148\}//
15873t delim
15874' <conf$$subs.awk | sed '
15875/^[^""]/{
15876 N
15877 s/\n//
15878}
15879' >>$CONFIG_STATUS || ac_write_fail=1
15880rm -f conf$$subs.awk
15881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882_ACAWK
d0ac1c44 15883cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15884 for (key in S) S_is_set[key] = 1
15885 FS = "\a"
15886 \$ac_cs_awk_pipe_init
15887}
15888{
15889 line = $ 0
15890 nfields = split(line, field, "@")
15891 substed = 0
15892 len = length(field[1])
15893 for (i = 2; i < nfields; i++) {
15894 key = field[i]
15895 keylen = length(key)
15896 if (S_is_set[key]) {
15897 value = S[key]
15898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15899 len += length(value) + length(field[++i])
15900 substed = 1
15901 } else
15902 len += 1 + keylen
15903 }
15904 if (nfields == 3 && !substed) {
15905 key = field[2]
15906 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15907 \$ac_cs_awk_read_file
15908 next
15909 }
15910 }
15911 print line
15912}
15913\$ac_cs_awk_pipe_fini
15914_ACAWK
15915_ACEOF
15916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15919else
15920 cat
d0ac1c44
SM
15921fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15922 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15923_ACEOF
15924
d0ac1c44
SM
15925# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15926# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15927# trailing colons and then remove the whole line if VPATH becomes empty
15928# (actually we leave an empty line to preserve line numbers).
15929if test "x$srcdir" = x.; then
d0ac1c44
SM
15930 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15931h
15932s///
15933s/^/:/
15934s/[ ]*$/:/
15935s/:\$(srcdir):/:/g
15936s/:\${srcdir}:/:/g
15937s/:@srcdir@:/:/g
15938s/^:*//
81ecdfbb 15939s/:*$//
d0ac1c44
SM
15940x
15941s/\(=[ ]*\).*/\1/
15942G
15943s/\n//
81ecdfbb
RW
15944s/^[^=]*=[ ]*$//
15945}'
15946fi
c6b750e1 15947
81ecdfbb
RW
15948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949fi # test -n "$CONFIG_FILES"
c6b750e1 15950
c6b750e1 15951
81ecdfbb
RW
15952eval set X " :F $CONFIG_FILES "
15953shift
15954for ac_tag
15955do
15956 case $ac_tag in
15957 :[FHLC]) ac_mode=$ac_tag; continue;;
15958 esac
15959 case $ac_mode$ac_tag in
15960 :[FHL]*:*);;
d0ac1c44 15961 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15962 :[FH]-) ac_tag=-:-;;
15963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15964 esac
15965 ac_save_IFS=$IFS
15966 IFS=:
15967 set x $ac_tag
15968 IFS=$ac_save_IFS
15969 shift
15970 ac_file=$1
15971 shift
252b5132 15972
81ecdfbb
RW
15973 case $ac_mode in
15974 :L) ac_source=$1;;
15975 :[FH])
15976 ac_file_inputs=
15977 for ac_f
15978 do
15979 case $ac_f in
d0ac1c44 15980 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15981 *) # Look for the file first in the build tree, then in the source tree
15982 # (if the path is not absolute). The absolute path cannot be DOS-style,
15983 # because $ac_f cannot contain `:'.
15984 test -f "$ac_f" ||
15985 case $ac_f in
15986 [\\/$]*) false;;
15987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15988 esac ||
d0ac1c44 15989 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15990 esac
15991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15992 as_fn_append ac_file_inputs " '$ac_f'"
15993 done
c6b750e1 15994
81ecdfbb
RW
15995 # Let's still pretend it is `configure' which instantiates (i.e., don't
15996 # use $as_me), people would be surprised to read:
15997 # /* config.h. Generated by config.status. */
15998 configure_input='Generated from '`
15999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16000 `' by configure.'
16001 if test x"$ac_file" != x-; then
16002 configure_input="$ac_file. $configure_input"
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16004$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16005 fi
81ecdfbb
RW
16006 # Neutralize special characters interpreted by sed in replacement strings.
16007 case $configure_input in #(
16008 *\&* | *\|* | *\\* )
16009 ac_sed_conf_input=`$as_echo "$configure_input" |
16010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16011 *) ac_sed_conf_input=$configure_input;;
16012 esac
cac3d6c4 16013
81ecdfbb 16014 case $ac_tag in
d0ac1c44
SM
16015 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16017 esac
16018 ;;
a0da8069 16019 esac
252b5132 16020
81ecdfbb 16021 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16023 X"$ac_file" : 'X\(//\)[^/]' \| \
16024 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16026$as_echo X"$ac_file" |
16027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16028 s//\1/
16029 q
16030 }
16031 /^X\(\/\/\)[^/].*/{
16032 s//\1/
16033 q
16034 }
16035 /^X\(\/\/\)$/{
16036 s//\1/
16037 q
16038 }
16039 /^X\(\/\).*/{
16040 s//\1/
16041 q
16042 }
16043 s/.*/./; q'`
16044 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16045 ac_builddir=.
252b5132 16046
81ecdfbb
RW
16047case "$ac_dir" in
16048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16049*)
16050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16051 # A ".." for each directory in $ac_dir_suffix.
16052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16053 case $ac_top_builddir_sub in
16054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16056 esac ;;
16057esac
16058ac_abs_top_builddir=$ac_pwd
16059ac_abs_builddir=$ac_pwd$ac_dir_suffix
16060# for backward compatibility:
16061ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16062
16063case $srcdir in
81ecdfbb 16064 .) # We are building in place.
c6b750e1 16065 ac_srcdir=.
81ecdfbb
RW
16066 ac_top_srcdir=$ac_top_builddir_sub
16067 ac_abs_top_srcdir=$ac_pwd ;;
16068 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16069 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16070 ac_top_srcdir=$srcdir
16071 ac_abs_top_srcdir=$srcdir ;;
16072 *) # Relative name.
16073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16074 ac_top_srcdir=$ac_top_build_prefix$srcdir
16075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16076esac
81ecdfbb 16077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16078
252b5132 16079
81ecdfbb
RW
16080 case $ac_mode in
16081 :F)
16082 #
16083 # CONFIG_FILE
16084 #
c6b750e1
DJ
16085
16086 case $INSTALL in
16087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16089 esac
81ecdfbb 16090_ACEOF
252b5132 16091
81ecdfbb
RW
16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093# If the template does not know about datarootdir, expand it.
16094# FIXME: This hack should be removed a few years after 2.60.
16095ac_datarootdir_hack=; ac_datarootdir_seen=
16096ac_sed_dataroot='
16097/datarootdir/ {
16098 p
16099 q
16100}
16101/@datadir@/p
16102/@docdir@/p
16103/@infodir@/p
16104/@localedir@/p
16105/@mandir@/p'
16106case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16107*datarootdir*) ac_datarootdir_seen=yes;;
16108*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16110$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16111_ACEOF
81ecdfbb
RW
16112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 ac_datarootdir_hack='
16114 s&@datadir@&$datadir&g
16115 s&@docdir@&$docdir&g
16116 s&@infodir@&$infodir&g
16117 s&@localedir@&$localedir&g
16118 s&@mandir@&$mandir&g
16119 s&\\\${datarootdir}&$datarootdir&g' ;;
16120esac
16121_ACEOF
16122
16123# Neutralize VPATH when `$srcdir' = `.'.
16124# Shell code in configure.ac might set extrasub.
16125# FIXME: do we really want to maintain this feature?
16126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16127ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16128$extrasub
16129_ACEOF
81ecdfbb 16130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16131:t
16132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16133s|@configure_input@|$ac_sed_conf_input|;t t
16134s&@top_builddir@&$ac_top_builddir_sub&;t t
16135s&@top_build_prefix@&$ac_top_build_prefix&;t t
16136s&@srcdir@&$ac_srcdir&;t t
16137s&@abs_srcdir@&$ac_abs_srcdir&;t t
16138s&@top_srcdir@&$ac_top_srcdir&;t t
16139s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16140s&@builddir@&$ac_builddir&;t t
16141s&@abs_builddir@&$ac_abs_builddir&;t t
16142s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16143s&@INSTALL@&$ac_INSTALL&;t t
16144$ac_datarootdir_hack
16145"
16146eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16147if $ac_cs_awk_getline; then
d0ac1c44 16148 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16149else
d0ac1c44
SM
16150 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16151fi \
16152 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16153
16154test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16155 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16156 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16157 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16159which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16160$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16161which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16162
d0ac1c44 16163 rm -f "$ac_tmp/stdin"
81ecdfbb 16164 case $ac_file in
d0ac1c44
SM
16165 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16166 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16167 esac \
d0ac1c44 16168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16169 ;;
c148b4cb 16170
c148b4cb 16171
c148b4cb 16172
81ecdfbb
RW
16173 esac
16174
06a51eac
RW
16175
16176 case $ac_file$ac_mode in
16177 "Makefile":F) sed "$extrasub_build" Makefile |
16178 sed "$extrasub_host" |
16179 sed "$extrasub_target" > mf$$
16180 mv -f mf$$ Makefile ;;
16181
16182 esac
81ecdfbb
RW
16183done # for ac_tag
16184
16185
16186as_fn_exit 0
c6b750e1 16187_ACEOF
c6b750e1
DJ
16188ac_clean_files=$ac_clean_files_save
16189
81ecdfbb 16190test $ac_write_fail = 0 ||
d0ac1c44 16191 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16192
c6b750e1
DJ
16193
16194# configure is writing to config.log, and then calls config.status.
16195# config.status does its own redirection, appending to config.log.
16196# Unfortunately, on DOS this fails, as config.log is still kept open
16197# by configure, so config.status won't be able to write to it; its
16198# output is simply discarded. So we exec the FD to /dev/null,
16199# effectively closing config.log, so it can be properly (re)opened and
16200# appended to by config.status. When coming back to configure, we
16201# need to make the FD available again.
16202if test "$no_create" != yes; then
16203 ac_cs_success=:
16204 ac_config_status_args=
16205 test "$silent" = yes &&
16206 ac_config_status_args="$ac_config_status_args --quiet"
16207 exec 5>/dev/null
16208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16209 exec 5>>config.log
16210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16211 # would make configure fail if this is the last instruction.
d0ac1c44 16212 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16213fi
16214if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16216$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16217fi
c148b4cb 16218
This page took 2.150492 seconds and 4 git commands to generate.