]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
c6b750e1 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
c6b750e1 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
c6b750e1
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
b121d7d4 604READELF_FOR_TARGET
81ecdfbb
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
6b91c541 607OBJCOPY_FOR_TARGET
81ecdfbb
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
e552509b 614GOC_FOR_TARGET
81ecdfbb 615GFORTRAN_FOR_TARGET
81ecdfbb
RW
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
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* \
d85e70a3 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
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
a8d6316b
NC
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4807$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4808if ${ac_cv_prog_cc_c99+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 ac_cv_prog_cc_c99=no
4812ac_save_CC=$CC
4813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h. */
4815#include <stdarg.h>
4816#include <stdbool.h>
4817#include <stdlib.h>
4818#include <wchar.h>
4819#include <stdio.h>
4820
4821// Check varargs macros. These examples are taken from C99 6.10.3.5.
4822#define debug(...) fprintf (stderr, __VA_ARGS__)
4823#define showlist(...) puts (#__VA_ARGS__)
4824#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4825static void
4826test_varargs_macros (void)
4827{
4828 int x = 1234;
4829 int y = 5678;
4830 debug ("Flag");
4831 debug ("X = %d\n", x);
4832 showlist (The first, second, and third items.);
4833 report (x>y, "x is %d but y is %d", x, y);
4834}
4835
4836// Check long long types.
4837#define BIG64 18446744073709551615ull
4838#define BIG32 4294967295ul
4839#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4840#if !BIG_OK
4841 your preprocessor is broken;
4842#endif
4843#if BIG_OK
4844#else
4845 your preprocessor is broken;
4846#endif
4847static long long int bignum = -9223372036854775807LL;
4848static unsigned long long int ubignum = BIG64;
4849
4850struct incomplete_array
4851{
4852 int datasize;
4853 double data[];
4854};
4855
4856struct named_init {
4857 int number;
4858 const wchar_t *name;
4859 double average;
4860};
4861
4862typedef const char *ccp;
4863
4864static inline int
4865test_restrict (ccp restrict text)
4866{
4867 // See if C++-style comments work.
4868 // Iterate through items via the restricted pointer.
4869 // Also check for declarations in for loops.
4870 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4871 continue;
4872 return 0;
4873}
4874
4875// Check varargs and va_copy.
4876static void
4877test_varargs (const char *format, ...)
4878{
4879 va_list args;
4880 va_start (args, format);
4881 va_list args_copy;
4882 va_copy (args_copy, args);
4883
4884 const char *str;
4885 int number;
4886 float fnumber;
4887
4888 while (*format)
4889 {
4890 switch (*format++)
4891 {
4892 case 's': // string
4893 str = va_arg (args_copy, const char *);
4894 break;
4895 case 'd': // int
4896 number = va_arg (args_copy, int);
4897 break;
4898 case 'f': // float
4899 fnumber = va_arg (args_copy, double);
4900 break;
4901 default:
4902 break;
4903 }
4904 }
4905 va_end (args_copy);
4906 va_end (args);
4907}
4908
4909int
4910main ()
4911{
4912
4913 // Check bool.
4914 _Bool success = false;
4915
4916 // Check restrict.
4917 if (test_restrict ("String literal") == 0)
4918 success = true;
4919 char *restrict newvar = "Another string";
4920
4921 // Check varargs.
4922 test_varargs ("s, d' f .", "string", 65, 34.234);
4923 test_varargs_macros ();
4924
4925 // Check flexible array members.
4926 struct incomplete_array *ia =
4927 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4928 ia->datasize = 10;
4929 for (int i = 0; i < ia->datasize; ++i)
4930 ia->data[i] = i * 1.234;
4931
4932 // Check named initializers.
4933 struct named_init ni = {
4934 .number = 34,
4935 .name = L"Test wide string",
4936 .average = 543.34343,
4937 };
4938
4939 ni.number = 58;
4940
4941 int dynamic_array[ni.number];
4942 dynamic_array[ni.number - 1] = 543;
4943
4944 // work around unused variable warnings
4945 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4946 || dynamic_array[ni.number - 1] != 543);
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4953do
4954 CC="$ac_save_CC $ac_arg"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 ac_cv_prog_cc_c99=$ac_arg
4957fi
4958rm -f core conftest.err conftest.$ac_objext
4959 test "x$ac_cv_prog_cc_c99" != "xno" && break
4960done
4961rm -f conftest.$ac_ext
4962CC=$ac_save_CC
4963
4964fi
4965# AC_CACHE_VAL
4966case "x$ac_cv_prog_cc_c99" in
4967 x)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4969$as_echo "none needed" >&6; } ;;
4970 xno)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4972$as_echo "unsupported" >&6; } ;;
4973 *)
4974 CC="$CC $ac_cv_prog_cc_c99"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4976$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4977esac
4978if test "x$ac_cv_prog_cc_c99" != xno; then :
4979
4980fi
4981
4982
81ecdfbb 4983ac_ext=cpp
18f6b6ee
PB
4984ac_cpp='$CXXCPP $CPPFLAGS'
4985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4988if test -z "$CXX"; then
4989 if test -n "$CCC"; then
4990 CXX=$CCC
4991 else
4992 if test -n "$ac_tool_prefix"; then
4993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4994 do
4995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4999if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5000 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5001else
5002 if test -n "$CXX"; then
5003 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
81ecdfbb 5010 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5014 break 2
5015 fi
5016done
81ecdfbb
RW
5017 done
5018IFS=$as_save_IFS
512b7dfb 5019
18f6b6ee
PB
5020fi
5021fi
5022CXX=$ac_cv_prog_CXX
5023if test -n "$CXX"; then
81ecdfbb
RW
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5025$as_echo "$CXX" >&6; }
18f6b6ee 5026else
81ecdfbb
RW
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
18f6b6ee
PB
5029fi
5030
81ecdfbb 5031
18f6b6ee
PB
5032 test -n "$CXX" && break
5033 done
5034fi
5035if test -z "$CXX"; then
5036 ac_ct_CXX=$CXX
81ecdfbb 5037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5038do
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5043if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5044 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5045else
5046 if test -n "$ac_ct_CXX"; then
5047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
81ecdfbb 5054 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5056 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5058 break 2
512b7dfb 5059 fi
18f6b6ee 5060done
81ecdfbb
RW
5061 done
5062IFS=$as_save_IFS
512b7dfb 5063
18f6b6ee
PB
5064fi
5065fi
5066ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5067if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5069$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5070else
81ecdfbb
RW
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
18f6b6ee
PB
5073fi
5074
81ecdfbb 5075
18f6b6ee
PB
5076 test -n "$ac_ct_CXX" && break
5077done
18f6b6ee 5078
81ecdfbb
RW
5079 if test "x$ac_ct_CXX" = x; then
5080 CXX="g++"
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083yes:)
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086ac_tool_warned=yes ;;
5087esac
5088 CXX=$ac_ct_CXX
5089 fi
18f6b6ee
PB
5090fi
5091
81ecdfbb
RW
5092 fi
5093fi
18f6b6ee 5094# Provide some information about the compiler.
81ecdfbb
RW
5095$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5096set X $ac_compile
5097ac_compiler=$2
5098for ac_option in --version -v -V -qversion; do
5099 { { ac_try="$ac_compiler $ac_option >&5"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105$as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5107 ac_status=$?
81ecdfbb
RW
5108 if test -s conftest.err; then
5109 sed '10a\
5110... rest of stderr output deleted ...
5111 10q' conftest.err >conftest.er1
5112 cat conftest.er1 >&5
81ecdfbb 5113 fi
d0ac1c44 5114 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117done
18f6b6ee 5118
81ecdfbb
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5120$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5121if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5122 $as_echo_n "(cached) " >&6
18f6b6ee 5123else
81ecdfbb 5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5125/* end confdefs.h. */
5126
5127int
5128main ()
5129{
5130#ifndef __GNUC__
5131 choke me
5132#endif
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
81ecdfbb 5138if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5139 ac_compiler_gnu=yes
5140else
81ecdfbb 5141 ac_compiler_gnu=no
18f6b6ee 5142fi
81ecdfbb 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5144ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5145
5146fi
81ecdfbb
RW
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5148$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5149if test $ac_compiler_gnu = yes; then
5150 GXX=yes
5151else
5152 GXX=
5153fi
18f6b6ee
PB
5154ac_test_CXXFLAGS=${CXXFLAGS+set}
5155ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5157$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5158if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5159 $as_echo_n "(cached) " >&6
5160else
5161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5162 ac_cxx_werror_flag=yes
5163 ac_cv_prog_cxx_g=no
5164 CXXFLAGS="-g"
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5166/* end confdefs.h. */
5167
5168int
5169main ()
5170{
5171
5172 ;
5173 return 0;
5174}
5175_ACEOF
81ecdfbb 5176if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5177 ac_cv_prog_cxx_g=yes
5178else
81ecdfbb
RW
5179 CXXFLAGS=""
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5181/* end confdefs.h. */
81ecdfbb 5182
18f6b6ee
PB
5183int
5184main ()
5185{
81ecdfbb 5186
18f6b6ee
PB
5187 ;
5188 return 0;
5189}
5190_ACEOF
81ecdfbb 5191if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5192
81ecdfbb
RW
5193else
5194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5195 CXXFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5197/* end confdefs.h. */
81ecdfbb 5198
18f6b6ee
PB
5199int
5200main ()
5201{
81ecdfbb 5202
18f6b6ee
PB
5203 ;
5204 return 0;
5205}
5206_ACEOF
81ecdfbb
RW
5207if ac_fn_cxx_try_compile "$LINENO"; then :
5208 ac_cv_prog_cxx_g=yes
18f6b6ee 5209fi
81ecdfbb
RW
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5218$as_echo "$ac_cv_prog_cxx_g" >&6; }
5219if test "$ac_test_CXXFLAGS" = set; then
5220 CXXFLAGS=$ac_save_CXXFLAGS
5221elif test $ac_cv_prog_cxx_g = yes; then
5222 if test "$GXX" = yes; then
5223 CXXFLAGS="-g -O2"
5224 else
5225 CXXFLAGS="-g"
5226 fi
5227else
5228 if test "$GXX" = yes; then
5229 CXXFLAGS="-O2"
5230 else
5231 CXXFLAGS=
5232 fi
18f6b6ee 5233fi
18f6b6ee
PB
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241# We must set the default linker to the linker used by gcc for the correct
5242# operation of libtool. If LD is not defined and we are using gcc, try to
5243# set the LD default to the ld used by gcc.
5244if test -z "$LD"; then
5245 if test "$GCC" = yes; then
5246 case $build in
5247 *-*-mingw*)
5248 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5249 *)
5250 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5251 esac
5252 case $gcc_prog_ld in
5253 # Accept absolute paths.
5254 [\\/]* | [A-Za-z]:[\\/]*)
5255 LD="$gcc_prog_ld" ;;
5256 esac
5257 fi
512b7dfb
PB
5258fi
5259
b3676d82
EB
5260# Check whether -static-libstdc++ -static-libgcc is supported.
5261have_static_libs=no
5262if test "$GCC" = yes; then
5263 saved_LDFLAGS="$LDFLAGS"
5264
5265 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5267$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5268 ac_ext=cpp
5269ac_cpp='$CXXCPP $CPPFLAGS'
5270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5273
5274
5275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h. */
a882be68
EB
5277
5278#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5279#error -static-libstdc++ not implemented
5280#endif
b3676d82
EB
5281int main() {}
5282_ACEOF
5283if ac_fn_cxx_try_link "$LINENO"; then :
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285$as_echo "yes" >&6; }; have_static_libs=yes
5286else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290rm -f core conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 ac_ext=c
5293ac_cpp='$CPP $CPPFLAGS'
5294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297
5298
5299 LDFLAGS="$saved_LDFLAGS"
5300fi
5301
512b7dfb
PB
5302
5303
5304
c6b750e1 5305if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5306 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5307set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5310if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5311 $as_echo_n "(cached) " >&6
9e07f89d 5312else
512b7dfb
PB
5313 if test -n "$GNATBIND"; then
5314 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5315else
c6b750e1
DJ
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
81ecdfbb 5321 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5323 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5325 break 2
5326 fi
5327done
81ecdfbb
RW
5328 done
5329IFS=$as_save_IFS
c6b750e1 5330
9e07f89d
NN
5331fi
5332fi
512b7dfb
PB
5333GNATBIND=$ac_cv_prog_GNATBIND
5334if test -n "$GNATBIND"; then
81ecdfbb
RW
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5336$as_echo "$GNATBIND" >&6; }
9e07f89d 5337else
81ecdfbb
RW
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
9e07f89d
NN
5340fi
5341
81ecdfbb 5342
c6b750e1 5343fi
512b7dfb
PB
5344if test -z "$ac_cv_prog_GNATBIND"; then
5345 ac_ct_GNATBIND=$GNATBIND
5346 # Extract the first word of "gnatbind", so it can be a program name with args.
5347set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5350if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5351 $as_echo_n "(cached) " >&6
9e07f89d 5352else
512b7dfb
PB
5353 if test -n "$ac_ct_GNATBIND"; then
5354 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5355else
c6b750e1
DJ
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
81ecdfbb 5361 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5363 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5365 break 2
5366 fi
5367done
81ecdfbb
RW
5368 done
5369IFS=$as_save_IFS
c6b750e1 5370
9e07f89d
NN
5371fi
5372fi
512b7dfb
PB
5373ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5374if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5376$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5377else
81ecdfbb
RW
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
9e07f89d
NN
5380fi
5381
81ecdfbb
RW
5382 if test "x$ac_ct_GNATBIND" = x; then
5383 GNATBIND="no"
5384 else
5385 case $cross_compiling:$ac_tool_warned in
5386yes:)
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389ac_tool_warned=yes ;;
5390esac
5391 GNATBIND=$ac_ct_GNATBIND
5392 fi
24ff9987 5393else
512b7dfb 5394 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5395fi
5396
7df2cd5d 5397if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5398 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5399set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5402if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5403 $as_echo_n "(cached) " >&6
7df2cd5d 5404else
512b7dfb
PB
5405 if test -n "$GNATMAKE"; then
5406 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
81ecdfbb 5413 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5415 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5417 break 2
5418 fi
5419done
81ecdfbb
RW
5420 done
5421IFS=$as_save_IFS
7df2cd5d
PB
5422
5423fi
5424fi
512b7dfb
PB
5425GNATMAKE=$ac_cv_prog_GNATMAKE
5426if test -n "$GNATMAKE"; then
81ecdfbb
RW
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5428$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5429else
81ecdfbb
RW
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
7df2cd5d
PB
5432fi
5433
81ecdfbb 5434
7df2cd5d 5435fi
512b7dfb
PB
5436if test -z "$ac_cv_prog_GNATMAKE"; then
5437 ac_ct_GNATMAKE=$GNATMAKE
5438 # Extract the first word of "gnatmake", so it can be a program name with args.
5439set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5442if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5443 $as_echo_n "(cached) " >&6
7df2cd5d 5444else
512b7dfb
PB
5445 if test -n "$ac_ct_GNATMAKE"; then
5446 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
81ecdfbb 5453 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5455 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5457 break 2
5458 fi
5459done
81ecdfbb
RW
5460 done
5461IFS=$as_save_IFS
7df2cd5d 5462
7df2cd5d
PB
5463fi
5464fi
512b7dfb
PB
5465ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5466if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5468$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5469else
81ecdfbb
RW
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
7df2cd5d
PB
5472fi
5473
81ecdfbb
RW
5474 if test "x$ac_ct_GNATMAKE" = x; then
5475 GNATMAKE="no"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478yes:)
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481ac_tool_warned=yes ;;
5482esac
5483 GNATMAKE=$ac_ct_GNATMAKE
5484 fi
7df2cd5d 5485else
512b7dfb 5486 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5487fi
5488
81ecdfbb
RW
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5490$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5491if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5492 $as_echo_n "(cached) " >&6
9e07f89d
NN
5493else
5494 cat >conftest.adb <<EOF
5495procedure conftest is begin null; end conftest;
5496EOF
5497acx_cv_cc_gcc_supports_ada=no
5498# There is a bug in old released versions of GCC which causes the
5499# driver to exit successfully when the appropriate language module
5500# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5501# Therefore we must check for the error message as well as an
5502# unsuccessful exit.
b8908782
DD
5503# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5504# given a .adb file, but produce no object file. So we must check
5505# if an object file was really produced to guard against this.
9e07f89d 5506errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5507if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5508 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5509fi
5510rm -f conftest.*
5511fi
81ecdfbb
RW
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5513$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5514
64b986c0 5515if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5516 have_gnat=yes
5517else
5518 have_gnat=no
5519fi
5520
81ecdfbb
RW
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5522$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5523if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5524 $as_echo_n "(cached) " >&6
b8908782
DD
5525else
5526 echo abfoo >t1
5527 echo cdfoo >t2
da17fe9d 5528 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5529 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5530 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5531 :
5532 else
5533 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5534 fi
5535 fi
b8908782
DD
5536 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5537 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5538 :
b8908782
DD
5539 else
5540 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5541 fi
5542 fi
5543 rm t1 t2
5544
5545fi
81ecdfbb
RW
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5547$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5548do_compare="$gcc_cv_prog_cmp_skip"
5549
5550
9e07f89d 5551
ffdd6afc
ILT
5552# Check whether --enable-bootstrap was given.
5553if test "${enable_bootstrap+set}" = set; then :
5554 enableval=$enable_bootstrap;
5555else
5556 enable_bootstrap=default
5557fi
5558
5559
5560# Issue errors and warnings for invalid/strange bootstrap combinations.
5561if test -r $srcdir/gcc/configure; then
5562 have_compiler=yes
5563else
5564 have_compiler=no
5565fi
5566
5567case "$have_compiler:$host:$target:$enable_bootstrap" in
5568 *:*:*:no) ;;
5569
5570 # Default behavior. Enable bootstrap if we have a compiler
5571 # and we are in a native configuration.
5572 yes:$build:$build:default)
5573 enable_bootstrap=yes ;;
5574
5575 *:*:*:default)
5576 enable_bootstrap=no ;;
5577
5578 # We have a compiler and we are in a native configuration, bootstrap is ok
5579 yes:$build:$build:yes)
5580 ;;
5581
5582 # Other configurations, but we have a compiler. Assume the user knows
5583 # what he's doing.
5584 yes:*:*:yes)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5586$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5587 ;;
5588
5589 # No compiler: if they passed --enable-bootstrap explicitly, fail
5590 no:*:*:yes)
d0ac1c44 5591 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5592
5593 # Fail if wrong command line
5594 *)
d0ac1c44 5595 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5596 ;;
5597esac
5598
ce6c656d
L
5599# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5600# C++98 compiler can still start the bootstrap.
5601if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5602 CXX="$CXX -std=gnu++98"
5603fi
5604
af019bfd
L
5605# Check whether --enable-pgo-build was given.
5606if test "${enable_pgo_build+set}" = set; then :
5607 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5608else
5609 enable_pgo_build=no
5610fi
5611
5612
5613# Issue errors and warnings for invalid/strange PGO build combinations.
5614case "$have_compiler:$host:$target:$enable_pgo_build" in
5615 *:*:*:no) ;;
5616
5617 # Allow the PGO build only if we aren't building a compiler and
5618 # we are in a native configuration.
5619 no:$build:$build:yes | no:$build:$build:lto) ;;
5620
5621 # Disallow the PGO bootstrap if we are building a compiler.
5622 yes:*:*:yes | yes:*:*:lto)
5623 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5624
5625 *)
5626 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5627 ;;
5628esac
5629
5630if test "$enable_pgo_build" != "no"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5632$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5633 old_CFLAGS="$CFLAGS"
5634 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5635 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5636
5637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h. */
5639int foo;
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
5642
5643else
5644 PGO_BUILD_GEN_CFLAGS=
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 CFLAGS="$old_CFLAGS"
5648 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650$as_echo "yes" >&6; }
5651 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5656 fi
5657
5658 if test "$enable_pgo_build" = "lto"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5660$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5661 old_CFLAGS="$CFLAGS"
5662 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5663 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h. */
5666int foo;
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669
5670else
5671 PGO_BUILD_LTO_CFLAGS=
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 CFLAGS="$old_CFLAGS"
5675 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677$as_echo "yes" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5682$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5683 fi
5684 fi
5685fi
5686
5687
5688
5689
d5f2ee2e
KG
5690# Used for setting $lt_cv_objdir
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5692$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5693if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5694 $as_echo_n "(cached) " >&6
5695else
5696 rm -f .libs 2>/dev/null
5697mkdir .libs 2>/dev/null
5698if test -d .libs; then
5699 lt_cv_objdir=.libs
5700else
5701 # MS-DOS does not allow filenames that begin with a dot.
5702 lt_cv_objdir=_libs
5703fi
5704rmdir .libs 2>/dev/null
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5707$as_echo "$lt_cv_objdir" >&6; }
5708objdir=$lt_cv_objdir
5709
5710
5711
5712
5713
5714cat >>confdefs.h <<_ACEOF
5715#define LT_OBJDIR "$lt_cv_objdir/"
5716_ACEOF
5717
5718
5719
e8a5fa9c 5720# Check for GMP, MPFR and MPC
d9b76ff9 5721gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5722gmpinc=
4b900473 5723have_gmp=no
e8a5fa9c
RW
5724
5725# Specify a location for mpc
5726# check for this first so it ends up on the link line before mpfr.
5727
81ecdfbb
RW
5728# Check whether --with-mpc was given.
5729if test "${with_mpc+set}" = set; then :
5730 withval=$with_mpc;
5731fi
e8a5fa9c 5732
e8a5fa9c 5733
e552509b 5734# Check whether --with-mpc-include was given.
81ecdfbb
RW
5735if test "${with_mpc_include+set}" = set; then :
5736 withval=$with_mpc_include;
5737fi
e8a5fa9c 5738
e8a5fa9c 5739
e552509b 5740# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5741if test "${with_mpc_lib+set}" = set; then :
5742 withval=$with_mpc_lib;
5743fi
e8a5fa9c 5744
e8a5fa9c
RW
5745
5746if test "x$with_mpc" != x; then
d9b76ff9
KG
5747 gmplibs="-L$with_mpc/lib $gmplibs"
5748 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5749fi
5750if test "x$with_mpc_include" != x; then
d9b76ff9 5751 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5752fi
5753if test "x$with_mpc_lib" != x; then
d9b76ff9 5754 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5755fi
5756if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5757 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5758 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5759 # Do not test the mpc version. Assume that it is sufficient, since
5760 # it is in the source tree, and the library has not been built yet
5761 # but it would be included on the link line in the version check below
5762 # hence making the test fail.
d9b76ff9 5763 have_gmp=yes
e8a5fa9c 5764fi
4b900473 5765
11b04d1f
DD
5766# Specify a location for mpfr
5767# check for this first so it ends up on the link line before gmp.
c6b750e1 5768
81ecdfbb
RW
5769# Check whether --with-mpfr-dir was given.
5770if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5771 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5772Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5773fi
5774
11b04d1f
DD
5775
5776
81ecdfbb
RW
5777# Check whether --with-mpfr was given.
5778if test "${with_mpfr+set}" = set; then :
5779 withval=$with_mpfr;
5780fi
c6b750e1 5781
11b04d1f 5782
e552509b 5783# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5784if test "${with_mpfr_include+set}" = set; then :
5785 withval=$with_mpfr_include;
5786fi
c6b750e1 5787
8a0d8a5c 5788
e552509b 5789# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5790if test "${with_mpfr_lib+set}" = set; then :
5791 withval=$with_mpfr_lib;
5792fi
8a0d8a5c 5793
11b04d1f
DD
5794
5795if test "x$with_mpfr" != x; then
5796 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5797 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5798fi
8a0d8a5c 5799if test "x$with_mpfr_include" != x; then
d9b76ff9 5800 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5801fi
5802if test "x$with_mpfr_lib" != x; then
5803 gmplibs="-L$with_mpfr_lib $gmplibs"
5804fi
4b900473 5805if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5806 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5807 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5808 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5809 fi
05a13254
NC
5810 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5811 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5812 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5813 # Do not test the mpfr version. Assume that it is sufficient, since
5814 # it is in the source tree, and the library has not been built yet
5815 # but it would be included on the link line in the version check below
5816 # hence making the test fail.
5817 have_gmp=yes
5818fi
11b04d1f 5819
4b1cb4fe 5820# Specify a location for gmp
c6b750e1 5821
81ecdfbb
RW
5822# Check whether --with-gmp-dir was given.
5823if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5824 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5825Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5826fi
5827
4b1cb4fe
DD
5828
5829
81ecdfbb
RW
5830# Check whether --with-gmp was given.
5831if test "${with_gmp+set}" = set; then :
5832 withval=$with_gmp;
5833fi
c6b750e1 5834
4b1cb4fe 5835
e552509b 5836# Check whether --with-gmp-include was given.
81ecdfbb
RW
5837if test "${with_gmp_include+set}" = set; then :
5838 withval=$with_gmp_include;
5839fi
c6b750e1 5840
8a0d8a5c 5841
e552509b 5842# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5843if test "${with_gmp_lib+set}" = set; then :
5844 withval=$with_gmp_lib;
5845fi
8a0d8a5c
PB
5846
5847
4b1cb4fe 5848
11b04d1f
DD
5849if test "x$with_gmp" != x; then
5850 gmplibs="-L$with_gmp/lib $gmplibs"
5851 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5852fi
8a0d8a5c
PB
5853if test "x$with_gmp_include" != x; then
5854 gmpinc="-I$with_gmp_include $gmpinc"
5855fi
5856if test "x$with_gmp_lib" != x; then
5857 gmplibs="-L$with_gmp_lib $gmplibs"
5858fi
4b900473 5859if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5860 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5861 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5862 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5863 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5864 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5865 # Do not test the gmp version. Assume that it is sufficient, since
5866 # it is in the source tree, and the library has not been built yet
5867 # but it would be included on the link line in the version check below
5868 # hence making the test fail.
5869 have_gmp=yes
5870fi
4b1cb4fe 5871
ceb92e78 5872if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5873 have_gmp=yes
5874 saved_CFLAGS="$CFLAGS"
5875 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5876 # Check for the recommended and required versions of GMP.
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5878$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5880/* end confdefs.h. */
5881#include "gmp.h"
5882int
5883main ()
5884{
5885
5886 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5887 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5888 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5889 choke me
5890 #endif
5891
5892 ;
5893 return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5898/* end confdefs.h. */
a6b5846e 5899#include <gmp.h>
c6b750e1
DJ
5900int
5901main ()
5902{
4b1cb4fe 5903
a6b5846e
KG
5904 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5905 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5906 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5907 choke me
5908 #endif
c6b750e1
DJ
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
81ecdfbb
RW
5914if ac_fn_c_try_compile "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5916$as_echo "yes" >&6; }
a6b5846e
KG
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5919$as_echo "buggy but acceptable" >&6; }
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5922else
81ecdfbb
RW
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5925fi
81ecdfbb 5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5927
e8a5fa9c 5928 # If we have GMP, check the MPFR version.
4b900473 5929 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5930 # Check for the recommended and required versions of MPFR.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5932$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5934/* end confdefs.h. */
9b134994 5935#include <gmp.h>
4b900473 5936 #include <mpfr.h>
c6b750e1
DJ
5937int
5938main ()
5939{
9b134994 5940
7ec59b9e 5941 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5942 choke me
5943 #endif
c6b750e1
DJ
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
81ecdfbb
RW
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5951/* end confdefs.h. */
4b1cb4fe 5952#include <gmp.h>
4b900473 5953 #include <mpfr.h>
c6b750e1
DJ
5954int
5955main ()
5956{
9dbaa842 5957
a6b5846e 5958 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5959 choke me
5960 #endif
e8a5fa9c
RW
5961
5962 ;
5963 return 0;
5964}
5965_ACEOF
81ecdfbb
RW
5966if ac_fn_c_try_compile "$LINENO"; then :
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5968$as_echo "yes" >&6; }
e8a5fa9c 5969else
81ecdfbb
RW
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5971$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5972fi
81ecdfbb 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5974else
81ecdfbb
RW
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5977fi
81ecdfbb 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5979 fi
5980
5981 # Check for the MPC header version.
d9b76ff9 5982 if test x"$have_gmp" = xyes ; then
a6b5846e 5983 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5985$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5987/* end confdefs.h. */
5988#include <mpc.h>
5989int
5990main ()
5991{
5992
a6b5846e
KG
5993 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5994 choke me
5995 #endif
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#include <mpc.h>
6005int
6006main ()
6007{
6008
6009 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
6010 choke me
6011 #endif
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
81ecdfbb
RW
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 6019$as_echo "yes" >&6; }
a6b5846e
KG
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6022$as_echo "buggy but acceptable" >&6; }
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 6025else
81ecdfbb 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 6027$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 6028fi
81ecdfbb 6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
6030 fi
6031
6032 # Now check the MPFR library.
6033 if test x"$have_gmp" = xyes; then
6034 saved_LIBS="$LIBS"
6035 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6037$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 6039/* end confdefs.h. */
d9b76ff9 6040#include <mpc.h>
e8a5fa9c
RW
6041int
6042main ()
6043{
6044
6045 mpfr_t n;
6046 mpfr_t x;
d9b76ff9 6047 mpc_t c;
e8a5fa9c
RW
6048 int t;
6049 mpfr_init (n);
6050 mpfr_init (x);
6051 mpfr_atan2 (n, n, x, GMP_RNDN);
6052 mpfr_erfc (n, x, GMP_RNDN);
6053 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
6054 mpfr_clear(n);
6055 mpfr_clear(x);
6056 mpc_init2 (c, 53);
6057 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6058 mpc_cosh (c, c, MPC_RNDNN);
6059 mpc_pow (c, c, c, MPC_RNDNN);
6060 mpc_acosh (c, c, MPC_RNDNN);
6061 mpc_clear (c);
c6b750e1
DJ
6062
6063 ;
6064 return 0;
6065}
6066_ACEOF
81ecdfbb
RW
6067if ac_fn_c_try_link "$LINENO"; then :
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6069$as_echo "yes" >&6; }
c6b750e1 6070else
81ecdfbb
RW
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }; have_gmp=no
c6b750e1 6073fi
81ecdfbb
RW
6074rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
6076 LIBS="$saved_LIBS"
6077 fi
6078
4b900473 6079 CFLAGS="$saved_CFLAGS"
4b1cb4fe 6080
a6b5846e
KG
6081# The library versions listed in the error message below should match
6082# the HARD-minimums enforced above.
4b900473 6083 if test x$have_gmp != xyes; then
d0ac1c44 6084 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
6085Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6086their locations. Source code for these libraries can be found at
6087their respective hosting sites as well as at
6088ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6089http://gcc.gnu.org/install/prerequisites.html for additional info. If
6090you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6091make sure that you have installed both the libraries and the header
6092files. They may be located in separate packages." "$LINENO" 5
4b900473 6093 fi
9dbaa842
DD
6094fi
6095
e8a5fa9c
RW
6096# Flags needed for both GMP, MPFR and/or MPC.
6097
6098
6099
4b1cb4fe
DD
6100
6101
6102
7ec59b9e 6103
b3676d82 6104# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 6105
b3676d82
EB
6106# Check whether --with-stage1-libs was given.
6107if test "${with_stage1_libs+set}" = set; then :
6108 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6109 stage1_libs=
e8a5fa9c 6110 else
b3676d82 6111 stage1_libs=$withval
e8a5fa9c
RW
6112 fi
6113else
68996839 6114 stage1_libs=
81ecdfbb
RW
6115fi
6116
e8a5fa9c
RW
6117
6118
c1a5d03a
TT
6119# Whether or not to use -static-libstdc++ and -static-libgcc. The
6120# default is yes if gcc is being built; no otherwise. The reason for
6121# this default is that gdb is sometimes linked against GNU Source
6122# Highlight, which is a shared library that uses C++ exceptions. In
6123# this case, -static-libstdc++ will cause crashes.
6124
6125# Check whether --with-static-standard-libraries was given.
6126if test "${with_static_standard_libraries+set}" = set; then :
6127 withval=$with_static_standard_libraries;
6128else
6129 with_static_standard_libraries=auto
6130fi
6131
6132if test "$with_static_standard_libraries" = auto; then
6133 with_static_standard_libraries=$have_compiler
6134fi
6135
b3676d82 6136# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 6137
b3676d82
EB
6138# Check whether --with-stage1-ldflags was given.
6139if test "${with_stage1_ldflags+set}" = set; then :
6140 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6141 stage1_ldflags=
e8a5fa9c 6142 else
b3676d82 6143 stage1_ldflags=$withval
e8a5fa9c
RW
6144 fi
6145else
b3676d82
EB
6146 stage1_ldflags=
6147 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6148 # if supported. But if the user explicitly specified the libraries to use,
6149 # trust that they are doing what they want.
c1a5d03a
TT
6150 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6151 -a "$have_static_libs" = yes; then
b3676d82
EB
6152 stage1_ldflags="-static-libstdc++ -static-libgcc"
6153 fi
81ecdfbb
RW
6154fi
6155
e8a5fa9c
RW
6156
6157
68996839 6158# Libraries to use for stage2 and later builds.
e8a5fa9c 6159
81ecdfbb
RW
6160# Check whether --with-boot-libs was given.
6161if test "${with_boot_libs+set}" = set; then :
6162 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
6163 poststage1_libs=
6164 else
6165 poststage1_libs=$withval
6166 fi
6167else
68996839 6168 poststage1_libs=
81ecdfbb
RW
6169fi
6170
e8a5fa9c
RW
6171
6172
143754cd
NC
6173# Linker flags to use for stage2 and later builds.
6174
6175# Check whether --with-boot-ldflags was given.
6176if test "${with_boot_ldflags+set}" = set; then :
6177 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6178 poststage1_ldflags=
6179 else
6180 poststage1_ldflags=$withval
6181 fi
6182else
6183 poststage1_ldflags=
4f11b223
ILT
6184 # In stages 2 and 3, default to linking libstdc++ and libgcc
6185 # statically. But if the user explicitly specified the libraries to
6186 # use, trust that they are doing what they want.
6187 if test "$poststage1_libs" = ""; then
143754cd
NC
6188 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6189 fi
6190fi
6191
6192
6193
4849dfd8 6194# GCC GRAPHITE dependency isl.
1b6c0831 6195# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6196
6197
7ec59b9e
L
6198# Check whether --with-isl was given.
6199if test "${with_isl+set}" = set; then :
6200 withval=$with_isl;
81ecdfbb 6201fi
e28c595f 6202
e28c595f 6203
1b6c0831 6204# Treat --without-isl as a request to disable
8e71395b 6205# GRAPHITE support and skip all following checks.
1b6c0831 6206if test "x$with_isl" != "xno"; then
4849dfd8 6207 # Check for isl
8e71395b
L
6208
6209
7ec59b9e
L
6210# Check whether --with-isl-include was given.
6211if test "${with_isl_include+set}" = set; then :
6212 withval=$with_isl_include;
81ecdfbb
RW
6213fi
6214
e28c595f 6215
7ec59b9e
L
6216# Check whether --with-isl-lib was given.
6217if test "${with_isl_lib+set}" = set; then :
6218 withval=$with_isl_lib;
81ecdfbb 6219fi
e28c595f 6220
e28c595f 6221
7ec59b9e
L
6222 # Check whether --enable-isl-version-check was given.
6223if test "${enable_isl_version_check+set}" = set; then :
6224 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6225else
6226 ENABLE_ISL_CHECK=yes
b123da99
SP
6227fi
6228
6229
7ec59b9e
L
6230 # Initialize isllibs and islinc.
6231 case $with_isl in
6232 no)
6233 isllibs=
6234 islinc=
6235 ;;
6236 "" | yes)
6237 ;;
6238 *)
6239 isllibs="-L$with_isl/lib"
6240 islinc="-I$with_isl/include"
6241 ;;
6242 esac
6243 if test "x${with_isl_include}" != x ; then
6244 islinc="-I$with_isl_include"
6245 fi
6246 if test "x${with_isl_lib}" != x; then
6247 isllibs="-L$with_isl_lib"
6248 fi
6249 if test "x${islinc}" = x && test "x${isllibs}" = x \
6250 && test -d ${srcdir}/isl; then
6251 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6252 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6253 ENABLE_ISL_CHECK=no
4849dfd8
NC
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6255$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6256 fi
b123da99 6257
1b6c0831 6258 isllibs="${isllibs} -lisl"
b123da99 6259
e28c595f 6260
b3fc79f8
JBG
6261
6262 if test "${ENABLE_ISL_CHECK}" = yes ; then
6263 _isl_saved_CFLAGS=$CFLAGS
6264 _isl_saved_LDFLAGS=$LDFLAGS
6265 _isl_saved_LIBS=$LIBS
6266
6267 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6268 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6269 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6270
bf41f30d
NC
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6272$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6274/* end confdefs.h. */
bf41f30d 6275#include <isl/schedule.h>
b3fc79f8
JBG
6276int
6277main ()
6278{
bf41f30d 6279isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6280 ;
6281 return 0;
6282}
6283_ACEOF
1b6c0831 6284if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6285 gcc_cv_isl=yes
6286else
6287 gcc_cv_isl=no
6288fi
1b6c0831
L
6289rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6292$as_echo "$gcc_cv_isl" >&6; }
6293
4849dfd8 6294 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6296$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6297 fi
6298
b3fc79f8
JBG
6299 CFLAGS=$_isl_saved_CFLAGS
6300 LDFLAGS=$_isl_saved_LDFLAGS
6301 LIBS=$_isl_saved_LIBS
6302 fi
6303
6304
e28c595f 6305
e28c595f 6306
7ec59b9e
L
6307
6308
7ec59b9e
L
6309 if test "x${with_isl}" = xno; then
6310 graphite_requested=no
6311 elif test "x${with_isl}" != x \
6312 || test "x${with_isl_include}" != x \
6313 || test "x${with_isl_lib}" != x ; then
6314 graphite_requested=yes
6315 else
6316 graphite_requested=no
b123da99 6317 fi
e28c595f 6318
e28c595f
JM
6319
6320
7ec59b9e
L
6321 if test "${gcc_cv_isl}" = no ; then
6322 isllibs=
6323 islinc=
6324 fi
e28c595f 6325
7ec59b9e
L
6326 if test "${graphite_requested}" = yes \
6327 && test "x${isllibs}" = x \
6328 && test "x${islinc}" = x ; then
e28c595f 6329
d0ac1c44 6330 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6331 fi
e552509b 6332
e28c595f 6333
e552509b
ILT
6334fi
6335
4849dfd8 6336# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6337if test "x$with_isl" = xno ||
8e71395b 6338 test "x$gcc_cv_isl" = xno; then
1b6c0831 6339 noconfigdirs="$noconfigdirs isl"
8e71395b 6340 islinc=
7ec59b9e
L
6341fi
6342
8e71395b
L
6343
6344
6345
700d40ca
ILT
6346# Check for LTO support.
6347# Check whether --enable-lto was given.
6348if test "${enable_lto+set}" = set; then :
6349 enableval=$enable_lto; enable_lto=$enableval
6350else
6351 enable_lto=yes; default_enable_lto=yes
6352fi
6353
6354
143754cd 6355
e49e5c92
DK
6356
6357
6358target_elf=no
6359case $target in
6360 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6361 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6362 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6363 nvptx-*-none)
e49e5c92
DK
6364 target_elf=no
6365 ;;
6366 *)
6367 target_elf=yes
6368 ;;
6369esac
6370
6371if test $target_elf = yes; then :
74cea91b
DK
6372 # ELF platforms build the lto-plugin always.
6373 build_lto_plugin=yes
e49e5c92 6374
e49e5c92
DK
6375else
6376 if test x"$default_enable_lto" = x"yes" ; then
29821356 6377 case $target in
bf41f30d 6378 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6379 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6380 *) enable_lto=no ;;
6381 esac
e49e5c92 6382 else
29821356
RW
6383 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6384 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6385 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6386 # warn during gcc/ subconfigure; unless you're bootstrapping with
6387 # -flto it won't be needed until after installation anyway.
6388 case $target in
52cf9762 6389 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6390 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6391 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6392 fi
6393 ;;
6394 esac
6395 fi
a8eb3f0a 6396 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6397 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6398 case $target in
74cea91b 6399 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6400 *) ;;
6401 esac
74cea91b 6402
e49e5c92
DK
6403fi
6404
700d40ca 6405
1b6c0831
L
6406# Check whether --enable-linker-plugin-configure-flags was given.
6407if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6408 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6409else
6410 extra_linker_plugin_configure_flags=
6411fi
6412
6413
6414# Check whether --enable-linker-plugin-flags was given.
6415if test "${enable_linker_plugin_flags+set}" = set; then :
6416 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6417else
6418 extra_linker_plugin_flags=
6419fi
6420
6421
6422
bf41f30d
NC
6423# Enable --enable-host-shared.
6424# Checked early to determine whether jit is an 'all' language
6425# Check whether --enable-host-shared was given.
6426if test "${enable_host_shared+set}" = set; then :
6427 enableval=$enable_host_shared; host_shared=$enableval
6428else
6429 host_shared=no
6430fi
6431
6432
e28c595f 6433
7ec59b9e 6434# By default, C and C++ are the only stage 1 languages.
9b134994 6435stage1_languages=,c,
1d39f329 6436
e8a5fa9c 6437# Target libraries that we bootstrap.
2aa2364a 6438bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6439
9e07f89d
NN
6440# Figure out what language subdirectories are present.
6441# Look if the user specified --enable-languages="..."; if not, use
6442# the environment variable $LANGUAGES if defined. $LANGUAGES might
6443# go away some day.
6444# NB: embedded tabs in this IF block -- do not untabify
6445if test -d ${srcdir}/gcc; then
6446 if test x"${enable_languages+set}" != xset; then
6447 if test x"${LANGUAGES+set}" = xset; then
6448 enable_languages="${LANGUAGES}"
136bb21f 6449 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6450 else
bf41f30d 6451 enable_languages=default
9e07f89d
NN
6452 fi
6453 else
6454 if test x"${enable_languages}" = x ||
6455 test x"${enable_languages}" = xyes;
6456 then
136bb21f 6457 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6458 exit 1
6459 fi
6460 fi
6461 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6462
096f7d00
DE
6463 # 'f95' is the old name for the 'fortran' language. We issue a warning
6464 # and make the substitution.
6465 case ,${enable_languages}, in
6466 *,f95,*)
136bb21f 6467 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6468 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6469 ;;
6470 esac
6471
7ec59b9e
L
6472 # If bootstrapping, C++ must be enabled.
6473 case ",$enable_languages,:$enable_bootstrap" in
6474 *,c++,*:*) ;;
6475 *:yes)
ffdd6afc
ILT
6476 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6477 enable_languages="${enable_languages},c++"
6478 else
d0ac1c44 6479 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6480 fi
6481 ;;
6482 esac
6483
9e07f89d
NN
6484 # First scan to see if an enabled language requires some other language.
6485 # We assume that a given config-lang.in will list all the language
6486 # front ends it requires, even if some are required indirectly.
6487 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6488 case ${lang_frag} in
6489 ..) ;;
6490 # The odd quoting in the next line works around
6491 # an apparent bug in bash 1.12 on linux.
6492 ${srcdir}/gcc/[*]/config-lang.in) ;;
6493 *)
e552509b
ILT
6494 # From the config-lang.in, get $language, $lang_requires, and
6495 # $lang_requires_boot_languages.
9e07f89d
NN
6496 language=
6497 lang_requires=
e552509b 6498 lang_requires_boot_languages=
bf41f30d
NC
6499 # set srcdir during sourcing lang_frag to the gcc dir.
6500 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6501 # polutes this shell
6502 saved_srcdir=${srcdir}
6503 srcdir=${srcdir}/gcc . ${lang_frag}
6504 srcdir=${saved_srcdir}
e552509b 6505 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6506 case ,${enable_languages}, in
6507 *,$other,*) ;;
bf41f30d 6508 *,default,*) ;;
9e07f89d
NN
6509 *,all,*) ;;
6510 *,$language,*)
6511 echo " \`$other' language required by \`$language'; enabling" 1>&2
6512 enable_languages="${enable_languages},${other}"
6513 ;;
6514 esac
6515 done
e552509b
ILT
6516 for other in ${lang_requires_boot_languages} ; do
6517 if test "$other" != "c"; then
6518 case ,${enable_stage1_languages}, in
6519 *,$other,*) ;;
bf41f30d 6520 *,default,*) ;;
e552509b
ILT
6521 *,all,*) ;;
6522 *)
6523 case ,${enable_languages}, in
6524 *,$language,*)
6525 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6526 enable_stage1_languages="$enable_stage1_languages,${other}"
6527 ;;
6528 esac
6529 ;;
6530 esac
6531 fi
6532 done
9e07f89d
NN
6533 ;;
6534 esac
6535 done
6536
9b134994 6537 new_enable_languages=,c,
700d40ca
ILT
6538
6539 # If LTO is enabled, add the LTO front end.
700d40ca 6540 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6541 case ,${enable_languages}, in
6542 *,lto,*) ;;
6543 *) enable_languages="${enable_languages},lto" ;;
6544 esac
a8eb3f0a 6545 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6546 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6547 fi
6548 fi
6549
1b6c0831
L
6550 # If we're building an offloading compiler, add the LTO front end.
6551 if test x"$enable_as_accelerator_for" != x ; then
6552 case ,${enable_languages}, in
6553 *,lto,*) ;;
6554 *) enable_languages="${enable_languages},lto" ;;
6555 esac
6556 fi
700d40ca 6557
bf41f30d 6558 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6559 potential_languages=,c,
9e07f89d 6560
9e1a94f4
ILT
6561 enabled_target_libs=
6562 disabled_target_libs=
6563
9e07f89d
NN
6564 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6565 case ${lang_frag} in
6566 ..) ;;
6567 # The odd quoting in the next line works around
6568 # an apparent bug in bash 1.12 on linux.
6569 ${srcdir}/gcc/[*]/config-lang.in) ;;
6570 *)
c6b750e1 6571 # From the config-lang.in, get $language, $target_libs,
1d39f329 6572 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6573 language=
6574 target_libs=
6575 lang_dirs=
64ce424c 6576 subdir_requires=
9b134994
PB
6577 boot_language=no
6578 build_by_default=yes
bf41f30d
NC
6579 # set srcdir during sourcing. See above about save & restore
6580 saved_srcdir=${srcdir}
6581 srcdir=${srcdir}/gcc . ${lang_frag}
6582 srcdir=${saved_srcdir}
9b134994
PB
6583 if test x${language} = x; then
6584 echo "${lang_frag} doesn't set \$language." 1>&2
6585 exit 1
6586 fi
6587
ffdd6afc 6588 if test "$language" = "c++"; then
7ec59b9e 6589 boot_language=yes
e8a5fa9c
RW
6590 fi
6591
8e71395b 6592 add_this_lang=no
bf41f30d
NC
6593 # C is always enabled, so no need to add it again
6594 if test "$language" != "c"; then
6595 case ,${enable_languages}, in
6596 *,${language},*)
6597 # Language was explicitly selected; include it
7ec59b9e 6598 add_this_lang=yes
bf41f30d
NC
6599 ;;
6600 *,all,*)
6601 # All languages are enabled
6602 add_this_lang=all
6603 ;;
6604 *,default,*)
6605 # 'default' was selected, select it if it is a default language
8e71395b 6606 add_this_lang=${build_by_default}
bf41f30d
NC
6607 ;;
6608 esac
6609 fi
4b1cb4fe 6610
64ce424c 6611 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6612 for i in $subdir_requires; do
3d3adb43 6613 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6614 case ${add_this_lang} in
6615 yes)
64ce424c 6616 # Specifically requested language; tell them.
d0ac1c44 6617 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6618 ;;
bf41f30d
NC
6619 all)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6621$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6622 add_this_lang=unsupported
6623 ;;
64ce424c
PB
6624 *)
6625 # Silently disable.
9b134994 6626 add_this_lang=unsupported
64ce424c
PB
6627 ;;
6628 esac
6629 done
6630
9b134994 6631 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6632 case ${add_this_lang}:${language}:${have_gnat} in
6633 yes:ada:no)
9b134994 6634 # Specifically requested language; tell them.
d0ac1c44 6635 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6636 ;;
bf41f30d
NC
6637 all:ada:no)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6639$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6640 add_this_lang=unsupported
6641 ;;
9b134994
PB
6642 *:ada:no)
6643 # Silently disable.
6644 add_this_lang=unsupported
6645 ;;
6646 esac
6647
bf41f30d
NC
6648 # Disable jit if -enable-host-shared not specified
6649 case ${add_this_lang}:${language}:${host_shared} in
6650 yes:jit:no)
6651 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6652 as_fn_error $? "
bf41f30d
NC
6653Enabling language \"jit\" requires --enable-host-shared.
6654
6655--enable-host-shared typically slows the rest of the compiler down by
6656a few %, so you must explicitly enable it.
6657
6658If you want to build both the jit and the regular compiler, it is often
6659best to do this via two separate configure/builds, in separate
6660directories, to avoid imposing the performance cost of
6661--enable-host-shared on the regular compiler." "$LINENO" 5
6662 ;;
6663 all:jit:no)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6665$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6666 add_this_lang=unsupported
6667 ;;
6668 *:jit:no)
6669 # Silently disable.
6670 add_this_lang=unsupported
6671 ;;
6672 esac
6673
6674 # Disable a language that is unsupported by the target.
6675 case "${add_this_lang}: $unsupported_languages " in
6676 no:*) ;;
6677 unsupported:*) ;;
6678 *:*" $language "*)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6680$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6681 add_this_lang=unsupported
59f7ec45
HPN
6682 ;;
6683 esac
6684
4b1cb4fe 6685 case $add_this_lang in
9b134994 6686 unsupported)
9e07f89d 6687 # Remove language-dependent dirs.
9e1a94f4
ILT
6688 disabled_target_libs="$disabled_target_libs $target_libs"
6689 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6690 ;;
9b134994
PB
6691 no)
6692 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6693 disabled_target_libs="$disabled_target_libs $target_libs"
6694 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6695 potential_languages="${potential_languages}${language},"
6696 ;;
bf41f30d 6697 all|yes)
9b134994
PB
6698 new_enable_languages="${new_enable_languages}${language},"
6699 potential_languages="${potential_languages}${language},"
1d39f329 6700 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6701 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6702 case "${boot_language}:,$enable_stage1_languages," in
6703 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6704 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6705 case ",$stage1_languages," in
6706 *,$language,* | ,yes, | ,all,) ;;
6707 *) stage1_languages="${stage1_languages}${language}," ;;
6708 esac
e8a5fa9c
RW
6709 # We need to bootstrap any supporting libraries.
6710 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6711 ;;
6712 esac
6713 ;;
9e07f89d
NN
6714 esac
6715 ;;
6716 esac
6717 done
6718
9e1a94f4
ILT
6719 # Add target libraries which are only needed for disabled languages
6720 # to noconfigdirs.
6721 if test -n "$disabled_target_libs"; then
6722 for dir in $disabled_target_libs; do
6723 case " $enabled_target_libs " in
6724 *" ${dir} "*) ;;
6725 *) noconfigdirs="$noconfigdirs $dir" ;;
6726 esac
6727 done
6728 fi
6729
81ecdfbb
RW
6730 # Check whether --enable-stage1-languages was given.
6731if test "${enable_stage1_languages+set}" = set; then :
6732 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6733 ,no,|,,)
6734 # Set it to something that will have no effect in the loop below
6735 enable_stage1_languages=c ;;
6736 ,yes,)
6737 enable_stage1_languages=`echo $new_enable_languages | \
6738 sed -e "s/^,//" -e "s/,$//" ` ;;
6739 *,all,*)
6740 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6741 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6742 esac
6743
6744 # Add "good" languages from enable_stage1_languages to stage1_languages,
6745 # while "bad" languages go in missing_languages. Leave no duplicates.
6746 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6747 case $potential_languages in
6748 *,$i,*)
6749 case $stage1_languages in
6750 *,$i,*) ;;
6751 *) stage1_languages="$stage1_languages$i," ;;
6752 esac ;;
6753 *)
6754 case $missing_languages in
6755 *,$i,*) ;;
6756 *) missing_languages="$missing_languages$i," ;;
6757 esac ;;
6758 esac
6759 done
81ecdfbb
RW
6760fi
6761
9b134994
PB
6762
6763 # Remove leading/trailing commas that were added for simplicity
6764 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6765 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6766 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6767 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6768
9e07f89d 6769 if test "x$missing_languages" != x; then
d0ac1c44 6770 as_fn_error $? "
27258dd4 6771The following requested languages could not be built: ${missing_languages}
81ecdfbb 6772Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6773 fi
9e07f89d
NN
6774 if test "x$new_enable_languages" != "x$enable_languages"; then
6775 echo The following languages will be built: ${new_enable_languages}
9b134994 6776 enable_languages="$new_enable_languages"
9e07f89d 6777 fi
9b134994 6778
c6b750e1 6779
81ec575a 6780 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6781fi
6782
a6df5a19
PB
6783# Handle --disable-<component> generically.
6784for dir in $configdirs $build_configdirs $target_configdirs ; do
6785 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6786 varname=`echo $dirname | sed -e s/+/_/g`
6787 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6788 noconfigdirs="$noconfigdirs $dir"
6789 fi
6790done
6791
4f0ef2d8 6792# Check for Boehm's garbage collector
81ecdfbb
RW
6793# Check whether --enable-objc-gc was given.
6794if test "${enable_objc_gc+set}" = set; then :
05a13254 6795 enableval=$enable_objc_gc;
81ecdfbb
RW
6796fi
6797
4f0ef2d8 6798
05a13254
NC
6799# Check whether --with-target-bdw-gc was given.
6800if test "${with_target_bdw_gc+set}" = set; then :
6801 withval=$with_target_bdw_gc;
6802fi
6803
6804
6805# Check whether --with-target-bdw-gc-include was given.
6806if test "${with_target_bdw_gc_include+set}" = set; then :
6807 withval=$with_target_bdw_gc_include;
6808fi
6809
6810
6811# Check whether --with-target-bdw-gc-lib was given.
6812if test "${with_target_bdw_gc_lib+set}" = set; then :
6813 withval=$with_target_bdw_gc_lib;
6814fi
6815
6816
6817case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6819$as_echo_n "checking for bdw garbage collector... " >&6; }
6820 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6822$as_echo "using bdw-gc in default locations" >&6; }
6823 else
6824 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6825 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6826 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6827 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6830$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6831 fi
05a13254 6832 fi
4f0ef2d8
CD
6833esac
6834
bf41f30d 6835# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6836case ,${enable_languages}, in
1b6c0831 6837 *,c++,*)
bf41f30d 6838 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6839 case "${noconfigdirs}" in
6840 *target-libstdc++-v3*)
bf41f30d 6841 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6842 ;;
6843 *) ;;
6844 esac
6845 ;;
7ec59b9e 6846 *)
bf41f30d 6847 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6848 ;;
6849esac
6850
d33228c9
AB
6851# If gcc/ is not in the source tree then we'll not be building a
6852# target compiler, assume in that case we don't want to build any
6853# target libraries or tools.
6854#
6855# This was added primarily for the benefit for binutils-gdb who reuse
6856# this configure script, but don't always have target tools available.
6857if test ! -d ${srcdir}/gcc; then
6858 skipdirs="${skipdirs} ${target_configdirs}"
6859fi
6860
caeba88f
AL
6861# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6862# $build_configdirs and $target_configdirs.
9e07f89d
NN
6863# If we have the source for $noconfigdirs entries, add them to $notsupp.
6864
6865notsupp=""
6866for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6867 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6868 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6869 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6870 if test -r $srcdir/$dirname/configure ; then
6871 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6872 true
6873 else
6874 notsupp="$notsupp $dir"
6875 fi
6876 fi
6877 fi
caeba88f
AL
6878 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6879 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6880 if test -r $srcdir/$dirname/configure ; then
6881 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6882 true
6883 else
6884 notsupp="$notsupp $dir"
6885 fi
6886 fi
6887 fi
9e07f89d
NN
6888 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6889 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6890 if test -r $srcdir/$dirname/configure ; then
6891 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6892 true
6893 else
6894 notsupp="$notsupp $dir"
6895 fi
6896 fi
6897 fi
6898done
6899
9e07f89d
NN
6900# Quietly strip out all directories which aren't configurable in this tree.
6901# This relies on all configurable subdirectories being autoconfiscated, which
6902# is now the case.
6a9cf61e
PB
6903build_configdirs_all="$build_configdirs"
6904build_configdirs=
6905for i in ${build_configdirs_all} ; do
c6b750e1 6906 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6907 if test -f ${srcdir}/$j/configure ; then
6908 build_configdirs="${build_configdirs} $i"
6909 fi
6910done
6911
9e07f89d
NN
6912configdirs_all="$configdirs"
6913configdirs=
6914for i in ${configdirs_all} ; do
6915 if test -f ${srcdir}/$i/configure ; then
6916 configdirs="${configdirs} $i"
6917 fi
6918done
6a9cf61e 6919
9e07f89d
NN
6920target_configdirs_all="$target_configdirs"
6921target_configdirs=
6922for i in ${target_configdirs_all} ; do
c6b750e1 6923 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6924 if test -f ${srcdir}/$j/configure ; then
6925 target_configdirs="${target_configdirs} $i"
6926 fi
6927done
6928
1b6c0831
L
6929# libiberty-linker-plugin is special: it doesn't have its own source directory,
6930# so we have to add it after the preceding checks.
6931if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6932then
6933 case " $configdirs " in
6934 *" libiberty "*)
6935 # If we can build libiberty, we can also build libiberty-linker-plugin.
6936 configdirs="$configdirs libiberty-linker-plugin"
6937 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6938 --with-libiberty=../libiberty-linker-plugin";;
6939 *)
d0ac1c44 6940 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6941 esac
6942fi
6943
6944# Sometimes we have special requirements for the host libiberty.
6945extra_host_libiberty_configure_flags=
e81d5d05 6946extra_host_zlib_configure_flags=
1b6c0831
L
6947case " $configdirs " in
6948 *" lto-plugin "* | *" libcc1 "*)
6949 # When these are to be built as shared libraries, the same applies to
6950 # libiberty.
6951 extra_host_libiberty_configure_flags=--enable-shared
6952 ;;
e81d5d05
L
6953 *" bfd "*)
6954 # When bfd is to be built as a shared library, the same applies to
6955 # zlib.
6956 if test "$enable_shared" = "yes"; then
6957 extra_host_zlib_configure_flags=--enable-host-shared
6958 fi
6959 ;;
1b6c0831
L
6960esac
6961
6962
e81d5d05 6963
9e07f89d
NN
6964# Produce a warning message for the subdirs we can't configure.
6965# This isn't especially interesting in the Cygnus tree, but in the individual
6966# FSF releases, it's important to let people know when their machine isn't
6967# supported by the one or two programs in a package.
6968
6969if test -n "${notsupp}" && test -z "${norecursion}" ; then
6970 # If $appdirs is non-empty, at least one of those directories must still
6971 # be configured, or we error out. (E.g., if the gas release supports a
6972 # specified target in some subdirs but not the gas subdir, we shouldn't
6973 # pretend that all is well.)
6974 if test -n "$appdirs" ; then
6975 for dir in $appdirs ; do
6976 if test -r $dir/Makefile.in ; then
6977 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6978 appdirs=""
6979 break
6980 fi
6a9cf61e 6981 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6982 appdirs=""
6983 break
6984 fi
6985 fi
6986 done
6987 if test -n "$appdirs" ; then
6988 echo "*** This configuration is not supported by this package." 1>&2
6989 exit 1
6990 fi
6991 fi
6992 # Okay, some application will build, or we don't care to check. Still
6993 # notify of subdirs not getting built.
6994 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6995 echo " ${notsupp}" 1>&2
6996 echo " (Any other directories should still work fine.)" 1>&2
6997fi
6998
6999case "$host" in
7000 *msdosdjgpp*)
7001 enable_gdbtk=no ;;
7002esac
7003
18f6b6ee
PB
7004# To find our prefix, in gcc_cv_tool_prefix.
7005
7006# The user is always right.
7007if test "${PATH_SEPARATOR+set}" != set; then
7008 echo "#! /bin/sh" >conf$$.sh
7009 echo "exit 0" >>conf$$.sh
7010 chmod +x conf$$.sh
7011 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7012 PATH_SEPARATOR=';'
7013 else
7014 PATH_SEPARATOR=:
7015 fi
7016 rm -f conf$$.sh
7017fi
7018
7019
bf41f30d
NC
7020 get_gcc_base_ver="cat"
7021
7022# Check whether --with-gcc-major-version-only was given.
7023if test "${with_gcc_major_version_only+set}" = set; then :
7024 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 7025 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
7026 fi
7027
7028fi
7029
7030
7031
7032
7033
18f6b6ee
PB
7034
7035if test "x$exec_prefix" = xNONE; then
7036 if test "x$prefix" = xNONE; then
7037 gcc_cv_tool_prefix=$ac_default_prefix
7038 else
7039 gcc_cv_tool_prefix=$prefix
7040 fi
7041else
7042 gcc_cv_tool_prefix=$exec_prefix
7043fi
7044
7045# If there is no compiler in the tree, use the PATH only. In any
7046# case, if there is no compiler in the tree nobody should use
7047# AS_FOR_TARGET and LD_FOR_TARGET.
7048if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
7049 if test x$with_gcc_major_version_only = xyes ; then
7050 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7051 else
7052 gcc_version=`cat $srcdir/gcc/BASE-VER`
7053 fi
18f6b6ee
PB
7054 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7055 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7056 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7057 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7058 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7059 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7060else
7061 gcc_cv_tool_dirs=
7062fi
7063
7064if test x$build = x$target && test -n "$md_exec_prefix"; then
7065 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7066fi
7067
7068
7069
9e07f89d
NN
7070copy_dirs=
7071
c6b750e1 7072
81ecdfbb
RW
7073# Check whether --with-build-sysroot was given.
7074if test "${with_build_sysroot+set}" = set; then :
7075 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
7076 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7077 fi
7078else
7079 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 7080fi
a19b6204
MM
7081
7082
8a6ee3ab 7083
81ecdfbb
RW
7084
7085# Check whether --with-debug-prefix-map was given.
7086if test "${with_debug_prefix_map+set}" = set; then :
7087 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
7088 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7089 for debug_map in $withval; do
7090 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7091 done
7092 fi
7093else
7094 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
7095fi
7096
8a6ee3ab
JM
7097
7098
7f6ef0c0
PB
7099# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7100# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7101# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7102# We want to ensure that TARGET libraries (which we know are built with
7103# gcc) are built with "-O2 -g", so include those options when setting
7104# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7105if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7106 if test "x${is_cross_compiler}" = xyes; then
7107 CFLAGS_FOR_TARGET="-g -O2"
7108 else
7109 CFLAGS_FOR_TARGET=$CFLAGS
7110 case " $CFLAGS " in
7111 *" -O2 "*) ;;
7112 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7113 esac
7114 case " $CFLAGS " in
7115 *" -g "* | *" -g3 "*) ;;
7116 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7117 esac
7118 fi
7f6ef0c0
PB
7119fi
7120
7121
7122if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
7123 if test "x${is_cross_compiler}" = xyes; then
7124 CXXFLAGS_FOR_TARGET="-g -O2"
7125 else
7126 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7127 case " $CXXFLAGS " in
7128 *" -O2 "*) ;;
7129 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7130 esac
7131 case " $CXXFLAGS " in
7132 *" -g "* | *" -g3 "*) ;;
7133 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7134 esac
7135 fi
7f6ef0c0
PB
7136fi
7137
7138
91c1f14c
DK
7139
7140
9e07f89d
NN
7141# Handle --with-headers=XXX. If the value is not "yes", the contents of
7142# the named directory are copied to $(tooldir)/sys-include.
7143if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7144 if test x${is_cross_compiler} = xno ; then
7145 echo 1>&2 '***' --with-headers is only supported when cross compiling
7146 exit 1
7147 fi
7148 if test x"${with_headers}" != xyes ; then
18f6b6ee 7149 x=${gcc_cv_tool_prefix}
c6b750e1 7150 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
7151 fi
7152fi
7153
7154# Handle --with-libs=XXX. If the value is not "yes", the contents of
7155# the name directories are copied to $(tooldir)/lib. Multiple directories
7156# are permitted.
7157if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7158 if test x${is_cross_compiler} = xno ; then
7159 echo 1>&2 '***' --with-libs is only supported when cross compiling
7160 exit 1
7161 fi
7162 if test x"${with_libs}" != xyes ; then
7163 # Copy the libraries in reverse order, so that files in the first named
7164 # library override files in subsequent libraries.
18f6b6ee 7165 x=${gcc_cv_tool_prefix}
9e07f89d 7166 for l in ${with_libs}; do
c6b750e1 7167 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7168 done
7169 fi
7170fi
7171
700d40ca 7172# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7173#
7174# This is done by determining whether or not the appropriate directory
7175# is available, and by checking whether or not specific configurations
7176# have requested that this magic not happen.
c6b750e1
DJ
7177#
7178# The command line options always override the explicit settings in
136bb21f 7179# configure.ac, and the settings in configure.ac override this magic.
2429c060 7180#
c6b750e1 7181# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7182# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7183# --without-gnu-ld options for the configure script. Similarly, if
7184# the default is to use the included zlib and you don't want to do that,
7185# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7186
7187if test x${use_gnu_as} = x &&
7188 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7189 with_gnu_as=yes
7190 extra_host_args="$extra_host_args --with-gnu-as"
7191fi
7192
7193if test x${use_gnu_ld} = x &&
93f9b408 7194 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7195 with_gnu_ld=yes
7196 extra_host_args="$extra_host_args --with-gnu-ld"
7197fi
7198
700d40ca
ILT
7199if test x${use_included_zlib} = x &&
7200 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7201 :
7202else
7203 with_system_zlib=yes
7204 extra_host_args="$extra_host_args --with-system-zlib"
7205fi
7206
2429c060
PB
7207# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7208# can detect this case.
7209
7210if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7211 with_newlib=yes
7212 extra_host_args="$extra_host_args --with-newlib"
7213fi
7214
9e07f89d
NN
7215# Handle ${copy_dirs}
7216set fnord ${copy_dirs}
7217shift
7218while test $# != 0 ; do
7219 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7220 :
7221 else
7222 echo Copying $1 to $2
7223
7224 # Use the install script to create the directory and all required
7225 # parent directories.
7226 if test -d $2 ; then
7227 :
7228 else
7229 echo >config.temp
7230 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7231 fi
7232
7233 # Copy the directory, assuming we have tar.
7234 # FIXME: Should we use B in the second tar? Not all systems support it.
7235 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7236
7237 # It is the responsibility of the user to correctly adjust all
7238 # symlinks. If somebody can figure out how to handle them correctly
7239 # here, feel free to add the code.
7240
7241 echo $1 > $2/COPIED
7242 fi
7243 shift; shift
7244done
7245
2429c060
PB
7246# Determine a target-dependent exec_prefix that the installed
7247# gcc will search in. Keep this list sorted by triplet, with
7248# the *-*-osname triplets last.
7249md_exec_prefix=
7250case "${target}" in
521ec477 7251 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7252 md_exec_prefix=/dev/env/DJDIR/bin
7253 ;;
2429c060 7254 *-*-hpux* | \
2429c060 7255 *-*-nto-qnx* | \
1f111696 7256 *-*-solaris2*)
2429c060
PB
7257 md_exec_prefix=/usr/ccs/bin
7258 ;;
7259esac
7260
a0da8069
NN
7261extra_arflags_for_target=
7262extra_nmflags_for_target=
7263extra_ranlibflags_for_target=
7264target_makefile_frag=/dev/null
7265case "${target}" in
77d7106f
AM
7266 spu-*-*)
7267 target_makefile_frag="config/mt-spu"
7268 ;;
a9d58c06 7269 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7270 target_makefile_frag="config/mt-sde"
7271 ;;
f3b1e08e
RS
7272 mipsisa*-*-elfoabi*)
7273 target_makefile_frag="config/mt-mips-elfoabi"
7274 ;;
e7c8859c
RS
7275 mips*-*-*linux* | mips*-*-gnu*)
7276 target_makefile_frag="config/mt-mips-gnu"
7277 ;;
d9e042ac
SL
7278 nios2-*-elf*)
7279 target_makefile_frag="config/mt-nios2-elf"
7280 ;;
bf41f30d
NC
7281 *-*-linux-android*)
7282 target_makefile_frag="config/mt-android"
7283 ;;
29383458 7284 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7285 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7286 ;;
7287 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7288 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7289 # commands to handle both 32-bit and 64-bit objects. These flags are
7290 # harmless if we're using GNU nm or ar.
7291 extra_arflags_for_target=" -X32_64"
7292 extra_nmflags_for_target=" -B -X32_64"
7293 ;;
a0da8069
NN
7294esac
7295
7296alphaieee_frag=/dev/null
7297case $target in
7298 alpha*-*-*)
7299 # This just makes sure to use the -mieee option to build target libs.
7300 # This should probably be set individually by each library.
7301 alphaieee_frag="config/mt-alphaieee"
7302 ;;
7303esac
7304
7305# If --enable-target-optspace always use -Os instead of -O2 to build
7306# the target libraries, similarly if it is not specified, use -Os
7307# on selected platforms.
7308ospace_frag=/dev/null
7309case "${enable_target_optspace}:${target}" in
7310 yes:*)
7311 ospace_frag="config/mt-ospace"
7312 ;;
7313 :d30v-*)
7314 ospace_frag="config/mt-d30v"
7315 ;;
16beab3d 7316 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7317 ospace_frag="config/mt-ospace"
7318 ;;
7319 no:* | :*)
7320 ;;
7321 *)
7322 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7323 ;;
7324esac
7325
a0da8069
NN
7326# Some systems (e.g., one of the i386-aix systems the gas testers are
7327# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7328tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7329build_tooldir=${tooldir}
7330
a0da8069
NN
7331# Create a .gdbinit file which runs the one in srcdir
7332# and tells GDB to look there for source files.
7333
7334if test -r ${srcdir}/.gdbinit ; then
7335 case ${srcdir} in
7336 .) ;;
7337 *) cat > ./.gdbinit <<EOF
7338# ${NO_EDIT}
7339dir ${srcdir}
7340dir .
7341source ${srcdir}/.gdbinit
7342EOF
7343 ;;
7344 esac
7345fi
7346
a0da8069
NN
7347# Make sure that the compiler is able to generate an executable. If it
7348# can't, we are probably in trouble. We don't care whether we can run the
7349# executable--we might be using a cross compiler--we only care whether it
7350# can be created. At this point the main configure script has set CC.
7351we_are_ok=no
7352echo "int main () { return 0; }" > conftest.c
7353${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7354if test $? = 0 ; then
7355 if test -s conftest || test -s conftest.exe ; then
7356 we_are_ok=yes
7357 fi
c6b750e1 7358fi
a0da8069
NN
7359case $we_are_ok in
7360 no)
7361 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7362 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7363 rm -f conftest*
7364 exit 1
7365 ;;
7366esac
7367rm -f conftest*
7368
3bbd2f8f 7369# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7370case "${host}" in
7371 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7372 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7373 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7374 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7375esac
7376
3bbd2f8f 7377# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7378# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7379# built executables to PATH.
3bbd2f8f
AL
7380if test "$RPATH_ENVVAR" = PATH; then
7381 GCC_SHLIB_SUBDIR=/shlib
7382else
7383 GCC_SHLIB_SUBDIR=
7384fi
7385
730af8ee 7386# Adjust the toplevel makefile according to whether bootstrap was selected.
7387case $enable_bootstrap in
7388 yes)
7389 bootstrap_suffix=bootstrap
7390 BUILD_CONFIG=bootstrap-debug
7391 ;;
7392 no)
7393 bootstrap_suffix=no-bootstrap
7394 BUILD_CONFIG=
7395 ;;
7396esac
7397
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7399$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7400
7401
7402# Check whether --with-build-config was given.
7403if test "${with_build_config+set}" = set; then :
7404 withval=$with_build_config; case $with_build_config in
7405 yes) with_build_config= ;;
7406 no) with_build_config= BUILD_CONFIG= ;;
7407 esac
7408fi
7409
7410
7411if test "x${with_build_config}" != x; then
7412 BUILD_CONFIG=$with_build_config
7413else
7414 case $BUILD_CONFIG in
7415 bootstrap-debug)
7416 if echo "int f (void) { return 0; }" > conftest.c &&
7417 ${CC} -c conftest.c &&
7418 mv conftest.o conftest.o.g0 &&
7419 ${CC} -c -g conftest.c &&
7420 mv conftest.o conftest.o.g &&
7421 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7422 :
7423 else
7424 BUILD_CONFIG=
7425 fi
7426 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7427 ;;
7428 esac
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7431$as_echo "$BUILD_CONFIG" >&6; }
7432
7433
7434# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7436$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7437# Check whether --enable-vtable-verify was given.
7438if test "${enable_vtable_verify+set}" = set; then :
7439 enableval=$enable_vtable_verify; case "$enableval" in
7440 yes) enable_vtable_verify=yes ;;
7441 no) enable_vtable_verify=no ;;
7442 *) enable_vtable_verify=no;;
7443 esac
7444else
7445 enable_vtable_verify=no
7446fi
7447
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7449$as_echo "$enable_vtable_verify" >&6; }
7450
a0da8069
NN
7451# Record target_configdirs and the configure arguments for target and
7452# build configuration in Makefile.
7453target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7454build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7455bootstrap_fixincludes=no
a0da8069 7456
2aa2364a
JR
7457# If we are building libgomp, bootstrap it.
7458if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7459 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7460fi
7461
730af8ee 7462# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7463# or bootstrap-ubsan, bootstrap it.
7464if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7465 case "$BUILD_CONFIG" in
7466 *bootstrap-asan* | *bootstrap-ubsan* )
7467 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7468 bootstrap_fixincludes=yes
730af8ee 7469 ;;
7470 esac
5eb08693
L
7471fi
7472
730af8ee 7473# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7474if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7475 test "$enable_vtable_verify" != no; then
95e43135
JBG
7476 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7477fi
7478
a0da8069
NN
7479# Determine whether gdb needs tk/tcl or not.
7480# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7481# and in that case we want gdb to be built without tk. Ugh!
7482# In fact I believe gdb is the *only* package directly dependent on tk,
7483# so we should be able to put the 'maybe's in unconditionally and
7484# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7485# 100% sure that that's safe though.
c180f501 7486
675c6968 7487gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7488case "$enable_gdbtk" in
7489 no)
7490 GDB_TK="" ;;
c180f501
AC
7491 yes)
7492 GDB_TK="${gdb_tk}" ;;
a0da8069 7493 *)
c180f501
AC
7494 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7495 # distro. Eventually someone will fix this and move Insight, nee
7496 # gdbtk to a separate directory.
7497 if test -d ${srcdir}/gdb/gdbtk ; then
7498 GDB_TK="${gdb_tk}"
7499 else
7500 GDB_TK=""
7501 fi
7502 ;;
a0da8069 7503esac
907be67c
DJ
7504CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7505INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7506
b6f9caee
TT
7507# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7508# else does, only include them if one of these is built. The Makefile
7509# provides the ordering, so it's enough here to add to the list.
7510case " ${configdirs} " in
7511 *\ gdb\ *)
7512 configdirs="${configdirs} gnulib gdbsupport"
7513 ;;
7514 *\ gdbserver\ *)
7515 configdirs="${configdirs} gnulib gdbsupport"
7516 ;;
5c9e84c2
MF
7517 *\ sim\ *)
7518 configdirs="${configdirs} gnulib"
7519 ;;
b6f9caee 7520esac
73cc7272 7521
6bd3dfaa 7522# Strip out unwanted targets.
dd12c3a8
NN
7523
7524# While at that, we remove Makefiles if we were started for recursive
7525# configuration, so that the top-level Makefile reconfigures them,
7526# like we used to do when configure itself was recursive.
dd12c3a8 7527
06a51eac
RW
7528# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7529# but now we're fixing up the Makefile ourselves with the additional
7530# commands passed to AC_CONFIG_FILES. Use separate variables
7531# extrasub-{build,host,target} not because there is any reason to split
7532# the substitutions up that way, but only to remain below the limit of
7533# 99 commands in a script, for HP-UX sed.
4119873a
AO
7534
7535# Do not nest @if/@endif or @unless/@endunless pairs, because
7536# configure will not warn you at all.
dd12c3a8 7537
16b1ad29
RW
7538case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7539 yes:yes:*\ gold\ *:*,c++,*) ;;
7540 yes:yes:*\ gold\ *:*)
d0ac1c44 7541 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7542 ;;
7543esac
7544
06a51eac 7545extrasub_build=
6a9cf61e 7546for module in ${build_configdirs} ; do
498d4a71
CF
7547 if test -z "${no_recursion}" \
7548 && test -f ${build_subdir}/${module}/Makefile; then
7549 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7550 rm -f ${build_subdir}/${module}/Makefile
7551 fi
06a51eac 7552 extrasub_build="$extrasub_build
498d4a71
CF
7553/^@if build-$module\$/d
7554/^@endif build-$module\$/d
4119873a 7555/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7556/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7557/^@endif build-$module-$bootstrap_suffix\$/d
7558/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7559done
06a51eac 7560extrasub_host=
498d4a71 7561for module in ${configdirs} ; do
80911fe1 7562 if test -z "${no_recursion}"; then
8cf39b1b 7563 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7564 if test -f ${file}; then
7565 echo 1>&2 "*** removing ${file} to force reconfigure"
7566 rm -f ${file}
7567 fi
7568 done
498d4a71 7569 fi
201f096f 7570 case ${module},${bootstrap_fixincludes} in
7571 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7572 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7573 esac
06a51eac 7574 extrasub_host="$extrasub_host
498d4a71
CF
7575/^@if $module\$/d
7576/^@endif $module\$/d
4119873a 7577/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7578/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7579/^@endif $module-$host_bootstrap_suffix\$/d
7580/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7581done
06a51eac 7582extrasub_target=
498d4a71
CF
7583for module in ${target_configdirs} ; do
7584 if test -z "${no_recursion}" \
7585 && test -f ${target_subdir}/${module}/Makefile; then
7586 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7587 rm -f ${target_subdir}/${module}/Makefile
7588 fi
e8a5fa9c
RW
7589
7590 # We only bootstrap target libraries listed in bootstrap_target_libs.
7591 case $bootstrap_target_libs in
7592 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7593 *) target_bootstrap_suffix=no-bootstrap ;;
7594 esac
7595
06a51eac 7596 extrasub_target="$extrasub_target
498d4a71
CF
7597/^@if target-$module\$/d
7598/^@endif target-$module\$/d
4119873a 7599/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7600/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7601/^@endif target-$module-$target_bootstrap_suffix\$/d
7602/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7603done
7604
06a51eac
RW
7605# Do the final fixup along with target modules.
7606extrasub_target="$extrasub_target
4119873a
AO
7607/^@if /,/^@endif /d
7608/^@unless /d
7609/^@endunless /d"
a0da8069 7610
af019bfd
L
7611if test "$enable_pgo_build" != "no"; then
7612 extrasub_build="$extrasub_build
7613/^@if pgo-build\$/d
7614/^@endif pgo-build\$/d"
7615fi
7616
a0da8069
NN
7617# Create the serialization dependencies. This uses a temporary file.
7618
81ecdfbb
RW
7619# Check whether --enable-serial-configure was given.
7620if test "${enable_serial_configure+set}" = set; then :
7621 enableval=$enable_serial_configure;
7622fi
e6bfb94a
AO
7623
7624
1047cb91
DD
7625case ${enable_serial_configure} in
7626 yes)
7627 enable_serial_build_configure=yes
7628 enable_serial_host_configure=yes
7629 enable_serial_target_configure=yes
7630 ;;
7631esac
7632
a0da8069
NN
7633# These force 'configure's to be done one at a time, to avoid problems
7634# with contention over a shared config.cache.
7635rm -f serdep.tmp
e6bfb94a 7636echo '# serdep.tmp' > serdep.tmp
a0da8069 7637olditem=
1047cb91 7638test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7639for item in ${build_configdirs} ; do
7640 case ${olditem} in
7641 "") ;;
e6bfb94a 7642 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7643 esac
7644 olditem=${item}
7645done
7646olditem=
1047cb91 7647test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7648for item in ${configdirs} ; do
7649 case ${olditem} in
7650 "") ;;
e6bfb94a 7651 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7652 esac
7653 olditem=${item}
7654done
7655olditem=
1047cb91 7656test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7657for item in ${target_configdirs} ; do
7658 case ${olditem} in
7659 "") ;;
e6bfb94a 7660 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7661 esac
7662 olditem=${item}
7663done
7664serialization_dependencies=serdep.tmp
7665
7666
e6bfb94a 7667# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7668# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7669# might not want to pass down to subconfigures. The exception being
7670# --cache-file=/dev/null, which is used to turn off the use of cache
7671# files altogether, and which should be passed on to subconfigures.
7672# Also strip program-prefix, program-suffix, and program-transform-name,
7673# so that we can pass down a consistent program-transform-name.
c6b750e1 7674baseargs=
65b4571a 7675tbaseargs=
c6b750e1
DJ
7676keep_next=no
7677skip_next=no
7678eval "set -- $ac_configure_args"
18f6b6ee
PB
7679for ac_arg
7680do
c6b750e1
DJ
7681 if test X"$skip_next" = X"yes"; then
7682 skip_next=no
7683 continue
7684 fi
7685 if test X"$keep_next" = X"yes"; then
7686 case $ac_arg in
7687 *\'*)
7688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7689 esac
7690 baseargs="$baseargs '$ac_arg'"
65b4571a 7691 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7692 keep_next=no
7693 continue
7694 fi
7695
7696 # Handle separated arguments. Based on the logic generated by
7697 # autoconf 2.59.
7698 case $ac_arg in
7699 *=* | --config-cache | -C | -disable-* | --disable-* \
7700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7702 | -with-* | --with-* | -without-* | --without-* | --x)
7703 separate_arg=no
7704 ;;
7705 -*)
7706 separate_arg=yes
7707 ;;
7708 *)
7709 separate_arg=no
7710 ;;
7711 esac
7712
65b4571a
AO
7713 skip_targ=no
7714 case $ac_arg in
7715
7716 --with-* | --without-*)
7717 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7718
7719 case $libopt in
7720 *[-_]include)
7721 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7722 ;;
7723 *[-_]lib)
7724 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7725 ;;
7726 *)
7727 lib=$libopt
7728 ;;
7729 esac
7730
7731
7732 case $lib in
1b6c0831 7733 mpc | mpfr | gmp | isl)
65b4571a
AO
7734 # If we're processing --with-$lib, --with-$lib-include or
7735 # --with-$lib-lib, for one of the libs above, and target is
7736 # different from host, don't pass the current argument to any
7737 # target library's configure.
7738 if test x$is_cross_compiler = xyes; then
7739 skip_targ=yes
7740 fi
7741 ;;
7742 esac
7743 ;;
7744 esac
7745
c6b750e1 7746 case "$ac_arg" in
30167e0a
NC
7747 --cache-file=/dev/null | \
7748 -cache-file=/dev/null )
7749 # Handled here to avoid the test to skip args below.
7750 baseargs="$baseargs '$ac_arg'"
65b4571a 7751 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7752 # Assert: $separate_arg should always be no.
7753 keep_next=$separate_arg
7754 ;;
c6b750e1
DJ
7755 --no*)
7756 continue
7757 ;;
7758 --c* | \
7759 --sr* | \
7760 --ho* | \
7761 --bu* | \
7762 --t* | \
7763 --program-* | \
7764 -cache_file* | \
7765 -srcdir* | \
7766 -host* | \
7767 -build* | \
7768 -target* | \
7769 -program-prefix* | \
7770 -program-suffix* | \
7771 -program-transform-name* )
7772 skip_next=$separate_arg
7773 continue
7774 ;;
7775 -*)
7776 # An option. Add it.
7777 case $ac_arg in
7778 *\'*)
7779 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7780 esac
7781 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7782 if test X"$skip_targ" = Xno; then
7783 tbaseargs="$tbaseargs '$ac_arg'"
7784 fi
c6b750e1
DJ
7785 keep_next=$separate_arg
7786 ;;
7787 *)
7788 # Either a variable assignment, or a nonopt (triplet). Don't
7789 # pass it down; let the Makefile handle this.
7790 continue
7791 ;;
7792 esac
7793done
7794# Remove the initial space we just introduced and, as these will be
7795# expanded by make, quote '$'.
7796baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7797
f27d4f92
DJ
7798# Add in --program-transform-name, after --program-prefix and
7799# --program-suffix have been applied to it. Autoconf has already
7800# doubled dollar signs and backslashes in program_transform_name; we want
7801# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7802# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7803# Also, because we want to override the logic in subdir configure scripts to
7804# choose program_transform_name, replace any s,x,x, with s,y,y,.
7805sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7806${program_transform_name}
7807EOF_SED
7808gcc_transform_name=`cat conftestsed.out`
7809rm -f conftestsed.out
7810baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7811tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7812if test "$silent" = yes; then
7813 baseargs="$baseargs --silent"
65b4571a 7814 tbaseargs="$tbaseargs --silent"
2444379b 7815fi
34a0f3cf 7816baseargs="$baseargs --disable-option-checking"
65b4571a 7817tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7818
4074d5f2
RW
7819# Record and document user additions to sub configure arguments.
7820
7821
7822
7823
a0da8069
NN
7824# For the build-side libraries, we just need to pretend we're native,
7825# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7826# desired. We can't even use the same cache file for all build-side
7827# libraries, as they're compiled differently; some with C, some with
7828# C++ or with different feature-enabling options.
7829build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7830
7831# For host modules, accept cache file option, or specification as blank.
7832case "${cache_file}" in
7833"") # empty
7834 cache_file_option="" ;;
7835/* | [A-Za-z]:[\\/]* ) # absolute path
7836 cache_file_option="--cache-file=${cache_file}" ;;
7837*) # relative path
7838 cache_file_option="--cache-file=../${cache_file}" ;;
7839esac
7840
82252c06
NN
7841# Host dirs don't like to share a cache file either, horribly enough.
7842# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7843host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7844
65b4571a 7845target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7846
7847# Passing a --with-cross-host argument lets the target libraries know
7848# whether they are being built with a cross-compiler or being built
7849# native. However, it would be better to use other mechanisms to make the
7850# sorts of decisions they want to make on this basis. Please consider
7851# this option to be deprecated. FIXME.
7852if test x${is_cross_compiler} = xyes ; then
c6b750e1 7853 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7854fi
7855
afc0578d 7856# Special user-friendly check for native x86_64-linux build, if
7857# multilib is not explicitly enabled.
7858case "$target:$have_compiler:$host:$target:$enable_multilib" in
7859 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7860 # Make sure we have a development environment that handles 32-bit
afc0578d 7861 dev64=no
7862 echo "int main () { return 0; }" > conftest.c
7863 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7864 if test $? = 0 ; then
7865 if test -s conftest || test -s conftest.exe ; then
7866 dev64=yes
7867 fi
7868 fi
7869 rm -f conftest*
7870 if test x${dev64} != xyes ; then
d0ac1c44 7871 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 7872 fi
7873 ;;
7874esac
7875
938d2b74
RW
7876# Default to --enable-multilib.
7877if test x${enable_multilib} = x ; then
a0da8069 7878 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7879fi
a0da8069
NN
7880
7881# Pass --with-newlib if appropriate. Note that target_configdirs has
7882# changed from the earlier setting of with_newlib.
7883if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7884 target_configargs="--with-newlib ${target_configargs}"
7885fi
7886
95036d20
NN
7887# Different target subdirs use different values of certain variables
7888# (notably CXX). Worse, multilibs use *lots* of different values.
7889# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7890# it doesn't automatically accept command-line overrides of them.
7891# This means it's not safe for target subdirs to share a cache file,
7892# which is disgusting, but there you have it. Hopefully this can be
7893# fixed in future. It's still worthwhile to use a cache file for each
7894# directory. I think.
7895
ae380b45
MS
7896# Pass the appropriate --build, --host, --target and --cache-file arguments.
7897# We need to pass --target, as newer autoconf's requires consistency
7898# for target_alias and gcc doesn't manage it consistently.
4b900473 7899target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7900
a0da8069
NN
7901FLAGS_FOR_TARGET=
7902case " $target_configdirs " in
7903 *" newlib "*)
7904 case " $target_configargs " in
7905 *" --with-newlib "*)
7906 case "$target" in
1f53ca9a 7907 *-cygwin*)
6d94c122 7908 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7909 ;;
a0da8069
NN
7910 esac
7911
7912 # If we're not building GCC, don't discard standard headers.
7913 if test -d ${srcdir}/gcc; then
7914 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7915
7916 if test "${build}" != "${host}"; then
7917 # On Canadian crosses, CC_FOR_TARGET will have already been set
7918 # by `configure', so we won't have an opportunity to add -Bgcc/
7919 # to it. This is right: we don't want to search that directory
7920 # for binaries, but we want the header files in there, so add
7921 # them explicitly.
e552509b 7922 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7923
7924 # Someone might think of using the pre-installed headers on
7925 # Canadian crosses, in case the installed compiler is not fully
7926 # compatible with the compiler being built. In this case, it
7927 # would be better to flag an error than risking having
7928 # incompatible object files being constructed. We can't
7929 # guarantee that an error will be flagged, but let's hope the
7930 # compiler will do it, when presented with incompatible header
7931 # files.
7932 fi
7933 fi
7934
7935 case "${target}-${is_cross_compiler}" in
ec11bdc6 7936 i[3456789]86-*-linux*-no)
a0da8069
NN
7937 # Here host == target, so we don't need to build gcc,
7938 # so we don't want to discard standard headers.
7939 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7940 ;;
7941 *)
7942 # If we're building newlib, use its generic headers last, but search
7943 # for any libc-related directories first (so make it the last -B
7944 # switch).
7945 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
7946
7947 # If we're building libgloss, find the startup file, simulator library
7948 # and linker script.
7949 case " $target_configdirs " in
7950 *" libgloss "*)
7951 # Look for startup file, simulator library and maybe linker script.
7952 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7953 # Look for libnosys.a in case the target needs it.
7954 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7955 # Most targets have the linker script in the source directory.
7956 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7957 ;;
7958 esac
a0da8069
NN
7959 ;;
7960 esac
7961 ;;
7962 esac
7963 ;;
7964esac
1f53ca9a 7965
45055374 7966case "$target" in
1f53ca9a
AO
7967 x86_64-*mingw* | *-w64-mingw*)
7968 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7969 # however, use a symlink named 'mingw' in ${prefix} .
7970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7971 ;;
7972 *-mingw*)
7973 # MinGW can't be handled as Cygwin above since it does not use newlib.
7974 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'
7975 ;;
45055374 7976esac
a0da8069 7977
5fbad20a
DD
7978# Allow the user to override the flags for
7979# our build compiler if desired.
c66487f8
NC
7980if test x"${build}" = x"${host}" ; then
7981 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7982 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7983 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7984fi
5fbad20a 7985
a0da8069
NN
7986# On Canadian crosses, we'll be searching the right directories for
7987# the previously-installed cross compiler, so don't bother to add
7988# flags for directories within the install tree of the compiler
7989# being built; programs in there won't even run.
7990if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7991 # Search for pre-installed headers if nothing else fits.
bba45b8b 7992 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
7993fi
7994
7995if test "x${use_gnu_ld}" = x &&
7996 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7997 # Arrange for us to find uninstalled linker scripts.
b00612cc 7998 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7999fi
8000
a481dbb7
DD
8001# Search for other target-specific linker scripts and such.
8002case "${target}" in
4e206d7e
DB
8003 mep*)
8004 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8005 ;;
8006esac
8007
a0da8069 8008# Makefile fragments.
3e707e94
PB
8009for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8010do
8011 eval fragval=\$$frag
8012 if test $fragval != /dev/null; then
8013 eval $frag=${srcdir}/$fragval
8014 fi
8015done
a0da8069
NN
8016
8017
8018
8019
8020
8021# Miscellanea: directories, flags, etc.
8022
8023
8024
8025
8026
8027
8028
3bbd2f8f 8029
6a9cf61e 8030# Build module lists & subconfigure args.
a0da8069
NN
8031
8032
8033
be01d343
PB
8034# Host module lists & subconfigure args.
8035
8036
8037
911e63d0 8038
be01d343
PB
8039# Target module lists & subconfigure args.
8040
8041
8042
8043# Build tools.
8044
8045
8046
1576798e
PB
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
be01d343
PB
8060# Generate default definitions for YACC, M4, LEX and other programs that run
8061# on the build machine. These are used if the Makefile can't locate these
8062# programs in objdir.
8063MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8064
8065for ac_prog in 'bison -y' byacc yacc
8066do
c6b750e1 8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8068set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8071if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 8072 $as_echo_n "(cached) " >&6
be01d343
PB
8073else
8074 if test -n "$YACC"; then
8075 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8076else
c6b750e1
DJ
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
81ecdfbb 8082 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8084 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8086 break 2
8087 fi
8088done
81ecdfbb
RW
8089 done
8090IFS=$as_save_IFS
c6b750e1 8091
be01d343
PB
8092fi
8093fi
c6b750e1 8094YACC=$ac_cv_prog_YACC
be01d343 8095if test -n "$YACC"; then
81ecdfbb
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8097$as_echo "$YACC" >&6; }
be01d343 8098else
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
be01d343
PB
8101fi
8102
81ecdfbb 8103
c6b750e1 8104 test -n "$YACC" && break
be01d343
PB
8105done
8106test -n "$YACC" || YACC="$MISSING bison -y"
8107
8108case " $build_configdirs " in
8109 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
8110esac
8111
8112for ac_prog in bison
8113do
c6b750e1 8114 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8115set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8118if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 8119 $as_echo_n "(cached) " >&6
be01d343
PB
8120else
8121 if test -n "$BISON"; then
8122 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8123else
c6b750e1
DJ
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
81ecdfbb 8129 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8131 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8133 break 2
8134 fi
8135done
81ecdfbb
RW
8136 done
8137IFS=$as_save_IFS
c6b750e1 8138
be01d343
PB
8139fi
8140fi
c6b750e1 8141BISON=$ac_cv_prog_BISON
be01d343 8142if test -n "$BISON"; then
81ecdfbb
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8144$as_echo "$BISON" >&6; }
be01d343 8145else
81ecdfbb
RW
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
be01d343
PB
8148fi
8149
81ecdfbb 8150
c6b750e1 8151 test -n "$BISON" && break
be01d343
PB
8152done
8153test -n "$BISON" || BISON="$MISSING bison"
8154
8155case " $build_configdirs " in
8156 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8157esac
8158
8159for ac_prog in gm4 gnum4 m4
8160do
c6b750e1 8161 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8162set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8165if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 8166 $as_echo_n "(cached) " >&6
be01d343
PB
8167else
8168 if test -n "$M4"; then
8169 ac_cv_prog_M4="$M4" # Let the user override the test.
8170else
c6b750e1
DJ
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
81ecdfbb 8176 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8178 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8180 break 2
8181 fi
8182done
81ecdfbb
RW
8183 done
8184IFS=$as_save_IFS
c6b750e1 8185
be01d343
PB
8186fi
8187fi
c6b750e1 8188M4=$ac_cv_prog_M4
be01d343 8189if test -n "$M4"; then
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8191$as_echo "$M4" >&6; }
be01d343 8192else
81ecdfbb
RW
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
be01d343
PB
8195fi
8196
81ecdfbb 8197
c6b750e1 8198 test -n "$M4" && break
be01d343
PB
8199done
8200test -n "$M4" || M4="$MISSING m4"
8201
8202case " $build_configdirs " in
8203 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8204esac
8205
8206for ac_prog in flex lex
8207do
c6b750e1 8208 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8209set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8212if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8213 $as_echo_n "(cached) " >&6
be01d343
PB
8214else
8215 if test -n "$LEX"; then
8216 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8217else
c6b750e1
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
81ecdfbb 8223 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8225 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8227 break 2
8228 fi
8229done
81ecdfbb
RW
8230 done
8231IFS=$as_save_IFS
c6b750e1 8232
be01d343
PB
8233fi
8234fi
c6b750e1 8235LEX=$ac_cv_prog_LEX
be01d343 8236if test -n "$LEX"; then
81ecdfbb
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8238$as_echo "$LEX" >&6; }
be01d343 8239else
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
be01d343
PB
8242fi
8243
81ecdfbb 8244
c6b750e1 8245 test -n "$LEX" && break
be01d343
PB
8246done
8247test -n "$LEX" || LEX="$MISSING flex"
8248
8249case " $build_configdirs " in
8250 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8251 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8252esac
8253
8254for ac_prog in flex
8255do
c6b750e1 8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8257set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8260if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8261 $as_echo_n "(cached) " >&6
be01d343
PB
8262else
8263 if test -n "$FLEX"; then
8264 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8265else
c6b750e1
DJ
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
81ecdfbb 8271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8273 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8275 break 2
8276 fi
8277done
81ecdfbb
RW
8278 done
8279IFS=$as_save_IFS
c6b750e1 8280
be01d343
PB
8281fi
8282fi
c6b750e1 8283FLEX=$ac_cv_prog_FLEX
be01d343 8284if test -n "$FLEX"; then
81ecdfbb
RW
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8286$as_echo "$FLEX" >&6; }
be01d343 8287else
81ecdfbb
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
be01d343
PB
8290fi
8291
81ecdfbb 8292
c6b750e1 8293 test -n "$FLEX" && break
be01d343
PB
8294done
8295test -n "$FLEX" || FLEX="$MISSING flex"
8296
8297case " $build_configdirs " in
8298 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8299esac
8300
8301for ac_prog in makeinfo
8302do
c6b750e1 8303 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8304set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8307if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8308 $as_echo_n "(cached) " >&6
be01d343
PB
8309else
8310 if test -n "$MAKEINFO"; then
8311 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8312else
c6b750e1
DJ
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
81ecdfbb 8318 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8320 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8322 break 2
8323 fi
8324done
81ecdfbb
RW
8325 done
8326IFS=$as_save_IFS
c6b750e1 8327
be01d343
PB
8328fi
8329fi
c6b750e1 8330MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8331if test -n "$MAKEINFO"; then
81ecdfbb
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8333$as_echo "$MAKEINFO" >&6; }
be01d343 8334else
81ecdfbb
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
be01d343
PB
8337fi
8338
81ecdfbb 8339
c6b750e1 8340 test -n "$MAKEINFO" && break
be01d343
PB
8341done
8342test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8343
8344case " $build_configdirs " in
8345 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8346 *)
8347
10ad8ef3 8348 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8349 # higher, else we use the "missing" dummy.
8350 if ${MAKEINFO} --version \
10ad8ef3 8351 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8352 :
8353 else
8354 MAKEINFO="$MISSING makeinfo"
8355 fi
8356 ;;
8357
8358esac
a0da8069 8359
be01d343 8360# FIXME: expect and dejagnu may become build tools?
a0da8069 8361
be01d343
PB
8362for ac_prog in expect
8363do
c6b750e1 8364 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8365set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8368if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8369 $as_echo_n "(cached) " >&6
be01d343
PB
8370else
8371 if test -n "$EXPECT"; then
8372 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8373else
c6b750e1
DJ
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
81ecdfbb 8379 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8381 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8383 break 2
8384 fi
8385done
81ecdfbb
RW
8386 done
8387IFS=$as_save_IFS
c6b750e1 8388
be01d343
PB
8389fi
8390fi
c6b750e1 8391EXPECT=$ac_cv_prog_EXPECT
be01d343 8392if test -n "$EXPECT"; then
81ecdfbb
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8394$as_echo "$EXPECT" >&6; }
be01d343 8395else
81ecdfbb
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
be01d343 8398fi
a0da8069 8399
81ecdfbb 8400
c6b750e1 8401 test -n "$EXPECT" && break
be01d343
PB
8402done
8403test -n "$EXPECT" || EXPECT="expect"
a0da8069 8404
be01d343
PB
8405case " $configdirs " in
8406 *" expect "*)
8407 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8408 ;;
8409esac
a0da8069 8410
be01d343
PB
8411for ac_prog in runtest
8412do
c6b750e1 8413 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8414set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8417if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8418 $as_echo_n "(cached) " >&6
be01d343
PB
8419else
8420 if test -n "$RUNTEST"; then
8421 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8422else
c6b750e1
DJ
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
81ecdfbb 8428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8430 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8432 break 2
8433 fi
8434done
81ecdfbb
RW
8435 done
8436IFS=$as_save_IFS
c6b750e1 8437
be01d343
PB
8438fi
8439fi
c6b750e1 8440RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8441if test -n "$RUNTEST"; then
81ecdfbb
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8443$as_echo "$RUNTEST" >&6; }
be01d343 8444else
81ecdfbb
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
be01d343 8447fi
a0da8069 8448
81ecdfbb 8449
c6b750e1 8450 test -n "$RUNTEST" && break
be01d343
PB
8451done
8452test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8453
be01d343
PB
8454case " $configdirs " in
8455 *" dejagnu "*)
6b89cc21 8456 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8457 ;;
8458esac
a0da8069
NN
8459
8460
a0da8069 8461# Host tools.
859789af
AC
8462ncn_tool_prefix=
8463test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8464ncn_target_tool_prefix=
8465test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8466
9a819804
AO
8467
8468
8469if test -n "$AR"; then
8470 ac_cv_prog_AR=$AR
8471elif test -n "$ac_cv_prog_AR"; then
8472 AR=$ac_cv_prog_AR
8473fi
8474
8475if test -n "$ac_cv_prog_AR"; then
8476 for ncn_progname in ar; do
8477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8481if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8482 $as_echo_n "(cached) " >&6
9a819804
AO
8483else
8484 if test -n "$AR"; then
8485 ac_cv_prog_AR="$AR" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
81ecdfbb 8492 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8494 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8496 break 2
8497 fi
8498done
81ecdfbb
RW
8499 done
8500IFS=$as_save_IFS
9a819804
AO
8501
8502fi
8503fi
8504AR=$ac_cv_prog_AR
8505if test -n "$AR"; then
81ecdfbb
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8507$as_echo "$AR" >&6; }
9a819804 8508else
81ecdfbb
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
9a819804
AO
8511fi
8512
81ecdfbb 8513
9a819804
AO
8514 done
8515fi
8516
8517for ncn_progname in ar; do
05cbd757
PB
8518 if test -n "$ncn_tool_prefix"; then
8519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8523if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8524 $as_echo_n "(cached) " >&6
859789af
AC
8525else
8526 if test -n "$AR"; then
8527 ac_cv_prog_AR="$AR" # Let the user override the test.
8528else
c6b750e1
DJ
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
81ecdfbb 8534 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8536 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8538 break 2
8539 fi
8540done
81ecdfbb
RW
8541 done
8542IFS=$as_save_IFS
c6b750e1 8543
859789af
AC
8544fi
8545fi
c6b750e1 8546AR=$ac_cv_prog_AR
859789af 8547if test -n "$AR"; then
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8549$as_echo "$AR" >&6; }
859789af 8550else
81ecdfbb
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552$as_echo "no" >&6; }
859789af
AC
8553fi
8554
81ecdfbb 8555
05cbd757
PB
8556 fi
8557 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8559set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8562if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8563 $as_echo_n "(cached) " >&6
859789af 8564else
05cbd757
PB
8565 if test -n "$AR"; then
8566 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8567else
c6b750e1
DJ
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
81ecdfbb 8573 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8575 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8577 break 2
8578 fi
8579done
81ecdfbb
RW
8580 done
8581IFS=$as_save_IFS
c6b750e1 8582
859789af
AC
8583fi
8584fi
c6b750e1 8585AR=$ac_cv_prog_AR
05cbd757 8586if test -n "$AR"; then
81ecdfbb
RW
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8588$as_echo "$AR" >&6; }
859789af 8589else
81ecdfbb
RW
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
859789af 8592fi
c6b750e1 8593
81ecdfbb 8594
05cbd757
PB
8595 fi
8596 test -n "$ac_cv_prog_AR" && break
8597done
8598
8599if test -z "$ac_cv_prog_AR" ; then
8600 set dummy ar
8601 if test $build = $host ; then
8602 AR="$2"
859789af 8603 else
05cbd757 8604 AR="${ncn_tool_prefix}$2"
859789af 8605 fi
859789af
AC
8606fi
8607
9a819804
AO
8608
8609
8610if test -n "$AS"; then
8611 ac_cv_prog_AS=$AS
8612elif test -n "$ac_cv_prog_AS"; then
8613 AS=$ac_cv_prog_AS
8614fi
8615
8616if test -n "$ac_cv_prog_AS"; then
8617 for ncn_progname in as; do
8618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8622if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8623 $as_echo_n "(cached) " >&6
9a819804
AO
8624else
8625 if test -n "$AS"; then
8626 ac_cv_prog_AS="$AS" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
81ecdfbb 8633 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8635 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8637 break 2
8638 fi
8639done
81ecdfbb
RW
8640 done
8641IFS=$as_save_IFS
9a819804
AO
8642
8643fi
8644fi
8645AS=$ac_cv_prog_AS
8646if test -n "$AS"; then
81ecdfbb
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8648$as_echo "$AS" >&6; }
9a819804 8649else
81ecdfbb
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
9a819804
AO
8652fi
8653
81ecdfbb 8654
9a819804
AO
8655 done
8656fi
8657
8658for ncn_progname in as; do
05cbd757
PB
8659 if test -n "$ncn_tool_prefix"; then
8660 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8664if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8665 $as_echo_n "(cached) " >&6
859789af
AC
8666else
8667 if test -n "$AS"; then
8668 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8669else
8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671for as_dir in $PATH
8672do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
81ecdfbb 8675 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8677 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8679 break 2
8680 fi
8681done
81ecdfbb
RW
8682 done
8683IFS=$as_save_IFS
c6b750e1 8684
859789af
AC
8685fi
8686fi
c6b750e1 8687AS=$ac_cv_prog_AS
859789af 8688if test -n "$AS"; then
81ecdfbb
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8690$as_echo "$AS" >&6; }
859789af 8691else
81ecdfbb
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
859789af
AC
8694fi
8695
81ecdfbb 8696
05cbd757
PB
8697 fi
8698 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8700set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8703if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8704 $as_echo_n "(cached) " >&6
859789af 8705else
05cbd757
PB
8706 if test -n "$AS"; then
8707 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8708else
c6b750e1
DJ
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
81ecdfbb 8714 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8716 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8718 break 2
8719 fi
8720done
81ecdfbb
RW
8721 done
8722IFS=$as_save_IFS
c6b750e1 8723
859789af
AC
8724fi
8725fi
c6b750e1 8726AS=$ac_cv_prog_AS
05cbd757 8727if test -n "$AS"; then
81ecdfbb
RW
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8729$as_echo "$AS" >&6; }
859789af 8730else
81ecdfbb
RW
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732$as_echo "no" >&6; }
859789af 8733fi
c6b750e1 8734
81ecdfbb 8735
05cbd757
PB
8736 fi
8737 test -n "$ac_cv_prog_AS" && break
8738done
8739
8740if test -z "$ac_cv_prog_AS" ; then
8741 set dummy as
8742 if test $build = $host ; then
8743 AS="$2"
859789af 8744 else
05cbd757 8745 AS="${ncn_tool_prefix}$2"
859789af 8746 fi
859789af
AC
8747fi
8748
9a819804
AO
8749
8750
8751if test -n "$DLLTOOL"; then
8752 ac_cv_prog_DLLTOOL=$DLLTOOL
8753elif test -n "$ac_cv_prog_DLLTOOL"; then
8754 DLLTOOL=$ac_cv_prog_DLLTOOL
8755fi
8756
8757if test -n "$ac_cv_prog_DLLTOOL"; then
8758 for ncn_progname in dlltool; do
8759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8763if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8764 $as_echo_n "(cached) " >&6
9a819804
AO
8765else
8766 if test -n "$DLLTOOL"; then
8767 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8768else
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
81ecdfbb 8774 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8776 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8778 break 2
8779 fi
8780done
81ecdfbb
RW
8781 done
8782IFS=$as_save_IFS
9a819804
AO
8783
8784fi
8785fi
8786DLLTOOL=$ac_cv_prog_DLLTOOL
8787if test -n "$DLLTOOL"; then
81ecdfbb
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8789$as_echo "$DLLTOOL" >&6; }
9a819804 8790else
81ecdfbb
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
9a819804
AO
8793fi
8794
81ecdfbb 8795
9a819804
AO
8796 done
8797fi
8798
8799for ncn_progname in dlltool; do
05cbd757
PB
8800 if test -n "$ncn_tool_prefix"; then
8801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8805if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8806 $as_echo_n "(cached) " >&6
859789af
AC
8807else
8808 if test -n "$DLLTOOL"; then
8809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8810else
c6b750e1
DJ
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
81ecdfbb 8816 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8818 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8820 break 2
8821 fi
8822done
81ecdfbb
RW
8823 done
8824IFS=$as_save_IFS
c6b750e1 8825
859789af
AC
8826fi
8827fi
c6b750e1 8828DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8829if test -n "$DLLTOOL"; then
81ecdfbb
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8831$as_echo "$DLLTOOL" >&6; }
859789af 8832else
81ecdfbb
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
859789af
AC
8835fi
8836
81ecdfbb 8837
05cbd757
PB
8838 fi
8839 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8841set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8844if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8845 $as_echo_n "(cached) " >&6
859789af 8846else
05cbd757
PB
8847 if test -n "$DLLTOOL"; then
8848 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8849else
c6b750e1
DJ
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
81ecdfbb 8855 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8857 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8859 break 2
8860 fi
8861done
81ecdfbb
RW
8862 done
8863IFS=$as_save_IFS
c6b750e1 8864
859789af
AC
8865fi
8866fi
c6b750e1 8867DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8868if test -n "$DLLTOOL"; then
81ecdfbb
RW
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8870$as_echo "$DLLTOOL" >&6; }
859789af 8871else
81ecdfbb
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
859789af 8874fi
c6b750e1 8875
81ecdfbb 8876
05cbd757
PB
8877 fi
8878 test -n "$ac_cv_prog_DLLTOOL" && break
8879done
8880
8881if test -z "$ac_cv_prog_DLLTOOL" ; then
8882 set dummy dlltool
8883 if test $build = $host ; then
8884 DLLTOOL="$2"
859789af 8885 else
05cbd757 8886 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8887 fi
859789af
AC
8888fi
8889
9a819804
AO
8890
8891
8892if test -n "$LD"; then
8893 ac_cv_prog_LD=$LD
8894elif test -n "$ac_cv_prog_LD"; then
8895 LD=$ac_cv_prog_LD
8896fi
8897
8898if test -n "$ac_cv_prog_LD"; then
8899 for ncn_progname in ld; do
8900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8904if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8905 $as_echo_n "(cached) " >&6
9a819804
AO
8906else
8907 if test -n "$LD"; then
8908 ac_cv_prog_LD="$LD" # Let the user override the test.
8909else
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
81ecdfbb 8915 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8917 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8919 break 2
8920 fi
8921done
81ecdfbb
RW
8922 done
8923IFS=$as_save_IFS
9a819804
AO
8924
8925fi
8926fi
8927LD=$ac_cv_prog_LD
8928if test -n "$LD"; then
81ecdfbb
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8930$as_echo "$LD" >&6; }
9a819804 8931else
81ecdfbb
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
9a819804
AO
8934fi
8935
81ecdfbb 8936
9a819804
AO
8937 done
8938fi
8939
8940for ncn_progname in ld; do
05cbd757
PB
8941 if test -n "$ncn_tool_prefix"; then
8942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8943set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8946if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8947 $as_echo_n "(cached) " >&6
859789af
AC
8948else
8949 if test -n "$LD"; then
8950 ac_cv_prog_LD="$LD" # Let the user override the test.
8951else
c6b750e1
DJ
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
81ecdfbb 8957 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8959 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8961 break 2
8962 fi
8963done
81ecdfbb
RW
8964 done
8965IFS=$as_save_IFS
c6b750e1 8966
859789af
AC
8967fi
8968fi
c6b750e1 8969LD=$ac_cv_prog_LD
859789af 8970if test -n "$LD"; then
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8972$as_echo "$LD" >&6; }
859789af 8973else
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
859789af
AC
8976fi
8977
81ecdfbb 8978
05cbd757
PB
8979 fi
8980 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8985if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8986 $as_echo_n "(cached) " >&6
859789af 8987else
05cbd757
PB
8988 if test -n "$LD"; then
8989 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8990else
c6b750e1
DJ
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
81ecdfbb 8996 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8998 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9000 break 2
9001 fi
9002done
81ecdfbb
RW
9003 done
9004IFS=$as_save_IFS
c6b750e1 9005
859789af
AC
9006fi
9007fi
c6b750e1 9008LD=$ac_cv_prog_LD
05cbd757 9009if test -n "$LD"; then
81ecdfbb
RW
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9011$as_echo "$LD" >&6; }
859789af 9012else
81ecdfbb
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
859789af 9015fi
c6b750e1 9016
81ecdfbb 9017
05cbd757
PB
9018 fi
9019 test -n "$ac_cv_prog_LD" && break
9020done
9021
9022if test -z "$ac_cv_prog_LD" ; then
9023 set dummy ld
9024 if test $build = $host ; then
9025 LD="$2"
859789af 9026 else
05cbd757 9027 LD="${ncn_tool_prefix}$2"
859789af 9028 fi
859789af
AC
9029fi
9030
9a819804
AO
9031
9032
9033if test -n "$LIPO"; then
9034 ac_cv_prog_LIPO=$LIPO
9035elif test -n "$ac_cv_prog_LIPO"; then
9036 LIPO=$ac_cv_prog_LIPO
9037fi
9038
9039if test -n "$ac_cv_prog_LIPO"; then
9040 for ncn_progname in lipo; do
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9045if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9046 $as_echo_n "(cached) " >&6
9a819804
AO
9047else
9048 if test -n "$LIPO"; then
9049 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
81ecdfbb 9056 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9058 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9060 break 2
9061 fi
9062done
81ecdfbb
RW
9063 done
9064IFS=$as_save_IFS
9a819804
AO
9065
9066fi
9067fi
9068LIPO=$ac_cv_prog_LIPO
9069if test -n "$LIPO"; then
81ecdfbb
RW
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9071$as_echo "$LIPO" >&6; }
9a819804 9072else
81ecdfbb
RW
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9a819804
AO
9075fi
9076
81ecdfbb 9077
9a819804
AO
9078 done
9079fi
9080
9081for ncn_progname in lipo; do
be01d343
PB
9082 if test -n "$ncn_tool_prefix"; then
9083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9084set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9087if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9088 $as_echo_n "(cached) " >&6
be01d343
PB
9089else
9090 if test -n "$LIPO"; then
9091 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9092else
c6b750e1
DJ
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
81ecdfbb 9098 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9100 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9102 break 2
9103 fi
9104done
81ecdfbb
RW
9105 done
9106IFS=$as_save_IFS
c6b750e1 9107
be01d343
PB
9108fi
9109fi
c6b750e1 9110LIPO=$ac_cv_prog_LIPO
be01d343 9111if test -n "$LIPO"; then
81ecdfbb
RW
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9113$as_echo "$LIPO" >&6; }
be01d343 9114else
81ecdfbb
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
be01d343
PB
9117fi
9118
81ecdfbb 9119
be01d343
PB
9120 fi
9121 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9123set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9126if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 9127 $as_echo_n "(cached) " >&6
be01d343
PB
9128else
9129 if test -n "$LIPO"; then
9130 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9131else
c6b750e1
DJ
9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
81ecdfbb 9137 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9139 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9141 break 2
9142 fi
9143done
81ecdfbb
RW
9144 done
9145IFS=$as_save_IFS
c6b750e1 9146
be01d343
PB
9147fi
9148fi
c6b750e1 9149LIPO=$ac_cv_prog_LIPO
be01d343 9150if test -n "$LIPO"; then
81ecdfbb
RW
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9152$as_echo "$LIPO" >&6; }
be01d343 9153else
81ecdfbb
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155$as_echo "no" >&6; }
be01d343 9156fi
c6b750e1 9157
81ecdfbb 9158
be01d343
PB
9159 fi
9160 test -n "$ac_cv_prog_LIPO" && break
9161done
9162
9163if test -z "$ac_cv_prog_LIPO" ; then
9164 set dummy lipo
9165 if test $build = $host ; then
9166 LIPO="$2"
9167 else
9168 LIPO="${ncn_tool_prefix}$2"
9169 fi
9170fi
9171
9a819804
AO
9172
9173
9174if test -n "$NM"; then
9175 ac_cv_prog_NM=$NM
9176elif test -n "$ac_cv_prog_NM"; then
9177 NM=$ac_cv_prog_NM
9178fi
9179
9180if test -n "$ac_cv_prog_NM"; then
9181 for ncn_progname in nm; do
9182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9183set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9186if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9187 $as_echo_n "(cached) " >&6
859789af
AC
9188else
9189 if test -n "$NM"; then
9190 ac_cv_prog_NM="$NM" # Let the user override the test.
9191else
c6b750e1
DJ
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
81ecdfbb 9197 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9199 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9201 break 2
9202 fi
9203done
81ecdfbb
RW
9204 done
9205IFS=$as_save_IFS
c6b750e1 9206
859789af
AC
9207fi
9208fi
c6b750e1 9209NM=$ac_cv_prog_NM
859789af 9210if test -n "$NM"; then
81ecdfbb
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9212$as_echo "$NM" >&6; }
859789af 9213else
81ecdfbb
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
859789af
AC
9216fi
9217
81ecdfbb 9218
9a819804
AO
9219 done
9220fi
9221
9222for ncn_progname in nm; do
9223 if test -n "$ncn_tool_prefix"; then
9224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9225set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9228if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9229 $as_echo_n "(cached) " >&6
859789af 9230else
05cbd757
PB
9231 if test -n "$NM"; then
9232 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9233else
c6b750e1
DJ
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
81ecdfbb 9239 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9241 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9243 break 2
9244 fi
9245done
81ecdfbb
RW
9246 done
9247IFS=$as_save_IFS
c6b750e1 9248
859789af
AC
9249fi
9250fi
c6b750e1 9251NM=$ac_cv_prog_NM
05cbd757 9252if test -n "$NM"; then
81ecdfbb
RW
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9254$as_echo "$NM" >&6; }
859789af 9255else
81ecdfbb
RW
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
859789af 9258fi
c6b750e1 9259
81ecdfbb 9260
05cbd757 9261 fi
9a819804
AO
9262 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9267if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9268 $as_echo_n "(cached) " >&6
9a819804
AO
9269else
9270 if test -n "$NM"; then
9271 ac_cv_prog_NM="$NM" # Let the user override the test.
9272else
9273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274for as_dir in $PATH
9275do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
81ecdfbb 9278 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9280 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9282 break 2
9283 fi
9284done
81ecdfbb
RW
9285 done
9286IFS=$as_save_IFS
9a819804
AO
9287
9288fi
9289fi
9290NM=$ac_cv_prog_NM
9291if test -n "$NM"; then
81ecdfbb
RW
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9293$as_echo "$NM" >&6; }
9a819804 9294else
81ecdfbb
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
9a819804
AO
9297fi
9298
81ecdfbb 9299
9a819804
AO
9300 fi
9301 test -n "$ac_cv_prog_NM" && break
9302done
9303
9304if test -z "$ac_cv_prog_NM" ; then
9305 set dummy nm
9306 if test $build = $host ; then
9307 NM="$2"
9308 else
9309 NM="${ncn_tool_prefix}$2"
9310 fi
9311fi
9312
9313
9314
9315if test -n "$RANLIB"; then
9316 ac_cv_prog_RANLIB=$RANLIB
9317elif test -n "$ac_cv_prog_RANLIB"; then
9318 RANLIB=$ac_cv_prog_RANLIB
9319fi
9320
9321if test -n "$ac_cv_prog_RANLIB"; then
9322 for ncn_progname in ranlib; do
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9327if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9328 $as_echo_n "(cached) " >&6
9a819804
AO
9329else
9330 if test -n "$RANLIB"; then
9331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9332else
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
81ecdfbb 9338 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9340 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9342 break 2
9343 fi
9344done
81ecdfbb
RW
9345 done
9346IFS=$as_save_IFS
9a819804
AO
9347
9348fi
9349fi
9350RANLIB=$ac_cv_prog_RANLIB
9351if test -n "$RANLIB"; then
81ecdfbb
RW
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9353$as_echo "$RANLIB" >&6; }
9a819804 9354else
81ecdfbb
RW
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
9a819804
AO
9357fi
9358
81ecdfbb 9359
9a819804
AO
9360 done
9361fi
859789af 9362
9a819804 9363for ncn_progname in ranlib; do
05cbd757
PB
9364 if test -n "$ncn_tool_prefix"; then
9365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9366set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9369if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9370 $as_echo_n "(cached) " >&6
859789af
AC
9371else
9372 if test -n "$RANLIB"; then
9373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9374else
c6b750e1
DJ
9375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376for as_dir in $PATH
9377do
9378 IFS=$as_save_IFS
9379 test -z "$as_dir" && as_dir=.
81ecdfbb 9380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9382 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9384 break 2
9385 fi
9386done
81ecdfbb
RW
9387 done
9388IFS=$as_save_IFS
c6b750e1 9389
859789af
AC
9390fi
9391fi
c6b750e1 9392RANLIB=$ac_cv_prog_RANLIB
859789af 9393if test -n "$RANLIB"; then
81ecdfbb
RW
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9395$as_echo "$RANLIB" >&6; }
859789af 9396else
81ecdfbb
RW
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398$as_echo "no" >&6; }
859789af
AC
9399fi
9400
81ecdfbb 9401
05cbd757
PB
9402 fi
9403 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9408if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9409 $as_echo_n "(cached) " >&6
859789af 9410else
05cbd757
PB
9411 if test -n "$RANLIB"; then
9412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9413else
c6b750e1
DJ
9414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
81ecdfbb 9419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9421 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9423 break 2
9424 fi
9425done
81ecdfbb
RW
9426 done
9427IFS=$as_save_IFS
c6b750e1 9428
859789af
AC
9429fi
9430fi
c6b750e1 9431RANLIB=$ac_cv_prog_RANLIB
05cbd757 9432if test -n "$RANLIB"; then
81ecdfbb
RW
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9434$as_echo "$RANLIB" >&6; }
859789af 9435else
81ecdfbb
RW
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437$as_echo "no" >&6; }
859789af 9438fi
c6b750e1 9439
81ecdfbb 9440
859789af 9441 fi
05cbd757
PB
9442 test -n "$ac_cv_prog_RANLIB" && break
9443done
9444
9445if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9446 RANLIB="true"
859789af
AC
9447fi
9448
9a819804
AO
9449
9450
9451if test -n "$STRIP"; then
9452 ac_cv_prog_STRIP=$STRIP
9453elif test -n "$ac_cv_prog_STRIP"; then
9454 STRIP=$ac_cv_prog_STRIP
9455fi
9456
9457if test -n "$ac_cv_prog_STRIP"; then
9458 for ncn_progname in strip; do
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9463if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9464 $as_echo_n "(cached) " >&6
9a819804
AO
9465else
9466 if test -n "$STRIP"; then
9467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9468else
9469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $PATH
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
81ecdfbb 9474 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9476 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9478 break 2
9479 fi
9480done
81ecdfbb
RW
9481 done
9482IFS=$as_save_IFS
9a819804
AO
9483
9484fi
9485fi
9486STRIP=$ac_cv_prog_STRIP
9487if test -n "$STRIP"; then
81ecdfbb
RW
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9489$as_echo "$STRIP" >&6; }
9a819804 9490else
81ecdfbb
RW
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492$as_echo "no" >&6; }
9a819804
AO
9493fi
9494
81ecdfbb 9495
9a819804
AO
9496 done
9497fi
9498
9499for ncn_progname in strip; do
be01d343
PB
9500 if test -n "$ncn_tool_prefix"; then
9501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9505if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9506 $as_echo_n "(cached) " >&6
be01d343
PB
9507else
9508 if test -n "$STRIP"; then
9509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9510else
c6b750e1
DJ
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
81ecdfbb 9516 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9518 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9520 break 2
9521 fi
9522done
81ecdfbb
RW
9523 done
9524IFS=$as_save_IFS
c6b750e1 9525
be01d343
PB
9526fi
9527fi
c6b750e1 9528STRIP=$ac_cv_prog_STRIP
be01d343 9529if test -n "$STRIP"; then
81ecdfbb
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9531$as_echo "$STRIP" >&6; }
be01d343 9532else
81ecdfbb
RW
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534$as_echo "no" >&6; }
be01d343
PB
9535fi
9536
81ecdfbb 9537
be01d343
PB
9538 fi
9539 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9541set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9544if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9545 $as_echo_n "(cached) " >&6
be01d343
PB
9546else
9547 if test -n "$STRIP"; then
9548 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9549else
c6b750e1
DJ
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
81ecdfbb 9555 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9557 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9559 break 2
9560 fi
9561done
81ecdfbb
RW
9562 done
9563IFS=$as_save_IFS
c6b750e1 9564
be01d343
PB
9565fi
9566fi
c6b750e1 9567STRIP=$ac_cv_prog_STRIP
be01d343 9568if test -n "$STRIP"; then
81ecdfbb
RW
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9570$as_echo "$STRIP" >&6; }
be01d343 9571else
81ecdfbb
RW
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573$as_echo "no" >&6; }
be01d343 9574fi
c6b750e1 9575
81ecdfbb 9576
be01d343
PB
9577 fi
9578 test -n "$ac_cv_prog_STRIP" && break
9579done
9580
9581if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9582 STRIP="true"
be01d343
PB
9583fi
9584
9a819804
AO
9585
9586
9587if test -n "$WINDRES"; then
9588 ac_cv_prog_WINDRES=$WINDRES
9589elif test -n "$ac_cv_prog_WINDRES"; then
9590 WINDRES=$ac_cv_prog_WINDRES
9591fi
9592
9593if test -n "$ac_cv_prog_WINDRES"; then
9594 for ncn_progname in windres; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9599if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9600 $as_echo_n "(cached) " >&6
9a819804
AO
9601else
9602 if test -n "$WINDRES"; then
9603 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
81ecdfbb 9610 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9612 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9614 break 2
9615 fi
9616done
81ecdfbb
RW
9617 done
9618IFS=$as_save_IFS
9a819804
AO
9619
9620fi
9621fi
9622WINDRES=$ac_cv_prog_WINDRES
9623if test -n "$WINDRES"; then
81ecdfbb
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9625$as_echo "$WINDRES" >&6; }
9a819804 9626else
81ecdfbb
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9a819804
AO
9629fi
9630
81ecdfbb 9631
9a819804
AO
9632 done
9633fi
9634
9635for ncn_progname in windres; do
05cbd757
PB
9636 if test -n "$ncn_tool_prefix"; then
9637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9638set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9641if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9642 $as_echo_n "(cached) " >&6
859789af
AC
9643else
9644 if test -n "$WINDRES"; then
9645 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9646else
c6b750e1
DJ
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
81ecdfbb 9652 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9654 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9656 break 2
9657 fi
9658done
81ecdfbb
RW
9659 done
9660IFS=$as_save_IFS
c6b750e1 9661
859789af
AC
9662fi
9663fi
c6b750e1 9664WINDRES=$ac_cv_prog_WINDRES
859789af 9665if test -n "$WINDRES"; then
81ecdfbb
RW
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9667$as_echo "$WINDRES" >&6; }
859789af 9668else
81ecdfbb
RW
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
859789af
AC
9671fi
9672
81ecdfbb 9673
05cbd757
PB
9674 fi
9675 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9677set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9680if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9681 $as_echo_n "(cached) " >&6
859789af 9682else
05cbd757
PB
9683 if test -n "$WINDRES"; then
9684 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9685else
c6b750e1
DJ
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
81ecdfbb 9691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9693 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9695 break 2
9696 fi
9697done
81ecdfbb
RW
9698 done
9699IFS=$as_save_IFS
c6b750e1 9700
859789af
AC
9701fi
9702fi
c6b750e1 9703WINDRES=$ac_cv_prog_WINDRES
05cbd757 9704if test -n "$WINDRES"; then
81ecdfbb
RW
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9706$as_echo "$WINDRES" >&6; }
859789af 9707else
81ecdfbb
RW
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
859789af 9710fi
c6b750e1 9711
81ecdfbb 9712
05cbd757
PB
9713 fi
9714 test -n "$ac_cv_prog_WINDRES" && break
9715done
9716
9717if test -z "$ac_cv_prog_WINDRES" ; then
9718 set dummy windres
9719 if test $build = $host ; then
9720 WINDRES="$2"
859789af 9721 else
05cbd757 9722 WINDRES="${ncn_tool_prefix}$2"
859789af 9723 fi
859789af
AC
9724fi
9725
9a819804
AO
9726
9727
0c24b341
NC
9728if test -n "$WINDMC"; then
9729 ac_cv_prog_WINDMC=$WINDMC
9730elif test -n "$ac_cv_prog_WINDMC"; then
9731 WINDMC=$ac_cv_prog_WINDMC
9732fi
9733
9734if test -n "$ac_cv_prog_WINDMC"; then
9735 for ncn_progname in windmc; do
9736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9737set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9740if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9741 $as_echo_n "(cached) " >&6
0c24b341
NC
9742else
9743 if test -n "$WINDMC"; then
9744 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9745else
9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
81ecdfbb 9751 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9753 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9755 break 2
9756 fi
9757done
81ecdfbb
RW
9758 done
9759IFS=$as_save_IFS
0c24b341
NC
9760
9761fi
9762fi
9763WINDMC=$ac_cv_prog_WINDMC
9764if test -n "$WINDMC"; then
81ecdfbb
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9766$as_echo "$WINDMC" >&6; }
0c24b341 9767else
81ecdfbb
RW
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769$as_echo "no" >&6; }
0c24b341
NC
9770fi
9771
81ecdfbb 9772
0c24b341
NC
9773 done
9774fi
9775
9776for ncn_progname in windmc; do
9777 if test -n "$ncn_tool_prefix"; then
9778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9779set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9782if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9783 $as_echo_n "(cached) " >&6
0c24b341
NC
9784else
9785 if test -n "$WINDMC"; then
9786 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
81ecdfbb 9793 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9795 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9797 break 2
9798 fi
9799done
81ecdfbb
RW
9800 done
9801IFS=$as_save_IFS
0c24b341
NC
9802
9803fi
9804fi
9805WINDMC=$ac_cv_prog_WINDMC
9806if test -n "$WINDMC"; then
81ecdfbb
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9808$as_echo "$WINDMC" >&6; }
0c24b341 9809else
81ecdfbb
RW
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811$as_echo "no" >&6; }
0c24b341
NC
9812fi
9813
81ecdfbb 9814
0c24b341
NC
9815 fi
9816 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9818set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9821if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9822 $as_echo_n "(cached) " >&6
0c24b341
NC
9823else
9824 if test -n "$WINDMC"; then
9825 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9826else
9827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828for as_dir in $PATH
9829do
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
81ecdfbb 9832 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9834 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9836 break 2
9837 fi
9838done
81ecdfbb
RW
9839 done
9840IFS=$as_save_IFS
0c24b341
NC
9841
9842fi
9843fi
9844WINDMC=$ac_cv_prog_WINDMC
9845if test -n "$WINDMC"; then
81ecdfbb
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9847$as_echo "$WINDMC" >&6; }
0c24b341 9848else
81ecdfbb
RW
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
0c24b341
NC
9851fi
9852
81ecdfbb 9853
0c24b341
NC
9854 fi
9855 test -n "$ac_cv_prog_WINDMC" && break
9856done
9857
9858if test -z "$ac_cv_prog_WINDMC" ; then
9859 set dummy windmc
9860 if test $build = $host ; then
9861 WINDMC="$2"
9862 else
9863 WINDMC="${ncn_tool_prefix}$2"
9864 fi
9865fi
9866
9867
9868
9a819804
AO
9869if test -n "$OBJCOPY"; then
9870 ac_cv_prog_OBJCOPY=$OBJCOPY
9871elif test -n "$ac_cv_prog_OBJCOPY"; then
9872 OBJCOPY=$ac_cv_prog_OBJCOPY
9873fi
9874
9875if test -n "$ac_cv_prog_OBJCOPY"; then
9876 for ncn_progname in objcopy; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9881if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9882 $as_echo_n "(cached) " >&6
9a819804
AO
9883else
9884 if test -n "$OBJCOPY"; then
9885 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
81ecdfbb 9892 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9894 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9896 break 2
9897 fi
9898done
81ecdfbb
RW
9899 done
9900IFS=$as_save_IFS
9a819804
AO
9901
9902fi
9903fi
9904OBJCOPY=$ac_cv_prog_OBJCOPY
9905if test -n "$OBJCOPY"; then
81ecdfbb
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9907$as_echo "$OBJCOPY" >&6; }
9a819804 9908else
81ecdfbb
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
9a819804
AO
9911fi
9912
81ecdfbb 9913
9a819804
AO
9914 done
9915fi
9916
9917for ncn_progname in objcopy; do
05cbd757
PB
9918 if test -n "$ncn_tool_prefix"; then
9919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9920set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9923if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9924 $as_echo_n "(cached) " >&6
859789af
AC
9925else
9926 if test -n "$OBJCOPY"; then
9927 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9928else
c6b750e1
DJ
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
81ecdfbb 9934 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9936 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9938 break 2
9939 fi
9940done
81ecdfbb
RW
9941 done
9942IFS=$as_save_IFS
c6b750e1 9943
859789af
AC
9944fi
9945fi
c6b750e1 9946OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9947if test -n "$OBJCOPY"; then
81ecdfbb
RW
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9949$as_echo "$OBJCOPY" >&6; }
859789af 9950else
81ecdfbb
RW
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
859789af
AC
9953fi
9954
81ecdfbb 9955
05cbd757
PB
9956 fi
9957 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9959set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9962if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9963 $as_echo_n "(cached) " >&6
859789af 9964else
05cbd757
PB
9965 if test -n "$OBJCOPY"; then
9966 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9967else
c6b750e1
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
81ecdfbb 9973 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9975 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9977 break 2
9978 fi
9979done
81ecdfbb
RW
9980 done
9981IFS=$as_save_IFS
c6b750e1 9982
859789af
AC
9983fi
9984fi
c6b750e1 9985OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9986if test -n "$OBJCOPY"; then
81ecdfbb
RW
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9988$as_echo "$OBJCOPY" >&6; }
859789af 9989else
81ecdfbb
RW
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
859789af 9992fi
c6b750e1 9993
81ecdfbb 9994
05cbd757
PB
9995 fi
9996 test -n "$ac_cv_prog_OBJCOPY" && break
9997done
9998
9999if test -z "$ac_cv_prog_OBJCOPY" ; then
10000 set dummy objcopy
10001 if test $build = $host ; then
10002 OBJCOPY="$2"
859789af 10003 else
05cbd757 10004 OBJCOPY="${ncn_tool_prefix}$2"
859789af 10005 fi
859789af
AC
10006fi
10007
9a819804
AO
10008
10009
10010if test -n "$OBJDUMP"; then
10011 ac_cv_prog_OBJDUMP=$OBJDUMP
10012elif test -n "$ac_cv_prog_OBJDUMP"; then
10013 OBJDUMP=$ac_cv_prog_OBJDUMP
10014fi
10015
10016if test -n "$ac_cv_prog_OBJDUMP"; then
10017 for ncn_progname in objdump; do
10018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10022if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10023 $as_echo_n "(cached) " >&6
9a819804
AO
10024else
10025 if test -n "$OBJDUMP"; then
10026 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10027else
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
81ecdfbb 10033 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10035 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10037 break 2
10038 fi
10039done
81ecdfbb
RW
10040 done
10041IFS=$as_save_IFS
9a819804
AO
10042
10043fi
10044fi
10045OBJDUMP=$ac_cv_prog_OBJDUMP
10046if test -n "$OBJDUMP"; then
81ecdfbb
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10048$as_echo "$OBJDUMP" >&6; }
9a819804 10049else
81ecdfbb
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
9a819804
AO
10052fi
10053
81ecdfbb 10054
9a819804
AO
10055 done
10056fi
10057
10058for ncn_progname in objdump; do
05cbd757
PB
10059 if test -n "$ncn_tool_prefix"; then
10060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10061set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10064if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10065 $as_echo_n "(cached) " >&6
859789af
AC
10066else
10067 if test -n "$OBJDUMP"; then
10068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10069else
c6b750e1
DJ
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
81ecdfbb 10075 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10077 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10079 break 2
10080 fi
10081done
81ecdfbb
RW
10082 done
10083IFS=$as_save_IFS
c6b750e1 10084
859789af
AC
10085fi
10086fi
c6b750e1 10087OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 10088if test -n "$OBJDUMP"; then
81ecdfbb
RW
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10090$as_echo "$OBJDUMP" >&6; }
859789af 10091else
81ecdfbb
RW
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093$as_echo "no" >&6; }
859789af
AC
10094fi
10095
81ecdfbb 10096
05cbd757
PB
10097 fi
10098 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10100set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10102$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10103if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 10104 $as_echo_n "(cached) " >&6
859789af 10105else
05cbd757
PB
10106 if test -n "$OBJDUMP"; then
10107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 10108else
c6b750e1
DJ
10109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110for as_dir in $PATH
10111do
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
81ecdfbb 10114 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10116 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10118 break 2
10119 fi
10120done
81ecdfbb
RW
10121 done
10122IFS=$as_save_IFS
c6b750e1 10123
859789af
AC
10124fi
10125fi
c6b750e1 10126OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 10127if test -n "$OBJDUMP"; then
81ecdfbb
RW
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10129$as_echo "$OBJDUMP" >&6; }
859789af 10130else
81ecdfbb
RW
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132$as_echo "no" >&6; }
859789af 10133fi
c6b750e1 10134
81ecdfbb 10135
05cbd757
PB
10136 fi
10137 test -n "$ac_cv_prog_OBJDUMP" && break
10138done
10139
10140if test -z "$ac_cv_prog_OBJDUMP" ; then
10141 set dummy objdump
10142 if test $build = $host ; then
10143 OBJDUMP="$2"
859789af 10144 else
05cbd757 10145 OBJDUMP="${ncn_tool_prefix}$2"
859789af 10146 fi
859789af
AC
10147fi
10148
a0da8069
NN
10149
10150
b121d7d4
DD
10151if test -n "$READELF"; then
10152 ac_cv_prog_READELF=$READELF
10153elif test -n "$ac_cv_prog_READELF"; then
10154 READELF=$ac_cv_prog_READELF
10155fi
10156
10157if test -n "$ac_cv_prog_READELF"; then
10158 for ncn_progname in readelf; do
10159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10160set dummy ${ncn_progname}; ac_word=$2
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10163if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10164 $as_echo_n "(cached) " >&6
10165else
10166 if test -n "$READELF"; then
10167 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10168else
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10176 ac_cv_prog_READELF="${ncn_progname}"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 break 2
10179 fi
10180done
10181 done
10182IFS=$as_save_IFS
10183
10184fi
10185fi
10186READELF=$ac_cv_prog_READELF
10187if test -n "$READELF"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10189$as_echo "$READELF" >&6; }
10190else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
10193fi
10194
10195
10196 done
10197fi
10198
10199for ncn_progname in readelf; do
10200 if test -n "$ncn_tool_prefix"; then
10201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10202set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10205if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10206 $as_echo_n "(cached) " >&6
10207else
10208 if test -n "$READELF"; then
10209 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10210else
10211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212for as_dir in $PATH
10213do
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
10216 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10218 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 break 2
10221 fi
10222done
10223 done
10224IFS=$as_save_IFS
10225
10226fi
10227fi
10228READELF=$ac_cv_prog_READELF
10229if test -n "$READELF"; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10231$as_echo "$READELF" >&6; }
10232else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
10235fi
10236
10237
10238 fi
10239 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241set dummy ${ncn_progname}; ac_word=$2
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10244if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10245 $as_echo_n "(cached) " >&6
10246else
10247 if test -n "$READELF"; then
10248 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10249else
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10257 ac_cv_prog_READELF="${ncn_progname}"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261done
10262 done
10263IFS=$as_save_IFS
10264
10265fi
10266fi
10267READELF=$ac_cv_prog_READELF
10268if test -n "$READELF"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10270$as_echo "$READELF" >&6; }
10271else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
10274fi
10275
10276
10277 fi
10278 test -n "$ac_cv_prog_READELF" && break
10279done
10280
10281if test -z "$ac_cv_prog_READELF" ; then
10282 set dummy readelf
10283 if test $build = $host ; then
10284 READELF="$2"
10285 else
10286 READELF="${ncn_tool_prefix}$2"
10287 fi
10288fi
10289
10290
10291
a0da8069
NN
10292
10293
10294
50ad1254
L
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10296$as_echo_n "checking for -plugin option... " >&6; }
10297
10298plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10299plugin_option=
10300for plugin in $plugin_names; do
10301 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10302 if test x$plugin_so = x$plugin; then
10303 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10304 fi
10305 if test x$plugin_so != x$plugin; then
10306 plugin_option="--plugin $plugin_so"
10307 break
10308 fi
10309done
03c02f31
L
10310if test -n "$ac_tool_prefix"; then
10311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10312set dummy ${ac_tool_prefix}ar; ac_word=$2
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
10315if ${ac_cv_prog_AR+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317else
10318 if test -n "$AR"; then
10319 ac_cv_prog_AR="$AR" # Let the user override the test.
10320else
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_AR="${ac_tool_prefix}ar"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332done
10333 done
10334IFS=$as_save_IFS
10335
10336fi
10337fi
10338AR=$ac_cv_prog_AR
10339if test -n "$AR"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10341$as_echo "$AR" >&6; }
10342else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
10345fi
10346
10347
10348fi
10349if test -z "$ac_cv_prog_AR"; then
10350 ac_ct_AR=$AR
10351 # Extract the first word of "ar", so it can be a program name with args.
10352set dummy ar; ac_word=$2
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354$as_echo_n "checking for $ac_word... " >&6; }
10355if ${ac_cv_prog_ac_ct_AR+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357else
10358 if test -n "$ac_ct_AR"; then
10359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10360else
10361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $PATH
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_prog_ac_ct_AR="ar"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372done
10373 done
10374IFS=$as_save_IFS
10375
10376fi
10377fi
10378ac_ct_AR=$ac_cv_prog_ac_ct_AR
10379if test -n "$ac_ct_AR"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10381$as_echo "$ac_ct_AR" >&6; }
10382else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384$as_echo "no" >&6; }
10385fi
10386
10387 if test "x$ac_ct_AR" = x; then
10388 AR=""
10389 else
10390 case $cross_compiling:$ac_tool_warned in
10391yes:)
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10394ac_tool_warned=yes ;;
10395esac
10396 AR=$ac_ct_AR
10397 fi
10398else
10399 AR="$ac_cv_prog_AR"
10400fi
10401
10402if test "${AR}" = "" ; then
10403 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10404fi
10405touch conftest.c
10406${AR} $plugin_option rc conftest.a conftest.c
10407if test "$?" != 0; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10409$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10410 plugin_option=
10411fi
10412rm -f conftest.*
50ad1254
L
10413if test -n "$plugin_option"; then
10414 PLUGIN_OPTION="$plugin_option"
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10416$as_echo "$plugin_option" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422AR_PLUGIN_OPTION=
10423RANLIB_PLUGIN_OPTION=
10424if test -n "$PLUGIN_OPTION"; then
10425 if $AR --help 2>&1 | grep -q "\--plugin"; then
10426 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10427 fi
10428 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10429 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10430 fi
44124a46
L
10431else
10432 if test "$enable_pgo_build" != "no"; then
10433 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10434 fi
50ad1254
L
10435fi
10436
10437
10438
be01d343 10439# Target tools.
c6b750e1 10440
81ecdfbb
RW
10441# Check whether --with-build-time-tools was given.
10442if test "${with_build_time_tools+set}" = set; then :
10443 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10444 x/*) ;;
10445 *)
10446 with_build_time_tools=
81ecdfbb
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10448$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10449 ;;
10450 esac
859789af 10451else
2429c060 10452 with_build_time_tools=
81ecdfbb
RW
10453fi
10454
859789af 10455
9a819804
AO
10456
10457
10458if test -n "$CC_FOR_TARGET"; then
10459 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10460elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10461 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10462fi
10463
10464if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10465 for ncn_progname in cc gcc; do
10466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10467set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10470if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10471 $as_echo_n "(cached) " >&6
9a819804
AO
10472else
10473 if test -n "$CC_FOR_TARGET"; then
10474 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10475else
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
81ecdfbb 10481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10483 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10485 break 2
10486 fi
10487done
81ecdfbb
RW
10488 done
10489IFS=$as_save_IFS
9a819804
AO
10490
10491fi
10492fi
10493CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10494if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10496$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10497else
81ecdfbb
RW
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
9a819804
AO
10500fi
10501
81ecdfbb 10502
9a819804
AO
10503 done
10504fi
10505
10506if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10507 for ncn_progname in cc gcc; do
81ecdfbb
RW
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10509$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10510 if test -x $with_build_time_tools/${ncn_progname}; then
10511 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513$as_echo "yes" >&6; }
cac3d6c4 10514 break
2429c060 10515 else
81ecdfbb
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
cac3d6c4
CM
10518 fi
10519 done
55db4b87
PB
10520fi
10521
2429c060
PB
10522if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10523 for ncn_progname in cc gcc; do
10524 if test -n "$ncn_target_tool_prefix"; then
10525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10526set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10529if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10530 $as_echo_n "(cached) " >&6
55db4b87
PB
10531else
10532 if test -n "$CC_FOR_TARGET"; then
10533 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10534else
c6b750e1
DJ
10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
81ecdfbb 10540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10542 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10544 break 2
10545 fi
10546done
81ecdfbb
RW
10547 done
10548IFS=$as_save_IFS
c6b750e1 10549
55db4b87
PB
10550fi
10551fi
c6b750e1 10552CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10553if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10555$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10556else
81ecdfbb
RW
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558$as_echo "no" >&6; }
55db4b87
PB
10559fi
10560
81ecdfbb 10561
2429c060
PB
10562 fi
10563 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10565set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10568if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10569 $as_echo_n "(cached) " >&6
55db4b87 10570else
05cbd757
PB
10571 if test -n "$CC_FOR_TARGET"; then
10572 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10573else
c6b750e1
DJ
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
81ecdfbb 10579 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10581 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10583 break 2
10584 fi
10585done
81ecdfbb
RW
10586 done
10587IFS=$as_save_IFS
c6b750e1 10588
55db4b87
PB
10589fi
10590fi
c6b750e1 10591CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10592if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10594$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10595else
81ecdfbb
RW
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
55db4b87 10598fi
c6b750e1 10599
81ecdfbb 10600
2429c060
PB
10601 fi
10602 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10603 done
10604fi
c6b750e1 10605
05cbd757
PB
10606if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10607 set dummy cc gcc
10608 if test $build = $target ; then
10609 CC_FOR_TARGET="$2"
55db4b87 10610 else
05cbd757 10611 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10612 fi
d3f5afc4
MS
10613else
10614 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10615fi
10616
9a819804
AO
10617
10618
10619if test -n "$CXX_FOR_TARGET"; then
10620 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10621elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10622 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10623fi
10624
10625if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10626 for ncn_progname in c++ g++ cxx gxx; do
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10631if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10632 $as_echo_n "(cached) " >&6
9a819804
AO
10633else
10634 if test -n "$CXX_FOR_TARGET"; then
10635 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10636else
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
81ecdfbb 10642 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10644 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10646 break 2
10647 fi
10648done
81ecdfbb
RW
10649 done
10650IFS=$as_save_IFS
9a819804
AO
10651
10652fi
10653fi
10654CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10655if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10657$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10658else
81ecdfbb
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660$as_echo "no" >&6; }
9a819804
AO
10661fi
10662
81ecdfbb 10663
9a819804
AO
10664 done
10665fi
10666
10667if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10668 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10670$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10671 if test -x $with_build_time_tools/${ncn_progname}; then
10672 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10674$as_echo "yes" >&6; }
2429c060
PB
10675 break
10676 else
81ecdfbb
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678$as_echo "no" >&6; }
2429c060
PB
10679 fi
10680 done
10681fi
10682
10683if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10684 for ncn_progname in c++ g++ cxx gxx; do
10685 if test -n "$ncn_target_tool_prefix"; then
10686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10687set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10690if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10691 $as_echo_n "(cached) " >&6
55db4b87
PB
10692else
10693 if test -n "$CXX_FOR_TARGET"; then
10694 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10695else
c6b750e1
DJ
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
81ecdfbb 10701 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10703 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10705 break 2
10706 fi
10707done
81ecdfbb
RW
10708 done
10709IFS=$as_save_IFS
c6b750e1 10710
55db4b87
PB
10711fi
10712fi
c6b750e1 10713CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10714if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10716$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10717else
81ecdfbb
RW
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719$as_echo "no" >&6; }
55db4b87
PB
10720fi
10721
81ecdfbb 10722
2429c060
PB
10723 fi
10724 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10726set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10729if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10730 $as_echo_n "(cached) " >&6
55db4b87 10731else
05cbd757
PB
10732 if test -n "$CXX_FOR_TARGET"; then
10733 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10734else
c6b750e1
DJ
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
81ecdfbb 10740 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10742 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10744 break 2
10745 fi
10746done
81ecdfbb
RW
10747 done
10748IFS=$as_save_IFS
c6b750e1 10749
55db4b87
PB
10750fi
10751fi
c6b750e1 10752CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10753if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10755$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10756else
81ecdfbb
RW
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
55db4b87 10759fi
c6b750e1 10760
81ecdfbb 10761
2429c060
PB
10762 fi
10763 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10764 done
10765fi
c6b750e1 10766
05cbd757
PB
10767if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10768 set dummy c++ g++ cxx gxx
10769 if test $build = $target ; then
10770 CXX_FOR_TARGET="$2"
55db4b87 10771 else
05cbd757 10772 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10773 fi
d3f5afc4
MS
10774else
10775 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10776fi
10777
9a819804
AO
10778
10779
10780if test -n "$GCC_FOR_TARGET"; then
10781 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10782elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10783 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10784fi
10785
10786if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10787 for ncn_progname in gcc; do
10788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10789set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10792if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10793 $as_echo_n "(cached) " >&6
9a819804
AO
10794else
10795 if test -n "$GCC_FOR_TARGET"; then
10796 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
81ecdfbb 10803 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10805 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10807 break 2
10808 fi
10809done
81ecdfbb
RW
10810 done
10811IFS=$as_save_IFS
9a819804
AO
10812
10813fi
10814fi
10815GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10816if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10818$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10819else
81ecdfbb
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
9a819804
AO
10822fi
10823
81ecdfbb 10824
9a819804
AO
10825 done
10826fi
10827
10828if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10829 for ncn_progname in gcc; do
81ecdfbb
RW
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10831$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10832 if test -x $with_build_time_tools/${ncn_progname}; then
10833 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10835$as_echo "yes" >&6; }
2429c060
PB
10836 break
10837 else
81ecdfbb
RW
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839$as_echo "no" >&6; }
2429c060
PB
10840 fi
10841 done
10842fi
10843
10844if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10845 for ncn_progname in gcc; do
10846 if test -n "$ncn_target_tool_prefix"; then
10847 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10848set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10851if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10852 $as_echo_n "(cached) " >&6
859789af 10853else
2429c060
PB
10854 if test -n "$GCC_FOR_TARGET"; then
10855 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10856else
c6b750e1
DJ
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
81ecdfbb 10862 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10864 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10866 break 2
10867 fi
10868done
81ecdfbb
RW
10869 done
10870IFS=$as_save_IFS
c6b750e1 10871
55db4b87
PB
10872fi
10873fi
c6b750e1 10874GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10875if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10877$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10878else
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880$as_echo "no" >&6; }
55db4b87
PB
10881fi
10882
81ecdfbb 10883
2429c060
PB
10884 fi
10885 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10887set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10890if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10891 $as_echo_n "(cached) " >&6
55db4b87 10892else
05cbd757
PB
10893 if test -n "$GCC_FOR_TARGET"; then
10894 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10895else
c6b750e1
DJ
10896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897for as_dir in $PATH
10898do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
81ecdfbb 10901 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10903 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10905 break 2
10906 fi
10907done
81ecdfbb
RW
10908 done
10909IFS=$as_save_IFS
c6b750e1 10910
55db4b87
PB
10911fi
10912fi
c6b750e1 10913GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10914if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10916$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10917else
81ecdfbb
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
55db4b87 10920fi
c6b750e1 10921
81ecdfbb 10922
2429c060
PB
10923 fi
10924 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10925 done
10926fi
c6b750e1 10927
05cbd757
PB
10928if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10929 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10930else
10931 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10932fi
10933
9a819804
AO
10934
10935
9a819804
AO
10936if test -n "$GFORTRAN_FOR_TARGET"; then
10937 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10938elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10939 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10940fi
10941
9a819804
AO
10942if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10943 for ncn_progname in gfortran; do
10944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10945set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10948if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10949 $as_echo_n "(cached) " >&6
55db4b87 10950else
9a819804
AO
10951 if test -n "$GFORTRAN_FOR_TARGET"; then
10952 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10953else
c6b750e1
DJ
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
81ecdfbb 10959 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10961 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10963 break 2
10964 fi
10965done
81ecdfbb
RW
10966 done
10967IFS=$as_save_IFS
c6b750e1 10968
55db4b87
PB
10969fi
10970fi
9a819804
AO
10971GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10972if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10974$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10975else
81ecdfbb
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977$as_echo "no" >&6; }
55db4b87 10978fi
c6b750e1 10979
81ecdfbb 10980
2429c060
PB
10981 done
10982fi
c6b750e1 10983
9a819804 10984if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10985 for ncn_progname in gfortran; do
81ecdfbb
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10987$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10988 if test -x $with_build_time_tools/${ncn_progname}; then
10989 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10991$as_echo "yes" >&6; }
2429c060
PB
10992 break
10993 else
81ecdfbb
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
2429c060
PB
10996 fi
10997 done
10998fi
10999
11000if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11001 for ncn_progname in gfortran; do
11002 if test -n "$ncn_target_tool_prefix"; then
11003 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11004set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11007if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11008 $as_echo_n "(cached) " >&6
55db4b87
PB
11009else
11010 if test -n "$GFORTRAN_FOR_TARGET"; then
11011 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11012else
c6b750e1
DJ
11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014for as_dir in $PATH
11015do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
81ecdfbb 11018 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11020 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11022 break 2
11023 fi
11024done
81ecdfbb
RW
11025 done
11026IFS=$as_save_IFS
c6b750e1 11027
55db4b87
PB
11028fi
11029fi
c6b750e1 11030GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 11031if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11033$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11034else
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036$as_echo "no" >&6; }
55db4b87
PB
11037fi
11038
81ecdfbb 11039
2429c060
PB
11040 fi
11041 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11043set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11046if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 11047 $as_echo_n "(cached) " >&6
55db4b87 11048else
05cbd757 11049 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
11050 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11051else
11052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053for as_dir in $PATH
11054do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
81ecdfbb 11057 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11059 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11061 break 2
11062 fi
11063done
81ecdfbb
RW
11064 done
11065IFS=$as_save_IFS
c6b750e1 11066
55db4b87
PB
11067fi
11068fi
c6b750e1 11069GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 11070if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11072$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11073else
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075$as_echo "no" >&6; }
55db4b87 11076fi
c6b750e1 11077
81ecdfbb 11078
2429c060
PB
11079 fi
11080 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11081 done
11082fi
c6b750e1 11083
05cbd757
PB
11084if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11085 set dummy gfortran
11086 if test $build = $target ; then
11087 GFORTRAN_FOR_TARGET="$2"
55db4b87 11088 else
05cbd757 11089 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 11090 fi
d3f5afc4
MS
11091else
11092 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
11093fi
11094
2429c060
PB
11095
11096
e552509b
ILT
11097if test -n "$GOC_FOR_TARGET"; then
11098 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11099elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11100 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11101fi
11102
11103if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11104 for ncn_progname in gccgo; do
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106set dummy ${ncn_progname}; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11109if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11110 $as_echo_n "(cached) " >&6
11111else
11112 if test -n "$GOC_FOR_TARGET"; then
11113 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11122 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11133if test -n "$GOC_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11135$as_echo "$GOC_FOR_TARGET" >&6; }
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141
11142 done
11143fi
11144
11145if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11146 for ncn_progname in gccgo; do
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152$as_echo "yes" >&6; }
11153 break
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
11157 fi
11158 done
11159fi
11160
11161if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11162 for ncn_progname in gccgo; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11168if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11169 $as_echo_n "(cached) " >&6
11170else
11171 if test -n "$GOC_FOR_TARGET"; then
11172 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11173else
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11181 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185done
11186 done
11187IFS=$as_save_IFS
11188
11189fi
11190fi
11191GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11192if test -n "$GOC_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11194$as_echo "$GOC_FOR_TARGET" >&6; }
11195else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
11198fi
11199
11200
11201 fi
11202 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204set dummy ${ncn_progname}; ac_word=$2
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11207if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11208 $as_echo_n "(cached) " >&6
11209else
11210 if test -n "$GOC_FOR_TARGET"; then
11211 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11220 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225 done
11226IFS=$as_save_IFS
11227
11228fi
11229fi
11230GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11231if test -n "$GOC_FOR_TARGET"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11233$as_echo "$GOC_FOR_TARGET" >&6; }
11234else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
11237fi
11238
11239
11240 fi
11241 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11242 done
11243fi
11244
11245if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11246 set dummy gccgo
11247 if test $build = $target ; then
11248 GOC_FOR_TARGET="$2"
11249 else
11250 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11251 fi
11252else
11253 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11254fi
11255
11256
11257
2429c060
PB
11258cat > conftest.c << \EOF
11259#ifdef __GNUC__
11260 gcc_yay;
11261#endif
11262EOF
11263if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11264 have_gcc_for_target=yes
859789af 11265else
2429c060
PB
11266 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11267 have_gcc_for_target=no
859789af 11268fi
2429c060
PB
11269rm conftest.c
11270
11271
11272
859789af 11273
2429c060
PB
11274if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11275 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11277$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11278 if test -x $with_build_time_tools/ar; then
11279 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11280 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11282$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11283 else
81ecdfbb
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
3a35eeb3 11286 fi
2429c060
PB
11287 elif test $build != $host && test $have_gcc_for_target = yes; then
11288 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11289 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11290 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11291 fi
2429c060 11292fi
c6b750e1 11293if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11294 # Extract the first word of "ar", so it can be a program name with args.
11295set dummy ar; ac_word=$2
81ecdfbb
RW
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11298if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11299 $as_echo_n "(cached) " >&6
859789af 11300else
c6b750e1
DJ
11301 case $AR_FOR_TARGET in
11302 [\\/]* | ?:[\\/]*)
2429c060
PB
11303 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11304 ;;
2429c060 11305 *)
c6b750e1
DJ
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $gcc_cv_tool_dirs
11308do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
81ecdfbb 11311 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11313 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11315 break 2
11316 fi
11317done
81ecdfbb
RW
11318 done
11319IFS=$as_save_IFS
c6b750e1 11320
2429c060
PB
11321 ;;
11322esac
859789af 11323fi
c6b750e1 11324AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11325if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11327$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11328else
81ecdfbb
RW
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330$as_echo "no" >&6; }
859789af 11331fi
05cbd757 11332
81ecdfbb 11333
2429c060
PB
11334fi
11335if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11336
11337
11338if test -n "$AR_FOR_TARGET"; then
11339 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11340elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11341 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11342fi
11343
11344if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11345 for ncn_progname in ar; do
11346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11347set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11350if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11351 $as_echo_n "(cached) " >&6
9a819804
AO
11352else
11353 if test -n "$AR_FOR_TARGET"; then
11354 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
81ecdfbb 11361 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11363 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11365 break 2
11366 fi
11367done
81ecdfbb
RW
11368 done
11369IFS=$as_save_IFS
9a819804
AO
11370
11371fi
11372fi
11373AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11374if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11376$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11377else
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
9a819804
AO
11380fi
11381
81ecdfbb 11382
9a819804
AO
11383 done
11384fi
11385
11386if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11387 for ncn_progname in ar; do
81ecdfbb
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11389$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11390 if test -x $with_build_time_tools/${ncn_progname}; then
11391 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393$as_echo "yes" >&6; }
2429c060
PB
11394 break
11395 else
81ecdfbb
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397$as_echo "no" >&6; }
2429c060
PB
11398 fi
11399 done
859789af
AC
11400fi
11401
2429c060
PB
11402if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11403 for ncn_progname in ar; do
11404 if test -n "$ncn_target_tool_prefix"; then
11405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11406set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11409if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11410 $as_echo_n "(cached) " >&6
7e0f7140 11411else
2429c060
PB
11412 if test -n "$AR_FOR_TARGET"; then
11413 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11414else
c6b750e1
DJ
11415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
81ecdfbb 11420 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11422 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11424 break 2
11425 fi
11426done
81ecdfbb
RW
11427 done
11428IFS=$as_save_IFS
c6b750e1 11429
7e0f7140
GK
11430fi
11431fi
c6b750e1 11432AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11433if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11435$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11436else
81ecdfbb
RW
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
7e0f7140
GK
11439fi
11440
81ecdfbb 11441
2429c060
PB
11442 fi
11443 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11445set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11448if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11449 $as_echo_n "(cached) " >&6
7e0f7140 11450else
2429c060
PB
11451 if test -n "$AR_FOR_TARGET"; then
11452 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11453else
c6b750e1
DJ
11454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455for as_dir in $PATH
11456do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
81ecdfbb 11459 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11461 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11463 break 2
11464 fi
11465done
81ecdfbb
RW
11466 done
11467IFS=$as_save_IFS
c6b750e1 11468
7e0f7140
GK
11469fi
11470fi
c6b750e1 11471AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11472if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11474$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11475else
81ecdfbb
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
7e0f7140 11478fi
c6b750e1 11479
81ecdfbb 11480
2429c060
PB
11481 fi
11482 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11483 done
11484fi
c6b750e1 11485
2429c060
PB
11486if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11487 set dummy ar
7e0f7140 11488 if test $build = $target ; then
2429c060 11489 AR_FOR_TARGET="$2"
7e0f7140 11490 else
2429c060 11491 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11492 fi
d3f5afc4
MS
11493else
11494 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11495fi
11496
3a35eeb3
PB
11497else
11498 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11499fi
11500
11501
11502
11503
11504if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11505 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11507$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11508 if test -x $with_build_time_tools/as; then
11509 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11510 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11512$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11513 else
81ecdfbb
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
3a35eeb3 11516 fi
2429c060
PB
11517 elif test $build != $host && test $have_gcc_for_target = yes; then
11518 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11519 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11520 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11521 fi
11522fi
c6b750e1 11523if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11524 # Extract the first word of "as", so it can be a program name with args.
11525set dummy as; ac_word=$2
81ecdfbb
RW
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11528if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11529 $as_echo_n "(cached) " >&6
2429c060 11530else
c6b750e1
DJ
11531 case $AS_FOR_TARGET in
11532 [\\/]* | ?:[\\/]*)
2429c060
PB
11533 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11534 ;;
2429c060 11535 *)
c6b750e1
DJ
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $gcc_cv_tool_dirs
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
81ecdfbb 11541 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11543 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11545 break 2
11546 fi
11547done
81ecdfbb
RW
11548 done
11549IFS=$as_save_IFS
c6b750e1 11550
2429c060
PB
11551 ;;
11552esac
11553fi
c6b750e1 11554AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11555if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11557$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11558else
81ecdfbb
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
2429c060
PB
11561fi
11562
81ecdfbb 11563
2429c060
PB
11564fi
11565if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11566
11567
11568if test -n "$AS_FOR_TARGET"; then
11569 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11570elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11571 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11572fi
11573
11574if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11575 for ncn_progname in as; do
11576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11577set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11580if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11581 $as_echo_n "(cached) " >&6
9a819804
AO
11582else
11583 if test -n "$AS_FOR_TARGET"; then
11584 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11585else
11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
11588do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
81ecdfbb 11591 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11593 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11595 break 2
11596 fi
11597done
81ecdfbb
RW
11598 done
11599IFS=$as_save_IFS
9a819804
AO
11600
11601fi
11602fi
11603AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11604if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11606$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11607else
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
9a819804
AO
11610fi
11611
81ecdfbb 11612
9a819804
AO
11613 done
11614fi
11615
11616if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11617 for ncn_progname in as; do
81ecdfbb
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11619$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11620 if test -x $with_build_time_tools/${ncn_progname}; then
11621 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623$as_echo "yes" >&6; }
2429c060
PB
11624 break
11625 else
81ecdfbb
RW
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
2429c060
PB
11628 fi
11629 done
11630fi
11631
11632if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11633 for ncn_progname in as; do
11634 if test -n "$ncn_target_tool_prefix"; then
11635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11636set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11639if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11640 $as_echo_n "(cached) " >&6
2429c060
PB
11641else
11642 if test -n "$AS_FOR_TARGET"; then
11643 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11644else
c6b750e1
DJ
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
81ecdfbb 11650 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11652 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11654 break 2
11655 fi
11656done
81ecdfbb
RW
11657 done
11658IFS=$as_save_IFS
c6b750e1 11659
2429c060
PB
11660fi
11661fi
c6b750e1 11662AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11663if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11665$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11666else
81ecdfbb
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
2429c060
PB
11669fi
11670
81ecdfbb 11671
2429c060
PB
11672 fi
11673 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11675set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11678if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11679 $as_echo_n "(cached) " >&6
2429c060
PB
11680else
11681 if test -n "$AS_FOR_TARGET"; then
11682 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11683else
c6b750e1
DJ
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
81ecdfbb 11689 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11691 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11693 break 2
11694 fi
11695done
81ecdfbb
RW
11696 done
11697IFS=$as_save_IFS
c6b750e1 11698
2429c060
PB
11699fi
11700fi
c6b750e1 11701AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11702if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11704$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11705else
81ecdfbb
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
2429c060 11708fi
c6b750e1 11709
81ecdfbb 11710
2429c060
PB
11711 fi
11712 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11713 done
11714fi
c6b750e1 11715
2429c060
PB
11716if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11717 set dummy as
11718 if test $build = $target ; then
11719 AS_FOR_TARGET="$2"
11720 else
11721 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11722 fi
d3f5afc4
MS
11723else
11724 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11725fi
11726
3a35eeb3
PB
11727else
11728 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11729fi
11730
11731
11732
11733
11734if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11735 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11737$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11738 if test -x $with_build_time_tools/dlltool; then
11739 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11740 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11742$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11743 else
81ecdfbb
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
3a35eeb3 11746 fi
2429c060
PB
11747 elif test $build != $host && test $have_gcc_for_target = yes; then
11748 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11749 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11750 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11751 fi
11752fi
c6b750e1 11753if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11754 # Extract the first word of "dlltool", so it can be a program name with args.
11755set dummy dlltool; ac_word=$2
81ecdfbb
RW
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11758if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11759 $as_echo_n "(cached) " >&6
2429c060 11760else
c6b750e1
DJ
11761 case $DLLTOOL_FOR_TARGET in
11762 [\\/]* | ?:[\\/]*)
2429c060
PB
11763 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11764 ;;
2429c060 11765 *)
c6b750e1
DJ
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $gcc_cv_tool_dirs
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
81ecdfbb 11771 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11773 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11775 break 2
11776 fi
11777done
81ecdfbb
RW
11778 done
11779IFS=$as_save_IFS
c6b750e1 11780
2429c060
PB
11781 ;;
11782esac
11783fi
c6b750e1 11784DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11785if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11787$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11788else
81ecdfbb
RW
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
2429c060
PB
11791fi
11792
81ecdfbb 11793
2429c060
PB
11794fi
11795if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11796
11797
11798if test -n "$DLLTOOL_FOR_TARGET"; then
11799 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11800elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11801 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11802fi
11803
11804if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11805 for ncn_progname in dlltool; do
11806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11807set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11810if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11811 $as_echo_n "(cached) " >&6
9a819804
AO
11812else
11813 if test -n "$DLLTOOL_FOR_TARGET"; then
11814 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
81ecdfbb 11821 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11823 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11825 break 2
11826 fi
11827done
81ecdfbb
RW
11828 done
11829IFS=$as_save_IFS
9a819804
AO
11830
11831fi
11832fi
11833DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11834if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11836$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11837else
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
9a819804
AO
11840fi
11841
81ecdfbb 11842
9a819804
AO
11843 done
11844fi
11845
11846if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11847 for ncn_progname in dlltool; do
81ecdfbb
RW
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11849$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11850 if test -x $with_build_time_tools/${ncn_progname}; then
11851 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853$as_echo "yes" >&6; }
2429c060
PB
11854 break
11855 else
81ecdfbb
RW
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
2429c060
PB
11858 fi
11859 done
11860fi
11861
11862if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11863 for ncn_progname in dlltool; do
11864 if test -n "$ncn_target_tool_prefix"; then
11865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11866set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11869if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11870 $as_echo_n "(cached) " >&6
2429c060
PB
11871else
11872 if test -n "$DLLTOOL_FOR_TARGET"; then
11873 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11874else
c6b750e1
DJ
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
81ecdfbb 11880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11882 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11884 break 2
11885 fi
11886done
81ecdfbb
RW
11887 done
11888IFS=$as_save_IFS
c6b750e1 11889
2429c060
PB
11890fi
11891fi
c6b750e1 11892DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11893if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11895$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11896else
81ecdfbb
RW
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
2429c060
PB
11899fi
11900
81ecdfbb 11901
2429c060
PB
11902 fi
11903 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11905set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11908if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11909 $as_echo_n "(cached) " >&6
2429c060
PB
11910else
11911 if test -n "$DLLTOOL_FOR_TARGET"; then
11912 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11913else
c6b750e1
DJ
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
81ecdfbb 11919 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11921 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11923 break 2
11924 fi
11925done
81ecdfbb
RW
11926 done
11927IFS=$as_save_IFS
c6b750e1 11928
2429c060
PB
11929fi
11930fi
c6b750e1 11931DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11932if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11934$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11935else
81ecdfbb
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
2429c060 11938fi
c6b750e1 11939
81ecdfbb 11940
2429c060
PB
11941 fi
11942 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11943 done
11944fi
c6b750e1 11945
2429c060
PB
11946if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11947 set dummy dlltool
11948 if test $build = $target ; then
11949 DLLTOOL_FOR_TARGET="$2"
11950 else
11951 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11952 fi
d3f5afc4
MS
11953else
11954 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11955fi
11956
3a35eeb3
PB
11957else
11958 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11959fi
11960
11961
11962
11963
11964if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11965 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11967$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11968 if test -x $with_build_time_tools/ld; then
11969 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11970 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11972$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11973 else
81ecdfbb
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
3a35eeb3 11976 fi
2429c060
PB
11977 elif test $build != $host && test $have_gcc_for_target = yes; then
11978 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11979 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11980 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11981 fi
11982fi
c6b750e1 11983if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11984 # Extract the first word of "ld", so it can be a program name with args.
11985set dummy ld; ac_word=$2
81ecdfbb
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11988if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11989 $as_echo_n "(cached) " >&6
2429c060 11990else
c6b750e1
DJ
11991 case $LD_FOR_TARGET in
11992 [\\/]* | ?:[\\/]*)
2429c060
PB
11993 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11994 ;;
2429c060 11995 *)
c6b750e1
DJ
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $gcc_cv_tool_dirs
11998do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
81ecdfbb 12001 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12003 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12005 break 2
12006 fi
12007done
81ecdfbb
RW
12008 done
12009IFS=$as_save_IFS
c6b750e1 12010
2429c060
PB
12011 ;;
12012esac
12013fi
c6b750e1 12014LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 12015if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12017$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12018else
81ecdfbb
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
2429c060
PB
12021fi
12022
81ecdfbb 12023
2429c060
PB
12024fi
12025if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
12026
12027
12028if test -n "$LD_FOR_TARGET"; then
12029 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12030elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12031 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12032fi
12033
12034if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12035 for ncn_progname in ld; do
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12040if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12041 $as_echo_n "(cached) " >&6
9a819804
AO
12042else
12043 if test -n "$LD_FOR_TARGET"; then
12044 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12045else
12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
81ecdfbb 12051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12053 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12055 break 2
12056 fi
12057done
81ecdfbb
RW
12058 done
12059IFS=$as_save_IFS
9a819804
AO
12060
12061fi
12062fi
12063LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12064if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12066$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 12067else
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
9a819804
AO
12070fi
12071
81ecdfbb 12072
9a819804
AO
12073 done
12074fi
12075
12076if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12077 for ncn_progname in ld; do
81ecdfbb
RW
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12079$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12080 if test -x $with_build_time_tools/${ncn_progname}; then
12081 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12083$as_echo "yes" >&6; }
2429c060
PB
12084 break
12085 else
81ecdfbb
RW
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
2429c060
PB
12088 fi
12089 done
12090fi
12091
12092if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12093 for ncn_progname in ld; do
12094 if test -n "$ncn_target_tool_prefix"; then
12095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12099if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12100 $as_echo_n "(cached) " >&6
2429c060
PB
12101else
12102 if test -n "$LD_FOR_TARGET"; then
12103 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12104else
c6b750e1
DJ
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
81ecdfbb 12110 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12112 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12114 break 2
12115 fi
12116done
81ecdfbb
RW
12117 done
12118IFS=$as_save_IFS
c6b750e1 12119
2429c060
PB
12120fi
12121fi
c6b750e1 12122LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12123if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12125$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12126else
81ecdfbb
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
2429c060
PB
12129fi
12130
81ecdfbb 12131
2429c060
PB
12132 fi
12133 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12135set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12138if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 12139 $as_echo_n "(cached) " >&6
2429c060
PB
12140else
12141 if test -n "$LD_FOR_TARGET"; then
12142 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12143else
c6b750e1
DJ
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
81ecdfbb 12149 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12151 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12153 break 2
12154 fi
12155done
81ecdfbb
RW
12156 done
12157IFS=$as_save_IFS
c6b750e1 12158
2429c060
PB
12159fi
12160fi
c6b750e1 12161LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 12162if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12164$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 12165else
81ecdfbb
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
2429c060 12168fi
c6b750e1 12169
81ecdfbb 12170
2429c060
PB
12171 fi
12172 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12173 done
12174fi
c6b750e1 12175
2429c060
PB
12176if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12177 set dummy ld
12178 if test $build = $target ; then
12179 LD_FOR_TARGET="$2"
12180 else
12181 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12182 fi
d3f5afc4
MS
12183else
12184 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
12185fi
12186
3a35eeb3
PB
12187else
12188 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12189fi
12190
12191
12192
12193
12194if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12195 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12197$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12198 if test -x $with_build_time_tools/lipo; then
12199 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12200 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12202$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12203 else
81ecdfbb
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
3a35eeb3 12206 fi
2429c060
PB
12207 elif test $build != $host && test $have_gcc_for_target = yes; then
12208 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12209 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12210 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12211 fi
12212fi
9a819804
AO
12213if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12214 # Extract the first word of "lipo", so it can be a program name with args.
12215set dummy lipo; ac_word=$2
81ecdfbb
RW
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12218if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12219 $as_echo_n "(cached) " >&6
9a819804
AO
12220else
12221 case $LIPO_FOR_TARGET in
12222 [\\/]* | ?:[\\/]*)
12223 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12224 ;;
12225 *)
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $gcc_cv_tool_dirs
12228do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
81ecdfbb 12231 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12233 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12235 break 2
12236 fi
12237done
81ecdfbb
RW
12238 done
12239IFS=$as_save_IFS
9a819804
AO
12240
12241 ;;
12242esac
12243fi
12244LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12245if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12247$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12248else
81ecdfbb
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
9a819804
AO
12251fi
12252
81ecdfbb 12253
9a819804
AO
12254fi
12255if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12256
12257
12258if test -n "$LIPO_FOR_TARGET"; then
12259 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12260elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12261 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12262fi
12263
12264if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12265 for ncn_progname in lipo; do
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12270if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12271 $as_echo_n "(cached) " >&6
2429c060 12272else
9a819804
AO
12273 if test -n "$LIPO_FOR_TARGET"; then
12274 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
c6b750e1
DJ
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
81ecdfbb 12281 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12283 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12285 break 2
12286 fi
12287done
81ecdfbb
RW
12288 done
12289IFS=$as_save_IFS
c6b750e1 12290
2429c060 12291fi
9a819804
AO
12292fi
12293LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12294if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12296$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12297else
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
2429c060
PB
12300fi
12301
81ecdfbb 12302
9a819804 12303 done
2429c060 12304fi
9a819804
AO
12305
12306if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12307 for ncn_progname in lipo; do
81ecdfbb
RW
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12309$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12310 if test -x $with_build_time_tools/${ncn_progname}; then
12311 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313$as_echo "yes" >&6; }
2429c060
PB
12314 break
12315 else
81ecdfbb
RW
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
2429c060
PB
12318 fi
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12323 for ncn_progname in lipo; do
12324 if test -n "$ncn_target_tool_prefix"; then
12325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12326set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12329if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12330 $as_echo_n "(cached) " >&6
2429c060
PB
12331else
12332 if test -n "$LIPO_FOR_TARGET"; then
12333 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12334else
c6b750e1
DJ
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
81ecdfbb 12340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12342 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12344 break 2
12345 fi
12346done
81ecdfbb
RW
12347 done
12348IFS=$as_save_IFS
c6b750e1 12349
2429c060
PB
12350fi
12351fi
c6b750e1 12352LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12353if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12355$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12356else
81ecdfbb
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
2429c060
PB
12359fi
12360
81ecdfbb 12361
2429c060
PB
12362 fi
12363 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12365set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12368if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12369 $as_echo_n "(cached) " >&6
2429c060
PB
12370else
12371 if test -n "$LIPO_FOR_TARGET"; then
12372 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12373else
c6b750e1
DJ
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
81ecdfbb 12379 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12381 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12383 break 2
12384 fi
12385done
81ecdfbb
RW
12386 done
12387IFS=$as_save_IFS
c6b750e1 12388
2429c060
PB
12389fi
12390fi
c6b750e1 12391LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12392if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12394$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12395else
81ecdfbb
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
2429c060 12398fi
c6b750e1 12399
81ecdfbb 12400
2429c060
PB
12401 fi
12402 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12403 done
12404fi
c6b750e1 12405
2429c060
PB
12406if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12407 set dummy lipo
12408 if test $build = $target ; then
12409 LIPO_FOR_TARGET="$2"
12410 else
12411 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12412 fi
d3f5afc4
MS
12413else
12414 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12415fi
12416
3a35eeb3
PB
12417else
12418 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12419fi
12420
12421
12422
12423
12424if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12425 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12427$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12428 if test -x $with_build_time_tools/nm; then
12429 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12430 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12432$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12433 else
81ecdfbb
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
3a35eeb3 12436 fi
2429c060
PB
12437 elif test $build != $host && test $have_gcc_for_target = yes; then
12438 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12439 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12440 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12441 fi
12442fi
c6b750e1 12443if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12444 # Extract the first word of "nm", so it can be a program name with args.
12445set dummy nm; ac_word=$2
81ecdfbb
RW
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12448if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12449 $as_echo_n "(cached) " >&6
2429c060 12450else
c6b750e1
DJ
12451 case $NM_FOR_TARGET in
12452 [\\/]* | ?:[\\/]*)
2429c060
PB
12453 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12454 ;;
2429c060 12455 *)
c6b750e1
DJ
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457for as_dir in $gcc_cv_tool_dirs
12458do
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
81ecdfbb 12461 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12463 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12465 break 2
12466 fi
12467done
81ecdfbb
RW
12468 done
12469IFS=$as_save_IFS
c6b750e1 12470
2429c060
PB
12471 ;;
12472esac
12473fi
c6b750e1 12474NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12475if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12477$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12478else
81ecdfbb
RW
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
2429c060
PB
12481fi
12482
81ecdfbb 12483
2429c060
PB
12484fi
12485if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12486
12487
12488if test -n "$NM_FOR_TARGET"; then
12489 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12490elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12491 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12492fi
12493
12494if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12495 for ncn_progname in nm; do
12496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12497set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12500if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12501 $as_echo_n "(cached) " >&6
9a819804
AO
12502else
12503 if test -n "$NM_FOR_TARGET"; then
12504 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
81ecdfbb 12511 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12513 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12515 break 2
12516 fi
12517done
81ecdfbb
RW
12518 done
12519IFS=$as_save_IFS
9a819804
AO
12520
12521fi
12522fi
12523NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12524if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12526$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12527else
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
9a819804
AO
12530fi
12531
81ecdfbb 12532
9a819804
AO
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12537 for ncn_progname in nm; do
81ecdfbb
RW
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12539$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12540 if test -x $with_build_time_tools/${ncn_progname}; then
12541 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543$as_echo "yes" >&6; }
2429c060
PB
12544 break
12545 else
81ecdfbb
RW
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547$as_echo "no" >&6; }
2429c060
PB
12548 fi
12549 done
12550fi
12551
12552if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12553 for ncn_progname in nm; do
12554 if test -n "$ncn_target_tool_prefix"; then
12555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12556set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12559if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12560 $as_echo_n "(cached) " >&6
859789af 12561else
55db4b87
PB
12562 if test -n "$NM_FOR_TARGET"; then
12563 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12564else
c6b750e1
DJ
12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566for as_dir in $PATH
12567do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
81ecdfbb 12570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12572 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12574 break 2
12575 fi
12576done
81ecdfbb
RW
12577 done
12578IFS=$as_save_IFS
c6b750e1 12579
859789af
AC
12580fi
12581fi
c6b750e1 12582NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12583if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12585$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12586else
81ecdfbb
RW
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588$as_echo "no" >&6; }
859789af
AC
12589fi
12590
81ecdfbb 12591
2429c060
PB
12592 fi
12593 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12595set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12598if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12599 $as_echo_n "(cached) " >&6
859789af 12600else
05cbd757
PB
12601 if test -n "$NM_FOR_TARGET"; then
12602 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12603else
c6b750e1
DJ
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
81ecdfbb 12609 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12611 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12613 break 2
12614 fi
12615done
81ecdfbb
RW
12616 done
12617IFS=$as_save_IFS
c6b750e1 12618
859789af
AC
12619fi
12620fi
c6b750e1 12621NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12622if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12624$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12625else
81ecdfbb
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
859789af 12628fi
c6b750e1 12629
81ecdfbb 12630
2429c060
PB
12631 fi
12632 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12633 done
12634fi
c6b750e1 12635
05cbd757
PB
12636if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12637 set dummy nm
12638 if test $build = $target ; then
12639 NM_FOR_TARGET="$2"
859789af 12640 else
05cbd757 12641 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12642 fi
d3f5afc4
MS
12643else
12644 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12645fi
12646
3a35eeb3
PB
12647else
12648 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12649fi
12650
12651
12652
12653
6b91c541
AP
12654if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12655 if test -n "$with_build_time_tools"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12657$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12658 if test -x $with_build_time_tools/objcopy; then
12659 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12660 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12662$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12663 else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
12666 fi
12667 elif test $build != $host && test $have_gcc_for_target = yes; then
12668 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12669 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12670 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12671 fi
12672fi
12673if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12674 # Extract the first word of "objcopy", so it can be a program name with args.
12675set dummy objcopy; ac_word=$2
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12678if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12679 $as_echo_n "(cached) " >&6
12680else
12681 case $OBJCOPY_FOR_TARGET in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12684 ;;
12685 *)
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $gcc_cv_tool_dirs
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12693 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697done
12698 done
12699IFS=$as_save_IFS
12700
12701 ;;
12702esac
12703fi
12704OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12705if test -n "$OBJCOPY_FOR_TARGET"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12707$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12708else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710$as_echo "no" >&6; }
12711fi
12712
12713
12714fi
12715if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12716
12717
12718if test -n "$OBJCOPY_FOR_TARGET"; then
12719 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12720elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12721 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12722fi
12723
12724if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12725 for ncn_progname in objcopy; do
12726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12727set dummy ${ncn_progname}; ac_word=$2
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12730if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12731 $as_echo_n "(cached) " >&6
12732else
12733 if test -n "$OBJCOPY_FOR_TARGET"; then
12734 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12743 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
12750
12751fi
12752fi
12753OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12754if test -n "$OBJCOPY_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12756$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12757else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763 done
12764fi
12765
12766if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12767 for ncn_progname in objcopy; do
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12769$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12770 if test -x $with_build_time_tools/${ncn_progname}; then
12771 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773$as_echo "yes" >&6; }
12774 break
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778 fi
12779 done
12780fi
12781
12782if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12783 for ncn_progname in objcopy; do
12784 if test -n "$ncn_target_tool_prefix"; then
12785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12789if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12790 $as_echo_n "(cached) " >&6
12791else
12792 if test -n "$OBJCOPY_FOR_TARGET"; then
12793 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12794else
12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12802 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12805 fi
12806done
12807 done
12808IFS=$as_save_IFS
12809
12810fi
12811fi
12812OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12813if test -n "$OBJCOPY_FOR_TARGET"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12815$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12816else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818$as_echo "no" >&6; }
12819fi
12820
12821
12822 fi
12823 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12825set dummy ${ncn_progname}; ac_word=$2
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12828if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12829 $as_echo_n "(cached) " >&6
12830else
12831 if test -n "$OBJCOPY_FOR_TARGET"; then
12832 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12833else
12834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
12839 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12841 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12843 break 2
12844 fi
12845done
12846 done
12847IFS=$as_save_IFS
12848
12849fi
12850fi
12851OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12852if test -n "$OBJCOPY_FOR_TARGET"; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12854$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12855else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857$as_echo "no" >&6; }
12858fi
12859
12860
12861 fi
12862 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12863 done
12864fi
12865
12866if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12867 set dummy objcopy
12868 if test $build = $target ; then
12869 OBJCOPY_FOR_TARGET="$2"
12870 else
12871 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12872 fi
12873else
12874 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12875fi
12876
12877else
12878 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12879fi
12880
12881
12882
12883
2429c060
PB
12884if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12885 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12887$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12888 if test -x $with_build_time_tools/objdump; then
12889 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12890 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12892$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12893 else
81ecdfbb
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
3a35eeb3 12896 fi
2429c060
PB
12897 elif test $build != $host && test $have_gcc_for_target = yes; then
12898 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12899 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12900 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12901 fi
12902fi
c6b750e1 12903if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12904 # Extract the first word of "objdump", so it can be a program name with args.
12905set dummy objdump; ac_word=$2
81ecdfbb
RW
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12908if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12909 $as_echo_n "(cached) " >&6
2429c060 12910else
c6b750e1
DJ
12911 case $OBJDUMP_FOR_TARGET in
12912 [\\/]* | ?:[\\/]*)
2429c060
PB
12913 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12914 ;;
2429c060 12915 *)
c6b750e1
DJ
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $gcc_cv_tool_dirs
12918do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
81ecdfbb 12921 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12923 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12925 break 2
12926 fi
12927done
81ecdfbb
RW
12928 done
12929IFS=$as_save_IFS
c6b750e1 12930
2429c060
PB
12931 ;;
12932esac
12933fi
c6b750e1 12934OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12935if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12937$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12938else
81ecdfbb
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940$as_echo "no" >&6; }
2429c060
PB
12941fi
12942
81ecdfbb 12943
2429c060
PB
12944fi
12945if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12946
12947
12948if test -n "$OBJDUMP_FOR_TARGET"; then
12949 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12950elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12951 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12952fi
12953
12954if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12955 for ncn_progname in objdump; do
12956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12957set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12960if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12961 $as_echo_n "(cached) " >&6
9a819804
AO
12962else
12963 if test -n "$OBJDUMP_FOR_TARGET"; then
12964 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12965else
12966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967for as_dir in $PATH
12968do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
81ecdfbb 12971 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12973 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12975 break 2
12976 fi
12977done
81ecdfbb
RW
12978 done
12979IFS=$as_save_IFS
9a819804
AO
12980
12981fi
12982fi
12983OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12984if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12986$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12987else
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
9a819804
AO
12990fi
12991
81ecdfbb 12992
9a819804
AO
12993 done
12994fi
12995
12996if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12997 for ncn_progname in objdump; do
81ecdfbb
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12999$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13000 if test -x $with_build_time_tools/${ncn_progname}; then
13001 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003$as_echo "yes" >&6; }
2429c060
PB
13004 break
13005 else
81ecdfbb
RW
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
2429c060
PB
13008 fi
13009 done
13010fi
13011
13012if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13013 for ncn_progname in objdump; do
13014 if test -n "$ncn_target_tool_prefix"; then
13015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13016set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13019if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13020 $as_echo_n "(cached) " >&6
5ae72758
DJ
13021else
13022 if test -n "$OBJDUMP_FOR_TARGET"; then
13023 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13024else
c6b750e1
DJ
13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
81ecdfbb 13030 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13032 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13034 break 2
13035 fi
13036done
81ecdfbb
RW
13037 done
13038IFS=$as_save_IFS
c6b750e1 13039
5ae72758
DJ
13040fi
13041fi
c6b750e1 13042OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13043if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13045$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13046else
81ecdfbb
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
5ae72758
DJ
13049fi
13050
81ecdfbb 13051
2429c060
PB
13052 fi
13053 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 13055set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13058if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 13059 $as_echo_n "(cached) " >&6
5ae72758
DJ
13060else
13061 if test -n "$OBJDUMP_FOR_TARGET"; then
13062 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13063else
c6b750e1
DJ
13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
81ecdfbb 13069 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13071 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13073 break 2
13074 fi
13075done
81ecdfbb
RW
13076 done
13077IFS=$as_save_IFS
c6b750e1 13078
5ae72758
DJ
13079fi
13080fi
c6b750e1 13081OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 13082if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13084$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 13085else
81ecdfbb
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087$as_echo "no" >&6; }
5ae72758 13088fi
c6b750e1 13089
81ecdfbb 13090
2429c060
PB
13091 fi
13092 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13093 done
13094fi
c6b750e1 13095
5ae72758
DJ
13096if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13097 set dummy objdump
13098 if test $build = $target ; then
13099 OBJDUMP_FOR_TARGET="$2"
13100 else
13101 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13102 fi
d3f5afc4
MS
13103else
13104 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
13105fi
13106
3a35eeb3
PB
13107else
13108 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
13109fi
13110
13111
13112
13113
13114if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13115 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13117$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13118 if test -x $with_build_time_tools/ranlib; then
13119 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13120 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13122$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 13123 else
81ecdfbb
RW
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
3a35eeb3 13126 fi
2429c060
PB
13127 elif test $build != $host && test $have_gcc_for_target = yes; then
13128 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
13129 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13130 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
13131 fi
13132fi
c6b750e1 13133if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13134 # Extract the first word of "ranlib", so it can be a program name with args.
13135set dummy ranlib; ac_word=$2
81ecdfbb
RW
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13138if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13139 $as_echo_n "(cached) " >&6
2429c060 13140else
c6b750e1
DJ
13141 case $RANLIB_FOR_TARGET in
13142 [\\/]* | ?:[\\/]*)
2429c060
PB
13143 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13144 ;;
2429c060 13145 *)
c6b750e1
DJ
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147for as_dir in $gcc_cv_tool_dirs
13148do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
81ecdfbb 13151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13153 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13155 break 2
13156 fi
13157done
81ecdfbb
RW
13158 done
13159IFS=$as_save_IFS
c6b750e1 13160
2429c060
PB
13161 ;;
13162esac
13163fi
c6b750e1 13164RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 13165if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13167$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 13168else
81ecdfbb
RW
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
2429c060
PB
13171fi
13172
81ecdfbb 13173
2429c060
PB
13174fi
13175if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
13176
13177
13178if test -n "$RANLIB_FOR_TARGET"; then
13179 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13180elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13181 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13182fi
13183
13184if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13185 for ncn_progname in ranlib; do
13186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13187set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13190if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13191 $as_echo_n "(cached) " >&6
9a819804
AO
13192else
13193 if test -n "$RANLIB_FOR_TARGET"; then
13194 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13195else
13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
81ecdfbb 13201 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13203 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13205 break 2
13206 fi
13207done
81ecdfbb
RW
13208 done
13209IFS=$as_save_IFS
9a819804
AO
13210
13211fi
13212fi
13213RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13214if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13216$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13217else
81ecdfbb
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
9a819804
AO
13220fi
13221
81ecdfbb 13222
9a819804
AO
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13227 for ncn_progname in ranlib; do
81ecdfbb
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13229$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13230 if test -x $with_build_time_tools/${ncn_progname}; then
13231 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13233$as_echo "yes" >&6; }
2429c060
PB
13234 break
13235 else
81ecdfbb
RW
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
2429c060
PB
13238 fi
13239 done
13240fi
13241
13242if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13243 for ncn_progname in ranlib; do
13244 if test -n "$ncn_target_tool_prefix"; then
13245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13246set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13249if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13250 $as_echo_n "(cached) " >&6
859789af 13251else
55db4b87
PB
13252 if test -n "$RANLIB_FOR_TARGET"; then
13253 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13254else
c6b750e1
DJ
13255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
81ecdfbb 13260 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13262 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13264 break 2
13265 fi
13266done
81ecdfbb
RW
13267 done
13268IFS=$as_save_IFS
c6b750e1 13269
859789af
AC
13270fi
13271fi
c6b750e1 13272RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13273if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13275$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13276else
81ecdfbb
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
859789af
AC
13279fi
13280
81ecdfbb 13281
2429c060
PB
13282 fi
13283 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13285set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13288if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13289 $as_echo_n "(cached) " >&6
859789af 13290else
05cbd757
PB
13291 if test -n "$RANLIB_FOR_TARGET"; then
13292 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13293else
c6b750e1
DJ
13294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295for as_dir in $PATH
13296do
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
81ecdfbb 13299 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13301 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13303 break 2
13304 fi
13305done
81ecdfbb
RW
13306 done
13307IFS=$as_save_IFS
c6b750e1 13308
859789af
AC
13309fi
13310fi
c6b750e1 13311RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13312if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13314$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13315else
81ecdfbb
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317$as_echo "no" >&6; }
859789af 13318fi
c6b750e1 13319
81ecdfbb 13320
2429c060
PB
13321 fi
13322 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13323 done
13324fi
c6b750e1 13325
2429c060
PB
13326if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13327 set dummy ranlib
13328 if test $build = $target ; then
13329 RANLIB_FOR_TARGET="$2"
13330 else
13331 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13332 fi
d3f5afc4
MS
13333else
13334 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13335fi
05cbd757 13336
3a35eeb3
PB
13337else
13338 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13339fi
13340
2429c060
PB
13341
13342
13343
b121d7d4
DD
13344if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13345 if test -n "$with_build_time_tools"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13347$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13348 if test -x $with_build_time_tools/readelf; then
13349 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13350 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13352$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355$as_echo "no" >&6; }
13356 fi
13357 elif test $build != $host && test $have_gcc_for_target = yes; then
13358 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13359 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13360 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13361 fi
13362fi
13363if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13364 # Extract the first word of "readelf", so it can be a program name with args.
13365set dummy readelf; ac_word=$2
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13368if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13369 $as_echo_n "(cached) " >&6
13370else
13371 case $READELF_FOR_TARGET in
13372 [\\/]* | ?:[\\/]*)
13373 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13374 ;;
13375 *)
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377for as_dir in $gcc_cv_tool_dirs
13378do
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13383 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387done
13388 done
13389IFS=$as_save_IFS
13390
13391 ;;
13392esac
13393fi
13394READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13395if test -n "$READELF_FOR_TARGET"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13397$as_echo "$READELF_FOR_TARGET" >&6; }
13398else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400$as_echo "no" >&6; }
13401fi
13402
13403
13404fi
13405if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13406
13407
13408if test -n "$READELF_FOR_TARGET"; then
13409 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13410elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13411 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13412fi
13413
13414if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13415 for ncn_progname in readelf; do
13416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13417set dummy ${ncn_progname}; ac_word=$2
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13420if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13421 $as_echo_n "(cached) " >&6
13422else
13423 if test -n "$READELF_FOR_TARGET"; then
13424 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13425else
13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13433 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13436 fi
13437done
13438 done
13439IFS=$as_save_IFS
13440
13441fi
13442fi
13443READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13444if test -n "$READELF_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13446$as_echo "$READELF_FOR_TARGET" >&6; }
13447else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453 done
13454fi
13455
13456if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13457 for ncn_progname in readelf; do
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13459$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13460 if test -x $with_build_time_tools/${ncn_progname}; then
13461 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13463$as_echo "yes" >&6; }
13464 break
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468 fi
13469 done
13470fi
13471
13472if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13473 for ncn_progname in readelf; do
13474 if test -n "$ncn_target_tool_prefix"; then
13475 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13476set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13479if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13480 $as_echo_n "(cached) " >&6
13481else
13482 if test -n "$READELF_FOR_TARGET"; then
13483 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13484else
13485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13492 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496done
13497 done
13498IFS=$as_save_IFS
13499
13500fi
13501fi
13502READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13503if test -n "$READELF_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13505$as_echo "$READELF_FOR_TARGET" >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509fi
13510
13511
13512 fi
13513 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13515set dummy ${ncn_progname}; ac_word=$2
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13518if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13519 $as_echo_n "(cached) " >&6
13520else
13521 if test -n "$READELF_FOR_TARGET"; then
13522 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13523else
13524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525for as_dir in $PATH
13526do
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13531 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13534 fi
13535done
13536 done
13537IFS=$as_save_IFS
13538
13539fi
13540fi
13541READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13542if test -n "$READELF_FOR_TARGET"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13544$as_echo "$READELF_FOR_TARGET" >&6; }
13545else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547$as_echo "no" >&6; }
13548fi
13549
13550
13551 fi
13552 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13553 done
13554fi
13555
13556if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13557 set dummy readelf
13558 if test $build = $target ; then
13559 READELF_FOR_TARGET="$2"
13560 else
13561 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13562 fi
13563else
13564 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13565fi
13566
13567else
13568 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13569fi
13570
13571
13572
13573
2429c060
PB
13574if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13575 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13577$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13578 if test -x $with_build_time_tools/strip; then
13579 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13580 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13582$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13583 else
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
3a35eeb3 13586 fi
2429c060
PB
13587 elif test $build != $host && test $have_gcc_for_target = yes; then
13588 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13589 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13590 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13591 fi
13592fi
c6b750e1 13593if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13594 # Extract the first word of "strip", so it can be a program name with args.
13595set dummy strip; ac_word=$2
81ecdfbb
RW
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13598if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13599 $as_echo_n "(cached) " >&6
2429c060 13600else
c6b750e1
DJ
13601 case $STRIP_FOR_TARGET in
13602 [\\/]* | ?:[\\/]*)
2429c060
PB
13603 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13604 ;;
2429c060 13605 *)
c6b750e1
DJ
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $gcc_cv_tool_dirs
13608do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
81ecdfbb 13611 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13613 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13615 break 2
13616 fi
13617done
81ecdfbb
RW
13618 done
13619IFS=$as_save_IFS
c6b750e1 13620
2429c060
PB
13621 ;;
13622esac
13623fi
c6b750e1 13624STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13625if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13627$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13628else
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630$as_echo "no" >&6; }
2429c060
PB
13631fi
13632
81ecdfbb 13633
2429c060
PB
13634fi
13635if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13636
13637
13638if test -n "$STRIP_FOR_TARGET"; then
13639 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13640elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13641 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13642fi
13643
13644if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13645 for ncn_progname in strip; do
13646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13647set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13650if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13651 $as_echo_n "(cached) " >&6
9a819804
AO
13652else
13653 if test -n "$STRIP_FOR_TARGET"; then
13654 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13655else
13656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
81ecdfbb 13661 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13663 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13665 break 2
13666 fi
13667done
81ecdfbb
RW
13668 done
13669IFS=$as_save_IFS
9a819804
AO
13670
13671fi
13672fi
13673STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13674if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13676$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13677else
81ecdfbb
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
9a819804
AO
13680fi
13681
81ecdfbb 13682
9a819804
AO
13683 done
13684fi
13685
13686if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13687 for ncn_progname in strip; do
81ecdfbb
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13689$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13690 if test -x $with_build_time_tools/${ncn_progname}; then
13691 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13693$as_echo "yes" >&6; }
2429c060
PB
13694 break
13695 else
81ecdfbb
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697$as_echo "no" >&6; }
2429c060
PB
13698 fi
13699 done
13700fi
13701
13702if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13703 for ncn_progname in strip; do
13704 if test -n "$ncn_target_tool_prefix"; then
13705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13706set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13709if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13710 $as_echo_n "(cached) " >&6
7e0f7140
GK
13711else
13712 if test -n "$STRIP_FOR_TARGET"; then
13713 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
81ecdfbb 13720 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13722 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13724 break 2
13725 fi
13726done
81ecdfbb
RW
13727 done
13728IFS=$as_save_IFS
c6b750e1 13729
7e0f7140
GK
13730fi
13731fi
c6b750e1 13732STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13733if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13735$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13736else
81ecdfbb
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738$as_echo "no" >&6; }
7e0f7140
GK
13739fi
13740
81ecdfbb 13741
2429c060
PB
13742 fi
13743 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13745set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13748if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13749 $as_echo_n "(cached) " >&6
7e0f7140
GK
13750else
13751 if test -n "$STRIP_FOR_TARGET"; then
13752 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13753else
c6b750e1
DJ
13754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755for as_dir in $PATH
13756do
13757 IFS=$as_save_IFS
13758 test -z "$as_dir" && as_dir=.
81ecdfbb 13759 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13761 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13763 break 2
13764 fi
13765done
81ecdfbb
RW
13766 done
13767IFS=$as_save_IFS
c6b750e1 13768
7e0f7140
GK
13769fi
13770fi
c6b750e1 13771STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13772if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13774$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13775else
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777$as_echo "no" >&6; }
7e0f7140 13778fi
c6b750e1 13779
81ecdfbb 13780
2429c060
PB
13781 fi
13782 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13783 done
13784fi
c6b750e1 13785
7e0f7140
GK
13786if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13787 set dummy strip
13788 if test $build = $target ; then
13789 STRIP_FOR_TARGET="$2"
13790 else
13791 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13792 fi
d3f5afc4
MS
13793else
13794 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13795fi
13796
3a35eeb3
PB
13797else
13798 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13799fi
13800
13801
13802
13803
13804if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13805 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13807$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13808 if test -x $with_build_time_tools/windres; then
13809 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13810 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13812$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13813 else
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
3a35eeb3 13816 fi
2429c060
PB
13817 elif test $build != $host && test $have_gcc_for_target = yes; then
13818 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13819 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13820 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13821 fi
13822fi
c6b750e1 13823if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13824 # Extract the first word of "windres", so it can be a program name with args.
13825set dummy windres; ac_word=$2
81ecdfbb
RW
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13828if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13829 $as_echo_n "(cached) " >&6
2429c060 13830else
c6b750e1
DJ
13831 case $WINDRES_FOR_TARGET in
13832 [\\/]* | ?:[\\/]*)
2429c060
PB
13833 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13834 ;;
2429c060 13835 *)
c6b750e1
DJ
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $gcc_cv_tool_dirs
13838do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
81ecdfbb 13841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13843 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13845 break 2
13846 fi
13847done
81ecdfbb
RW
13848 done
13849IFS=$as_save_IFS
c6b750e1 13850
2429c060
PB
13851 ;;
13852esac
13853fi
c6b750e1 13854WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13855if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13857$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13858else
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860$as_echo "no" >&6; }
2429c060
PB
13861fi
13862
81ecdfbb 13863
2429c060
PB
13864fi
13865if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13866
13867
13868if test -n "$WINDRES_FOR_TARGET"; then
13869 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13870elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13871 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13872fi
13873
13874if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13875 for ncn_progname in windres; do
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13877set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13880if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13881 $as_echo_n "(cached) " >&6
9a819804
AO
13882else
13883 if test -n "$WINDRES_FOR_TARGET"; then
13884 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13885else
13886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887for as_dir in $PATH
13888do
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
81ecdfbb 13891 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13893 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13895 break 2
13896 fi
13897done
81ecdfbb
RW
13898 done
13899IFS=$as_save_IFS
9a819804
AO
13900
13901fi
13902fi
13903WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13904if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13906$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13907else
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909$as_echo "no" >&6; }
9a819804
AO
13910fi
13911
81ecdfbb 13912
9a819804
AO
13913 done
13914fi
13915
13916if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13917 for ncn_progname in windres; do
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13919$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13920 if test -x $with_build_time_tools/${ncn_progname}; then
13921 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13923$as_echo "yes" >&6; }
2429c060
PB
13924 break
13925 else
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927$as_echo "no" >&6; }
2429c060
PB
13928 fi
13929 done
13930fi
13931
13932if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13933 for ncn_progname in windres; do
13934 if test -n "$ncn_target_tool_prefix"; then
13935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13936set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13939if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13940 $as_echo_n "(cached) " >&6
859789af 13941else
55db4b87
PB
13942 if test -n "$WINDRES_FOR_TARGET"; then
13943 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13944else
c6b750e1
DJ
13945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946for as_dir in $PATH
13947do
13948 IFS=$as_save_IFS
13949 test -z "$as_dir" && as_dir=.
81ecdfbb 13950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13952 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13954 break 2
13955 fi
13956done
81ecdfbb
RW
13957 done
13958IFS=$as_save_IFS
c6b750e1 13959
859789af
AC
13960fi
13961fi
c6b750e1 13962WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13963if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13965$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13966else
81ecdfbb
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968$as_echo "no" >&6; }
859789af
AC
13969fi
13970
81ecdfbb 13971
2429c060
PB
13972 fi
13973 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13975set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13978if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13979 $as_echo_n "(cached) " >&6
859789af 13980else
05cbd757
PB
13981 if test -n "$WINDRES_FOR_TARGET"; then
13982 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13983else
c6b750e1
DJ
13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
81ecdfbb 13989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13991 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13993 break 2
13994 fi
13995done
81ecdfbb
RW
13996 done
13997IFS=$as_save_IFS
c6b750e1 13998
859789af
AC
13999fi
14000fi
c6b750e1 14001WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 14002if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14004$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 14005else
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
859789af 14008fi
c6b750e1 14009
81ecdfbb 14010
2429c060
PB
14011 fi
14012 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14013 done
14014fi
c6b750e1 14015
05cbd757
PB
14016if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14017 set dummy windres
14018 if test $build = $target ; then
14019 WINDRES_FOR_TARGET="$2"
859789af 14020 else
05cbd757 14021 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 14022 fi
d3f5afc4
MS
14023else
14024 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
14025fi
14026
3a35eeb3
PB
14027else
14028 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
14029fi
14030
852e5f18 14031
0c24b341
NC
14032
14033
14034if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14035 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14037$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
14038 if test -x $with_build_time_tools/windmc; then
14039 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14040 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14042$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 14043 else
81ecdfbb
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045$as_echo "no" >&6; }
0c24b341
NC
14046 fi
14047 elif test $build != $host && test $have_gcc_for_target = yes; then
14048 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14049 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14050 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14051 fi
14052fi
14053if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14054 # Extract the first word of "windmc", so it can be a program name with args.
14055set dummy windmc; ac_word=$2
81ecdfbb
RW
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14058if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14059 $as_echo_n "(cached) " >&6
0c24b341
NC
14060else
14061 case $WINDMC_FOR_TARGET in
14062 [\\/]* | ?:[\\/]*)
14063 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14064 ;;
14065 *)
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067for as_dir in $gcc_cv_tool_dirs
14068do
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
81ecdfbb 14071 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14073 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14075 break 2
14076 fi
14077done
81ecdfbb
RW
14078 done
14079IFS=$as_save_IFS
0c24b341
NC
14080
14081 ;;
14082esac
14083fi
14084WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 14085if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14087$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14088else
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090$as_echo "no" >&6; }
0c24b341
NC
14091fi
14092
81ecdfbb 14093
0c24b341
NC
14094fi
14095if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14096
14097
14098if test -n "$WINDMC_FOR_TARGET"; then
14099 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14100elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14101 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14102fi
14103
14104if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14105 for ncn_progname in windmc; do
14106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14107set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14110if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14111 $as_echo_n "(cached) " >&6
0c24b341
NC
14112else
14113 if test -n "$WINDMC_FOR_TARGET"; then
14114 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14115else
14116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $PATH
14118do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
81ecdfbb 14121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14123 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14125 break 2
14126 fi
14127done
81ecdfbb
RW
14128 done
14129IFS=$as_save_IFS
0c24b341
NC
14130
14131fi
14132fi
14133WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14134if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14136$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14137else
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
0c24b341
NC
14140fi
14141
81ecdfbb 14142
0c24b341
NC
14143 done
14144fi
14145
14146if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14147 for ncn_progname in windmc; do
81ecdfbb
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14149$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
14150 if test -x $with_build_time_tools/${ncn_progname}; then
14151 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14153$as_echo "yes" >&6; }
0c24b341
NC
14154 break
14155 else
81ecdfbb
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157$as_echo "no" >&6; }
0c24b341
NC
14158 fi
14159 done
14160fi
14161
14162if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14163 for ncn_progname in windmc; do
14164 if test -n "$ncn_target_tool_prefix"; then
14165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14166set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14169if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14170 $as_echo_n "(cached) " >&6
0c24b341
NC
14171else
14172 if test -n "$WINDMC_FOR_TARGET"; then
14173 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14174else
14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176for as_dir in $PATH
14177do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
81ecdfbb 14180 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14182 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14184 break 2
14185 fi
14186done
81ecdfbb
RW
14187 done
14188IFS=$as_save_IFS
0c24b341
NC
14189
14190fi
14191fi
14192WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14193if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14195$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14196else
81ecdfbb
RW
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198$as_echo "no" >&6; }
0c24b341
NC
14199fi
14200
81ecdfbb 14201
0c24b341
NC
14202 fi
14203 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14205set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14208if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14209 $as_echo_n "(cached) " >&6
0c24b341
NC
14210else
14211 if test -n "$WINDMC_FOR_TARGET"; then
14212 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14213else
14214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215for as_dir in $PATH
14216do
14217 IFS=$as_save_IFS
14218 test -z "$as_dir" && as_dir=.
81ecdfbb 14219 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14221 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14223 break 2
14224 fi
14225done
81ecdfbb
RW
14226 done
14227IFS=$as_save_IFS
0c24b341
NC
14228
14229fi
14230fi
14231WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14232if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14234$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14235else
81ecdfbb
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237$as_echo "no" >&6; }
0c24b341
NC
14238fi
14239
81ecdfbb 14240
0c24b341
NC
14241 fi
14242 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14243 done
14244fi
14245
14246if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14247 set dummy windmc
14248 if test $build = $target ; then
14249 WINDMC_FOR_TARGET="$2"
14250 else
14251 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14252 fi
14253else
14254 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14255fi
14256
14257else
14258 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14259fi
14260
14261
be01d343
PB
14262RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14263
81ecdfbb
RW
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14265$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14266if test "x${build}" != "x${host}" ; then
2429c060
PB
14267 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
b8025f34 14269 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14272 else
14273 # Canadian cross, just use what we found
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
2429c060 14276 fi
be01d343
PB
14277else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" binutils "*) ;;
14281 *) ok=no ;;
14282 esac
c6b750e1 14283
be01d343
PB
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288$as_echo "just compiled" >&6; }
2429c060
PB
14289 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
b8025f34 14291 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298$as_echo "host tool" >&6; }
be01d343
PB
14299 else
14300 # We need a cross tool
81ecdfbb
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302$as_echo "pre-installed" >&6; }
be01d343
PB
14303 fi
14304fi
4b900473 14305
81ecdfbb
RW
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14307$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14308if test "x${build}" != "x${host}" ; then
2429c060
PB
14309 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
b8025f34 14311 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14314 else
14315 # Canadian cross, just use what we found
81ecdfbb
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317$as_echo "pre-installed" >&6; }
2429c060 14318 fi
be01d343
PB
14319else
14320 ok=yes
14321 case " ${configdirs} " in
14322 *" gas "*) ;;
14323 *) ok=no ;;
14324 esac
c6b750e1 14325
be01d343
PB
14326 if test $ok = yes; then
14327 # An in-tree tool is available and we can use it
14328 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14330$as_echo "just compiled" >&6; }
2429c060
PB
14331 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14332 # We already found the complete path
b8025f34 14333 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14335$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14336 elif test "x$target" = "x$host"; then
14337 # We can use an host tool
14338 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14340$as_echo "host tool" >&6; }
be01d343
PB
14341 else
14342 # We need a cross tool
81ecdfbb
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344$as_echo "pre-installed" >&6; }
be01d343
PB
14345 fi
14346fi
4b900473 14347
81ecdfbb
RW
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14349$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14350if test "x${build}" != "x${host}" ; then
2429c060
PB
14351 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
b8025f34 14353 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14356 else
14357 # Canadian cross, just use what we found
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359$as_echo "pre-installed" >&6; }
2429c060 14360 fi
be01d343
PB
14361else
14362 ok=yes
14363 case " ${configdirs} " in
14364 *" gcc "*) ;;
14365 *) ok=no ;;
14366 esac
c6b750e1 14367
be01d343
PB
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
14370 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372$as_echo "just compiled" >&6; }
2429c060
PB
14373 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
b8025f34 14375 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382$as_echo "host tool" >&6; }
be01d343
PB
14383 else
14384 # We need a cross tool
81ecdfbb
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386$as_echo "pre-installed" >&6; }
be01d343
PB
14387 fi
14388fi
4b900473 14389
81ecdfbb
RW
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14391$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14392if test "x${build}" != "x${host}" ; then
2429c060
PB
14393 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
b8025f34 14395 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14398 else
14399 # Canadian cross, just use what we found
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401$as_echo "pre-installed" >&6; }
2429c060 14402 fi
be01d343
PB
14403else
14404 ok=yes
14405 case " ${configdirs} " in
14406 *" gcc "*) ;;
14407 *) ok=no ;;
14408 esac
14409 case ,${enable_languages}, in
14410 *,c++,*) ;;
14411 *) ok=no ;;
14412 esac
14413 if test $ok = yes; then
14414 # An in-tree tool is available and we can use it
95e43135 14415 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
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14417$as_echo "just compiled" >&6; }
2429c060
PB
14418 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
b8025f34 14420 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14423 elif test "x$target" = "x$host"; then
14424 # We can use an host tool
14425 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14427$as_echo "host tool" >&6; }
be01d343
PB
14428 else
14429 # We need a cross tool
81ecdfbb
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14431$as_echo "pre-installed" >&6; }
be01d343
PB
14432 fi
14433fi
4b900473 14434
81ecdfbb
RW
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14436$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14437if test "x${build}" != "x${host}" ; then
2429c060
PB
14438 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
b8025f34 14440 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14443 else
14444 # Canadian cross, just use what we found
81ecdfbb
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14446$as_echo "pre-installed" >&6; }
2429c060 14447 fi
be01d343
PB
14448else
14449 ok=yes
14450 case " ${configdirs} " in
14451 *" gcc "*) ;;
14452 *) ok=no ;;
14453 esac
14454 case ,${enable_languages}, in
14455 *,c++,*) ;;
14456 *) ok=no ;;
14457 esac
14458 if test $ok = yes; then
14459 # An in-tree tool is available and we can use it
95e43135 14460 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
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14462$as_echo "just compiled" >&6; }
2429c060
PB
14463 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14464 # We already found the complete path
b8025f34 14465 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14467$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14468 elif test "x$target" = "x$host"; then
14469 # We can use an host tool
14470 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14472$as_echo "host tool" >&6; }
be01d343
PB
14473 else
14474 # We need a cross tool
81ecdfbb
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476$as_echo "pre-installed" >&6; }
be01d343
PB
14477 fi
14478fi
4b900473 14479
81ecdfbb
RW
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14481$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14482if test "x${build}" != "x${host}" ; then
2429c060
PB
14483 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
b8025f34 14485 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14488 else
14489 # Canadian cross, just use what we found
81ecdfbb
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491$as_echo "pre-installed" >&6; }
2429c060 14492 fi
be01d343
PB
14493else
14494 ok=yes
14495 case " ${configdirs} " in
14496 *" binutils "*) ;;
14497 *) ok=no ;;
14498 esac
c6b750e1 14499
be01d343
PB
14500 if test $ok = yes; then
14501 # An in-tree tool is available and we can use it
14502 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14504$as_echo "just compiled" >&6; }
2429c060
PB
14505 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14506 # We already found the complete path
b8025f34 14507 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14509$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14510 elif test "x$target" = "x$host"; then
14511 # We can use an host tool
14512 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14514$as_echo "host tool" >&6; }
be01d343
PB
14515 else
14516 # We need a cross tool
81ecdfbb
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14518$as_echo "pre-installed" >&6; }
be01d343
PB
14519 fi
14520fi
4b900473 14521
81ecdfbb
RW
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14523$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14524if test "x${build}" != "x${host}" ; then
2429c060
PB
14525 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14526 # We already found the complete path
b8025f34 14527 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14529$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14530 else
14531 # Canadian cross, just use what we found
81ecdfbb
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14533$as_echo "pre-installed" >&6; }
2429c060 14534 fi
be01d343
PB
14535else
14536 ok=yes
14537 case " ${configdirs} " in
14538 *" gcc "*) ;;
14539 *) ok=no ;;
14540 esac
c6b750e1 14541
be01d343
PB
14542 if test $ok = yes; then
14543 # An in-tree tool is available and we can use it
14544 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14546$as_echo "just compiled" >&6; }
2429c060
PB
14547 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14548 # We already found the complete path
b8025f34 14549 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14551$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14552 elif test "x$target" = "x$host"; then
14553 # We can use an host tool
14554 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14556$as_echo "host tool" >&6; }
be01d343
PB
14557 else
14558 # We need a cross tool
81ecdfbb
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14560$as_echo "pre-installed" >&6; }
be01d343
PB
14561 fi
14562fi
4b900473 14563
81ecdfbb
RW
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14565$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14566if test "x${build}" != "x${host}" ; then
2429c060
PB
14567 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14568 # We already found the complete path
b8025f34 14569 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14571$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14572 else
14573 # Canadian cross, just use what we found
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575$as_echo "pre-installed" >&6; }
2429c060 14576 fi
be01d343
PB
14577else
14578 ok=yes
14579 case " ${configdirs} " in
14580 *" gcc "*) ;;
14581 *) ok=no ;;
14582 esac
14583 case ,${enable_languages}, in
14584 *,fortran,*) ;;
14585 *) ok=no ;;
14586 esac
14587 if test $ok = yes; then
14588 # An in-tree tool is available and we can use it
14589 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14591$as_echo "just compiled" >&6; }
2429c060
PB
14592 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14593 # We already found the complete path
b8025f34 14594 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14596$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14597 elif test "x$target" = "x$host"; then
14598 # We can use an host tool
14599 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14601$as_echo "host tool" >&6; }
be01d343
PB
14602 else
14603 # We need a cross tool
81ecdfbb
RW
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14605$as_echo "pre-installed" >&6; }
be01d343
PB
14606 fi
14607fi
4b900473 14608
e552509b
ILT
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14610$as_echo_n "checking where to find the target gccgo... " >&6; }
14611if test "x${build}" != "x${host}" ; then
14612 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14613 # We already found the complete path
14614 ac_dir=`dirname $GOC_FOR_TARGET`
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14616$as_echo "pre-installed in $ac_dir" >&6; }
14617 else
14618 # Canadian cross, just use what we found
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14620$as_echo "pre-installed" >&6; }
14621 fi
14622else
14623 ok=yes
14624 case " ${configdirs} " in
14625 *" gcc "*) ;;
14626 *) ok=no ;;
14627 esac
14628 case ,${enable_languages}, in
14629 *,go,*) ;;
14630 *) ok=no ;;
14631 esac
14632 if test $ok = yes; then
14633 # An in-tree tool is available and we can use it
14634 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14636$as_echo "just compiled" >&6; }
14637 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14638 # We already found the complete path
14639 ac_dir=`dirname $GOC_FOR_TARGET`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14641$as_echo "pre-installed in $ac_dir" >&6; }
14642 elif test "x$target" = "x$host"; then
14643 # We can use an host tool
14644 GOC_FOR_TARGET='$(GOC)'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14646$as_echo "host tool" >&6; }
14647 else
14648 # We need a cross tool
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14650$as_echo "pre-installed" >&6; }
14651 fi
14652fi
14653
81ecdfbb
RW
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14655$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14656if test "x${build}" != "x${host}" ; then
2429c060
PB
14657 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
b8025f34 14659 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14662 else
14663 # Canadian cross, just use what we found
81ecdfbb
RW
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665$as_echo "pre-installed" >&6; }
2429c060 14666 fi
be01d343
PB
14667else
14668 ok=yes
14669 case " ${configdirs} " in
14670 *" ld "*) ;;
14671 *) ok=no ;;
14672 esac
c6b750e1 14673
be01d343
PB
14674 if test $ok = yes; then
14675 # An in-tree tool is available and we can use it
14676 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14678$as_echo "just compiled" >&6; }
2429c060
PB
14679 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14680 # We already found the complete path
b8025f34 14681 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14683$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14684 elif test "x$target" = "x$host"; then
14685 # We can use an host tool
14686 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14688$as_echo "host tool" >&6; }
be01d343
PB
14689 else
14690 # We need a cross tool
81ecdfbb
RW
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14692$as_echo "pre-installed" >&6; }
be01d343
PB
14693 fi
14694fi
4b900473 14695
81ecdfbb
RW
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14697$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14698if test "x${build}" != "x${host}" ; then
2429c060
PB
14699 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
b8025f34 14701 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14703$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14704 else
14705 # Canadian cross, just use what we found
81ecdfbb
RW
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14707$as_echo "pre-installed" >&6; }
2429c060 14708 fi
be01d343 14709else
2429c060
PB
14710 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14711 # We already found the complete path
b8025f34 14712 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14714$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14715 elif test "x$target" = "x$host"; then
be01d343
PB
14716 # We can use an host tool
14717 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14719$as_echo "host tool" >&6; }
be01d343
PB
14720 else
14721 # We need a cross tool
81ecdfbb
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14723$as_echo "pre-installed" >&6; }
be01d343
PB
14724 fi
14725fi
4b900473 14726
81ecdfbb
RW
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14728$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14729if test "x${build}" != "x${host}" ; then
2429c060
PB
14730 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
b8025f34 14732 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14735 else
14736 # Canadian cross, just use what we found
81ecdfbb
RW
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14738$as_echo "pre-installed" >&6; }
2429c060 14739 fi
be01d343
PB
14740else
14741 ok=yes
14742 case " ${configdirs} " in
14743 *" binutils "*) ;;
14744 *) ok=no ;;
14745 esac
c6b750e1 14746
be01d343
PB
14747 if test $ok = yes; then
14748 # An in-tree tool is available and we can use it
14749 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14751$as_echo "just compiled" >&6; }
2429c060
PB
14752 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14753 # We already found the complete path
b8025f34 14754 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14756$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14757 elif test "x$target" = "x$host"; then
14758 # We can use an host tool
14759 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14761$as_echo "host tool" >&6; }
be01d343
PB
14762 else
14763 # We need a cross tool
81ecdfbb
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14765$as_echo "pre-installed" >&6; }
be01d343
PB
14766 fi
14767fi
4b900473 14768
6b91c541
AP
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14770$as_echo_n "checking where to find the target objcopy... " >&6; }
14771if test "x${build}" != "x${host}" ; then
14772 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14773 # We already found the complete path
14774 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14776$as_echo "pre-installed in $ac_dir" >&6; }
14777 else
14778 # Canadian cross, just use what we found
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14780$as_echo "pre-installed" >&6; }
14781 fi
14782else
14783 ok=yes
14784 case " ${configdirs} " in
14785 *" binutils "*) ;;
14786 *) ok=no ;;
14787 esac
14788
14789 if test $ok = yes; then
14790 # An in-tree tool is available and we can use it
14791 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14793$as_echo "just compiled" >&6; }
14794 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14795 # We already found the complete path
14796 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14798$as_echo "pre-installed in $ac_dir" >&6; }
14799 elif test "x$target" = "x$host"; then
14800 # We can use an host tool
1b6c0831 14801 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14803$as_echo "host tool" >&6; }
14804 else
14805 # We need a cross tool
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14807$as_echo "pre-installed" >&6; }
14808 fi
14809fi
14810
81ecdfbb
RW
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14812$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14813if test "x${build}" != "x${host}" ; then
2429c060
PB
14814 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14815 # We already found the complete path
b8025f34 14816 ac_dir=`dirname $OBJDUMP_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; }
2429c060
PB
14819 else
14820 # Canadian cross, just use what we found
81ecdfbb
RW
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14822$as_echo "pre-installed" >&6; }
2429c060 14823 fi
be01d343
PB
14824else
14825 ok=yes
14826 case " ${configdirs} " in
14827 *" binutils "*) ;;
14828 *) ok=no ;;
14829 esac
c6b750e1 14830
be01d343
PB
14831 if test $ok = yes; then
14832 # An in-tree tool is available and we can use it
14833 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14835$as_echo "just compiled" >&6; }
2429c060
PB
14836 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14837 # We already found the complete path
b8025f34 14838 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14840$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14841 elif test "x$target" = "x$host"; then
14842 # We can use an host tool
14843 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14845$as_echo "host tool" >&6; }
be01d343
PB
14846 else
14847 # We need a cross tool
81ecdfbb
RW
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14849$as_echo "pre-installed" >&6; }
be01d343
PB
14850 fi
14851fi
4b900473 14852
81ecdfbb
RW
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14854$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14855if test "x${build}" != "x${host}" ; then
2429c060
PB
14856 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14857 # We already found the complete path
b8025f34 14858 ac_dir=`dirname $RANLIB_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; }
2429c060
PB
14861 else
14862 # Canadian cross, just use what we found
81ecdfbb
RW
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14864$as_echo "pre-installed" >&6; }
2429c060 14865 fi
be01d343
PB
14866else
14867 ok=yes
14868 case " ${configdirs} " in
14869 *" binutils "*) ;;
14870 *) ok=no ;;
14871 esac
c6b750e1 14872
be01d343
PB
14873 if test $ok = yes; then
14874 # An in-tree tool is available and we can use it
14875 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14877$as_echo "just compiled" >&6; }
2429c060
PB
14878 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14879 # We already found the complete path
b8025f34 14880 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14882$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14883 elif test "x$target" = "x$host"; then
14884 # We can use an host tool
14885 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14887$as_echo "host tool" >&6; }
be01d343
PB
14888 else
14889 # We need a cross tool
81ecdfbb
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14891$as_echo "pre-installed" >&6; }
be01d343
PB
14892 fi
14893fi
4b900473 14894
b121d7d4
DD
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14896$as_echo_n "checking where to find the target readelf... " >&6; }
14897if test "x${build}" != "x${host}" ; then
14898 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14899 # We already found the complete path
14900 ac_dir=`dirname $READELF_FOR_TARGET`
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14902$as_echo "pre-installed in $ac_dir" >&6; }
14903 else
14904 # Canadian cross, just use what we found
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14906$as_echo "pre-installed" >&6; }
14907 fi
14908else
14909 ok=yes
14910 case " ${configdirs} " in
14911 *" binutils "*) ;;
14912 *) ok=no ;;
14913 esac
14914
14915 if test $ok = yes; then
14916 # An in-tree tool is available and we can use it
14917 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14919$as_echo "just compiled" >&6; }
14920 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14921 # We already found the complete path
14922 ac_dir=`dirname $READELF_FOR_TARGET`
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14924$as_echo "pre-installed in $ac_dir" >&6; }
14925 elif test "x$target" = "x$host"; then
14926 # We can use an host tool
14927 READELF_FOR_TARGET='$(READELF)'
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14929$as_echo "host tool" >&6; }
14930 else
14931 # We need a cross tool
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14933$as_echo "pre-installed" >&6; }
14934 fi
14935fi
14936
81ecdfbb
RW
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14938$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14939if test "x${build}" != "x${host}" ; then
2429c060
PB
14940 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14941 # We already found the complete path
b8025f34 14942 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14944$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14945 else
14946 # Canadian cross, just use what we found
81ecdfbb
RW
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14948$as_echo "pre-installed" >&6; }
2429c060 14949 fi
be01d343
PB
14950else
14951 ok=yes
14952 case " ${configdirs} " in
14953 *" binutils "*) ;;
14954 *) ok=no ;;
14955 esac
c6b750e1 14956
be01d343
PB
14957 if test $ok = yes; then
14958 # An in-tree tool is available and we can use it
9b980aa1 14959 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14961$as_echo "just compiled" >&6; }
2429c060
PB
14962 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14963 # We already found the complete path
b8025f34 14964 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14966$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14967 elif test "x$target" = "x$host"; then
14968 # We can use an host tool
14969 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14971$as_echo "host tool" >&6; }
be01d343
PB
14972 else
14973 # We need a cross tool
81ecdfbb
RW
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14975$as_echo "pre-installed" >&6; }
be01d343
PB
14976 fi
14977fi
4b900473 14978
81ecdfbb
RW
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14980$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14981if test "x${build}" != "x${host}" ; then
2429c060
PB
14982 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14983 # We already found the complete path
b8025f34 14984 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14986$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14987 else
14988 # Canadian cross, just use what we found
81ecdfbb
RW
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14990$as_echo "pre-installed" >&6; }
2429c060 14991 fi
be01d343
PB
14992else
14993 ok=yes
14994 case " ${configdirs} " in
14995 *" binutils "*) ;;
14996 *) ok=no ;;
14997 esac
c6b750e1 14998
be01d343
PB
14999 if test $ok = yes; then
15000 # An in-tree tool is available and we can use it
15001 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15003$as_echo "just compiled" >&6; }
2429c060
PB
15004 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15005 # We already found the complete path
b8025f34 15006 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15008$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
15009 elif test "x$target" = "x$host"; then
15010 # We can use an host tool
15011 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15013$as_echo "host tool" >&6; }
be01d343
PB
15014 else
15015 # We need a cross tool
81ecdfbb
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15017$as_echo "pre-installed" >&6; }
be01d343 15018 fi
a0da8069 15019fi
54752a6b 15020
81ecdfbb
RW
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15022$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
15023if test "x${build}" != "x${host}" ; then
15024 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15025 # We already found the complete path
15026 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15028$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15029 else
15030 # Canadian cross, just use what we found
81ecdfbb
RW
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15032$as_echo "pre-installed" >&6; }
0c24b341
NC
15033 fi
15034else
15035 ok=yes
15036 case " ${configdirs} " in
15037 *" binutils "*) ;;
15038 *) ok=no ;;
15039 esac
15040
15041 if test $ok = yes; then
15042 # An in-tree tool is available and we can use it
15043 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15045$as_echo "just compiled" >&6; }
0c24b341
NC
15046 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15047 # We already found the complete path
15048 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15050$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
15051 elif test "x$target" = "x$host"; then
15052 # We can use an host tool
15053 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15055$as_echo "host tool" >&6; }
0c24b341
NC
15056 else
15057 # We need a cross tool
81ecdfbb
RW
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15059$as_echo "pre-installed" >&6; }
0c24b341
NC
15060 fi
15061fi
15062
54752a6b
NN
15063
15064
be01d343 15065
4b900473 15066
a0da8069
NN
15067# Certain tools may need extra flags.
15068AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15069RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15070NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15071
be01d343
PB
15072# When building target libraries, except in a Canadian cross, we use
15073# the same toolchain as the compiler we just built.
15074COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15075COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15076COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15077if test $host = $build; then
15078 case " $configdirs " in
15079 *" gcc "*)
15080 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15081 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15082 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15083 ;;
15084 esac
15085fi
15086
15087
15088
15089
15090
81ecdfbb
RW
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15092$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15093# Check whether --enable-maintainer-mode was given.
15094if test "${enable_maintainer_mode+set}" = set; then :
15095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
15096else
15097 USE_MAINTAINER_MODE=no
81ecdfbb
RW
15098fi
15099
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15101$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
15102
15103
15104if test "$USE_MAINTAINER_MODE" = yes; then
15105 MAINTAINER_MODE_TRUE=
15106 MAINTAINER_MODE_FALSE='#'
15107else
15108 MAINTAINER_MODE_TRUE='#'
15109 MAINTAINER_MODE_FALSE=
c6b750e1 15110fi
3d5e36ae
AO
15111MAINT=$MAINTAINER_MODE_TRUE
15112
1d39f329
NN
15113# ---------------------
15114# GCC bootstrap support
15115# ---------------------
15116
15117# Stage specific cflags for build.
15118stage1_cflags="-g"
15119case $build in
15120 vax-*-*)
15121 case ${GCC} in
15122 yes) stage1_cflags="-g -Wa,-J" ;;
15123 *) stage1_cflags="-g -J" ;;
15124 esac ;;
1d39f329
NN
15125esac
15126
1d89b610 15127
1d39f329 15128
8a0d8a5c 15129# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
15130# Check whether --enable-stage1-checking was given.
15131if test "${enable_stage1_checking+set}" = set; then :
15132 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 15133else
5566c1fa 15134 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
15135 # For --disable-checking or implicit --enable-checking=release, avoid
15136 # setting --enable-checking=gc in the default stage1 checking for LTO
15137 # bootstraps. See PR62077.
ce6c656d
L
15138 case $BUILD_CONFIG in
15139 *lto*)
05a13254
NC
15140 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15141 *)
15142 stage1_checking=--enable-checking=yes,types;;
ce6c656d 15143 esac
05a13254
NC
15144 if test "x$enable_checking" = x && \
15145 test -d ${srcdir}/gcc && \
15146 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15147 stage1_checking=--enable-checking=yes,types,extra
15148 fi
8a0d8a5c 15149else
5566c1fa 15150 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 15151fi
81ecdfbb 15152fi
8a0d8a5c
PB
15153
15154
c6b750e1 15155
81ecdfbb
RW
15156# Enable -Werror in bootstrap stage2 and later.
15157# Check whether --enable-werror was given.
15158if test "${enable_werror+set}" = set; then :
15159 enableval=$enable_werror;
1a6f2dc7
NN
15160case ${enable_werror} in
15161 yes) stage2_werror_flag="--enable-werror-always" ;;
15162 *) stage2_werror_flag="" ;;
1d39f329
NN
15163esac
15164
82033c9b 15165else
82033c9b 15166
bf41f30d
NC
15167if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15168 case $BUILD_CONFIG in
15169 bootstrap-debug)
15170 stage2_werror_flag="--enable-werror-always" ;;
15171 "")
15172 stage2_werror_flag="--enable-werror-always" ;;
15173 esac
15174fi
82033c9b 15175
bf41f30d 15176fi
82033c9b 15177
1b6c0831 15178
1b6c0831 15179
1b6c0831 15180
e8a5fa9c
RW
15181# Specify what files to not compare during bootstrap.
15182
15183compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15184case "$target" in
15185 hppa*64*-*-hpux*) ;;
bf41f30d 15186 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 15187 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
15188esac
15189
15190
81ecdfbb
RW
15191ac_config_files="$ac_config_files Makefile"
15192
c6b750e1 15193cat >confcache <<\_ACEOF
a0da8069
NN
15194# This file is a shell script that caches the results of configure
15195# tests run on this system so they can be shared between configure
c6b750e1
DJ
15196# scripts and configure runs, see configure's option --config-cache.
15197# It is not useful on other systems. If it contains results you don't
15198# want to keep, you may remove or edit it.
a0da8069 15199#
c6b750e1
DJ
15200# config.status only pays attention to the cache file if you give it
15201# the --recheck option to rerun configure.
a0da8069 15202#
c6b750e1
DJ
15203# `ac_cv_env_foo' variables (set or unset) will be overridden when
15204# loading this file, other *unset* `ac_cv_foo' will be assigned the
15205# following values.
15206
15207_ACEOF
15208
a0da8069
NN
15209# The following way of writing the cache mishandles newlines in values,
15210# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15211# So, we kill variables containing newlines.
a0da8069
NN
15212# Ultrix sh set writes to stderr and can't be redirected directly,
15213# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15214(
15215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15216 eval ac_val=\$$ac_var
15217 case $ac_val in #(
15218 *${as_nl}*)
15219 case $ac_var in #(
15220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15222 esac
15223 case $ac_var in #(
15224 _ | IFS | as_nl) ;; #(
15225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15226 *) { eval $ac_var=; unset $ac_var;} ;;
15227 esac ;;
15228 esac
15229 done
15230
c6b750e1 15231 (set) 2>&1 |
81ecdfbb
RW
15232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15233 *${as_nl}ac_space=\ *)
15234 # `set' does not quote correctly, so add quotes: double-quote
15235 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15236 sed -n \
15237 "s/'/'\\\\''/g;
15238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15239 ;; #(
c6b750e1
DJ
15240 *)
15241 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15243 ;;
81ecdfbb
RW
15244 esac |
15245 sort
15246) |
c6b750e1 15247 sed '
81ecdfbb 15248 /^ac_cv_env_/b end
c6b750e1 15249 t clear
81ecdfbb 15250 :clear
c6b750e1
DJ
15251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15252 t end
81ecdfbb
RW
15253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15254 :end' >>confcache
15255if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15256 if test -w "$cache_file"; then
d0ac1c44 15257 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15259$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15260 if test ! -f "$cache_file" || test -h "$cache_file"; then
15261 cat confcache >"$cache_file"
15262 else
15263 case $cache_file in #(
15264 */* | ?:*)
15265 mv -f confcache "$cache_file"$$ &&
15266 mv -f "$cache_file"$$ "$cache_file" ;; #(
15267 *)
15268 mv -f confcache "$cache_file" ;;
15269 esac
15270 fi
15271 fi
a0da8069 15272 else
81ecdfbb
RW
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15274$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15275 fi
852e5f18 15276fi
a0da8069 15277rm -f confcache
852e5f18 15278
a0da8069
NN
15279test "x$prefix" = xNONE && prefix=$ac_default_prefix
15280# Let make expand exec_prefix.
15281test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15282
a0da8069
NN
15283# Transform confdefs.h into DEFS.
15284# Protect against shell expansion while executing Makefile rules.
15285# Protect against Makefile macro expansion.
c6b750e1
DJ
15286#
15287# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15288# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15289# look for a macro that doesn't take arguments.
81ecdfbb
RW
15290ac_script='
15291:mline
15292/\\$/{
15293 N
15294 s,\\\n,,
15295 b mline
15296}
c6b750e1 15297t clear
81ecdfbb
RW
15298:clear
15299s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15300t quote
81ecdfbb 15301s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15302t quote
81ecdfbb
RW
15303b any
15304:quote
15305s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15306s/\[/\\&/g
15307s/\]/\\&/g
15308s/\$/$$/g
15309H
15310:any
15311${
15312 g
15313 s/^\n//
15314 s/\n/ /g
15315 p
15316}
15317'
15318DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15319
15320
15321ac_libobjs=
15322ac_ltlibobjs=
d0ac1c44 15323U=
c6b750e1
DJ
15324for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15325 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15327 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15329 # will be set to the directory where LIBOBJS objects are built.
15330 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15331 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15332done
15333LIBOBJS=$ac_libobjs
852e5f18 15334
c6b750e1 15335LTLIBOBJS=$ac_ltlibobjs
376a0e54 15336
cac3d6c4 15337
c6b750e1 15338
d0ac1c44 15339: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15340ac_write_fail=0
c6b750e1
DJ
15341ac_clean_files_save=$ac_clean_files
15342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15345as_write_fail=0
15346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15347#! $SHELL
15348# Generated by $as_me.
a0da8069 15349# Run this file to recreate the current configuration.
a0da8069 15350# Compiler output produced by configure, useful for debugging
c6b750e1 15351# configure, is in config.log if it exists.
376a0e54 15352
c6b750e1
DJ
15353debug=false
15354ac_cs_recheck=false
15355ac_cs_silent=false
c6b750e1 15356
81ecdfbb
RW
15357SHELL=\${CONFIG_SHELL-$SHELL}
15358export SHELL
15359_ASEOF
15360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15361## -------------------- ##
15362## M4sh Initialization. ##
15363## -------------------- ##
15364
15365# Be more Bourne compatible
15366DUALCASE=1; export DUALCASE # for MKS sh
15367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15368 emulate sh
15369 NULLCMD=:
81ecdfbb 15370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15371 # is contrary to our usage. Disable this feature.
15372 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15373 setopt NO_GLOB_SUBST
15374else
15375 case `(set -o) 2>/dev/null` in #(
15376 *posix*) :
15377 set -o posix ;; #(
15378 *) :
15379 ;;
15380esac
c6b750e1 15381fi
c6b750e1 15382
81ecdfbb
RW
15383
15384as_nl='
15385'
15386export as_nl
15387# Printing a long string crashes Solaris 7 /usr/bin/printf.
15388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15391# Prefer a ksh shell builtin over an external printf program on Solaris,
15392# but without wasting forks for bash or zsh.
15393if test -z "$BASH_VERSION$ZSH_VERSION" \
15394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15395 as_echo='print -r --'
15396 as_echo_n='print -rn --'
15397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15398 as_echo='printf %s\n'
15399 as_echo_n='printf %s'
15400else
15401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15403 as_echo_n='/usr/ucb/echo -n'
15404 else
15405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15406 as_echo_n_body='eval
15407 arg=$1;
15408 case $arg in #(
15409 *"$as_nl"*)
15410 expr "X$arg" : "X\\(.*\\)$as_nl";
15411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15412 esac;
15413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15414 '
15415 export as_echo_n_body
15416 as_echo_n='sh -c $as_echo_n_body as_echo'
15417 fi
15418 export as_echo_body
15419 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15420fi
15421
81ecdfbb
RW
15422# The user is always right.
15423if test "${PATH_SEPARATOR+set}" != set; then
15424 PATH_SEPARATOR=:
15425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15427 PATH_SEPARATOR=';'
15428 }
15429fi
15430
15431
15432# IFS
15433# We need space, tab and new line, in precisely that order. Quoting is
15434# there to prevent editors from complaining about space-tab.
15435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15436# splitting by setting IFS to empty value.)
15437IFS=" "" $as_nl"
15438
15439# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15440as_myself=
81ecdfbb
RW
15441case $0 in #((
15442 *[\\/]* ) as_myself=$0 ;;
15443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15444for as_dir in $PATH
15445do
15446 IFS=$as_save_IFS
15447 test -z "$as_dir" && as_dir=.
15448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15449 done
15450IFS=$as_save_IFS
15451
15452 ;;
15453esac
15454# We did not find ourselves, most probably we were run as `sh COMMAND'
15455# in which case we are not to be found in the path.
15456if test "x$as_myself" = x; then
15457 as_myself=$0
15458fi
15459if test ! -f "$as_myself"; then
15460 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15461 exit 1
15462fi
c6b750e1 15463
81ecdfbb
RW
15464# Unset variables that we do not need and which cause bugs (e.g. in
15465# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15466# suppresses any "Segmentation fault" message there. '((' could
15467# trigger a bug in pdksh 5.2.14.
15468for as_var in BASH_ENV ENV MAIL MAILPATH
15469do eval test x\${$as_var+set} = xset \
15470 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15471done
c6b750e1
DJ
15472PS1='$ '
15473PS2='> '
15474PS4='+ '
15475
15476# NLS nuisances.
81ecdfbb
RW
15477LC_ALL=C
15478export LC_ALL
15479LANGUAGE=C
15480export LANGUAGE
15481
15482# CDPATH.
15483(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15484
15485
d0ac1c44
SM
15486# as_fn_error STATUS ERROR [LINENO LOG_FD]
15487# ----------------------------------------
81ecdfbb
RW
15488# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15489# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15490# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15491as_fn_error ()
15492{
d0ac1c44
SM
15493 as_status=$1; test $as_status -eq 0 && as_status=1
15494 if test "$4"; then
15495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15496 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15497 fi
d0ac1c44 15498 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15499 as_fn_exit $as_status
15500} # as_fn_error
15501
15502
15503# as_fn_set_status STATUS
15504# -----------------------
15505# Set $? to STATUS, without forking.
15506as_fn_set_status ()
15507{
15508 return $1
15509} # as_fn_set_status
15510
15511# as_fn_exit STATUS
15512# -----------------
15513# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15514as_fn_exit ()
15515{
15516 set +e
15517 as_fn_set_status $1
15518 exit $1
15519} # as_fn_exit
15520
15521# as_fn_unset VAR
15522# ---------------
15523# Portably unset VAR.
15524as_fn_unset ()
15525{
15526 { eval $1=; unset $1;}
15527}
15528as_unset=as_fn_unset
15529# as_fn_append VAR VALUE
15530# ----------------------
15531# Append the text in VALUE to the end of the definition contained in VAR. Take
15532# advantage of any shell optimizations that allow amortized linear growth over
15533# repeated appends, instead of the typical quadratic growth present in naive
15534# implementations.
15535if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15536 eval 'as_fn_append ()
15537 {
15538 eval $1+=\$2
15539 }'
15540else
15541 as_fn_append ()
15542 {
15543 eval $1=\$$1\$2
15544 }
15545fi # as_fn_append
15546
15547# as_fn_arith ARG...
15548# ------------------
15549# Perform arithmetic evaluation on the ARGs, and store the result in the
15550# global $as_val. Take advantage of shells that can avoid forks. The arguments
15551# must be portable across $(()) and expr.
15552if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15553 eval 'as_fn_arith ()
15554 {
15555 as_val=$(( $* ))
15556 }'
15557else
15558 as_fn_arith ()
15559 {
15560 as_val=`expr "$@" || test $? -eq 1`
15561 }
15562fi # as_fn_arith
15563
c6b750e1 15564
81ecdfbb
RW
15565if expr a : '\(a\)' >/dev/null 2>&1 &&
15566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15567 as_expr=expr
15568else
15569 as_expr=false
15570fi
15571
81ecdfbb 15572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15573 as_basename=basename
15574else
15575 as_basename=false
15576fi
15577
81ecdfbb
RW
15578if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15579 as_dirname=dirname
15580else
15581 as_dirname=false
15582fi
c6b750e1 15583
81ecdfbb 15584as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15585$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15586 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15588$as_echo X/"$0" |
15589 sed '/^.*\/\([^/][^/]*\)\/*$/{
15590 s//\1/
15591 q
15592 }
15593 /^X\/\(\/\/\)$/{
15594 s//\1/
15595 q
15596 }
15597 /^X\/\(\/\).*/{
15598 s//\1/
15599 q
15600 }
15601 s/.*/./; q'`
c6b750e1 15602
c6b750e1
DJ
15603# Avoid depending upon Character Ranges.
15604as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15605as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15606as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15607as_cr_digits='0123456789'
15608as_cr_alnum=$as_cr_Letters$as_cr_digits
15609
81ecdfbb
RW
15610ECHO_C= ECHO_N= ECHO_T=
15611case `echo -n x` in #(((((
15612-n*)
15613 case `echo 'xy\c'` in
15614 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15615 xy) ECHO_C='\c';;
15616 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15617 ECHO_T=' ';;
15618 esac;;
15619*)
15620 ECHO_N='-n';;
c6b750e1
DJ
15621esac
15622
81ecdfbb
RW
15623rm -f conf$$ conf$$.exe conf$$.file
15624if test -d conf$$.dir; then
15625 rm -f conf$$.dir/conf$$.file
c6b750e1 15626else
81ecdfbb
RW
15627 rm -f conf$$.dir
15628 mkdir conf$$.dir 2>/dev/null
c6b750e1 15629fi
81ecdfbb
RW
15630if (echo >conf$$.file) 2>/dev/null; then
15631 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15632 as_ln_s='ln -s'
81ecdfbb
RW
15633 # ... but there are two gotchas:
15634 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15635 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15636 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15637 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15638 as_ln_s='cp -pR'
81ecdfbb
RW
15639 elif ln conf$$.file conf$$ 2>/dev/null; then
15640 as_ln_s=ln
15641 else
d0ac1c44 15642 as_ln_s='cp -pR'
c6b750e1 15643 fi
c6b750e1 15644else
d0ac1c44 15645 as_ln_s='cp -pR'
c6b750e1 15646fi
81ecdfbb
RW
15647rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15648rmdir conf$$.dir 2>/dev/null
15649
15650
15651# as_fn_mkdir_p
15652# -------------
15653# Create "$as_dir" as a directory, including parents if necessary.
15654as_fn_mkdir_p ()
15655{
15656
15657 case $as_dir in #(
15658 -*) as_dir=./$as_dir;;
15659 esac
15660 test -d "$as_dir" || eval $as_mkdir_p || {
15661 as_dirs=
15662 while :; do
15663 case $as_dir in #(
15664 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15665 *) as_qdir=$as_dir;;
15666 esac
15667 as_dirs="'$as_qdir' $as_dirs"
15668 as_dir=`$as_dirname -- "$as_dir" ||
15669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15670 X"$as_dir" : 'X\(//\)[^/]' \| \
15671 X"$as_dir" : 'X\(//\)$' \| \
15672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15673$as_echo X"$as_dir" |
15674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15675 s//\1/
15676 q
15677 }
15678 /^X\(\/\/\)[^/].*/{
15679 s//\1/
15680 q
15681 }
15682 /^X\(\/\/\)$/{
15683 s//\1/
15684 q
15685 }
15686 /^X\(\/\).*/{
15687 s//\1/
15688 q
15689 }
15690 s/.*/./; q'`
15691 test -d "$as_dir" && break
15692 done
15693 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15694 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15695
c6b750e1 15696
81ecdfbb 15697} # as_fn_mkdir_p
c6b750e1 15698if mkdir -p . 2>/dev/null; then
81ecdfbb 15699 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15700else
15701 test -d ./-p && rmdir ./-p
15702 as_mkdir_p=false
15703fi
15704
d0ac1c44
SM
15705
15706# as_fn_executable_p FILE
15707# -----------------------
15708# Test if FILE is an executable regular file.
15709as_fn_executable_p ()
15710{
15711 test -f "$1" && test -x "$1"
15712} # as_fn_executable_p
15713as_test_x='test -x'
15714as_executable_p=as_fn_executable_p
c6b750e1
DJ
15715
15716# Sed expression to map a string onto a valid CPP name.
15717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15718
15719# Sed expression to map a string onto a valid variable name.
15720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15721
15722
c6b750e1 15723exec 6>&1
81ecdfbb
RW
15724## ----------------------------------- ##
15725## Main body of $CONFIG_STATUS script. ##
15726## ----------------------------------- ##
15727_ASEOF
15728test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15729
15730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15732# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15733# values after options handling.
15734ac_log="
c6b750e1 15735This file was extended by $as_me, which was
d0ac1c44 15736generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15737
15738 CONFIG_FILES = $CONFIG_FILES
15739 CONFIG_HEADERS = $CONFIG_HEADERS
15740 CONFIG_LINKS = $CONFIG_LINKS
15741 CONFIG_COMMANDS = $CONFIG_COMMANDS
15742 $ $0 $@
15743
81ecdfbb
RW
15744on `(hostname || uname -n) 2>/dev/null | sed 1q`
15745"
15746
c6b750e1
DJ
15747_ACEOF
15748
81ecdfbb
RW
15749case $ac_config_files in *"
15750"*) set x $ac_config_files; shift; ac_config_files=$*;;
15751esac
c6b750e1 15752
c6b750e1 15753
c6b750e1 15754
81ecdfbb
RW
15755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756# Files that config.status was made for.
15757config_files="$ac_config_files"
c6b750e1 15758
81ecdfbb 15759_ACEOF
c6b750e1 15760
81ecdfbb 15761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15762ac_cs_usage="\
81ecdfbb
RW
15763\`$as_me' instantiates files and other configuration actions
15764from templates according to the current configuration. Unless the files
15765and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15766
81ecdfbb 15767Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15768
15769 -h, --help print this help, then exit
81ecdfbb 15770 -V, --version print version number and configuration settings, then exit
d0ac1c44 15771 --config print configuration, then exit
81ecdfbb
RW
15772 -q, --quiet, --silent
15773 do not print progress messages
c6b750e1
DJ
15774 -d, --debug don't remove temporary files
15775 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15776 --file=FILE[:TEMPLATE]
15777 instantiate the configuration file FILE
c6b750e1
DJ
15778
15779Configuration files:
15780$config_files
15781
81ecdfbb 15782Report bugs to the package provider."
c6b750e1 15783
81ecdfbb
RW
15784_ACEOF
15785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15786ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15787ac_cs_version="\\
15788config.status
d0ac1c44
SM
15789configured by $0, generated by GNU Autoconf 2.69,
15790 with options \\"\$ac_cs_config\\"
c6b750e1 15791
d0ac1c44 15792Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15793This config.status script is free software; the Free Software Foundation
15794gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15795
15796ac_pwd='$ac_pwd'
15797srcdir='$srcdir'
15798INSTALL='$INSTALL'
8e957354 15799AWK='$AWK'
81ecdfbb 15800test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15801_ACEOF
15802
81ecdfbb
RW
15803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15805ac_need_defaults=:
15806while test $# != 0
a0da8069 15807do
c6b750e1 15808 case $1 in
d0ac1c44 15809 --*=?*)
81ecdfbb
RW
15810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15812 ac_shift=:
15813 ;;
d0ac1c44
SM
15814 --*=)
15815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15816 ac_optarg=
15817 ac_shift=:
15818 ;;
81ecdfbb 15819 *)
c6b750e1
DJ
15820 ac_option=$1
15821 ac_optarg=$2
15822 ac_shift=shift
15823 ;;
c6b750e1
DJ
15824 esac
15825
15826 case $ac_option in
15827 # Handling of the options.
a0da8069 15828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15829 ac_cs_recheck=: ;;
81ecdfbb
RW
15830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15831 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15832 --config | --confi | --conf | --con | --co | --c )
15833 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15834 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15835 debug=: ;;
15836 --file | --fil | --fi | --f )
15837 $ac_shift
81ecdfbb
RW
15838 case $ac_optarg in
15839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15840 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15841 esac
15842 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15843 ac_need_defaults=false;;
81ecdfbb
RW
15844 --he | --h | --help | --hel | -h )
15845 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15848 ac_cs_silent=: ;;
15849
15850 # This is an error.
d0ac1c44 15851 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15852Try \`$0 --help' for more information." ;;
c6b750e1 15853
81ecdfbb
RW
15854 *) as_fn_append ac_config_targets " $1"
15855 ac_need_defaults=false ;;
c6b750e1 15856
376a0e54 15857 esac
c6b750e1 15858 shift
376a0e54
CM
15859done
15860
c6b750e1 15861ac_configure_extra_args=
376a0e54 15862
c6b750e1
DJ
15863if $ac_cs_silent; then
15864 exec 6>/dev/null
15865 ac_configure_extra_args="$ac_configure_extra_args --silent"
15866fi
376a0e54 15867
c6b750e1 15868_ACEOF
81ecdfbb 15869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15870if \$ac_cs_recheck; then
d0ac1c44 15871 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15872 shift
15873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15874 CONFIG_SHELL='$SHELL'
15875 export CONFIG_SHELL
15876 exec "\$@"
c6b750e1
DJ
15877fi
15878
15879_ACEOF
81ecdfbb
RW
15880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881exec 5>>config.log
15882{
15883 echo
15884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15885## Running $as_me. ##
15886_ASBOX
15887 $as_echo "$ac_log"
15888} >&5
c6b750e1 15889
81ecdfbb
RW
15890_ACEOF
15891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15892#
15893# INIT-COMMANDS
15894#
15895extrasub_build="$extrasub_build"
15896 extrasub_host="$extrasub_host"
15897 extrasub_target="$extrasub_target"
15898
81ecdfbb 15899_ACEOF
c6b750e1 15900
81ecdfbb 15901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15902
81ecdfbb 15903# Handling of arguments.
c6b750e1
DJ
15904for ac_config_target in $ac_config_targets
15905do
81ecdfbb
RW
15906 case $ac_config_target in
15907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15908
d0ac1c44 15909 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15910 esac
15911done
15912
81ecdfbb 15913
c6b750e1
DJ
15914# If the user did not use the arguments to specify the items to instantiate,
15915# then the envvar interface is used. Set only those that are not.
15916# We use the long form for the default assignment because of an extremely
15917# bizarre bug on SunOS 4.1.3.
15918if $ac_need_defaults; then
15919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15920fi
15921
15922# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15923# simply because there is no reason against having it here, and in addition,
c6b750e1 15924# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15925# Hook for its removal unless debugging.
15926# Note that there is a small window in which the directory will not be cleaned:
15927# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15928$debug ||
15929{
d0ac1c44 15930 tmp= ac_tmp=
81ecdfbb 15931 trap 'exit_status=$?
d0ac1c44
SM
15932 : "${ac_tmp:=$tmp}"
15933 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15934' 0
15935 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15936}
c6b750e1
DJ
15937# Create a (secure) tmp directory for tmp files.
15938
15939{
81ecdfbb 15940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15941 test -d "$tmp"
c6b750e1
DJ
15942} ||
15943{
81ecdfbb
RW
15944 tmp=./conf$$-$RANDOM
15945 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15946} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15947ac_tmp=$tmp
81ecdfbb
RW
15948
15949# Set up the scripts for CONFIG_FILES section.
15950# No need to generate them if there are no CONFIG_FILES.
15951# This happens for instance with `./config.status config.h'.
15952if test -n "$CONFIG_FILES"; then
15953
15954if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15955 ac_cs_awk_getline=:
15956 ac_cs_awk_pipe_init=
15957 ac_cs_awk_read_file='
15958 while ((getline aline < (F[key])) > 0)
15959 print(aline)
15960 close(F[key])'
15961 ac_cs_awk_pipe_fini=
15962else
15963 ac_cs_awk_getline=false
15964 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15965 ac_cs_awk_read_file='
15966 print "|#_!!_#|"
15967 print "cat " F[key] " &&"
15968 '$ac_cs_awk_pipe_init
15969 # The final `:' finishes the AND list.
15970 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15971fi
15972ac_cr=`echo X | tr X '\015'`
15973# On cygwin, bash can eat \r inside `` if the user requested igncr.
15974# But we know of no other shell where ac_cr would be empty at this
15975# point, so we can use a bashism as a fallback.
15976if test "x$ac_cr" = x; then
15977 eval ac_cr=\$\'\\r\'
15978fi
15979ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15980if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15981 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15982else
15983 ac_cs_awk_cr=$ac_cr
15984fi
15985
d0ac1c44 15986echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15987_ACEOF
15988
15989# Create commands to substitute file output variables.
c6b750e1 15990{
81ecdfbb 15991 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15992 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15993 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15994 echo "_ACAWK" &&
15995 echo "_ACEOF"
15996} >conf$$files.sh &&
15997. ./conf$$files.sh ||
d0ac1c44 15998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15999rm -f conf$$files.sh
c6b750e1 16000
81ecdfbb
RW
16001{
16002 echo "cat >conf$$subs.awk <<_ACEOF" &&
16003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16004 echo "_ACEOF"
16005} >conf$$subs.sh ||
d0ac1c44
SM
16006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16007ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16008ac_delim='%!_!# '
16009for ac_last_try in false false false false false :; do
16010 . ./conf$$subs.sh ||
d0ac1c44 16011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16012
16013 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16014 if test $ac_delim_n = $ac_delim_num; then
16015 break
16016 elif $ac_last_try; then
d0ac1c44 16017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16018 else
16019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16020 fi
16021done
16022rm -f conf$$subs.sh
16023
16024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16025cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 16026_ACEOF
81ecdfbb
RW
16027sed -n '
16028h
16029s/^/S["/; s/!.*/"]=/
16030p
16031g
16032s/^[^!]*!//
16033:repl
16034t repl
16035s/'"$ac_delim"'$//
16036t delim
16037:nl
16038h
d0ac1c44 16039s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16040t more1
16041s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16042p
16043n
16044b repl
16045:more1
16046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16047p
16048g
16049s/.\{148\}//
16050t nl
16051:delim
16052h
d0ac1c44 16053s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16054t more2
16055s/["\\]/\\&/g; s/^/"/; s/$/"/
16056p
16057b
16058:more2
16059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16060p
16061g
16062s/.\{148\}//
16063t delim
16064' <conf$$subs.awk | sed '
16065/^[^""]/{
16066 N
16067 s/\n//
16068}
16069' >>$CONFIG_STATUS || ac_write_fail=1
16070rm -f conf$$subs.awk
16071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072_ACAWK
d0ac1c44 16073cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16074 for (key in S) S_is_set[key] = 1
16075 FS = "\a"
16076 \$ac_cs_awk_pipe_init
16077}
16078{
16079 line = $ 0
16080 nfields = split(line, field, "@")
16081 substed = 0
16082 len = length(field[1])
16083 for (i = 2; i < nfields; i++) {
16084 key = field[i]
16085 keylen = length(key)
16086 if (S_is_set[key]) {
16087 value = S[key]
16088 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16089 len += length(value) + length(field[++i])
16090 substed = 1
16091 } else
16092 len += 1 + keylen
16093 }
16094 if (nfields == 3 && !substed) {
16095 key = field[2]
16096 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16097 \$ac_cs_awk_read_file
16098 next
16099 }
16100 }
16101 print line
16102}
16103\$ac_cs_awk_pipe_fini
16104_ACAWK
16105_ACEOF
16106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16108 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16109else
16110 cat
d0ac1c44
SM
16111fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16112 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
16113_ACEOF
16114
d0ac1c44
SM
16115# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16116# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16117# trailing colons and then remove the whole line if VPATH becomes empty
16118# (actually we leave an empty line to preserve line numbers).
16119if test "x$srcdir" = x.; then
d0ac1c44
SM
16120 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16121h
16122s///
16123s/^/:/
16124s/[ ]*$/:/
16125s/:\$(srcdir):/:/g
16126s/:\${srcdir}:/:/g
16127s/:@srcdir@:/:/g
16128s/^:*//
81ecdfbb 16129s/:*$//
d0ac1c44
SM
16130x
16131s/\(=[ ]*\).*/\1/
16132G
16133s/\n//
81ecdfbb
RW
16134s/^[^=]*=[ ]*$//
16135}'
16136fi
c6b750e1 16137
81ecdfbb
RW
16138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16139fi # test -n "$CONFIG_FILES"
c6b750e1 16140
c6b750e1 16141
81ecdfbb
RW
16142eval set X " :F $CONFIG_FILES "
16143shift
16144for ac_tag
16145do
16146 case $ac_tag in
16147 :[FHLC]) ac_mode=$ac_tag; continue;;
16148 esac
16149 case $ac_mode$ac_tag in
16150 :[FHL]*:*);;
d0ac1c44 16151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16152 :[FH]-) ac_tag=-:-;;
16153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16154 esac
16155 ac_save_IFS=$IFS
16156 IFS=:
16157 set x $ac_tag
16158 IFS=$ac_save_IFS
16159 shift
16160 ac_file=$1
16161 shift
252b5132 16162
81ecdfbb
RW
16163 case $ac_mode in
16164 :L) ac_source=$1;;
16165 :[FH])
16166 ac_file_inputs=
16167 for ac_f
16168 do
16169 case $ac_f in
d0ac1c44 16170 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16171 *) # Look for the file first in the build tree, then in the source tree
16172 # (if the path is not absolute). The absolute path cannot be DOS-style,
16173 # because $ac_f cannot contain `:'.
16174 test -f "$ac_f" ||
16175 case $ac_f in
16176 [\\/$]*) false;;
16177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16178 esac ||
d0ac1c44 16179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16180 esac
16181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16182 as_fn_append ac_file_inputs " '$ac_f'"
16183 done
c6b750e1 16184
81ecdfbb
RW
16185 # Let's still pretend it is `configure' which instantiates (i.e., don't
16186 # use $as_me), people would be surprised to read:
16187 # /* config.h. Generated by config.status. */
16188 configure_input='Generated from '`
16189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16190 `' by configure.'
16191 if test x"$ac_file" != x-; then
16192 configure_input="$ac_file. $configure_input"
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16194$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16195 fi
81ecdfbb
RW
16196 # Neutralize special characters interpreted by sed in replacement strings.
16197 case $configure_input in #(
16198 *\&* | *\|* | *\\* )
16199 ac_sed_conf_input=`$as_echo "$configure_input" |
16200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16201 *) ac_sed_conf_input=$configure_input;;
16202 esac
cac3d6c4 16203
81ecdfbb 16204 case $ac_tag in
d0ac1c44
SM
16205 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16207 esac
16208 ;;
a0da8069 16209 esac
252b5132 16210
81ecdfbb 16211 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16213 X"$ac_file" : 'X\(//\)[^/]' \| \
16214 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16216$as_echo X"$ac_file" |
16217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16218 s//\1/
16219 q
16220 }
16221 /^X\(\/\/\)[^/].*/{
16222 s//\1/
16223 q
16224 }
16225 /^X\(\/\/\)$/{
16226 s//\1/
16227 q
16228 }
16229 /^X\(\/\).*/{
16230 s//\1/
16231 q
16232 }
16233 s/.*/./; q'`
16234 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16235 ac_builddir=.
252b5132 16236
81ecdfbb
RW
16237case "$ac_dir" in
16238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16239*)
16240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16241 # A ".." for each directory in $ac_dir_suffix.
16242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16243 case $ac_top_builddir_sub in
16244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16246 esac ;;
16247esac
16248ac_abs_top_builddir=$ac_pwd
16249ac_abs_builddir=$ac_pwd$ac_dir_suffix
16250# for backward compatibility:
16251ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16252
16253case $srcdir in
81ecdfbb 16254 .) # We are building in place.
c6b750e1 16255 ac_srcdir=.
81ecdfbb
RW
16256 ac_top_srcdir=$ac_top_builddir_sub
16257 ac_abs_top_srcdir=$ac_pwd ;;
16258 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16259 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16260 ac_top_srcdir=$srcdir
16261 ac_abs_top_srcdir=$srcdir ;;
16262 *) # Relative name.
16263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16264 ac_top_srcdir=$ac_top_build_prefix$srcdir
16265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16266esac
81ecdfbb 16267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16268
252b5132 16269
81ecdfbb
RW
16270 case $ac_mode in
16271 :F)
16272 #
16273 # CONFIG_FILE
16274 #
c6b750e1
DJ
16275
16276 case $INSTALL in
16277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16279 esac
81ecdfbb 16280_ACEOF
252b5132 16281
81ecdfbb
RW
16282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16283# If the template does not know about datarootdir, expand it.
16284# FIXME: This hack should be removed a few years after 2.60.
16285ac_datarootdir_hack=; ac_datarootdir_seen=
16286ac_sed_dataroot='
16287/datarootdir/ {
16288 p
16289 q
16290}
16291/@datadir@/p
16292/@docdir@/p
16293/@infodir@/p
16294/@localedir@/p
16295/@mandir@/p'
16296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16297*datarootdir*) ac_datarootdir_seen=yes;;
16298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16301_ACEOF
81ecdfbb
RW
16302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16303 ac_datarootdir_hack='
16304 s&@datadir@&$datadir&g
16305 s&@docdir@&$docdir&g
16306 s&@infodir@&$infodir&g
16307 s&@localedir@&$localedir&g
16308 s&@mandir@&$mandir&g
16309 s&\\\${datarootdir}&$datarootdir&g' ;;
16310esac
16311_ACEOF
16312
16313# Neutralize VPATH when `$srcdir' = `.'.
16314# Shell code in configure.ac might set extrasub.
16315# FIXME: do we really want to maintain this feature?
16316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16318$extrasub
16319_ACEOF
81ecdfbb 16320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16321:t
16322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16323s|@configure_input@|$ac_sed_conf_input|;t t
16324s&@top_builddir@&$ac_top_builddir_sub&;t t
16325s&@top_build_prefix@&$ac_top_build_prefix&;t t
16326s&@srcdir@&$ac_srcdir&;t t
16327s&@abs_srcdir@&$ac_abs_srcdir&;t t
16328s&@top_srcdir@&$ac_top_srcdir&;t t
16329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16330s&@builddir@&$ac_builddir&;t t
16331s&@abs_builddir@&$ac_abs_builddir&;t t
16332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16333s&@INSTALL@&$ac_INSTALL&;t t
16334$ac_datarootdir_hack
16335"
16336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16337if $ac_cs_awk_getline; then
d0ac1c44 16338 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16339else
d0ac1c44
SM
16340 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16341fi \
16342 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16343
16344test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16345 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16347 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16349which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16350$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16351which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16352
d0ac1c44 16353 rm -f "$ac_tmp/stdin"
81ecdfbb 16354 case $ac_file in
d0ac1c44
SM
16355 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16356 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16357 esac \
d0ac1c44 16358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16359 ;;
c148b4cb 16360
c148b4cb 16361
c148b4cb 16362
81ecdfbb
RW
16363 esac
16364
06a51eac
RW
16365
16366 case $ac_file$ac_mode in
16367 "Makefile":F) sed "$extrasub_build" Makefile |
16368 sed "$extrasub_host" |
16369 sed "$extrasub_target" > mf$$
16370 mv -f mf$$ Makefile ;;
16371
16372 esac
81ecdfbb
RW
16373done # for ac_tag
16374
16375
16376as_fn_exit 0
c6b750e1 16377_ACEOF
c6b750e1
DJ
16378ac_clean_files=$ac_clean_files_save
16379
81ecdfbb 16380test $ac_write_fail = 0 ||
d0ac1c44 16381 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16382
c6b750e1
DJ
16383
16384# configure is writing to config.log, and then calls config.status.
16385# config.status does its own redirection, appending to config.log.
16386# Unfortunately, on DOS this fails, as config.log is still kept open
16387# by configure, so config.status won't be able to write to it; its
16388# output is simply discarded. So we exec the FD to /dev/null,
16389# effectively closing config.log, so it can be properly (re)opened and
16390# appended to by config.status. When coming back to configure, we
16391# need to make the FD available again.
16392if test "$no_create" != yes; then
16393 ac_cs_success=:
16394 ac_config_status_args=
16395 test "$silent" = yes &&
16396 ac_config_status_args="$ac_config_status_args --quiet"
16397 exec 5>/dev/null
16398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16399 exec 5>>config.log
16400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16401 # would make configure fail if this is the last instruction.
d0ac1c44 16402 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16403fi
16404if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16406$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16407fi
c148b4cb 16408