]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
gdb: Do not interrupt atomic sequences for ARC
[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* \
bf41f30d 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
93f9b408 3028 case "${target}" in
6d26190c 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
e6de499b 3035 ENABLE_GOLD=yes
93f9b408
ILT
3036 ;;
3037 esac
e6de499b
NC
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
d0ac1c44 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3044 ;;
c7791212
NC
3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
d3b50760 3057 if test x${default_ld} != x; then
d0ac1c44 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
d0ac1c44 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3072 ;;
3073esac
93f9b408 3074
edeefb67
L
3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
a0da8069 3090# Configure extra directories which are host specific
252b5132 3091
a0da8069
NN
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
252b5132 3096
59f7ec45
HPN
3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
c6b750e1 3101# Remove more programs from consideration, based on the host or
a0da8069
NN
3102# target this usually means that a port of the program doesn't
3103# exist yet.
252b5132 3104
a0da8069 3105case "${host}" in
3516a403 3106 i[3456789]86-*-msdosdjgpp*)
6a608608 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3108 ;;
a0da8069 3109esac
252b5132 3110
4b1cb4fe 3111
89a1e9c3
PB
3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
81ecdfbb
RW
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3140else
3141 ENABLE_LIBADA=yes
81ecdfbb
RW
3142fi
3143
a2592b1b 3144if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3145 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3146fi
3147
81ecdfbb
RW
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3151else
3152 ENABLE_LIBSSP=yes
81ecdfbb
RW
3153fi
3154
5f128533 3155
f66a9a70
L
3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165fi
3166
3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
d0ac1c44 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3178esac
3179else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
f66a9a70
L
3201fi
3202
1b6c0831
L
3203
3204
68996839 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3206if test x$enable_libgomp = x ; then
b3ded179 3207 case "${target}" in
29383458 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3209 ;;
5b806d27 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3211 ;;
2479f722 3212 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
68996839
NC
3216 nvptx*-*-*)
3217 ;;
b3ded179
PB
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
a6df5a19 3222fi
b3ded179 3223
7ec59b9e
L
3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
1b6c0831
L
3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
d32e2926
RH
3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266$as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277 fi
3278 fi
3279fi
3280
5286fdef
L
3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
95e43135
JBG
3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
1b6c0831 3319
bf41f30d
NC
3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
1b6c0831
L
3340
3341
1488e230
DE
3342# Disable libquadmath for some systems.
3343case "${target}" in
5286fdef
L
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
1488e230
DE
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
065a5627
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
c5f5c3c2 3357 # No hosted I/O support.
065a5627
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
99c513f6 3363 rl78-*-*)
202e2356
NC
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
99c513f6
DD
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
1b6c0831
L
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
065a5627
JM
3373esac
3374
065a5627 3375# Disable libstdc++-v3 for some systems.
f66a9a70
L
3376# Allow user to override this if they pass --enable-libstdc++-v3
3377if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
969b1713
L
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
f66a9a70
L
3393 esac
3394fi
065a5627
JM
3395
3396# Disable Fortran for some systems.
3397case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3401 ;;
3402esac
3403
05a13254 3404# Disable libffi for some systems.
0827f9a6 3405case "${target}" in
9863d716
JM
3406 powerpc-*-darwin*)
3407 ;;
3408 i[3456789]86-*-darwin*)
3409 ;;
3410 x86_64-*-darwin[912]*)
3411 ;;
3412 *-*-darwin*)
05a13254 3413 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3414 ;;
9863d716 3415 *-*-netware*)
05a13254
NC
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-phoenix*)
3419 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3420 ;;
3421 *-*-rtems*)
05a13254 3422 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3423 ;;
3424 *-*-tpf*)
05a13254 3425 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3426 ;;
3427 *-*-uclinux*)
05a13254 3428 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3429 ;;
3430 *-*-vxworks*)
05a13254
NC
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 aarch64*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3435 ;;
9863d716 3436 alpha*-*-*vms*)
05a13254 3437 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3438 ;;
1b6c0831 3439 arm*-*-freebsd*)
05a13254 3440 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3441 ;;
0827f9a6 3442 arm-wince-pe)
05a13254 3443 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3444 ;;
9863d716 3445 arm*-*-symbianelf*)
05a13254 3446 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3447 ;;
9863d716 3448 cris-*-* | crisv32-*-*)
9863d716
JM
3449 case "${target}" in
3450 *-*-linux*)
3451 ;;
3452 *) # See PR46792 regarding target-libffi.
05a13254 3453 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3454 esac
3455 ;;
82ae827f 3456 hppa*64*-*-hpux*)
05a13254 3457 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3458 ;;
3459 hppa*-hp-hpux11*)
3460 ;;
82ae827f 3461 hppa*-*-hpux*)
05a13254 3462 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3463 ;;
9863d716 3464 ia64*-*-*vms*)
05a13254 3465 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3466 ;;
9863d716 3467 i[3456789]86-w64-mingw*)
05a13254 3468 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3469 ;;
3470 i[3456789]86-*-mingw*)
05a13254 3471 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3472 ;;
3473 x86_64-*-mingw*)
05a13254 3474 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3475 ;;
9863d716 3476 mmix-*-*)
05a13254 3477 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3478 ;;
3479 powerpc-*-aix*)
9863d716 3480 ;;
9863d716 3481 rs6000-*-aix*)
9863d716 3482 ;;
3f8107ab 3483 ft32-*-*)
05a13254 3484 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3485 ;;
9863d716 3486 *-*-lynxos*)
05a13254 3487 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3488 ;;
9863d716
JM
3489esac
3490
1b6c0831
L
3491# Disable the go frontend on systems where it is known to not work. Please keep
3492# this in sync with contrib/config-list.mk.
3493case "${target}" in
bf41f30d 3494*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3495 unsupported_languages="$unsupported_languages go"
3496 ;;
3497esac
3498
919adfe8
TT
3499# Only allow gdbserver on some systems.
3500if test -d ${srcdir}/gdbserver; then
3501 if test x$enable_gdbserver = x; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3503$as_echo_n "checking for gdbserver support... " >&6; }
3504 if (srcdir=${srcdir}/gdbserver; \
3505 . ${srcdir}/configure.srv; \
3506 test -n "$UNSUPPORTED")
3507 then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510 noconfigdirs="$noconfigdirs gdbserver"
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513$as_echo "yes" >&6; }
3514 fi
3515 fi
3516fi
3517
a413f71a
ILT
3518# Disable libgo for some systems where it is known to not work.
3519# For testing, you can easily override this with --enable-libgo.
3520if test x$enable_libgo = x; then
3521 case "${target}" in
3522 *-*-darwin*)
3523 # PR 46986
3524 noconfigdirs="$noconfigdirs target-libgo"
3525 ;;
3526 *-*-cygwin* | *-*-mingw*)
3527 noconfigdirs="$noconfigdirs target-libgo"
3528 ;;
a413f71a
ILT
3529 esac
3530fi
3531
691bb5a1
DD
3532# Default libgloss CPU subdirectory.
3533libgloss_dir="$target_cpu"
4b1cb4fe 3534
ff46fb8f
JM
3535case "${target}" in
3536 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3537 libgloss_dir=wince
3538 ;;
f1dd87fc
YZ
3539 aarch64*-*-* )
3540 libgloss_dir=aarch64
3541 ;;
ff46fb8f
JM
3542 arm*-*-*)
3543 libgloss_dir=arm
3544 ;;
3545 cris-*-* | crisv32-*-*)
3546 libgloss_dir=cris
3547 ;;
3548 hppa*-*-*)
3549 libgloss_dir=pa
3550 ;;
3551 i[3456789]86-*-*)
3552 libgloss_dir=i386
3553 ;;
3554 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3555 libgloss_dir=m68hc11
3556 ;;
3557 m68*-*-* | fido-*-*)
3558 libgloss_dir=m68k
3559 ;;
3560 mips*-*-*)
3561 libgloss_dir=mips
3562 ;;
3563 powerpc*-*-*)
3564 libgloss_dir=rs6000
3565 ;;
3566 sparc*-*-*)
3567 libgloss_dir=sparc
3568 ;;
3569esac
3570
c7e4b184 3571# Disable newlib and libgloss for various target OSes.
a0da8069 3572case "${target}" in
c7e4b184
JM
3573 alpha*-dec-osf*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 i[3456789]86-*-linux*)
3577 # This section makes it possible to build newlib natively on linux.
3578 # If we are using a cross compiler then don't configure newlib.
3579 if test x${is_cross_compiler} != xno ; then
3580 noconfigdirs="$noconfigdirs target-newlib"
3581 fi
3582 noconfigdirs="$noconfigdirs target-libgloss"
3583 # If we are not using a cross compiler, do configure newlib.
3584 # Note however, that newlib will only be configured in this situation
3585 # if the --with-newlib option has been given, because otherwise
3586 # 'target-newlib' will appear in skipdirs.
3587 ;;
3588 i[3456789]86-*-rdos*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 sparc-*-sunos4*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-aix*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-beos*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
a0da8069 3603 *-*-chorusos)
b2f14e4a 3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3605 ;;
c7e4b184
JM
3606 *-*-dragonfly*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-freebsd*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-lynxos*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-netbsd*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-netware*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-tpf*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-uclinux*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-vxworks*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636esac
3637
3638case "${target}" in
3639 *-*-chorusos)
3640 ;;
f075eb5e
TG
3641 aarch64-*-darwin*)
3642 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3643 noconfigdirs="$noconfigdirs sim target-rda"
3644 ;;
3645 arm-*-darwin*)
3646 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3647 noconfigdirs="$noconfigdirs sim target-rda"
3648 ;;
24741ab2 3649 powerpc-*-darwin*)
9d39db92 3650 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3651 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3652 ;;
85bd1942
TG
3653 i[3456789]86-*-darwin*)
3654 noconfigdirs="$noconfigdirs ld gprof"
3655 noconfigdirs="$noconfigdirs sim target-rda"
3656 ;;
e8a5fa9c 3657 x86_64-*-darwin[912]*)
652dec25
TG
3658 noconfigdirs="$noconfigdirs ld gas gprof"
3659 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3660 ;;
04d1ab34 3661 *-*-darwin*)
d320aacb 3662 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3663 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3664 ;;
5b806d27 3665 *-*-dragonfly*)
5b806d27 3666 ;;
de0b4a87 3667 *-*-freebsd*)
4b1cb4fe
DD
3668 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3669 && test -f /usr/local/include/gmp.h; then
3670 with_gmp=/usr/local
3671 fi
4b1cb4fe 3672 ;;
f8a495c8
NC
3673 *-*-kaos*)
3674 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 ;;
a0da8069 3677 *-*-netbsd*)
a0da8069 3678 ;;
2a3124ca 3679 *-*-netware*)
a0da8069 3680 ;;
05a13254
NC
3681 *-*-phoenix*)
3682 noconfigdirs="$noconfigdirs target-libgloss"
3683 ;;
a0da8069 3684 *-*-rtems*)
9863d716 3685 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3686 ;;
1587117a
EC
3687 # The tpf target doesn't support gdb yet.
3688 *-*-tpf*)
c7e4b184 3689 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3690 ;;
c1968181 3691 *-*-uclinux*)
c7e4b184 3692 noconfigdirs="$noconfigdirs target-rda"
c1968181 3693 ;;
a0da8069 3694 *-*-vxworks*)
a0da8069
NN
3695 ;;
3696 alpha*-dec-osf*)
3697 # ld works, but does not support shared libraries.
a0da8069 3698 # gas doesn't generate exception information.
c7e4b184 3699 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3700 ;;
3701 alpha*-*-*vms*)
9863d716 3702 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3703 ;;
a0da8069
NN
3704 alpha*-*-*)
3705 # newlib is not 64 bit ready
9863d716 3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3707 ;;
a0da8069 3708 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3709 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3710 ;;
05a13254
NC
3711 arc*-*-*)
3712 noconfigdirs="$noconfigdirs sim"
a0da8069 3713 ;;
a0da8069 3714 arm-*-pe*)
9863d716 3715 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3716 ;;
a0da8069 3717 arm-*-riscix*)
b2f14e4a 3718 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3719 ;;
8e71395b
L
3720 avr-*-*)
3721 if test x${with_avrlibc} != xno; then
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 fi
3724 ;;
a0da8069 3725 c4x-*-* | tic4x-*-*)
b2f14e4a 3726 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3727 ;;
b2f14e4a
JM
3728 tic54x-*-*)
3729 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3730 ;;
a0da8069 3731 d10v-*-*)
b2f14e4a 3732 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3733 ;;
3734 d30v-*-*)
b2f14e4a 3735 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3736 ;;
3737 fr30-*-elf*)
9863d716 3738 noconfigdirs="$noconfigdirs gdb"
a0da8069 3739 ;;
3f8107ab
AM
3740 ft32-*-*)
3741 noconfigdirs="$noconfigdirs target-rda gprof"
3742 ;;
20135e4c 3743 moxie-*-*)
10b8fe5e 3744 noconfigdirs="$noconfigdirs"
20135e4c 3745 ;;
a0da8069 3746 h8300*-*-*)
9863d716 3747 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3748 ;;
3749 h8500-*-*)
b2f14e4a 3750 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3751 ;;
caeba88f 3752 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3753 ;;
5569a85f
JDA
3754 hppa*64*-*-hpux*)
3755 noconfigdirs="$noconfigdirs gdb"
3756 ;;
3757 hppa*-*-hpux11*)
3758 noconfigdirs="$noconfigdirs gdb ld"
3759 ;;
93cc359e 3760 hppa*64*-*-linux*)
a0da8069 3761 ;;
f0ff0f90 3762 hppa*-*-linux*)
5dcac624 3763 ;;
a0da8069 3764 hppa*-*-*elf* | \
a0da8069
NN
3765 hppa*-*-lites* | \
3766 hppa*-*-openbsd* | \
3767 hppa*64*-*-*)
4f0ef2d8 3768 ;;
691bb5a1 3769 hppa*-*-pro*)
691bb5a1 3770 ;;
a0da8069 3771 hppa*-*-*)
9863d716 3772 noconfigdirs="$noconfigdirs ld"
a0da8069 3773 ;;
b07c2aad 3774 i960-*-*)
b2f14e4a 3775 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3776 ;;
a0da8069
NN
3777 ia64*-*-elf*)
3778 # No gdb support yet.
0377a422 3779 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3780 ;;
3781 ia64*-**-hpux*)
92c9a463 3782 # No ld support yet.
5569a85f 3783 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3784 ;;
19e99079 3785 ia64*-*-*vms*)
7ec59b9e
L
3786 # No ld support yet.
3787 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3788 ;;
1f53ca9a 3789 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3790 ;;
3791 i[3456789]86-*-mingw*)
45055374 3792 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3793 ;;
a0da8069
NN
3794 *-*-cygwin*)
3795 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3796 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3797 # always build newlib if winsup directory is present.
45055374 3798 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3799 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3800 elif test -d "$srcdir/newlib"; then
45055374 3801 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3802 fi
c6b750e1 3803 ;;
ec11bdc6 3804 i[3456789]86-*-pe)
782cb41f 3805 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3806 ;;
ec11bdc6 3807 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3808 # The linker does not yet know about weak symbols in COFF,
3809 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3810 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3811 ;;
ec11bdc6 3812 i[3456789]86-*-sco*)
b2f14e4a 3813 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3814 ;;
cff32a7c 3815 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
ec11bdc6 3818 i[3456789]86-*-sysv4*)
b2f14e4a 3819 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3820 ;;
ec11bdc6 3821 i[3456789]86-*-beos*)
c7e4b184 3822 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3823 ;;
b59bea8a 3824 i[3456789]86-*-rdos*)
c7e4b184 3825 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3826 ;;
a0da8069 3827 mmix-*-*)
9863d716 3828 noconfigdirs="$noconfigdirs gdb"
a0da8069 3829 ;;
4970f871 3830 mt-*-*)
cdb9b172
AH
3831 noconfigdirs="$noconfigdirs sim"
3832 ;;
1063beb5
FT
3833 nfp-*-*)
3834 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3835 noconfigdirs="$noconfigdirs $target_libraries"
3836 ;;
11104e42
SC
3837 pdp11-*-*)
3838 noconfigdirs="$noconfigdirs gdb gprof"
3839 ;;
a0da8069
NN
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
c7e4b184 3842 noconfigdirs="$noconfigdirs gprof"
a0da8069 3843 ;;
93cc359e 3844 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3845 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849 ;;
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
b2f14e4a 3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3853 ;;
3854 powerpc-*-beos*)
c7e4b184 3855 noconfigdirs="$noconfigdirs gdb"
a0da8069 3856 ;;
a0da8069 3857 rs6000-*-lynxos*)
c7e4b184 3858 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3859 ;;
3860 rs6000-*-aix*)
c7e4b184 3861 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3862 ;;
3863 rs6000-*-*)
9863d716 3864 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3865 ;;
3866 m68k-apollo-*)
b2f14e4a 3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3868 ;;
25a07265 3869 microblaze*)
9863d716 3870 noconfigdirs="$noconfigdirs gprof"
25a07265 3871 ;;
a9d58c06 3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3875 fi
5bd8be13 3876 ;;
a0da8069 3877 mips*-*-irix5*)
b2f14e4a 3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3879 ;;
3880 mips*-*-irix6*)
9863d716 3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3882 ;;
a0da8069 3883 mips*-*-bsd*)
e8044f35 3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3885 ;;
a0da8069 3886 mips*-*-linux*)
a0da8069 3887 ;;
e8044f35
RS
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3891 ;;
a0da8069 3892 mips*-*-*)
9863d716 3893 noconfigdirs="$noconfigdirs gprof"
a0da8069 3894 ;;
1b6c0831 3895 nvptx*-*-*)
1b6c0831
L
3896 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3897 ;;
05a13254 3898 sh-*-*)
e8a5fa9c
RW
3899 case "${target}" in
3900 sh*-*-elf)
9863d716 3901 ;;
e8a5fa9c 3902 *)
9863d716 3903 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3904 esac
a0da8069 3905 ;;
a0da8069 3906 sparc-*-sunos4*)
c7e4b184 3907 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3908 use_gnu_ld=no
3909 fi
3910 ;;
619a3713 3911 tic6x-*-*)
40ae9136 3912 noconfigdirs="$noconfigdirs sim"
619a3713 3913 ;;
05a13254 3914 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3915 noconfigdirs="$noconfigdirs sim"
3916 ;;
a0da8069 3917 v810-*-*)
b2f14e4a 3918 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3919 ;;
3920 vax-*-*)
9863d716 3921 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3922 ;;
b29d2641
MR
3923 wasm32-*-*)
3924 noconfigdirs="$noconfigdirs ld"
3925 ;;
a0da8069 3926esac
252b5132 3927
a0da8069
NN
3928# If we aren't building newlib, then don't build libgloss, since libgloss
3929# depends upon some newlib header files.
3930case "${noconfigdirs}" in
3931 *target-libgloss*) ;;
3932 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3933esac
3934
a0da8069 3935# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3936host_makefile_frag=/dev/null
3937if test -d ${srcdir}/config ; then
3938case "${host}" in
ec11bdc6 3939 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3940 host_makefile_frag="config/mh-djgpp"
3941 ;;
3942 *-cygwin*)
e33b51a6 3943
81ecdfbb
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3945$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3946echo a >cygwin-cat-check
1f53ca9a 3947if test `cat cygwin-cat-check` = a ; then
8ade07e9 3948 rm cygwin-cat-check
81ecdfbb
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950$as_echo "yes" >&6; }
e33b51a6 3951else
8ade07e9 3952 rm cygwin-cat-check
81ecdfbb
RW
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
d0ac1c44 3955 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3956 Please either mount the build directory in binary mode or run the following
3957 commands before running any configure script:
3958set -o igncr
3959export SHELLOPTS
81ecdfbb 3960 " "$LINENO" 5
e33b51a6 3961fi
e33b51a6 3962
a0da8069
NN
3963 host_makefile_frag="config/mh-cygwin"
3964 ;;
8a1599ab 3965 *-mingw*)
84e7906e 3966 host_makefile_frag="config/mh-mingw"
2d1e8239 3967 ;;
ce6c656d
L
3968 alpha*-linux*)
3969 host_makefile_frag="config/mh-alpha-linux"
3970 ;;
da888c87 3971 hppa*-hp-hpux10*)
da888c87 3972 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3973 ;;
3516a403 3974 hppa*-hp-hpux*)
da888c87
PB
3975 host_makefile_frag="config/mh-pa"
3976 ;;
3977 hppa*-*)
3978 host_makefile_frag="config/mh-pa"
3979 ;;
e552509b
ILT
3980 *-*-darwin*)
3981 host_makefile_frag="config/mh-darwin"
0df3d27f 3982 ;;
f6d183c0
PB
3983 powerpc-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
3986 rs6000-*-aix*)
3987 host_makefile_frag="config/mh-ppc-aix"
3988 ;;
a0da8069
NN
3989esac
3990fi
3991
9e07f89d 3992if test "${build}" != "${host}" ; then
1576798e
PB
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3997 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3998 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3999 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4000 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4001 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4002 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4003 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4004 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4005else
4006 AR_FOR_BUILD="\$(AR)"
4007 AS_FOR_BUILD="\$(AS)"
512b7dfb 4008 CC_FOR_BUILD="\$(CC)"
1576798e 4009 CXX_FOR_BUILD="\$(CXX)"
1576798e 4010 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4011 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
4012 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4013 LD_FOR_BUILD="\$(LD)"
4014 NM_FOR_BUILD="\$(NM)"
4015 RANLIB_FOR_BUILD="\$(RANLIB)"
4016 WINDRES_FOR_BUILD="\$(WINDRES)"
4017 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4018fi
4019
4020ac_ext=c
c6b750e1
DJ
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4030if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4031 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
81ecdfbb 4041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4045 break 2
4046 fi
4047done
81ecdfbb
RW
4048 done
4049IFS=$as_save_IFS
c6b750e1
DJ
4050
4051fi
4052fi
4053CC=$ac_cv_prog_CC
4054if test -n "$CC"; then
81ecdfbb
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056$as_echo "$CC" >&6; }
c6b750e1 4057else
81ecdfbb
RW
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
c6b750e1
DJ
4060fi
4061
81ecdfbb 4062
c6b750e1
DJ
4063fi
4064if test -z "$ac_cv_prog_CC"; then
4065 ac_ct_CC=$CC
6a9cf61e 4066 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4067set dummy gcc; ac_word=$2
81ecdfbb
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4070if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4071 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4072else
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
81ecdfbb 4081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4083 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4085 break 2
4086 fi
4087done
81ecdfbb
RW
4088 done
4089IFS=$as_save_IFS
c6b750e1
DJ
4090
4091fi
4092fi
4093ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4097else
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
c6b750e1
DJ
4100fi
4101
81ecdfbb
RW
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106yes:)
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109ac_tool_warned=yes ;;
4110esac
4111 CC=$ac_ct_CC
4112 fi
c6b750e1
DJ
4113else
4114 CC="$ac_cv_prog_CC"
4115fi
4116
4117if test -z "$CC"; then
81ecdfbb
RW
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4120set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4123if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4124 $as_echo_n "(cached) " >&6
9e07f89d
NN
4125else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128else
c6b750e1
DJ
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
81ecdfbb 4134 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4138 break 2
4139 fi
4140done
81ecdfbb
RW
4141 done
4142IFS=$as_save_IFS
c6b750e1 4143
9e07f89d
NN
4144fi
4145fi
c6b750e1 4146CC=$ac_cv_prog_CC
9e07f89d 4147if test -n "$CC"; then
81ecdfbb
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149$as_echo "$CC" >&6; }
c6b750e1 4150else
81ecdfbb
RW
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152$as_echo "no" >&6; }
c6b750e1
DJ
4153fi
4154
c6b750e1 4155
81ecdfbb 4156 fi
c6b750e1 4157fi
9e07f89d
NN
4158if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160set dummy cc; ac_word=$2
81ecdfbb
RW
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4163if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4164 $as_echo_n "(cached) " >&6
9e07f89d
NN
4165else
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4168else
9e07f89d 4169 ac_prog_rejected=no
c6b750e1
DJ
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
81ecdfbb 4175 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4179 continue
4180 fi
4181 ac_cv_prog_CC="cc"
81ecdfbb 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4183 break 2
4184 fi
4185done
81ecdfbb
RW
4186 done
4187IFS=$as_save_IFS
c6b750e1 4188
9e07f89d
NN
4189if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4192 shift
c6b750e1 4193 if test $# != 0; then
9e07f89d
NN
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4197 shift
c6b750e1 4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4199 fi
4200fi
4201fi
4202fi
c6b750e1 4203CC=$ac_cv_prog_CC
9e07f89d 4204if test -n "$CC"; then
81ecdfbb
RW
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206$as_echo "$CC" >&6; }
9e07f89d 4207else
81ecdfbb
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209$as_echo "no" >&6; }
9e07f89d
NN
4210fi
4211
81ecdfbb 4212
c6b750e1
DJ
4213fi
4214if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
81ecdfbb 4216 for ac_prog in cl.exe
c6b750e1
DJ
4217 do
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4222if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4223 $as_echo_n "(cached) " >&6
9e07f89d
NN
4224else
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4227else
c6b750e1
DJ
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
81ecdfbb 4233 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4237 break 2
376a0e54 4238 fi
c6b750e1 4239done
81ecdfbb
RW
4240 done
4241IFS=$as_save_IFS
cac3d6c4 4242
c6b750e1
DJ
4243fi
4244fi
4245CC=$ac_cv_prog_CC
4246if test -n "$CC"; then
81ecdfbb
RW
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248$as_echo "$CC" >&6; }
cac3d6c4 4249else
81ecdfbb
RW
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
9e07f89d 4252fi
cac3d6c4 4253
81ecdfbb 4254
c6b750e1
DJ
4255 test -n "$CC" && break
4256 done
cac3d6c4 4257fi
c6b750e1
DJ
4258if test -z "$CC"; then
4259 ac_ct_CC=$CC
81ecdfbb 4260 for ac_prog in cl.exe
c6b750e1
DJ
4261do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4266if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4267 $as_echo_n "(cached) " >&6
cac3d6c4 4268else
c6b750e1
DJ
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4271else
c6b750e1
DJ
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
81ecdfbb 4277 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4279 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4281 break 2
4282 fi
4283done
81ecdfbb
RW
4284 done
4285IFS=$as_save_IFS
c6b750e1 4286
cac3d6c4
CM
4287fi
4288fi
c6b750e1
DJ
4289ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4293else
81ecdfbb
RW
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
cac3d6c4 4296fi
376a0e54 4297
81ecdfbb 4298
c6b750e1
DJ
4299 test -n "$ac_ct_CC" && break
4300done
4301
81ecdfbb
RW
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306yes:)
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309ac_tool_warned=yes ;;
4310esac
4311 CC=$ac_ct_CC
4312 fi
c6b750e1
DJ
4313fi
4314
4315fi
4316
4317
81ecdfbb
RW
4318test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4320as_fn_error $? "no acceptable C compiler found in \$PATH
4321See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4322
4323# Provide some information about the compiler.
81ecdfbb
RW
4324$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325set X $ac_compile
4326ac_compiler=$2
4327for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334$as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4336 ac_status=$?
81ecdfbb
RW
4337 if test -s conftest.err; then
4338 sed '10a\
4339... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
81ecdfbb 4342 fi
d0ac1c44 4343 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346done
c6b750e1 4347
81ecdfbb 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359ac_clean_files_save=$ac_clean_files
d0ac1c44 4360ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4361# Try to create an executable without -o first, disregard a.out.
4362# It will help us diagnose broken compilers, and finding out an intuition
4363# of exeext.
d0ac1c44
SM
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4365$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4366ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4367
4368# The possible output files:
4369ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370
4371ac_rmfiles=
4372for ac_file in $ac_files
4373do
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377 esac
4378done
4379rm -f $ac_rmfiles
4380
4381if { { ac_try="$ac_link_default"
4382case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387$as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
c6b750e1 4389 ac_status=$?
81ecdfbb
RW
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394# in a Makefile. We should not override ac_cv_exeext if it was cached,
4395# so that the user can short-circuit this test for compilers unknown to
4396# Autoconf.
4397for ac_file in $ac_files ''
c6b750e1
DJ
4398do
4399 test -f "$ac_file" || continue
4400 case $ac_file in
81ecdfbb 4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4402 ;;
4403 [ab].out )
4404 # We found the default executable, but exeext='' is most
4405 # certainly right.
4406 break;;
4407 *.* )
81ecdfbb
RW
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409 then :; else
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411 fi
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4416 # actually working.
c6b750e1
DJ
4417 break;;
4418 * )
4419 break;;
4420 esac
4421done
81ecdfbb
RW
4422test "$ac_cv_exeext" = no && ac_cv_exeext=
4423
c6b750e1 4424else
81ecdfbb
RW
4425 ac_file=''
4426fi
81ecdfbb 4427if test -z "$ac_file"; then :
d0ac1c44
SM
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429$as_echo "no" >&6; }
4430$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
81ecdfbb
RW
4433{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4435as_fn_error 77 "C compiler cannot create executables
4436See \`config.log' for more details" "$LINENO" 5; }
4437else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439$as_echo "yes" >&6; }
c6b750e1 4440fi
d0ac1c44
SM
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442$as_echo_n "checking for C compiler default output file name... " >&6; }
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444$as_echo "$ac_file" >&6; }
c6b750e1 4445ac_exeext=$ac_cv_exeext
c6b750e1 4446
d0ac1c44 4447rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4448ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450$as_echo_n "checking for suffix of executables... " >&6; }
4451if { { ac_try="$ac_link"
4452case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457$as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_link") 2>&5
c6b750e1 4459 ac_status=$?
81ecdfbb
RW
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
c6b750e1
DJ
4462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4464# work properly (i.e., refer to `conftest.exe'), while it won't with
4465# `rm'.
4466for ac_file in conftest.exe conftest conftest.*; do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
81ecdfbb 4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4471 break;;
4472 * ) break;;
4473 esac
4474done
4475else
81ecdfbb
RW
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4478as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4479See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4480fi
d0ac1c44 4481rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4483$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4484
4485rm -f conftest.$ac_ext
4486EXEEXT=$ac_cv_exeext
4487ac_exeext=$EXEEXT
d0ac1c44
SM
4488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h. */
4490#include <stdio.h>
4491int
4492main ()
4493{
4494FILE *f = fopen ("conftest.out", "w");
4495 return ferror (f) || fclose (f) != 0;
4496
4497 ;
4498 return 0;
4499}
4500_ACEOF
4501ac_clean_files="$ac_clean_files conftest.out"
4502# Check that the compiler produces executables we can run. If not, either
4503# the compiler is broken, or we cross compile.
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4505$as_echo_n "checking whether we are cross compiling... " >&6; }
4506if test "$cross_compiling" != yes; then
4507 { { ac_try="$ac_link"
4508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
4512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513$as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_link") 2>&5
4515 ac_status=$?
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4518 if { ac_try='./conftest$ac_cv_exeext'
4519 { { case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524$as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_try") 2>&5
4526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; }; then
4529 cross_compiling=no
4530 else
4531 if test "$cross_compiling" = maybe; then
4532 cross_compiling=yes
4533 else
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error $? "cannot run C compiled programs.
4537If you meant to cross compile, use \`--host'.
4538See \`config.log' for more details" "$LINENO" 5; }
4539 fi
4540 fi
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4543$as_echo "$cross_compiling" >&6; }
4544
4545rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4546ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4548$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4549if ${ac_cv_objext+:} false; then :
81ecdfbb 4550 $as_echo_n "(cached) " >&6
c6b750e1 4551else
81ecdfbb 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4553/* end confdefs.h. */
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.o conftest.obj
81ecdfbb
RW
4564if { { ac_try="$ac_compile"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_compile") 2>&5
c6b750e1 4572 ac_status=$?
81ecdfbb
RW
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 for ac_file in conftest.o conftest.obj conftest.*; do
4576 test -f "$ac_file" || continue;
c6b750e1 4577 case $ac_file in
81ecdfbb 4578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4580 break;;
4581 esac
4582done
cac3d6c4 4583else
81ecdfbb 4584 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
81ecdfbb
RW
4587{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4589as_fn_error $? "cannot compute suffix of object files: cannot compile
4590See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4591fi
c6b750e1
DJ
4592rm -f conftest.$ac_cv_objext conftest.$ac_ext
4593fi
81ecdfbb
RW
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4595$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4596OBJEXT=$ac_cv_objext
4597ac_objext=$OBJEXT
81ecdfbb
RW
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4599$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4600if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4601 $as_echo_n "(cached) " >&6
c6b750e1 4602else
81ecdfbb 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4604/* end confdefs.h. */
4605
4606int
4607main ()
4608{
4609#ifndef __GNUC__
4610 choke me
4611#endif
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
81ecdfbb 4617if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4618 ac_compiler_gnu=yes
4619else
81ecdfbb 4620 ac_compiler_gnu=no
c6b750e1 4621fi
81ecdfbb 4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4623ac_cv_c_compiler_gnu=$ac_compiler_gnu
4624
4625fi
81ecdfbb
RW
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4627$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4628if test $ac_compiler_gnu = yes; then
4629 GCC=yes
4630else
4631 GCC=
4632fi
c6b750e1
DJ
4633ac_test_CFLAGS=${CFLAGS+set}
4634ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4636$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4637if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4638 $as_echo_n "(cached) " >&6
4639else
4640 ac_save_c_werror_flag=$ac_c_werror_flag
4641 ac_c_werror_flag=yes
4642 ac_cv_prog_cc_g=no
4643 CFLAGS="-g"
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4645/* end confdefs.h. */
4646
4647int
4648main ()
4649{
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
81ecdfbb 4655if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4656 ac_cv_prog_cc_g=yes
4657else
81ecdfbb
RW
4658 CFLAGS=""
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h. */
4661
4662int
4663main ()
4664{
4665
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"; then :
4671
4672else
4673 ac_c_werror_flag=$ac_save_c_werror_flag
4674 CFLAGS="-g"
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
cac3d6c4 4677
81ecdfbb
RW
4678int
4679main ()
4680{
4681
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_prog_cc_g=yes
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4690fi
81ecdfbb 4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4692fi
81ecdfbb
RW
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_c_werror_flag=$ac_save_c_werror_flag
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4697$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4698if test "$ac_test_CFLAGS" = set; then
c6b750e1 4699 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4700elif test $ac_cv_prog_cc_g = yes; then
4701 if test "$GCC" = yes; then
4702 CFLAGS="-g -O2"
4703 else
4704 CFLAGS="-g"
4705 fi
4706else
4707 if test "$GCC" = yes; then
4708 CFLAGS="-O2"
4709 else
4710 CFLAGS=
4711 fi
4712fi
81ecdfbb
RW
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4714$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4715if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4716 $as_echo_n "(cached) " >&6
c6b750e1 4717else
81ecdfbb 4718 ac_cv_prog_cc_c89=no
c6b750e1 4719ac_save_CC=$CC
81ecdfbb 4720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4721/* end confdefs.h. */
4722#include <stdarg.h>
4723#include <stdio.h>
d0ac1c44 4724struct stat;
c6b750e1
DJ
4725/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4726struct buf { int x; };
4727FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728static char *e (p, i)
4729 char **p;
4730 int i;
4731{
4732 return p[i];
4733}
4734static char *f (char * (*g) (char **, int), char **p, ...)
4735{
4736 char *s;
4737 va_list v;
4738 va_start (v,p);
4739 s = g (p, va_arg (v,int));
4740 va_end (v);
4741 return s;
4742}
4743
4744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4745 function prototypes and stuff, but not '\xHH' hex character constants.
4746 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4747 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4749 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4750 that's true only with -std. */
c6b750e1
DJ
4751int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4752
81ecdfbb
RW
4753/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754 inside strings and character constants. */
4755#define FOO(x) 'x'
4756int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4757
c6b750e1
DJ
4758int test (int i, double x);
4759struct s1 {int (*f) (int a);};
4760struct s2 {int (*f) (double a);};
4761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762int argc;
4763char **argv;
4764int
4765main ()
4766{
4767return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4768 ;
4769 return 0;
4770}
4771_ACEOF
81ecdfbb
RW
4772for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4774do
4775 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4778fi
81ecdfbb
RW
4779rm -f core conftest.err conftest.$ac_objext
4780 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4781done
81ecdfbb 4782rm -f conftest.$ac_ext
c6b750e1
DJ
4783CC=$ac_save_CC
4784
4785fi
81ecdfbb
RW
4786# AC_CACHE_VAL
4787case "x$ac_cv_prog_cc_c89" in
4788 x)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790$as_echo "none needed" >&6; } ;;
4791 xno)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793$as_echo "unsupported" >&6; } ;;
c6b750e1 4794 *)
81ecdfbb
RW
4795 CC="$CC $ac_cv_prog_cc_c89"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4798esac
81ecdfbb 4799if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4800
c6b750e1
DJ
4801fi
4802
c6b750e1
DJ
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4808
81ecdfbb 4809ac_ext=cpp
18f6b6ee
PB
4810ac_cpp='$CXXCPP $CPPFLAGS'
4811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4814if test -z "$CXX"; then
4815 if test -n "$CCC"; then
4816 CXX=$CCC
4817 else
4818 if test -n "$ac_tool_prefix"; then
4819 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4820 do
4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4825if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4826 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4827else
4828 if test -n "$CXX"; then
4829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
81ecdfbb 4836 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4840 break 2
4841 fi
4842done
81ecdfbb
RW
4843 done
4844IFS=$as_save_IFS
512b7dfb 4845
18f6b6ee
PB
4846fi
4847fi
4848CXX=$ac_cv_prog_CXX
4849if test -n "$CXX"; then
81ecdfbb
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4851$as_echo "$CXX" >&6; }
18f6b6ee 4852else
81ecdfbb
RW
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
18f6b6ee
PB
4855fi
4856
81ecdfbb 4857
18f6b6ee
PB
4858 test -n "$CXX" && break
4859 done
4860fi
4861if test -z "$CXX"; then
4862 ac_ct_CXX=$CXX
81ecdfbb 4863 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4864do
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4869if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4870 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4871else
4872 if test -n "$ac_ct_CXX"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
81ecdfbb 4880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4882 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4884 break 2
512b7dfb 4885 fi
18f6b6ee 4886done
81ecdfbb
RW
4887 done
4888IFS=$as_save_IFS
512b7dfb 4889
18f6b6ee
PB
4890fi
4891fi
4892ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4893if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4895$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4896else
81ecdfbb
RW
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
18f6b6ee
PB
4899fi
4900
81ecdfbb 4901
18f6b6ee
PB
4902 test -n "$ac_ct_CXX" && break
4903done
18f6b6ee 4904
81ecdfbb
RW
4905 if test "x$ac_ct_CXX" = x; then
4906 CXX="g++"
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909yes:)
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912ac_tool_warned=yes ;;
4913esac
4914 CXX=$ac_ct_CXX
4915 fi
18f6b6ee
PB
4916fi
4917
81ecdfbb
RW
4918 fi
4919fi
18f6b6ee 4920# Provide some information about the compiler.
81ecdfbb
RW
4921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4922set X $ac_compile
4923ac_compiler=$2
4924for ac_option in --version -v -V -qversion; do
4925 { { ac_try="$ac_compiler $ac_option >&5"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4933 ac_status=$?
81ecdfbb
RW
4934 if test -s conftest.err; then
4935 sed '10a\
4936... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
81ecdfbb 4939 fi
d0ac1c44 4940 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943done
18f6b6ee 4944
81ecdfbb
RW
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4946$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4947if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4948 $as_echo_n "(cached) " >&6
18f6b6ee 4949else
81ecdfbb 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4951/* end confdefs.h. */
4952
4953int
4954main ()
4955{
4956#ifndef __GNUC__
4957 choke me
4958#endif
4959
4960 ;
4961 return 0;
4962}
4963_ACEOF
81ecdfbb 4964if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4965 ac_compiler_gnu=yes
4966else
81ecdfbb 4967 ac_compiler_gnu=no
18f6b6ee 4968fi
81ecdfbb 4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4971
4972fi
81ecdfbb
RW
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4974$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4975if test $ac_compiler_gnu = yes; then
4976 GXX=yes
4977else
4978 GXX=
4979fi
18f6b6ee
PB
4980ac_test_CXXFLAGS=${CXXFLAGS+set}
4981ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4983$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4984if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4985 $as_echo_n "(cached) " >&6
4986else
4987 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4988 ac_cxx_werror_flag=yes
4989 ac_cv_prog_cxx_g=no
4990 CXXFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4992/* end confdefs.h. */
4993
4994int
4995main ()
4996{
4997
4998 ;
4999 return 0;
5000}
5001_ACEOF
81ecdfbb 5002if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5003 ac_cv_prog_cxx_g=yes
5004else
81ecdfbb
RW
5005 CXXFLAGS=""
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5007/* end confdefs.h. */
81ecdfbb 5008
18f6b6ee
PB
5009int
5010main ()
5011{
81ecdfbb 5012
18f6b6ee
PB
5013 ;
5014 return 0;
5015}
5016_ACEOF
81ecdfbb 5017if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5018
81ecdfbb
RW
5019else
5020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5021 CXXFLAGS="-g"
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5023/* end confdefs.h. */
81ecdfbb 5024
18f6b6ee
PB
5025int
5026main ()
5027{
81ecdfbb 5028
18f6b6ee
PB
5029 ;
5030 return 0;
5031}
5032_ACEOF
81ecdfbb
RW
5033if ac_fn_cxx_try_compile "$LINENO"; then :
5034 ac_cv_prog_cxx_g=yes
18f6b6ee 5035fi
81ecdfbb
RW
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5044$as_echo "$ac_cv_prog_cxx_g" >&6; }
5045if test "$ac_test_CXXFLAGS" = set; then
5046 CXXFLAGS=$ac_save_CXXFLAGS
5047elif test $ac_cv_prog_cxx_g = yes; then
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-g -O2"
5050 else
5051 CXXFLAGS="-g"
5052 fi
5053else
5054 if test "$GXX" = yes; then
5055 CXXFLAGS="-O2"
5056 else
5057 CXXFLAGS=
5058 fi
18f6b6ee 5059fi
18f6b6ee
PB
5060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066
5067# We must set the default linker to the linker used by gcc for the correct
5068# operation of libtool. If LD is not defined and we are using gcc, try to
5069# set the LD default to the ld used by gcc.
5070if test -z "$LD"; then
5071 if test "$GCC" = yes; then
5072 case $build in
5073 *-*-mingw*)
5074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5075 *)
5076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5077 esac
5078 case $gcc_prog_ld in
5079 # Accept absolute paths.
5080 [\\/]* | [A-Za-z]:[\\/]*)
5081 LD="$gcc_prog_ld" ;;
5082 esac
5083 fi
512b7dfb
PB
5084fi
5085
b3676d82
EB
5086# Check whether -static-libstdc++ -static-libgcc is supported.
5087have_static_libs=no
5088if test "$GCC" = yes; then
5089 saved_LDFLAGS="$LDFLAGS"
5090
5091 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5093$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5094 ac_ext=cpp
5095ac_cpp='$CXXCPP $CPPFLAGS'
5096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099
5100
5101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h. */
a882be68
EB
5103
5104#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5105#error -static-libstdc++ not implemented
5106#endif
b3676d82
EB
5107int main() {}
5108_ACEOF
5109if ac_fn_cxx_try_link "$LINENO"; then :
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5111$as_echo "yes" >&6; }; have_static_libs=yes
5112else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=c
5119ac_cpp='$CPP $CPPFLAGS'
5120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124
5125 LDFLAGS="$saved_LDFLAGS"
5126fi
5127
512b7dfb
PB
5128
5129
5130
c6b750e1 5131if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5132 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5136if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5137 $as_echo_n "(cached) " >&6
9e07f89d 5138else
512b7dfb
PB
5139 if test -n "$GNATBIND"; then
5140 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5141else
c6b750e1
DJ
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
81ecdfbb 5147 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5149 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5151 break 2
5152 fi
5153done
81ecdfbb
RW
5154 done
5155IFS=$as_save_IFS
c6b750e1 5156
9e07f89d
NN
5157fi
5158fi
512b7dfb
PB
5159GNATBIND=$ac_cv_prog_GNATBIND
5160if test -n "$GNATBIND"; then
81ecdfbb
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5162$as_echo "$GNATBIND" >&6; }
9e07f89d 5163else
81ecdfbb
RW
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
9e07f89d
NN
5166fi
5167
81ecdfbb 5168
c6b750e1 5169fi
512b7dfb
PB
5170if test -z "$ac_cv_prog_GNATBIND"; then
5171 ac_ct_GNATBIND=$GNATBIND
5172 # Extract the first word of "gnatbind", so it can be a program name with args.
5173set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5176if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5177 $as_echo_n "(cached) " >&6
9e07f89d 5178else
512b7dfb
PB
5179 if test -n "$ac_ct_GNATBIND"; then
5180 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5181else
c6b750e1
DJ
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
81ecdfbb 5187 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5189 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5191 break 2
5192 fi
5193done
81ecdfbb
RW
5194 done
5195IFS=$as_save_IFS
c6b750e1 5196
9e07f89d
NN
5197fi
5198fi
512b7dfb
PB
5199ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5200if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5202$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5203else
81ecdfbb
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
9e07f89d
NN
5206fi
5207
81ecdfbb
RW
5208 if test "x$ac_ct_GNATBIND" = x; then
5209 GNATBIND="no"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 GNATBIND=$ac_ct_GNATBIND
5218 fi
24ff9987 5219else
512b7dfb 5220 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5221fi
5222
7df2cd5d 5223if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5224 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5225set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5228if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5229 $as_echo_n "(cached) " >&6
7df2cd5d 5230else
512b7dfb
PB
5231 if test -n "$GNATMAKE"; then
5232 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
81ecdfbb 5239 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5241 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5243 break 2
5244 fi
5245done
81ecdfbb
RW
5246 done
5247IFS=$as_save_IFS
7df2cd5d
PB
5248
5249fi
5250fi
512b7dfb
PB
5251GNATMAKE=$ac_cv_prog_GNATMAKE
5252if test -n "$GNATMAKE"; then
81ecdfbb
RW
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5254$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5255else
81ecdfbb
RW
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
7df2cd5d
PB
5258fi
5259
81ecdfbb 5260
7df2cd5d 5261fi
512b7dfb
PB
5262if test -z "$ac_cv_prog_GNATMAKE"; then
5263 ac_ct_GNATMAKE=$GNATMAKE
5264 # Extract the first word of "gnatmake", so it can be a program name with args.
5265set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5268if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5269 $as_echo_n "(cached) " >&6
7df2cd5d 5270else
512b7dfb
PB
5271 if test -n "$ac_ct_GNATMAKE"; then
5272 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
81ecdfbb 5279 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5281 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5283 break 2
5284 fi
5285done
81ecdfbb
RW
5286 done
5287IFS=$as_save_IFS
7df2cd5d 5288
7df2cd5d
PB
5289fi
5290fi
512b7dfb
PB
5291ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5292if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5294$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5295else
81ecdfbb
RW
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
7df2cd5d
PB
5298fi
5299
81ecdfbb
RW
5300 if test "x$ac_ct_GNATMAKE" = x; then
5301 GNATMAKE="no"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304yes:)
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307ac_tool_warned=yes ;;
5308esac
5309 GNATMAKE=$ac_ct_GNATMAKE
5310 fi
7df2cd5d 5311else
512b7dfb 5312 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5313fi
5314
81ecdfbb
RW
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5316$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5317if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5318 $as_echo_n "(cached) " >&6
9e07f89d
NN
5319else
5320 cat >conftest.adb <<EOF
5321procedure conftest is begin null; end conftest;
5322EOF
5323acx_cv_cc_gcc_supports_ada=no
5324# There is a bug in old released versions of GCC which causes the
5325# driver to exit successfully when the appropriate language module
5326# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5327# Therefore we must check for the error message as well as an
5328# unsuccessful exit.
b8908782
DD
5329# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5330# given a .adb file, but produce no object file. So we must check
5331# if an object file was really produced to guard against this.
9e07f89d 5332errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5333if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5334 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5335fi
5336rm -f conftest.*
5337fi
81ecdfbb
RW
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5339$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5340
64b986c0 5341if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5342 have_gnat=yes
5343else
5344 have_gnat=no
5345fi
5346
81ecdfbb
RW
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5348$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5349if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5350 $as_echo_n "(cached) " >&6
b8908782
DD
5351else
5352 echo abfoo >t1
5353 echo cdfoo >t2
da17fe9d 5354 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5355 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5356 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5357 :
5358 else
5359 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5360 fi
5361 fi
b8908782
DD
5362 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5363 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5364 :
b8908782
DD
5365 else
5366 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5367 fi
5368 fi
5369 rm t1 t2
5370
5371fi
81ecdfbb
RW
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5373$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5374do_compare="$gcc_cv_prog_cmp_skip"
5375
5376
9e07f89d 5377
ffdd6afc
ILT
5378# Check whether --enable-bootstrap was given.
5379if test "${enable_bootstrap+set}" = set; then :
5380 enableval=$enable_bootstrap;
5381else
5382 enable_bootstrap=default
5383fi
5384
5385
5386# Issue errors and warnings for invalid/strange bootstrap combinations.
5387if test -r $srcdir/gcc/configure; then
5388 have_compiler=yes
5389else
5390 have_compiler=no
5391fi
5392
5393case "$have_compiler:$host:$target:$enable_bootstrap" in
5394 *:*:*:no) ;;
5395
5396 # Default behavior. Enable bootstrap if we have a compiler
5397 # and we are in a native configuration.
5398 yes:$build:$build:default)
5399 enable_bootstrap=yes ;;
5400
5401 *:*:*:default)
5402 enable_bootstrap=no ;;
5403
5404 # We have a compiler and we are in a native configuration, bootstrap is ok
5405 yes:$build:$build:yes)
5406 ;;
5407
5408 # Other configurations, but we have a compiler. Assume the user knows
5409 # what he's doing.
5410 yes:*:*:yes)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5412$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5413 ;;
5414
5415 # No compiler: if they passed --enable-bootstrap explicitly, fail
5416 no:*:*:yes)
d0ac1c44 5417 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5418
5419 # Fail if wrong command line
5420 *)
d0ac1c44 5421 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5422 ;;
5423esac
5424
ce6c656d
L
5425# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5426# C++98 compiler can still start the bootstrap.
5427if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5428 CXX="$CXX -std=gnu++98"
5429fi
5430
af019bfd
L
5431# Check whether --enable-pgo-build was given.
5432if test "${enable_pgo_build+set}" = set; then :
5433 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5434else
5435 enable_pgo_build=no
5436fi
5437
5438
5439# Issue errors and warnings for invalid/strange PGO build combinations.
5440case "$have_compiler:$host:$target:$enable_pgo_build" in
5441 *:*:*:no) ;;
5442
5443 # Allow the PGO build only if we aren't building a compiler and
5444 # we are in a native configuration.
5445 no:$build:$build:yes | no:$build:$build:lto) ;;
5446
5447 # Disallow the PGO bootstrap if we are building a compiler.
5448 yes:*:*:yes | yes:*:*:lto)
5449 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5450
5451 *)
5452 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5453 ;;
5454esac
5455
5456if test "$enable_pgo_build" != "no"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5458$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5459 old_CFLAGS="$CFLAGS"
5460 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5461 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5462
5463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
5465int foo;
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"; then :
5468
5469else
5470 PGO_BUILD_GEN_CFLAGS=
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 CFLAGS="$old_CFLAGS"
5474 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476$as_echo "yes" >&6; }
5477 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
5481 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5482 fi
5483
5484 if test "$enable_pgo_build" = "lto"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5486$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5487 old_CFLAGS="$CFLAGS"
5488 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5489 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
5492int foo;
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"; then :
5495
5496else
5497 PGO_BUILD_LTO_CFLAGS=
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 CFLAGS="$old_CFLAGS"
5501 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503$as_echo "yes" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5508$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5509 fi
5510 fi
5511fi
5512
5513
5514
5515
d5f2ee2e
KG
5516# Used for setting $lt_cv_objdir
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5518$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5519if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5520 $as_echo_n "(cached) " >&6
5521else
5522 rm -f .libs 2>/dev/null
5523mkdir .libs 2>/dev/null
5524if test -d .libs; then
5525 lt_cv_objdir=.libs
5526else
5527 # MS-DOS does not allow filenames that begin with a dot.
5528 lt_cv_objdir=_libs
5529fi
5530rmdir .libs 2>/dev/null
5531fi
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5533$as_echo "$lt_cv_objdir" >&6; }
5534objdir=$lt_cv_objdir
5535
5536
5537
5538
5539
5540cat >>confdefs.h <<_ACEOF
5541#define LT_OBJDIR "$lt_cv_objdir/"
5542_ACEOF
5543
5544
5545
e8a5fa9c 5546# Check for GMP, MPFR and MPC
d9b76ff9 5547gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5548gmpinc=
4b900473 5549have_gmp=no
e8a5fa9c
RW
5550
5551# Specify a location for mpc
5552# check for this first so it ends up on the link line before mpfr.
5553
81ecdfbb
RW
5554# Check whether --with-mpc was given.
5555if test "${with_mpc+set}" = set; then :
5556 withval=$with_mpc;
5557fi
e8a5fa9c 5558
e8a5fa9c 5559
e552509b 5560# Check whether --with-mpc-include was given.
81ecdfbb
RW
5561if test "${with_mpc_include+set}" = set; then :
5562 withval=$with_mpc_include;
5563fi
e8a5fa9c 5564
e8a5fa9c 5565
e552509b 5566# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5567if test "${with_mpc_lib+set}" = set; then :
5568 withval=$with_mpc_lib;
5569fi
e8a5fa9c 5570
e8a5fa9c
RW
5571
5572if test "x$with_mpc" != x; then
d9b76ff9
KG
5573 gmplibs="-L$with_mpc/lib $gmplibs"
5574 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5575fi
5576if test "x$with_mpc_include" != x; then
d9b76ff9 5577 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5578fi
5579if test "x$with_mpc_lib" != x; then
d9b76ff9 5580 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5581fi
5582if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5583 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5584 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5585 # Do not test the mpc version. Assume that it is sufficient, since
5586 # it is in the source tree, and the library has not been built yet
5587 # but it would be included on the link line in the version check below
5588 # hence making the test fail.
d9b76ff9 5589 have_gmp=yes
e8a5fa9c 5590fi
4b900473 5591
11b04d1f
DD
5592# Specify a location for mpfr
5593# check for this first so it ends up on the link line before gmp.
c6b750e1 5594
81ecdfbb
RW
5595# Check whether --with-mpfr-dir was given.
5596if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5597 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5598Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5599fi
5600
11b04d1f
DD
5601
5602
81ecdfbb
RW
5603# Check whether --with-mpfr was given.
5604if test "${with_mpfr+set}" = set; then :
5605 withval=$with_mpfr;
5606fi
c6b750e1 5607
11b04d1f 5608
e552509b 5609# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5610if test "${with_mpfr_include+set}" = set; then :
5611 withval=$with_mpfr_include;
5612fi
c6b750e1 5613
8a0d8a5c 5614
e552509b 5615# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5616if test "${with_mpfr_lib+set}" = set; then :
5617 withval=$with_mpfr_lib;
5618fi
8a0d8a5c 5619
11b04d1f
DD
5620
5621if test "x$with_mpfr" != x; then
5622 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5623 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5624fi
8a0d8a5c 5625if test "x$with_mpfr_include" != x; then
d9b76ff9 5626 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5627fi
5628if test "x$with_mpfr_lib" != x; then
5629 gmplibs="-L$with_mpfr_lib $gmplibs"
5630fi
4b900473 5631if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5632 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5633 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5634 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5635 fi
05a13254
NC
5636 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5637 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5638 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5639 # Do not test the mpfr version. Assume that it is sufficient, since
5640 # it is in the source tree, and the library has not been built yet
5641 # but it would be included on the link line in the version check below
5642 # hence making the test fail.
5643 have_gmp=yes
5644fi
11b04d1f 5645
4b1cb4fe 5646# Specify a location for gmp
c6b750e1 5647
81ecdfbb
RW
5648# Check whether --with-gmp-dir was given.
5649if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5650 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5651Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5652fi
5653
4b1cb4fe
DD
5654
5655
81ecdfbb
RW
5656# Check whether --with-gmp was given.
5657if test "${with_gmp+set}" = set; then :
5658 withval=$with_gmp;
5659fi
c6b750e1 5660
4b1cb4fe 5661
e552509b 5662# Check whether --with-gmp-include was given.
81ecdfbb
RW
5663if test "${with_gmp_include+set}" = set; then :
5664 withval=$with_gmp_include;
5665fi
c6b750e1 5666
8a0d8a5c 5667
e552509b 5668# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5669if test "${with_gmp_lib+set}" = set; then :
5670 withval=$with_gmp_lib;
5671fi
8a0d8a5c
PB
5672
5673
4b1cb4fe 5674
11b04d1f
DD
5675if test "x$with_gmp" != x; then
5676 gmplibs="-L$with_gmp/lib $gmplibs"
5677 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5678fi
8a0d8a5c
PB
5679if test "x$with_gmp_include" != x; then
5680 gmpinc="-I$with_gmp_include $gmpinc"
5681fi
5682if test "x$with_gmp_lib" != x; then
5683 gmplibs="-L$with_gmp_lib $gmplibs"
5684fi
4b900473 5685if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5686 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5687 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5688 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5689 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5690 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5691 # Do not test the gmp version. Assume that it is sufficient, since
5692 # it is in the source tree, and the library has not been built yet
5693 # but it would be included on the link line in the version check below
5694 # hence making the test fail.
5695 have_gmp=yes
5696fi
4b1cb4fe 5697
ceb92e78 5698if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5699 have_gmp=yes
5700 saved_CFLAGS="$CFLAGS"
5701 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5702 # Check for the recommended and required versions of GMP.
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5704$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5706/* end confdefs.h. */
5707#include "gmp.h"
5708int
5709main ()
5710{
5711
5712 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5713 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5714 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5715 choke me
5716 #endif
5717
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5724/* end confdefs.h. */
a6b5846e 5725#include <gmp.h>
c6b750e1
DJ
5726int
5727main ()
5728{
4b1cb4fe 5729
a6b5846e
KG
5730 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5731 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5732 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5733 choke me
5734 #endif
c6b750e1
DJ
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
81ecdfbb
RW
5740if ac_fn_c_try_compile "$LINENO"; then :
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742$as_echo "yes" >&6; }
a6b5846e
KG
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5745$as_echo "buggy but acceptable" >&6; }
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5748else
81ecdfbb
RW
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5751fi
81ecdfbb 5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5753
e8a5fa9c 5754 # If we have GMP, check the MPFR version.
4b900473 5755 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5756 # Check for the recommended and required versions of MPFR.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5758$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5760/* end confdefs.h. */
9b134994 5761#include <gmp.h>
4b900473 5762 #include <mpfr.h>
c6b750e1
DJ
5763int
5764main ()
5765{
9b134994 5766
7ec59b9e 5767 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5768 choke me
5769 #endif
c6b750e1
DJ
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
81ecdfbb
RW
5775if ac_fn_c_try_compile "$LINENO"; then :
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5777/* end confdefs.h. */
4b1cb4fe 5778#include <gmp.h>
4b900473 5779 #include <mpfr.h>
c6b750e1
DJ
5780int
5781main ()
5782{
9dbaa842 5783
a6b5846e 5784 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5785 choke me
5786 #endif
e8a5fa9c
RW
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
81ecdfbb
RW
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5794$as_echo "yes" >&6; }
e8a5fa9c 5795else
81ecdfbb
RW
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5797$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5798fi
81ecdfbb 5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5800else
81ecdfbb
RW
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5803fi
81ecdfbb 5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5805 fi
5806
5807 # Check for the MPC header version.
d9b76ff9 5808 if test x"$have_gmp" = xyes ; then
a6b5846e 5809 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5811$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5813/* end confdefs.h. */
5814#include <mpc.h>
5815int
5816main ()
5817{
5818
a6b5846e
KG
5819 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5820 choke me
5821 #endif
5822
5823 ;
5824 return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_compile "$LINENO"; then :
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830#include <mpc.h>
5831int
5832main ()
5833{
5834
5835 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5836 choke me
5837 #endif
5838
5839 ;
5840 return 0;
5841}
5842_ACEOF
81ecdfbb
RW
5843if ac_fn_c_try_compile "$LINENO"; then :
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5845$as_echo "yes" >&6; }
a6b5846e
KG
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5848$as_echo "buggy but acceptable" >&6; }
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5851else
81ecdfbb 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5853$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5854fi
81ecdfbb 5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5856 fi
5857
5858 # Now check the MPFR library.
5859 if test x"$have_gmp" = xyes; then
5860 saved_LIBS="$LIBS"
5861 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5863$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5865/* end confdefs.h. */
d9b76ff9 5866#include <mpc.h>
e8a5fa9c
RW
5867int
5868main ()
5869{
5870
5871 mpfr_t n;
5872 mpfr_t x;
d9b76ff9 5873 mpc_t c;
e8a5fa9c
RW
5874 int t;
5875 mpfr_init (n);
5876 mpfr_init (x);
5877 mpfr_atan2 (n, n, x, GMP_RNDN);
5878 mpfr_erfc (n, x, GMP_RNDN);
5879 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5880 mpfr_clear(n);
5881 mpfr_clear(x);
5882 mpc_init2 (c, 53);
5883 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5884 mpc_cosh (c, c, MPC_RNDNN);
5885 mpc_pow (c, c, c, MPC_RNDNN);
5886 mpc_acosh (c, c, MPC_RNDNN);
5887 mpc_clear (c);
c6b750e1
DJ
5888
5889 ;
5890 return 0;
5891}
5892_ACEOF
81ecdfbb
RW
5893if ac_fn_c_try_link "$LINENO"; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895$as_echo "yes" >&6; }
c6b750e1 5896else
81ecdfbb
RW
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5899fi
81ecdfbb
RW
5900rm -f core conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5902 LIBS="$saved_LIBS"
5903 fi
5904
4b900473 5905 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5906
a6b5846e
KG
5907# The library versions listed in the error message below should match
5908# the HARD-minimums enforced above.
4b900473 5909 if test x$have_gmp != xyes; then
d0ac1c44 5910 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5911Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5912their locations. Source code for these libraries can be found at
5913their respective hosting sites as well as at
5914ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5915http://gcc.gnu.org/install/prerequisites.html for additional info. If
5916you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5917make sure that you have installed both the libraries and the header
5918files. They may be located in separate packages." "$LINENO" 5
4b900473 5919 fi
9dbaa842
DD
5920fi
5921
e8a5fa9c
RW
5922# Flags needed for both GMP, MPFR and/or MPC.
5923
5924
5925
4b1cb4fe
DD
5926
5927
5928
7ec59b9e 5929
b3676d82 5930# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5931
b3676d82
EB
5932# Check whether --with-stage1-libs was given.
5933if test "${with_stage1_libs+set}" = set; then :
5934 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5935 stage1_libs=
e8a5fa9c 5936 else
b3676d82 5937 stage1_libs=$withval
e8a5fa9c
RW
5938 fi
5939else
68996839 5940 stage1_libs=
81ecdfbb
RW
5941fi
5942
e8a5fa9c
RW
5943
5944
c1a5d03a
TT
5945# Whether or not to use -static-libstdc++ and -static-libgcc. The
5946# default is yes if gcc is being built; no otherwise. The reason for
5947# this default is that gdb is sometimes linked against GNU Source
5948# Highlight, which is a shared library that uses C++ exceptions. In
5949# this case, -static-libstdc++ will cause crashes.
5950
5951# Check whether --with-static-standard-libraries was given.
5952if test "${with_static_standard_libraries+set}" = set; then :
5953 withval=$with_static_standard_libraries;
5954else
5955 with_static_standard_libraries=auto
5956fi
5957
5958if test "$with_static_standard_libraries" = auto; then
5959 with_static_standard_libraries=$have_compiler
5960fi
5961
b3676d82 5962# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5963
b3676d82
EB
5964# Check whether --with-stage1-ldflags was given.
5965if test "${with_stage1_ldflags+set}" = set; then :
5966 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5967 stage1_ldflags=
e8a5fa9c 5968 else
b3676d82 5969 stage1_ldflags=$withval
e8a5fa9c
RW
5970 fi
5971else
b3676d82
EB
5972 stage1_ldflags=
5973 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5974 # if supported. But if the user explicitly specified the libraries to use,
5975 # trust that they are doing what they want.
c1a5d03a
TT
5976 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5977 -a "$have_static_libs" = yes; then
b3676d82
EB
5978 stage1_ldflags="-static-libstdc++ -static-libgcc"
5979 fi
81ecdfbb
RW
5980fi
5981
e8a5fa9c
RW
5982
5983
68996839 5984# Libraries to use for stage2 and later builds.
e8a5fa9c 5985
81ecdfbb
RW
5986# Check whether --with-boot-libs was given.
5987if test "${with_boot_libs+set}" = set; then :
5988 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5989 poststage1_libs=
5990 else
5991 poststage1_libs=$withval
5992 fi
5993else
68996839 5994 poststage1_libs=
81ecdfbb
RW
5995fi
5996
e8a5fa9c
RW
5997
5998
143754cd
NC
5999# Linker flags to use for stage2 and later builds.
6000
6001# Check whether --with-boot-ldflags was given.
6002if test "${with_boot_ldflags+set}" = set; then :
6003 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6004 poststage1_ldflags=
6005 else
6006 poststage1_ldflags=$withval
6007 fi
6008else
6009 poststage1_ldflags=
4f11b223
ILT
6010 # In stages 2 and 3, default to linking libstdc++ and libgcc
6011 # statically. But if the user explicitly specified the libraries to
6012 # use, trust that they are doing what they want.
6013 if test "$poststage1_libs" = ""; then
143754cd
NC
6014 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6015 fi
6016fi
6017
6018
6019
4849dfd8 6020# GCC GRAPHITE dependency isl.
1b6c0831 6021# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
6022
6023
7ec59b9e
L
6024# Check whether --with-isl was given.
6025if test "${with_isl+set}" = set; then :
6026 withval=$with_isl;
81ecdfbb 6027fi
e28c595f 6028
e28c595f 6029
1b6c0831 6030# Treat --without-isl as a request to disable
8e71395b 6031# GRAPHITE support and skip all following checks.
1b6c0831 6032if test "x$with_isl" != "xno"; then
4849dfd8 6033 # Check for isl
8e71395b
L
6034
6035
7ec59b9e
L
6036# Check whether --with-isl-include was given.
6037if test "${with_isl_include+set}" = set; then :
6038 withval=$with_isl_include;
81ecdfbb
RW
6039fi
6040
e28c595f 6041
7ec59b9e
L
6042# Check whether --with-isl-lib was given.
6043if test "${with_isl_lib+set}" = set; then :
6044 withval=$with_isl_lib;
81ecdfbb 6045fi
e28c595f 6046
e28c595f 6047
7ec59b9e
L
6048 # Check whether --enable-isl-version-check was given.
6049if test "${enable_isl_version_check+set}" = set; then :
6050 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6051else
6052 ENABLE_ISL_CHECK=yes
b123da99
SP
6053fi
6054
6055
7ec59b9e
L
6056 # Initialize isllibs and islinc.
6057 case $with_isl in
6058 no)
6059 isllibs=
6060 islinc=
6061 ;;
6062 "" | yes)
6063 ;;
6064 *)
6065 isllibs="-L$with_isl/lib"
6066 islinc="-I$with_isl/include"
6067 ;;
6068 esac
6069 if test "x${with_isl_include}" != x ; then
6070 islinc="-I$with_isl_include"
6071 fi
6072 if test "x${with_isl_lib}" != x; then
6073 isllibs="-L$with_isl_lib"
6074 fi
6075 if test "x${islinc}" = x && test "x${isllibs}" = x \
6076 && test -d ${srcdir}/isl; then
6077 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6078 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6079 ENABLE_ISL_CHECK=no
4849dfd8
NC
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6081$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 6082 fi
b123da99 6083
1b6c0831 6084 isllibs="${isllibs} -lisl"
b123da99 6085
e28c595f 6086
b3fc79f8
JBG
6087
6088 if test "${ENABLE_ISL_CHECK}" = yes ; then
6089 _isl_saved_CFLAGS=$CFLAGS
6090 _isl_saved_LDFLAGS=$LDFLAGS
6091 _isl_saved_LIBS=$LIBS
6092
6093 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
6094 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6095 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 6096
bf41f30d
NC
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6098$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 6100/* end confdefs.h. */
bf41f30d 6101#include <isl/schedule.h>
b3fc79f8
JBG
6102int
6103main ()
6104{
bf41f30d 6105isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
6106 ;
6107 return 0;
6108}
6109_ACEOF
1b6c0831 6110if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
6111 gcc_cv_isl=yes
6112else
6113 gcc_cv_isl=no
6114fi
1b6c0831
L
6115rm -f core conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6118$as_echo "$gcc_cv_isl" >&6; }
6119
4849dfd8 6120 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6122$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6123 fi
6124
b3fc79f8
JBG
6125 CFLAGS=$_isl_saved_CFLAGS
6126 LDFLAGS=$_isl_saved_LDFLAGS
6127 LIBS=$_isl_saved_LIBS
6128 fi
6129
6130
e28c595f 6131
e28c595f 6132
7ec59b9e
L
6133
6134
7ec59b9e
L
6135 if test "x${with_isl}" = xno; then
6136 graphite_requested=no
6137 elif test "x${with_isl}" != x \
6138 || test "x${with_isl_include}" != x \
6139 || test "x${with_isl_lib}" != x ; then
6140 graphite_requested=yes
6141 else
6142 graphite_requested=no
b123da99 6143 fi
e28c595f 6144
e28c595f
JM
6145
6146
7ec59b9e
L
6147 if test "${gcc_cv_isl}" = no ; then
6148 isllibs=
6149 islinc=
6150 fi
e28c595f 6151
7ec59b9e
L
6152 if test "${graphite_requested}" = yes \
6153 && test "x${isllibs}" = x \
6154 && test "x${islinc}" = x ; then
e28c595f 6155
d0ac1c44 6156 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6157 fi
e552509b 6158
e28c595f 6159
e552509b
ILT
6160fi
6161
4849dfd8 6162# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6163if test "x$with_isl" = xno ||
8e71395b 6164 test "x$gcc_cv_isl" = xno; then
1b6c0831 6165 noconfigdirs="$noconfigdirs isl"
8e71395b 6166 islinc=
7ec59b9e
L
6167fi
6168
8e71395b
L
6169
6170
6171
700d40ca
ILT
6172# Check for LTO support.
6173# Check whether --enable-lto was given.
6174if test "${enable_lto+set}" = set; then :
6175 enableval=$enable_lto; enable_lto=$enableval
6176else
6177 enable_lto=yes; default_enable_lto=yes
6178fi
6179
6180
143754cd 6181
e49e5c92
DK
6182
6183
6184target_elf=no
6185case $target in
6186 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6187 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6188 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6189 nvptx-*-none)
e49e5c92
DK
6190 target_elf=no
6191 ;;
6192 *)
6193 target_elf=yes
6194 ;;
6195esac
6196
6197if test $target_elf = yes; then :
74cea91b
DK
6198 # ELF platforms build the lto-plugin always.
6199 build_lto_plugin=yes
e49e5c92 6200
e49e5c92
DK
6201else
6202 if test x"$default_enable_lto" = x"yes" ; then
29821356 6203 case $target in
bf41f30d 6204 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6205 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6206 *) enable_lto=no ;;
6207 esac
e49e5c92 6208 else
29821356
RW
6209 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6210 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6211 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6212 # warn during gcc/ subconfigure; unless you're bootstrapping with
6213 # -flto it won't be needed until after installation anyway.
6214 case $target in
52cf9762 6215 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6216 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6217 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6218 fi
6219 ;;
6220 esac
6221 fi
a8eb3f0a 6222 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6223 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6224 case $target in
74cea91b 6225 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6226 *) ;;
6227 esac
74cea91b 6228
e49e5c92
DK
6229fi
6230
700d40ca 6231
1b6c0831
L
6232# Check whether --enable-linker-plugin-configure-flags was given.
6233if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6234 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6235else
6236 extra_linker_plugin_configure_flags=
6237fi
6238
6239
6240# Check whether --enable-linker-plugin-flags was given.
6241if test "${enable_linker_plugin_flags+set}" = set; then :
6242 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6243else
6244 extra_linker_plugin_flags=
6245fi
6246
6247
6248
bf41f30d
NC
6249# Enable --enable-host-shared.
6250# Checked early to determine whether jit is an 'all' language
6251# Check whether --enable-host-shared was given.
6252if test "${enable_host_shared+set}" = set; then :
6253 enableval=$enable_host_shared; host_shared=$enableval
6254else
6255 host_shared=no
6256fi
6257
6258
e28c595f 6259
7ec59b9e 6260# By default, C and C++ are the only stage 1 languages.
9b134994 6261stage1_languages=,c,
1d39f329 6262
e8a5fa9c 6263# Target libraries that we bootstrap.
2aa2364a 6264bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6265
9e07f89d
NN
6266# Figure out what language subdirectories are present.
6267# Look if the user specified --enable-languages="..."; if not, use
6268# the environment variable $LANGUAGES if defined. $LANGUAGES might
6269# go away some day.
6270# NB: embedded tabs in this IF block -- do not untabify
6271if test -d ${srcdir}/gcc; then
6272 if test x"${enable_languages+set}" != xset; then
6273 if test x"${LANGUAGES+set}" = xset; then
6274 enable_languages="${LANGUAGES}"
136bb21f 6275 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6276 else
bf41f30d 6277 enable_languages=default
9e07f89d
NN
6278 fi
6279 else
6280 if test x"${enable_languages}" = x ||
6281 test x"${enable_languages}" = xyes;
6282 then
136bb21f 6283 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6284 exit 1
6285 fi
6286 fi
6287 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6288
096f7d00
DE
6289 # 'f95' is the old name for the 'fortran' language. We issue a warning
6290 # and make the substitution.
6291 case ,${enable_languages}, in
6292 *,f95,*)
136bb21f 6293 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6294 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6295 ;;
6296 esac
6297
7ec59b9e
L
6298 # If bootstrapping, C++ must be enabled.
6299 case ",$enable_languages,:$enable_bootstrap" in
6300 *,c++,*:*) ;;
6301 *:yes)
ffdd6afc
ILT
6302 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6303 enable_languages="${enable_languages},c++"
6304 else
d0ac1c44 6305 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6306 fi
6307 ;;
6308 esac
6309
9e07f89d
NN
6310 # First scan to see if an enabled language requires some other language.
6311 # We assume that a given config-lang.in will list all the language
6312 # front ends it requires, even if some are required indirectly.
6313 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6314 case ${lang_frag} in
6315 ..) ;;
6316 # The odd quoting in the next line works around
6317 # an apparent bug in bash 1.12 on linux.
6318 ${srcdir}/gcc/[*]/config-lang.in) ;;
6319 *)
e552509b
ILT
6320 # From the config-lang.in, get $language, $lang_requires, and
6321 # $lang_requires_boot_languages.
9e07f89d
NN
6322 language=
6323 lang_requires=
e552509b 6324 lang_requires_boot_languages=
bf41f30d
NC
6325 # set srcdir during sourcing lang_frag to the gcc dir.
6326 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6327 # polutes this shell
6328 saved_srcdir=${srcdir}
6329 srcdir=${srcdir}/gcc . ${lang_frag}
6330 srcdir=${saved_srcdir}
e552509b 6331 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6332 case ,${enable_languages}, in
6333 *,$other,*) ;;
bf41f30d 6334 *,default,*) ;;
9e07f89d
NN
6335 *,all,*) ;;
6336 *,$language,*)
6337 echo " \`$other' language required by \`$language'; enabling" 1>&2
6338 enable_languages="${enable_languages},${other}"
6339 ;;
6340 esac
6341 done
e552509b
ILT
6342 for other in ${lang_requires_boot_languages} ; do
6343 if test "$other" != "c"; then
6344 case ,${enable_stage1_languages}, in
6345 *,$other,*) ;;
bf41f30d 6346 *,default,*) ;;
e552509b
ILT
6347 *,all,*) ;;
6348 *)
6349 case ,${enable_languages}, in
6350 *,$language,*)
6351 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6352 enable_stage1_languages="$enable_stage1_languages,${other}"
6353 ;;
6354 esac
6355 ;;
6356 esac
6357 fi
6358 done
9e07f89d
NN
6359 ;;
6360 esac
6361 done
6362
9b134994 6363 new_enable_languages=,c,
700d40ca
ILT
6364
6365 # If LTO is enabled, add the LTO front end.
700d40ca 6366 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6367 case ,${enable_languages}, in
6368 *,lto,*) ;;
6369 *) enable_languages="${enable_languages},lto" ;;
6370 esac
a8eb3f0a 6371 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6372 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6373 fi
6374 fi
6375
1b6c0831
L
6376 # If we're building an offloading compiler, add the LTO front end.
6377 if test x"$enable_as_accelerator_for" != x ; then
6378 case ,${enable_languages}, in
6379 *,lto,*) ;;
6380 *) enable_languages="${enable_languages},lto" ;;
6381 esac
6382 fi
700d40ca 6383
bf41f30d 6384 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6385 potential_languages=,c,
9e07f89d 6386
9e1a94f4
ILT
6387 enabled_target_libs=
6388 disabled_target_libs=
6389
9e07f89d
NN
6390 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6391 case ${lang_frag} in
6392 ..) ;;
6393 # The odd quoting in the next line works around
6394 # an apparent bug in bash 1.12 on linux.
6395 ${srcdir}/gcc/[*]/config-lang.in) ;;
6396 *)
c6b750e1 6397 # From the config-lang.in, get $language, $target_libs,
1d39f329 6398 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6399 language=
6400 target_libs=
6401 lang_dirs=
64ce424c 6402 subdir_requires=
9b134994
PB
6403 boot_language=no
6404 build_by_default=yes
bf41f30d
NC
6405 # set srcdir during sourcing. See above about save & restore
6406 saved_srcdir=${srcdir}
6407 srcdir=${srcdir}/gcc . ${lang_frag}
6408 srcdir=${saved_srcdir}
9b134994
PB
6409 if test x${language} = x; then
6410 echo "${lang_frag} doesn't set \$language." 1>&2
6411 exit 1
6412 fi
6413
ffdd6afc 6414 if test "$language" = "c++"; then
7ec59b9e 6415 boot_language=yes
e8a5fa9c
RW
6416 fi
6417
8e71395b 6418 add_this_lang=no
bf41f30d
NC
6419 # C is always enabled, so no need to add it again
6420 if test "$language" != "c"; then
6421 case ,${enable_languages}, in
6422 *,${language},*)
6423 # Language was explicitly selected; include it
7ec59b9e 6424 add_this_lang=yes
bf41f30d
NC
6425 ;;
6426 *,all,*)
6427 # All languages are enabled
6428 add_this_lang=all
6429 ;;
6430 *,default,*)
6431 # 'default' was selected, select it if it is a default language
8e71395b 6432 add_this_lang=${build_by_default}
bf41f30d
NC
6433 ;;
6434 esac
6435 fi
4b1cb4fe 6436
64ce424c 6437 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6438 for i in $subdir_requires; do
3d3adb43 6439 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6440 case ${add_this_lang} in
6441 yes)
64ce424c 6442 # Specifically requested language; tell them.
d0ac1c44 6443 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6444 ;;
bf41f30d
NC
6445 all)
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6447$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6448 add_this_lang=unsupported
6449 ;;
64ce424c
PB
6450 *)
6451 # Silently disable.
9b134994 6452 add_this_lang=unsupported
64ce424c
PB
6453 ;;
6454 esac
6455 done
6456
9b134994 6457 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6458 case ${add_this_lang}:${language}:${have_gnat} in
6459 yes:ada:no)
9b134994 6460 # Specifically requested language; tell them.
d0ac1c44 6461 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6462 ;;
bf41f30d
NC
6463 all:ada:no)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6465$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6466 add_this_lang=unsupported
6467 ;;
9b134994
PB
6468 *:ada:no)
6469 # Silently disable.
6470 add_this_lang=unsupported
6471 ;;
6472 esac
6473
bf41f30d
NC
6474 # Disable jit if -enable-host-shared not specified
6475 case ${add_this_lang}:${language}:${host_shared} in
6476 yes:jit:no)
6477 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6478 as_fn_error $? "
bf41f30d
NC
6479Enabling language \"jit\" requires --enable-host-shared.
6480
6481--enable-host-shared typically slows the rest of the compiler down by
6482a few %, so you must explicitly enable it.
6483
6484If you want to build both the jit and the regular compiler, it is often
6485best to do this via two separate configure/builds, in separate
6486directories, to avoid imposing the performance cost of
6487--enable-host-shared on the regular compiler." "$LINENO" 5
6488 ;;
6489 all:jit:no)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6491$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6492 add_this_lang=unsupported
6493 ;;
6494 *:jit:no)
6495 # Silently disable.
6496 add_this_lang=unsupported
6497 ;;
6498 esac
6499
6500 # Disable a language that is unsupported by the target.
6501 case "${add_this_lang}: $unsupported_languages " in
6502 no:*) ;;
6503 unsupported:*) ;;
6504 *:*" $language "*)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6506$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6507 add_this_lang=unsupported
59f7ec45
HPN
6508 ;;
6509 esac
6510
4b1cb4fe 6511 case $add_this_lang in
9b134994 6512 unsupported)
9e07f89d 6513 # Remove language-dependent dirs.
9e1a94f4
ILT
6514 disabled_target_libs="$disabled_target_libs $target_libs"
6515 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6516 ;;
9b134994
PB
6517 no)
6518 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6519 disabled_target_libs="$disabled_target_libs $target_libs"
6520 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6521 potential_languages="${potential_languages}${language},"
6522 ;;
bf41f30d 6523 all|yes)
9b134994
PB
6524 new_enable_languages="${new_enable_languages}${language},"
6525 potential_languages="${potential_languages}${language},"
1d39f329 6526 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6527 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6528 case "${boot_language}:,$enable_stage1_languages," in
6529 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6530 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6531 case ",$stage1_languages," in
6532 *,$language,* | ,yes, | ,all,) ;;
6533 *) stage1_languages="${stage1_languages}${language}," ;;
6534 esac
e8a5fa9c
RW
6535 # We need to bootstrap any supporting libraries.
6536 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6537 ;;
6538 esac
6539 ;;
9e07f89d
NN
6540 esac
6541 ;;
6542 esac
6543 done
6544
9e1a94f4
ILT
6545 # Add target libraries which are only needed for disabled languages
6546 # to noconfigdirs.
6547 if test -n "$disabled_target_libs"; then
6548 for dir in $disabled_target_libs; do
6549 case " $enabled_target_libs " in
6550 *" ${dir} "*) ;;
6551 *) noconfigdirs="$noconfigdirs $dir" ;;
6552 esac
6553 done
6554 fi
6555
81ecdfbb
RW
6556 # Check whether --enable-stage1-languages was given.
6557if test "${enable_stage1_languages+set}" = set; then :
6558 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6559 ,no,|,,)
6560 # Set it to something that will have no effect in the loop below
6561 enable_stage1_languages=c ;;
6562 ,yes,)
6563 enable_stage1_languages=`echo $new_enable_languages | \
6564 sed -e "s/^,//" -e "s/,$//" ` ;;
6565 *,all,*)
6566 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6567 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6568 esac
6569
6570 # Add "good" languages from enable_stage1_languages to stage1_languages,
6571 # while "bad" languages go in missing_languages. Leave no duplicates.
6572 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6573 case $potential_languages in
6574 *,$i,*)
6575 case $stage1_languages in
6576 *,$i,*) ;;
6577 *) stage1_languages="$stage1_languages$i," ;;
6578 esac ;;
6579 *)
6580 case $missing_languages in
6581 *,$i,*) ;;
6582 *) missing_languages="$missing_languages$i," ;;
6583 esac ;;
6584 esac
6585 done
81ecdfbb
RW
6586fi
6587
9b134994
PB
6588
6589 # Remove leading/trailing commas that were added for simplicity
6590 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6591 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6592 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6593 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6594
9e07f89d 6595 if test "x$missing_languages" != x; then
d0ac1c44 6596 as_fn_error $? "
27258dd4 6597The following requested languages could not be built: ${missing_languages}
81ecdfbb 6598Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6599 fi
9e07f89d
NN
6600 if test "x$new_enable_languages" != "x$enable_languages"; then
6601 echo The following languages will be built: ${new_enable_languages}
9b134994 6602 enable_languages="$new_enable_languages"
9e07f89d 6603 fi
9b134994 6604
c6b750e1 6605
81ec575a 6606 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6607fi
6608
a6df5a19
PB
6609# Handle --disable-<component> generically.
6610for dir in $configdirs $build_configdirs $target_configdirs ; do
6611 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6612 varname=`echo $dirname | sed -e s/+/_/g`
6613 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6614 noconfigdirs="$noconfigdirs $dir"
6615 fi
6616done
6617
4f0ef2d8 6618# Check for Boehm's garbage collector
81ecdfbb
RW
6619# Check whether --enable-objc-gc was given.
6620if test "${enable_objc_gc+set}" = set; then :
05a13254 6621 enableval=$enable_objc_gc;
81ecdfbb
RW
6622fi
6623
4f0ef2d8 6624
05a13254
NC
6625# Check whether --with-target-bdw-gc was given.
6626if test "${with_target_bdw_gc+set}" = set; then :
6627 withval=$with_target_bdw_gc;
6628fi
6629
6630
6631# Check whether --with-target-bdw-gc-include was given.
6632if test "${with_target_bdw_gc_include+set}" = set; then :
6633 withval=$with_target_bdw_gc_include;
6634fi
6635
6636
6637# Check whether --with-target-bdw-gc-lib was given.
6638if test "${with_target_bdw_gc_lib+set}" = set; then :
6639 withval=$with_target_bdw_gc_lib;
6640fi
6641
6642
6643case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6645$as_echo_n "checking for bdw garbage collector... " >&6; }
6646 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6648$as_echo "using bdw-gc in default locations" >&6; }
6649 else
6650 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6651 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6652 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6653 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6656$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6657 fi
05a13254 6658 fi
4f0ef2d8
CD
6659esac
6660
bf41f30d 6661# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6662case ,${enable_languages}, in
1b6c0831 6663 *,c++,*)
bf41f30d 6664 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6665 case "${noconfigdirs}" in
6666 *target-libstdc++-v3*)
bf41f30d 6667 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6668 ;;
6669 *) ;;
6670 esac
6671 ;;
7ec59b9e 6672 *)
bf41f30d 6673 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6674 ;;
6675esac
6676
caeba88f
AL
6677# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6678# $build_configdirs and $target_configdirs.
9e07f89d
NN
6679# If we have the source for $noconfigdirs entries, add them to $notsupp.
6680
6681notsupp=""
6682for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6683 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6684 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6685 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6686 if test -r $srcdir/$dirname/configure ; then
6687 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6688 true
6689 else
6690 notsupp="$notsupp $dir"
6691 fi
6692 fi
6693 fi
caeba88f
AL
6694 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6695 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6696 if test -r $srcdir/$dirname/configure ; then
6697 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6698 true
6699 else
6700 notsupp="$notsupp $dir"
6701 fi
6702 fi
6703 fi
9e07f89d
NN
6704 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6705 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6706 if test -r $srcdir/$dirname/configure ; then
6707 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6708 true
6709 else
6710 notsupp="$notsupp $dir"
6711 fi
6712 fi
6713 fi
6714done
6715
9e07f89d
NN
6716# Quietly strip out all directories which aren't configurable in this tree.
6717# This relies on all configurable subdirectories being autoconfiscated, which
6718# is now the case.
6a9cf61e
PB
6719build_configdirs_all="$build_configdirs"
6720build_configdirs=
6721for i in ${build_configdirs_all} ; do
c6b750e1 6722 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6723 if test -f ${srcdir}/$j/configure ; then
6724 build_configdirs="${build_configdirs} $i"
6725 fi
6726done
6727
9e07f89d
NN
6728configdirs_all="$configdirs"
6729configdirs=
6730for i in ${configdirs_all} ; do
6731 if test -f ${srcdir}/$i/configure ; then
6732 configdirs="${configdirs} $i"
6733 fi
6734done
6a9cf61e 6735
9e07f89d
NN
6736target_configdirs_all="$target_configdirs"
6737target_configdirs=
6738for i in ${target_configdirs_all} ; do
c6b750e1 6739 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6740 if test -f ${srcdir}/$j/configure ; then
6741 target_configdirs="${target_configdirs} $i"
6742 fi
6743done
6744
1b6c0831
L
6745# libiberty-linker-plugin is special: it doesn't have its own source directory,
6746# so we have to add it after the preceding checks.
6747if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6748then
6749 case " $configdirs " in
6750 *" libiberty "*)
6751 # If we can build libiberty, we can also build libiberty-linker-plugin.
6752 configdirs="$configdirs libiberty-linker-plugin"
6753 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6754 --with-libiberty=../libiberty-linker-plugin";;
6755 *)
d0ac1c44 6756 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6757 esac
6758fi
6759
6760# Sometimes we have special requirements for the host libiberty.
6761extra_host_libiberty_configure_flags=
e81d5d05 6762extra_host_zlib_configure_flags=
1b6c0831
L
6763case " $configdirs " in
6764 *" lto-plugin "* | *" libcc1 "*)
6765 # When these are to be built as shared libraries, the same applies to
6766 # libiberty.
6767 extra_host_libiberty_configure_flags=--enable-shared
6768 ;;
e81d5d05
L
6769 *" bfd "*)
6770 # When bfd is to be built as a shared library, the same applies to
6771 # zlib.
6772 if test "$enable_shared" = "yes"; then
6773 extra_host_zlib_configure_flags=--enable-host-shared
6774 fi
6775 ;;
1b6c0831
L
6776esac
6777
6778
e81d5d05 6779
9e07f89d
NN
6780# Produce a warning message for the subdirs we can't configure.
6781# This isn't especially interesting in the Cygnus tree, but in the individual
6782# FSF releases, it's important to let people know when their machine isn't
6783# supported by the one or two programs in a package.
6784
6785if test -n "${notsupp}" && test -z "${norecursion}" ; then
6786 # If $appdirs is non-empty, at least one of those directories must still
6787 # be configured, or we error out. (E.g., if the gas release supports a
6788 # specified target in some subdirs but not the gas subdir, we shouldn't
6789 # pretend that all is well.)
6790 if test -n "$appdirs" ; then
6791 for dir in $appdirs ; do
6792 if test -r $dir/Makefile.in ; then
6793 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6794 appdirs=""
6795 break
6796 fi
6a9cf61e 6797 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6798 appdirs=""
6799 break
6800 fi
6801 fi
6802 done
6803 if test -n "$appdirs" ; then
6804 echo "*** This configuration is not supported by this package." 1>&2
6805 exit 1
6806 fi
6807 fi
6808 # Okay, some application will build, or we don't care to check. Still
6809 # notify of subdirs not getting built.
6810 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6811 echo " ${notsupp}" 1>&2
6812 echo " (Any other directories should still work fine.)" 1>&2
6813fi
6814
6815case "$host" in
6816 *msdosdjgpp*)
6817 enable_gdbtk=no ;;
6818esac
6819
18f6b6ee
PB
6820# To find our prefix, in gcc_cv_tool_prefix.
6821
6822# The user is always right.
6823if test "${PATH_SEPARATOR+set}" != set; then
6824 echo "#! /bin/sh" >conf$$.sh
6825 echo "exit 0" >>conf$$.sh
6826 chmod +x conf$$.sh
6827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6828 PATH_SEPARATOR=';'
6829 else
6830 PATH_SEPARATOR=:
6831 fi
6832 rm -f conf$$.sh
6833fi
6834
6835
bf41f30d
NC
6836 get_gcc_base_ver="cat"
6837
6838# Check whether --with-gcc-major-version-only was given.
6839if test "${with_gcc_major_version_only+set}" = set; then :
6840 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6841 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6842 fi
6843
6844fi
6845
6846
6847
6848
6849
18f6b6ee
PB
6850
6851if test "x$exec_prefix" = xNONE; then
6852 if test "x$prefix" = xNONE; then
6853 gcc_cv_tool_prefix=$ac_default_prefix
6854 else
6855 gcc_cv_tool_prefix=$prefix
6856 fi
6857else
6858 gcc_cv_tool_prefix=$exec_prefix
6859fi
6860
6861# If there is no compiler in the tree, use the PATH only. In any
6862# case, if there is no compiler in the tree nobody should use
6863# AS_FOR_TARGET and LD_FOR_TARGET.
6864if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6865 if test x$with_gcc_major_version_only = xyes ; then
6866 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6867 else
6868 gcc_version=`cat $srcdir/gcc/BASE-VER`
6869 fi
18f6b6ee
PB
6870 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6872 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6873 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6874 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6875 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6876else
6877 gcc_cv_tool_dirs=
6878fi
6879
6880if test x$build = x$target && test -n "$md_exec_prefix"; then
6881 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6882fi
6883
6884
6885
9e07f89d
NN
6886copy_dirs=
6887
c6b750e1 6888
81ecdfbb
RW
6889# Check whether --with-build-sysroot was given.
6890if test "${with_build_sysroot+set}" = set; then :
6891 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6892 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6893 fi
6894else
6895 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6896fi
a19b6204
MM
6897
6898
8a6ee3ab 6899
81ecdfbb
RW
6900
6901# Check whether --with-debug-prefix-map was given.
6902if test "${with_debug_prefix_map+set}" = set; then :
6903 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6904 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6905 for debug_map in $withval; do
6906 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6907 done
6908 fi
6909else
6910 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6911fi
6912
8a6ee3ab
JM
6913
6914
7f6ef0c0
PB
6915# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6916# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6917# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6918# We want to ensure that TARGET libraries (which we know are built with
6919# gcc) are built with "-O2 -g", so include those options when setting
6920# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6921if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6922 if test "x${is_cross_compiler}" = xyes; then
6923 CFLAGS_FOR_TARGET="-g -O2"
6924 else
6925 CFLAGS_FOR_TARGET=$CFLAGS
6926 case " $CFLAGS " in
6927 *" -O2 "*) ;;
6928 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6929 esac
6930 case " $CFLAGS " in
6931 *" -g "* | *" -g3 "*) ;;
6932 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6933 esac
6934 fi
7f6ef0c0
PB
6935fi
6936
6937
6938if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6939 if test "x${is_cross_compiler}" = xyes; then
6940 CXXFLAGS_FOR_TARGET="-g -O2"
6941 else
6942 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6943 case " $CXXFLAGS " in
6944 *" -O2 "*) ;;
6945 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6946 esac
6947 case " $CXXFLAGS " in
6948 *" -g "* | *" -g3 "*) ;;
6949 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6950 esac
6951 fi
7f6ef0c0
PB
6952fi
6953
6954
91c1f14c
DK
6955
6956
9e07f89d
NN
6957# Handle --with-headers=XXX. If the value is not "yes", the contents of
6958# the named directory are copied to $(tooldir)/sys-include.
6959if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6960 if test x${is_cross_compiler} = xno ; then
6961 echo 1>&2 '***' --with-headers is only supported when cross compiling
6962 exit 1
6963 fi
6964 if test x"${with_headers}" != xyes ; then
18f6b6ee 6965 x=${gcc_cv_tool_prefix}
c6b750e1 6966 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6967 fi
6968fi
6969
6970# Handle --with-libs=XXX. If the value is not "yes", the contents of
6971# the name directories are copied to $(tooldir)/lib. Multiple directories
6972# are permitted.
6973if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6974 if test x${is_cross_compiler} = xno ; then
6975 echo 1>&2 '***' --with-libs is only supported when cross compiling
6976 exit 1
6977 fi
6978 if test x"${with_libs}" != xyes ; then
6979 # Copy the libraries in reverse order, so that files in the first named
6980 # library override files in subsequent libraries.
18f6b6ee 6981 x=${gcc_cv_tool_prefix}
9e07f89d 6982 for l in ${with_libs}; do
c6b750e1 6983 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6984 done
6985 fi
6986fi
6987
700d40ca 6988# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6989#
6990# This is done by determining whether or not the appropriate directory
6991# is available, and by checking whether or not specific configurations
6992# have requested that this magic not happen.
c6b750e1
DJ
6993#
6994# The command line options always override the explicit settings in
136bb21f 6995# configure.ac, and the settings in configure.ac override this magic.
2429c060 6996#
c6b750e1 6997# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6998# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6999# --without-gnu-ld options for the configure script. Similarly, if
7000# the default is to use the included zlib and you don't want to do that,
7001# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7002
7003if test x${use_gnu_as} = x &&
7004 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7005 with_gnu_as=yes
7006 extra_host_args="$extra_host_args --with-gnu-as"
7007fi
7008
7009if test x${use_gnu_ld} = x &&
93f9b408 7010 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7011 with_gnu_ld=yes
7012 extra_host_args="$extra_host_args --with-gnu-ld"
7013fi
7014
700d40ca
ILT
7015if test x${use_included_zlib} = x &&
7016 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7017 :
7018else
7019 with_system_zlib=yes
7020 extra_host_args="$extra_host_args --with-system-zlib"
7021fi
7022
2429c060
PB
7023# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7024# can detect this case.
7025
7026if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7027 with_newlib=yes
7028 extra_host_args="$extra_host_args --with-newlib"
7029fi
7030
9e07f89d
NN
7031# Handle ${copy_dirs}
7032set fnord ${copy_dirs}
7033shift
7034while test $# != 0 ; do
7035 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7036 :
7037 else
7038 echo Copying $1 to $2
7039
7040 # Use the install script to create the directory and all required
7041 # parent directories.
7042 if test -d $2 ; then
7043 :
7044 else
7045 echo >config.temp
7046 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7047 fi
7048
7049 # Copy the directory, assuming we have tar.
7050 # FIXME: Should we use B in the second tar? Not all systems support it.
7051 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7052
7053 # It is the responsibility of the user to correctly adjust all
7054 # symlinks. If somebody can figure out how to handle them correctly
7055 # here, feel free to add the code.
7056
7057 echo $1 > $2/COPIED
7058 fi
7059 shift; shift
7060done
7061
2429c060
PB
7062# Determine a target-dependent exec_prefix that the installed
7063# gcc will search in. Keep this list sorted by triplet, with
7064# the *-*-osname triplets last.
7065md_exec_prefix=
7066case "${target}" in
521ec477 7067 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7068 md_exec_prefix=/dev/env/DJDIR/bin
7069 ;;
2429c060 7070 *-*-hpux* | \
2429c060 7071 *-*-nto-qnx* | \
1f111696 7072 *-*-solaris2*)
2429c060
PB
7073 md_exec_prefix=/usr/ccs/bin
7074 ;;
7075esac
7076
a0da8069
NN
7077extra_arflags_for_target=
7078extra_nmflags_for_target=
7079extra_ranlibflags_for_target=
7080target_makefile_frag=/dev/null
7081case "${target}" in
77d7106f
AM
7082 spu-*-*)
7083 target_makefile_frag="config/mt-spu"
7084 ;;
a9d58c06 7085 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
7086 target_makefile_frag="config/mt-sde"
7087 ;;
f3b1e08e
RS
7088 mipsisa*-*-elfoabi*)
7089 target_makefile_frag="config/mt-mips-elfoabi"
7090 ;;
e7c8859c
RS
7091 mips*-*-*linux* | mips*-*-gnu*)
7092 target_makefile_frag="config/mt-mips-gnu"
7093 ;;
d9e042ac
SL
7094 nios2-*-elf*)
7095 target_makefile_frag="config/mt-nios2-elf"
7096 ;;
bf41f30d
NC
7097 *-*-linux-android*)
7098 target_makefile_frag="config/mt-android"
7099 ;;
29383458 7100 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7101 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7102 ;;
7103 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7104 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7105 # commands to handle both 32-bit and 64-bit objects. These flags are
7106 # harmless if we're using GNU nm or ar.
7107 extra_arflags_for_target=" -X32_64"
7108 extra_nmflags_for_target=" -B -X32_64"
7109 ;;
a0da8069
NN
7110esac
7111
7112alphaieee_frag=/dev/null
7113case $target in
7114 alpha*-*-*)
7115 # This just makes sure to use the -mieee option to build target libs.
7116 # This should probably be set individually by each library.
7117 alphaieee_frag="config/mt-alphaieee"
7118 ;;
7119esac
7120
7121# If --enable-target-optspace always use -Os instead of -O2 to build
7122# the target libraries, similarly if it is not specified, use -Os
7123# on selected platforms.
7124ospace_frag=/dev/null
7125case "${enable_target_optspace}:${target}" in
7126 yes:*)
7127 ospace_frag="config/mt-ospace"
7128 ;;
7129 :d30v-*)
7130 ospace_frag="config/mt-d30v"
7131 ;;
16beab3d 7132 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7133 ospace_frag="config/mt-ospace"
7134 ;;
7135 no:* | :*)
7136 ;;
7137 *)
7138 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7139 ;;
7140esac
7141
a0da8069
NN
7142# Some systems (e.g., one of the i386-aix systems the gas testers are
7143# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7144tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7145build_tooldir=${tooldir}
7146
a0da8069
NN
7147# Create a .gdbinit file which runs the one in srcdir
7148# and tells GDB to look there for source files.
7149
7150if test -r ${srcdir}/.gdbinit ; then
7151 case ${srcdir} in
7152 .) ;;
7153 *) cat > ./.gdbinit <<EOF
7154# ${NO_EDIT}
7155dir ${srcdir}
7156dir .
7157source ${srcdir}/.gdbinit
7158EOF
7159 ;;
7160 esac
7161fi
7162
a0da8069
NN
7163# Make sure that the compiler is able to generate an executable. If it
7164# can't, we are probably in trouble. We don't care whether we can run the
7165# executable--we might be using a cross compiler--we only care whether it
7166# can be created. At this point the main configure script has set CC.
7167we_are_ok=no
7168echo "int main () { return 0; }" > conftest.c
7169${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7170if test $? = 0 ; then
7171 if test -s conftest || test -s conftest.exe ; then
7172 we_are_ok=yes
7173 fi
c6b750e1 7174fi
a0da8069
NN
7175case $we_are_ok in
7176 no)
7177 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7178 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7179 rm -f conftest*
7180 exit 1
7181 ;;
7182esac
7183rm -f conftest*
7184
3bbd2f8f 7185# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7186case "${host}" in
7187 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7188 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7189 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7190 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7191esac
7192
3bbd2f8f 7193# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7194# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7195# built executables to PATH.
3bbd2f8f
AL
7196if test "$RPATH_ENVVAR" = PATH; then
7197 GCC_SHLIB_SUBDIR=/shlib
7198else
7199 GCC_SHLIB_SUBDIR=
7200fi
7201
730af8ee 7202# Adjust the toplevel makefile according to whether bootstrap was selected.
7203case $enable_bootstrap in
7204 yes)
7205 bootstrap_suffix=bootstrap
7206 BUILD_CONFIG=bootstrap-debug
7207 ;;
7208 no)
7209 bootstrap_suffix=no-bootstrap
7210 BUILD_CONFIG=
7211 ;;
7212esac
7213
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7215$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7216
7217
7218# Check whether --with-build-config was given.
7219if test "${with_build_config+set}" = set; then :
7220 withval=$with_build_config; case $with_build_config in
7221 yes) with_build_config= ;;
7222 no) with_build_config= BUILD_CONFIG= ;;
7223 esac
7224fi
7225
7226
7227if test "x${with_build_config}" != x; then
7228 BUILD_CONFIG=$with_build_config
7229else
7230 case $BUILD_CONFIG in
7231 bootstrap-debug)
7232 if echo "int f (void) { return 0; }" > conftest.c &&
7233 ${CC} -c conftest.c &&
7234 mv conftest.o conftest.o.g0 &&
7235 ${CC} -c -g conftest.c &&
7236 mv conftest.o conftest.o.g &&
7237 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7238 :
7239 else
7240 BUILD_CONFIG=
7241 fi
7242 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7243 ;;
7244 esac
7245fi
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7247$as_echo "$BUILD_CONFIG" >&6; }
7248
7249
7250# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7252$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7253# Check whether --enable-vtable-verify was given.
7254if test "${enable_vtable_verify+set}" = set; then :
7255 enableval=$enable_vtable_verify; case "$enableval" in
7256 yes) enable_vtable_verify=yes ;;
7257 no) enable_vtable_verify=no ;;
7258 *) enable_vtable_verify=no;;
7259 esac
7260else
7261 enable_vtable_verify=no
7262fi
7263
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7265$as_echo "$enable_vtable_verify" >&6; }
7266
a0da8069
NN
7267# Record target_configdirs and the configure arguments for target and
7268# build configuration in Makefile.
7269target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7270build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7271bootstrap_fixincludes=no
a0da8069 7272
2aa2364a
JR
7273# If we are building libgomp, bootstrap it.
7274if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7275 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7276fi
7277
730af8ee 7278# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7279# or bootstrap-ubsan, bootstrap it.
7280if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7281 case "$BUILD_CONFIG" in
7282 *bootstrap-asan* | *bootstrap-ubsan* )
7283 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7284 bootstrap_fixincludes=yes
730af8ee 7285 ;;
7286 esac
5eb08693
L
7287fi
7288
730af8ee 7289# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7290if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7291 test "$enable_vtable_verify" != no; then
95e43135
JBG
7292 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7293fi
7294
a0da8069
NN
7295# Determine whether gdb needs tk/tcl or not.
7296# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7297# and in that case we want gdb to be built without tk. Ugh!
7298# In fact I believe gdb is the *only* package directly dependent on tk,
7299# so we should be able to put the 'maybe's in unconditionally and
7300# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7301# 100% sure that that's safe though.
c180f501 7302
675c6968 7303gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7304case "$enable_gdbtk" in
7305 no)
7306 GDB_TK="" ;;
c180f501
AC
7307 yes)
7308 GDB_TK="${gdb_tk}" ;;
a0da8069 7309 *)
c180f501
AC
7310 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7311 # distro. Eventually someone will fix this and move Insight, nee
7312 # gdbtk to a separate directory.
7313 if test -d ${srcdir}/gdb/gdbtk ; then
7314 GDB_TK="${gdb_tk}"
7315 else
7316 GDB_TK=""
7317 fi
7318 ;;
a0da8069 7319esac
907be67c
DJ
7320CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7321INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7322
b6f9caee
TT
7323# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7324# else does, only include them if one of these is built. The Makefile
7325# provides the ordering, so it's enough here to add to the list.
7326case " ${configdirs} " in
7327 *\ gdb\ *)
7328 configdirs="${configdirs} gnulib gdbsupport"
7329 ;;
7330 *\ gdbserver\ *)
7331 configdirs="${configdirs} gnulib gdbsupport"
7332 ;;
7333esac
73cc7272 7334
6bd3dfaa 7335# Strip out unwanted targets.
dd12c3a8
NN
7336
7337# While at that, we remove Makefiles if we were started for recursive
7338# configuration, so that the top-level Makefile reconfigures them,
7339# like we used to do when configure itself was recursive.
dd12c3a8 7340
06a51eac
RW
7341# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7342# but now we're fixing up the Makefile ourselves with the additional
7343# commands passed to AC_CONFIG_FILES. Use separate variables
7344# extrasub-{build,host,target} not because there is any reason to split
7345# the substitutions up that way, but only to remain below the limit of
7346# 99 commands in a script, for HP-UX sed.
4119873a
AO
7347
7348# Do not nest @if/@endif or @unless/@endunless pairs, because
7349# configure will not warn you at all.
dd12c3a8 7350
16b1ad29
RW
7351case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7352 yes:yes:*\ gold\ *:*,c++,*) ;;
7353 yes:yes:*\ gold\ *:*)
d0ac1c44 7354 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7355 ;;
7356esac
7357
06a51eac 7358extrasub_build=
6a9cf61e 7359for module in ${build_configdirs} ; do
498d4a71
CF
7360 if test -z "${no_recursion}" \
7361 && test -f ${build_subdir}/${module}/Makefile; then
7362 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7363 rm -f ${build_subdir}/${module}/Makefile
7364 fi
06a51eac 7365 extrasub_build="$extrasub_build
498d4a71
CF
7366/^@if build-$module\$/d
7367/^@endif build-$module\$/d
4119873a 7368/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7369/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7370/^@endif build-$module-$bootstrap_suffix\$/d
7371/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7372done
06a51eac 7373extrasub_host=
498d4a71 7374for module in ${configdirs} ; do
80911fe1 7375 if test -z "${no_recursion}"; then
8cf39b1b 7376 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7377 if test -f ${file}; then
7378 echo 1>&2 "*** removing ${file} to force reconfigure"
7379 rm -f ${file}
7380 fi
7381 done
498d4a71 7382 fi
201f096f 7383 case ${module},${bootstrap_fixincludes} in
7384 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7385 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7386 esac
06a51eac 7387 extrasub_host="$extrasub_host
498d4a71
CF
7388/^@if $module\$/d
7389/^@endif $module\$/d
4119873a 7390/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7391/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7392/^@endif $module-$host_bootstrap_suffix\$/d
7393/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7394done
06a51eac 7395extrasub_target=
498d4a71
CF
7396for module in ${target_configdirs} ; do
7397 if test -z "${no_recursion}" \
7398 && test -f ${target_subdir}/${module}/Makefile; then
7399 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7400 rm -f ${target_subdir}/${module}/Makefile
7401 fi
e8a5fa9c
RW
7402
7403 # We only bootstrap target libraries listed in bootstrap_target_libs.
7404 case $bootstrap_target_libs in
7405 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7406 *) target_bootstrap_suffix=no-bootstrap ;;
7407 esac
7408
06a51eac 7409 extrasub_target="$extrasub_target
498d4a71
CF
7410/^@if target-$module\$/d
7411/^@endif target-$module\$/d
4119873a 7412/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7413/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7414/^@endif target-$module-$target_bootstrap_suffix\$/d
7415/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7416done
7417
06a51eac
RW
7418# Do the final fixup along with target modules.
7419extrasub_target="$extrasub_target
4119873a
AO
7420/^@if /,/^@endif /d
7421/^@unless /d
7422/^@endunless /d"
a0da8069 7423
af019bfd
L
7424if test "$enable_pgo_build" != "no"; then
7425 extrasub_build="$extrasub_build
7426/^@if pgo-build\$/d
7427/^@endif pgo-build\$/d"
7428fi
7429
a0da8069
NN
7430# Create the serialization dependencies. This uses a temporary file.
7431
81ecdfbb
RW
7432# Check whether --enable-serial-configure was given.
7433if test "${enable_serial_configure+set}" = set; then :
7434 enableval=$enable_serial_configure;
7435fi
e6bfb94a
AO
7436
7437
1047cb91
DD
7438case ${enable_serial_configure} in
7439 yes)
7440 enable_serial_build_configure=yes
7441 enable_serial_host_configure=yes
7442 enable_serial_target_configure=yes
7443 ;;
7444esac
7445
a0da8069
NN
7446# These force 'configure's to be done one at a time, to avoid problems
7447# with contention over a shared config.cache.
7448rm -f serdep.tmp
e6bfb94a 7449echo '# serdep.tmp' > serdep.tmp
a0da8069 7450olditem=
1047cb91 7451test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7452for item in ${build_configdirs} ; do
7453 case ${olditem} in
7454 "") ;;
e6bfb94a 7455 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7456 esac
7457 olditem=${item}
7458done
7459olditem=
1047cb91 7460test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7461for item in ${configdirs} ; do
7462 case ${olditem} in
7463 "") ;;
e6bfb94a 7464 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7465 esac
7466 olditem=${item}
7467done
7468olditem=
1047cb91 7469test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7470for item in ${target_configdirs} ; do
7471 case ${olditem} in
7472 "") ;;
e6bfb94a 7473 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7474 esac
7475 olditem=${item}
7476done
7477serialization_dependencies=serdep.tmp
7478
7479
e6bfb94a 7480# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7481# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7482# might not want to pass down to subconfigures. The exception being
7483# --cache-file=/dev/null, which is used to turn off the use of cache
7484# files altogether, and which should be passed on to subconfigures.
7485# Also strip program-prefix, program-suffix, and program-transform-name,
7486# so that we can pass down a consistent program-transform-name.
c6b750e1 7487baseargs=
65b4571a 7488tbaseargs=
c6b750e1
DJ
7489keep_next=no
7490skip_next=no
7491eval "set -- $ac_configure_args"
18f6b6ee
PB
7492for ac_arg
7493do
c6b750e1
DJ
7494 if test X"$skip_next" = X"yes"; then
7495 skip_next=no
7496 continue
7497 fi
7498 if test X"$keep_next" = X"yes"; then
7499 case $ac_arg in
7500 *\'*)
7501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7502 esac
7503 baseargs="$baseargs '$ac_arg'"
65b4571a 7504 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7505 keep_next=no
7506 continue
7507 fi
7508
7509 # Handle separated arguments. Based on the logic generated by
7510 # autoconf 2.59.
7511 case $ac_arg in
7512 *=* | --config-cache | -C | -disable-* | --disable-* \
7513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7515 | -with-* | --with-* | -without-* | --without-* | --x)
7516 separate_arg=no
7517 ;;
7518 -*)
7519 separate_arg=yes
7520 ;;
7521 *)
7522 separate_arg=no
7523 ;;
7524 esac
7525
65b4571a
AO
7526 skip_targ=no
7527 case $ac_arg in
7528
7529 --with-* | --without-*)
7530 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7531
7532 case $libopt in
7533 *[-_]include)
7534 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7535 ;;
7536 *[-_]lib)
7537 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7538 ;;
7539 *)
7540 lib=$libopt
7541 ;;
7542 esac
7543
7544
7545 case $lib in
1b6c0831 7546 mpc | mpfr | gmp | isl)
65b4571a
AO
7547 # If we're processing --with-$lib, --with-$lib-include or
7548 # --with-$lib-lib, for one of the libs above, and target is
7549 # different from host, don't pass the current argument to any
7550 # target library's configure.
7551 if test x$is_cross_compiler = xyes; then
7552 skip_targ=yes
7553 fi
7554 ;;
7555 esac
7556 ;;
7557 esac
7558
c6b750e1 7559 case "$ac_arg" in
30167e0a
NC
7560 --cache-file=/dev/null | \
7561 -cache-file=/dev/null )
7562 # Handled here to avoid the test to skip args below.
7563 baseargs="$baseargs '$ac_arg'"
65b4571a 7564 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7565 # Assert: $separate_arg should always be no.
7566 keep_next=$separate_arg
7567 ;;
c6b750e1
DJ
7568 --no*)
7569 continue
7570 ;;
7571 --c* | \
7572 --sr* | \
7573 --ho* | \
7574 --bu* | \
7575 --t* | \
7576 --program-* | \
7577 -cache_file* | \
7578 -srcdir* | \
7579 -host* | \
7580 -build* | \
7581 -target* | \
7582 -program-prefix* | \
7583 -program-suffix* | \
7584 -program-transform-name* )
7585 skip_next=$separate_arg
7586 continue
7587 ;;
7588 -*)
7589 # An option. Add it.
7590 case $ac_arg in
7591 *\'*)
7592 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7593 esac
7594 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7595 if test X"$skip_targ" = Xno; then
7596 tbaseargs="$tbaseargs '$ac_arg'"
7597 fi
c6b750e1
DJ
7598 keep_next=$separate_arg
7599 ;;
7600 *)
7601 # Either a variable assignment, or a nonopt (triplet). Don't
7602 # pass it down; let the Makefile handle this.
7603 continue
7604 ;;
7605 esac
7606done
7607# Remove the initial space we just introduced and, as these will be
7608# expanded by make, quote '$'.
7609baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7610
f27d4f92
DJ
7611# Add in --program-transform-name, after --program-prefix and
7612# --program-suffix have been applied to it. Autoconf has already
7613# doubled dollar signs and backslashes in program_transform_name; we want
7614# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7615# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7616# Also, because we want to override the logic in subdir configure scripts to
7617# choose program_transform_name, replace any s,x,x, with s,y,y,.
7618sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7619${program_transform_name}
7620EOF_SED
7621gcc_transform_name=`cat conftestsed.out`
7622rm -f conftestsed.out
7623baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7624tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7625if test "$silent" = yes; then
7626 baseargs="$baseargs --silent"
65b4571a 7627 tbaseargs="$tbaseargs --silent"
2444379b 7628fi
34a0f3cf 7629baseargs="$baseargs --disable-option-checking"
65b4571a 7630tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7631
4074d5f2
RW
7632# Record and document user additions to sub configure arguments.
7633
7634
7635
7636
a0da8069
NN
7637# For the build-side libraries, we just need to pretend we're native,
7638# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7639# desired. We can't even use the same cache file for all build-side
7640# libraries, as they're compiled differently; some with C, some with
7641# C++ or with different feature-enabling options.
7642build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7643
7644# For host modules, accept cache file option, or specification as blank.
7645case "${cache_file}" in
7646"") # empty
7647 cache_file_option="" ;;
7648/* | [A-Za-z]:[\\/]* ) # absolute path
7649 cache_file_option="--cache-file=${cache_file}" ;;
7650*) # relative path
7651 cache_file_option="--cache-file=../${cache_file}" ;;
7652esac
7653
82252c06
NN
7654# Host dirs don't like to share a cache file either, horribly enough.
7655# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7656host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7657
65b4571a 7658target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7659
7660# Passing a --with-cross-host argument lets the target libraries know
7661# whether they are being built with a cross-compiler or being built
7662# native. However, it would be better to use other mechanisms to make the
7663# sorts of decisions they want to make on this basis. Please consider
7664# this option to be deprecated. FIXME.
7665if test x${is_cross_compiler} = xyes ; then
c6b750e1 7666 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7667fi
7668
afc0578d 7669# Special user-friendly check for native x86_64-linux build, if
7670# multilib is not explicitly enabled.
7671case "$target:$have_compiler:$host:$target:$enable_multilib" in
7672 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7673 # Make sure we have a development environment that handles 32-bit
afc0578d 7674 dev64=no
7675 echo "int main () { return 0; }" > conftest.c
7676 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7677 if test $? = 0 ; then
7678 if test -s conftest || test -s conftest.exe ; then
7679 dev64=yes
7680 fi
7681 fi
7682 rm -f conftest*
7683 if test x${dev64} != xyes ; then
d0ac1c44 7684 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 7685 fi
7686 ;;
7687esac
7688
938d2b74
RW
7689# Default to --enable-multilib.
7690if test x${enable_multilib} = x ; then
a0da8069 7691 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7692fi
a0da8069
NN
7693
7694# Pass --with-newlib if appropriate. Note that target_configdirs has
7695# changed from the earlier setting of with_newlib.
7696if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7697 target_configargs="--with-newlib ${target_configargs}"
7698fi
7699
95036d20
NN
7700# Different target subdirs use different values of certain variables
7701# (notably CXX). Worse, multilibs use *lots* of different values.
7702# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7703# it doesn't automatically accept command-line overrides of them.
7704# This means it's not safe for target subdirs to share a cache file,
7705# which is disgusting, but there you have it. Hopefully this can be
7706# fixed in future. It's still worthwhile to use a cache file for each
7707# directory. I think.
7708
ae380b45
MS
7709# Pass the appropriate --build, --host, --target and --cache-file arguments.
7710# We need to pass --target, as newer autoconf's requires consistency
7711# for target_alias and gcc doesn't manage it consistently.
4b900473 7712target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7713
a0da8069
NN
7714FLAGS_FOR_TARGET=
7715case " $target_configdirs " in
7716 *" newlib "*)
7717 case " $target_configargs " in
7718 *" --with-newlib "*)
7719 case "$target" in
1f53ca9a 7720 *-cygwin*)
6d94c122 7721 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7722 ;;
a0da8069
NN
7723 esac
7724
7725 # If we're not building GCC, don't discard standard headers.
7726 if test -d ${srcdir}/gcc; then
7727 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7728
7729 if test "${build}" != "${host}"; then
7730 # On Canadian crosses, CC_FOR_TARGET will have already been set
7731 # by `configure', so we won't have an opportunity to add -Bgcc/
7732 # to it. This is right: we don't want to search that directory
7733 # for binaries, but we want the header files in there, so add
7734 # them explicitly.
e552509b 7735 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7736
7737 # Someone might think of using the pre-installed headers on
7738 # Canadian crosses, in case the installed compiler is not fully
7739 # compatible with the compiler being built. In this case, it
7740 # would be better to flag an error than risking having
7741 # incompatible object files being constructed. We can't
7742 # guarantee that an error will be flagged, but let's hope the
7743 # compiler will do it, when presented with incompatible header
7744 # files.
7745 fi
7746 fi
7747
7748 case "${target}-${is_cross_compiler}" in
ec11bdc6 7749 i[3456789]86-*-linux*-no)
a0da8069
NN
7750 # Here host == target, so we don't need to build gcc,
7751 # so we don't want to discard standard headers.
7752 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7753 ;;
7754 *)
7755 # If we're building newlib, use its generic headers last, but search
7756 # for any libc-related directories first (so make it the last -B
7757 # switch).
7758 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
7759
7760 # If we're building libgloss, find the startup file, simulator library
7761 # and linker script.
7762 case " $target_configdirs " in
7763 *" libgloss "*)
7764 # Look for startup file, simulator library and maybe linker script.
7765 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7766 # Look for libnosys.a in case the target needs it.
7767 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7768 # Most targets have the linker script in the source directory.
7769 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7770 ;;
7771 esac
a0da8069
NN
7772 ;;
7773 esac
7774 ;;
7775 esac
7776 ;;
7777esac
1f53ca9a 7778
45055374 7779case "$target" in
1f53ca9a
AO
7780 x86_64-*mingw* | *-w64-mingw*)
7781 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7782 # however, use a symlink named 'mingw' in ${prefix} .
7783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7784 ;;
7785 *-mingw*)
7786 # MinGW can't be handled as Cygwin above since it does not use newlib.
7787 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'
7788 ;;
45055374 7789esac
a0da8069 7790
5fbad20a
DD
7791# Allow the user to override the flags for
7792# our build compiler if desired.
c66487f8
NC
7793if test x"${build}" = x"${host}" ; then
7794 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7795 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7796 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7797fi
5fbad20a 7798
a0da8069
NN
7799# On Canadian crosses, we'll be searching the right directories for
7800# the previously-installed cross compiler, so don't bother to add
7801# flags for directories within the install tree of the compiler
7802# being built; programs in there won't even run.
7803if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7804 # Search for pre-installed headers if nothing else fits.
bba45b8b 7805 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
7806fi
7807
7808if test "x${use_gnu_ld}" = x &&
7809 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7810 # Arrange for us to find uninstalled linker scripts.
b00612cc 7811 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7812fi
7813
a481dbb7
DD
7814# Search for other target-specific linker scripts and such.
7815case "${target}" in
4e206d7e
DB
7816 mep*)
7817 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7818 ;;
7819esac
7820
a0da8069 7821# Makefile fragments.
3e707e94
PB
7822for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7823do
7824 eval fragval=\$$frag
7825 if test $fragval != /dev/null; then
7826 eval $frag=${srcdir}/$fragval
7827 fi
7828done
a0da8069
NN
7829
7830
7831
7832
7833
7834# Miscellanea: directories, flags, etc.
7835
7836
7837
7838
7839
7840
7841
3bbd2f8f 7842
6a9cf61e 7843# Build module lists & subconfigure args.
a0da8069
NN
7844
7845
7846
be01d343
PB
7847# Host module lists & subconfigure args.
7848
7849
7850
911e63d0 7851
be01d343
PB
7852# Target module lists & subconfigure args.
7853
7854
7855
7856# Build tools.
7857
7858
7859
1576798e
PB
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
be01d343
PB
7873# Generate default definitions for YACC, M4, LEX and other programs that run
7874# on the build machine. These are used if the Makefile can't locate these
7875# programs in objdir.
7876MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7877
7878for ac_prog in 'bison -y' byacc yacc
7879do
c6b750e1 7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7881set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7884if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7885 $as_echo_n "(cached) " >&6
be01d343
PB
7886else
7887 if test -n "$YACC"; then
7888 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7889else
c6b750e1
DJ
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
81ecdfbb 7895 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7897 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7899 break 2
7900 fi
7901done
81ecdfbb
RW
7902 done
7903IFS=$as_save_IFS
c6b750e1 7904
be01d343
PB
7905fi
7906fi
c6b750e1 7907YACC=$ac_cv_prog_YACC
be01d343 7908if test -n "$YACC"; then
81ecdfbb
RW
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7910$as_echo "$YACC" >&6; }
be01d343 7911else
81ecdfbb
RW
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
be01d343
PB
7914fi
7915
81ecdfbb 7916
c6b750e1 7917 test -n "$YACC" && break
be01d343
PB
7918done
7919test -n "$YACC" || YACC="$MISSING bison -y"
7920
7921case " $build_configdirs " in
7922 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7923esac
7924
7925for ac_prog in bison
7926do
c6b750e1 7927 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7928set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7931if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7932 $as_echo_n "(cached) " >&6
be01d343
PB
7933else
7934 if test -n "$BISON"; then
7935 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7936else
c6b750e1
DJ
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
81ecdfbb 7942 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7944 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7946 break 2
7947 fi
7948done
81ecdfbb
RW
7949 done
7950IFS=$as_save_IFS
c6b750e1 7951
be01d343
PB
7952fi
7953fi
c6b750e1 7954BISON=$ac_cv_prog_BISON
be01d343 7955if test -n "$BISON"; then
81ecdfbb
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7957$as_echo "$BISON" >&6; }
be01d343 7958else
81ecdfbb
RW
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
be01d343
PB
7961fi
7962
81ecdfbb 7963
c6b750e1 7964 test -n "$BISON" && break
be01d343
PB
7965done
7966test -n "$BISON" || BISON="$MISSING bison"
7967
7968case " $build_configdirs " in
7969 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7970esac
7971
7972for ac_prog in gm4 gnum4 m4
7973do
c6b750e1 7974 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7975set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7978if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7979 $as_echo_n "(cached) " >&6
be01d343
PB
7980else
7981 if test -n "$M4"; then
7982 ac_cv_prog_M4="$M4" # Let the user override the test.
7983else
c6b750e1
DJ
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
81ecdfbb 7989 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7991 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7993 break 2
7994 fi
7995done
81ecdfbb
RW
7996 done
7997IFS=$as_save_IFS
c6b750e1 7998
be01d343
PB
7999fi
8000fi
c6b750e1 8001M4=$ac_cv_prog_M4
be01d343 8002if test -n "$M4"; then
81ecdfbb
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8004$as_echo "$M4" >&6; }
be01d343 8005else
81ecdfbb
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
be01d343
PB
8008fi
8009
81ecdfbb 8010
c6b750e1 8011 test -n "$M4" && break
be01d343
PB
8012done
8013test -n "$M4" || M4="$MISSING m4"
8014
8015case " $build_configdirs " in
8016 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8017esac
8018
8019for ac_prog in flex lex
8020do
c6b750e1 8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8022set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8025if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 8026 $as_echo_n "(cached) " >&6
be01d343
PB
8027else
8028 if test -n "$LEX"; then
8029 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8030else
c6b750e1
DJ
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
81ecdfbb 8036 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8038 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8040 break 2
8041 fi
8042done
81ecdfbb
RW
8043 done
8044IFS=$as_save_IFS
c6b750e1 8045
be01d343
PB
8046fi
8047fi
c6b750e1 8048LEX=$ac_cv_prog_LEX
be01d343 8049if test -n "$LEX"; then
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8051$as_echo "$LEX" >&6; }
be01d343 8052else
81ecdfbb
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
be01d343
PB
8055fi
8056
81ecdfbb 8057
c6b750e1 8058 test -n "$LEX" && break
be01d343
PB
8059done
8060test -n "$LEX" || LEX="$MISSING flex"
8061
8062case " $build_configdirs " in
8063 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8064 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8065esac
8066
8067for ac_prog in flex
8068do
c6b750e1 8069 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8070set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8073if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 8074 $as_echo_n "(cached) " >&6
be01d343
PB
8075else
8076 if test -n "$FLEX"; then
8077 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8078else
c6b750e1
DJ
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
81ecdfbb 8084 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8086 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8088 break 2
8089 fi
8090done
81ecdfbb
RW
8091 done
8092IFS=$as_save_IFS
c6b750e1 8093
be01d343
PB
8094fi
8095fi
c6b750e1 8096FLEX=$ac_cv_prog_FLEX
be01d343 8097if test -n "$FLEX"; then
81ecdfbb
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8099$as_echo "$FLEX" >&6; }
be01d343 8100else
81ecdfbb
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
be01d343
PB
8103fi
8104
81ecdfbb 8105
c6b750e1 8106 test -n "$FLEX" && break
be01d343
PB
8107done
8108test -n "$FLEX" || FLEX="$MISSING flex"
8109
8110case " $build_configdirs " in
8111 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8112esac
8113
8114for ac_prog in makeinfo
8115do
c6b750e1 8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8117set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8120if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 8121 $as_echo_n "(cached) " >&6
be01d343
PB
8122else
8123 if test -n "$MAKEINFO"; then
8124 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8125else
c6b750e1
DJ
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
81ecdfbb 8131 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8133 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8135 break 2
8136 fi
8137done
81ecdfbb
RW
8138 done
8139IFS=$as_save_IFS
c6b750e1 8140
be01d343
PB
8141fi
8142fi
c6b750e1 8143MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8144if test -n "$MAKEINFO"; then
81ecdfbb
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8146$as_echo "$MAKEINFO" >&6; }
be01d343 8147else
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
be01d343
PB
8150fi
8151
81ecdfbb 8152
c6b750e1 8153 test -n "$MAKEINFO" && break
be01d343
PB
8154done
8155test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8156
8157case " $build_configdirs " in
8158 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8159 *)
8160
10ad8ef3 8161 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8162 # higher, else we use the "missing" dummy.
8163 if ${MAKEINFO} --version \
10ad8ef3 8164 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8165 :
8166 else
8167 MAKEINFO="$MISSING makeinfo"
8168 fi
8169 ;;
8170
8171esac
a0da8069 8172
be01d343 8173# FIXME: expect and dejagnu may become build tools?
a0da8069 8174
be01d343
PB
8175for ac_prog in expect
8176do
c6b750e1 8177 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8178set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8181if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8182 $as_echo_n "(cached) " >&6
be01d343
PB
8183else
8184 if test -n "$EXPECT"; then
8185 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8186else
c6b750e1
DJ
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
81ecdfbb 8192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8194 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8196 break 2
8197 fi
8198done
81ecdfbb
RW
8199 done
8200IFS=$as_save_IFS
c6b750e1 8201
be01d343
PB
8202fi
8203fi
c6b750e1 8204EXPECT=$ac_cv_prog_EXPECT
be01d343 8205if test -n "$EXPECT"; then
81ecdfbb
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8207$as_echo "$EXPECT" >&6; }
be01d343 8208else
81ecdfbb
RW
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210$as_echo "no" >&6; }
be01d343 8211fi
a0da8069 8212
81ecdfbb 8213
c6b750e1 8214 test -n "$EXPECT" && break
be01d343
PB
8215done
8216test -n "$EXPECT" || EXPECT="expect"
a0da8069 8217
be01d343
PB
8218case " $configdirs " in
8219 *" expect "*)
8220 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8221 ;;
8222esac
a0da8069 8223
be01d343
PB
8224for ac_prog in runtest
8225do
c6b750e1 8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8227set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8230if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8231 $as_echo_n "(cached) " >&6
be01d343
PB
8232else
8233 if test -n "$RUNTEST"; then
8234 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8235else
c6b750e1
DJ
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
81ecdfbb 8241 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8243 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8245 break 2
8246 fi
8247done
81ecdfbb
RW
8248 done
8249IFS=$as_save_IFS
c6b750e1 8250
be01d343
PB
8251fi
8252fi
c6b750e1 8253RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8254if test -n "$RUNTEST"; then
81ecdfbb
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8256$as_echo "$RUNTEST" >&6; }
be01d343 8257else
81ecdfbb
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
be01d343 8260fi
a0da8069 8261
81ecdfbb 8262
c6b750e1 8263 test -n "$RUNTEST" && break
be01d343
PB
8264done
8265test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8266
be01d343
PB
8267case " $configdirs " in
8268 *" dejagnu "*)
6b89cc21 8269 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8270 ;;
8271esac
a0da8069
NN
8272
8273
a0da8069 8274# Host tools.
859789af
AC
8275ncn_tool_prefix=
8276test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8277ncn_target_tool_prefix=
8278test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8279
9a819804
AO
8280
8281
8282if test -n "$AR"; then
8283 ac_cv_prog_AR=$AR
8284elif test -n "$ac_cv_prog_AR"; then
8285 AR=$ac_cv_prog_AR
8286fi
8287
8288if test -n "$ac_cv_prog_AR"; then
8289 for ncn_progname in ar; do
8290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8294if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8295 $as_echo_n "(cached) " >&6
9a819804
AO
8296else
8297 if test -n "$AR"; then
8298 ac_cv_prog_AR="$AR" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
81ecdfbb 8305 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8307 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8309 break 2
8310 fi
8311done
81ecdfbb
RW
8312 done
8313IFS=$as_save_IFS
9a819804
AO
8314
8315fi
8316fi
8317AR=$ac_cv_prog_AR
8318if test -n "$AR"; then
81ecdfbb
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8320$as_echo "$AR" >&6; }
9a819804 8321else
81ecdfbb
RW
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
9a819804
AO
8324fi
8325
81ecdfbb 8326
9a819804
AO
8327 done
8328fi
8329
8330for ncn_progname in ar; do
05cbd757
PB
8331 if test -n "$ncn_tool_prefix"; then
8332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8333set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8336if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8337 $as_echo_n "(cached) " >&6
859789af
AC
8338else
8339 if test -n "$AR"; then
8340 ac_cv_prog_AR="$AR" # Let the user override the test.
8341else
c6b750e1
DJ
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
81ecdfbb 8347 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8349 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8351 break 2
8352 fi
8353done
81ecdfbb
RW
8354 done
8355IFS=$as_save_IFS
c6b750e1 8356
859789af
AC
8357fi
8358fi
c6b750e1 8359AR=$ac_cv_prog_AR
859789af 8360if test -n "$AR"; then
81ecdfbb
RW
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8362$as_echo "$AR" >&6; }
859789af 8363else
81ecdfbb
RW
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365$as_echo "no" >&6; }
859789af
AC
8366fi
8367
81ecdfbb 8368
05cbd757
PB
8369 fi
8370 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8375if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8376 $as_echo_n "(cached) " >&6
859789af 8377else
05cbd757
PB
8378 if test -n "$AR"; then
8379 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8380else
c6b750e1
DJ
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
81ecdfbb 8386 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8388 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8390 break 2
8391 fi
8392done
81ecdfbb
RW
8393 done
8394IFS=$as_save_IFS
c6b750e1 8395
859789af
AC
8396fi
8397fi
c6b750e1 8398AR=$ac_cv_prog_AR
05cbd757 8399if test -n "$AR"; then
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8401$as_echo "$AR" >&6; }
859789af 8402else
81ecdfbb
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
859789af 8405fi
c6b750e1 8406
81ecdfbb 8407
05cbd757
PB
8408 fi
8409 test -n "$ac_cv_prog_AR" && break
8410done
8411
8412if test -z "$ac_cv_prog_AR" ; then
8413 set dummy ar
8414 if test $build = $host ; then
8415 AR="$2"
859789af 8416 else
05cbd757 8417 AR="${ncn_tool_prefix}$2"
859789af 8418 fi
859789af
AC
8419fi
8420
9a819804
AO
8421
8422
8423if test -n "$AS"; then
8424 ac_cv_prog_AS=$AS
8425elif test -n "$ac_cv_prog_AS"; then
8426 AS=$ac_cv_prog_AS
8427fi
8428
8429if test -n "$ac_cv_prog_AS"; then
8430 for ncn_progname in as; do
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8435if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8436 $as_echo_n "(cached) " >&6
9a819804
AO
8437else
8438 if test -n "$AS"; then
8439 ac_cv_prog_AS="$AS" # Let the user override the test.
8440else
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
81ecdfbb 8446 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8448 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8450 break 2
8451 fi
8452done
81ecdfbb
RW
8453 done
8454IFS=$as_save_IFS
9a819804
AO
8455
8456fi
8457fi
8458AS=$ac_cv_prog_AS
8459if test -n "$AS"; then
81ecdfbb
RW
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8461$as_echo "$AS" >&6; }
9a819804 8462else
81ecdfbb
RW
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464$as_echo "no" >&6; }
9a819804
AO
8465fi
8466
81ecdfbb 8467
9a819804
AO
8468 done
8469fi
8470
8471for ncn_progname in as; do
05cbd757
PB
8472 if test -n "$ncn_tool_prefix"; then
8473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8474set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8477if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8478 $as_echo_n "(cached) " >&6
859789af
AC
8479else
8480 if test -n "$AS"; then
8481 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8482else
8483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
81ecdfbb 8488 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8490 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8492 break 2
8493 fi
8494done
81ecdfbb
RW
8495 done
8496IFS=$as_save_IFS
c6b750e1 8497
859789af
AC
8498fi
8499fi
c6b750e1 8500AS=$ac_cv_prog_AS
859789af 8501if test -n "$AS"; then
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8503$as_echo "$AS" >&6; }
859789af 8504else
81ecdfbb
RW
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506$as_echo "no" >&6; }
859789af
AC
8507fi
8508
81ecdfbb 8509
05cbd757
PB
8510 fi
8511 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8516if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8517 $as_echo_n "(cached) " >&6
859789af 8518else
05cbd757
PB
8519 if test -n "$AS"; then
8520 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8521else
c6b750e1
DJ
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
81ecdfbb 8527 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8529 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8531 break 2
8532 fi
8533done
81ecdfbb
RW
8534 done
8535IFS=$as_save_IFS
c6b750e1 8536
859789af
AC
8537fi
8538fi
c6b750e1 8539AS=$ac_cv_prog_AS
05cbd757 8540if test -n "$AS"; then
81ecdfbb
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8542$as_echo "$AS" >&6; }
859789af 8543else
81ecdfbb
RW
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
859789af 8546fi
c6b750e1 8547
81ecdfbb 8548
05cbd757
PB
8549 fi
8550 test -n "$ac_cv_prog_AS" && break
8551done
8552
8553if test -z "$ac_cv_prog_AS" ; then
8554 set dummy as
8555 if test $build = $host ; then
8556 AS="$2"
859789af 8557 else
05cbd757 8558 AS="${ncn_tool_prefix}$2"
859789af 8559 fi
859789af
AC
8560fi
8561
9a819804
AO
8562
8563
8564if test -n "$DLLTOOL"; then
8565 ac_cv_prog_DLLTOOL=$DLLTOOL
8566elif test -n "$ac_cv_prog_DLLTOOL"; then
8567 DLLTOOL=$ac_cv_prog_DLLTOOL
8568fi
8569
8570if test -n "$ac_cv_prog_DLLTOOL"; then
8571 for ncn_progname in dlltool; do
8572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8576if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8577 $as_echo_n "(cached) " >&6
9a819804
AO
8578else
8579 if test -n "$DLLTOOL"; then
8580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
81ecdfbb 8587 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8589 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8591 break 2
8592 fi
8593done
81ecdfbb
RW
8594 done
8595IFS=$as_save_IFS
9a819804
AO
8596
8597fi
8598fi
8599DLLTOOL=$ac_cv_prog_DLLTOOL
8600if test -n "$DLLTOOL"; then
81ecdfbb
RW
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8602$as_echo "$DLLTOOL" >&6; }
9a819804 8603else
81ecdfbb
RW
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
9a819804
AO
8606fi
8607
81ecdfbb 8608
9a819804
AO
8609 done
8610fi
8611
8612for ncn_progname in dlltool; do
05cbd757
PB
8613 if test -n "$ncn_tool_prefix"; then
8614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8618if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8619 $as_echo_n "(cached) " >&6
859789af
AC
8620else
8621 if test -n "$DLLTOOL"; then
8622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8623else
c6b750e1
DJ
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
81ecdfbb 8629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8631 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8633 break 2
8634 fi
8635done
81ecdfbb
RW
8636 done
8637IFS=$as_save_IFS
c6b750e1 8638
859789af
AC
8639fi
8640fi
c6b750e1 8641DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8642if test -n "$DLLTOOL"; then
81ecdfbb
RW
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8644$as_echo "$DLLTOOL" >&6; }
859789af 8645else
81ecdfbb
RW
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
859789af
AC
8648fi
8649
81ecdfbb 8650
05cbd757
PB
8651 fi
8652 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8657if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8658 $as_echo_n "(cached) " >&6
859789af 8659else
05cbd757
PB
8660 if test -n "$DLLTOOL"; then
8661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8662else
c6b750e1
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
81ecdfbb 8668 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8670 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8672 break 2
8673 fi
8674done
81ecdfbb
RW
8675 done
8676IFS=$as_save_IFS
c6b750e1 8677
859789af
AC
8678fi
8679fi
c6b750e1 8680DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8681if test -n "$DLLTOOL"; then
81ecdfbb
RW
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8683$as_echo "$DLLTOOL" >&6; }
859789af 8684else
81ecdfbb
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
859789af 8687fi
c6b750e1 8688
81ecdfbb 8689
05cbd757
PB
8690 fi
8691 test -n "$ac_cv_prog_DLLTOOL" && break
8692done
8693
8694if test -z "$ac_cv_prog_DLLTOOL" ; then
8695 set dummy dlltool
8696 if test $build = $host ; then
8697 DLLTOOL="$2"
859789af 8698 else
05cbd757 8699 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8700 fi
859789af
AC
8701fi
8702
9a819804
AO
8703
8704
8705if test -n "$LD"; then
8706 ac_cv_prog_LD=$LD
8707elif test -n "$ac_cv_prog_LD"; then
8708 LD=$ac_cv_prog_LD
8709fi
8710
8711if test -n "$ac_cv_prog_LD"; then
8712 for ncn_progname in ld; do
8713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8714set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8717if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8718 $as_echo_n "(cached) " >&6
9a819804
AO
8719else
8720 if test -n "$LD"; then
8721 ac_cv_prog_LD="$LD" # Let the user override the test.
8722else
8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
81ecdfbb 8728 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8730 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8732 break 2
8733 fi
8734done
81ecdfbb
RW
8735 done
8736IFS=$as_save_IFS
9a819804
AO
8737
8738fi
8739fi
8740LD=$ac_cv_prog_LD
8741if test -n "$LD"; then
81ecdfbb
RW
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8743$as_echo "$LD" >&6; }
9a819804 8744else
81ecdfbb
RW
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746$as_echo "no" >&6; }
9a819804
AO
8747fi
8748
81ecdfbb 8749
9a819804
AO
8750 done
8751fi
8752
8753for ncn_progname in ld; do
05cbd757
PB
8754 if test -n "$ncn_tool_prefix"; then
8755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8756set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8759if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8760 $as_echo_n "(cached) " >&6
859789af
AC
8761else
8762 if test -n "$LD"; then
8763 ac_cv_prog_LD="$LD" # Let the user override the test.
8764else
c6b750e1
DJ
8765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
81ecdfbb 8770 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8772 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8774 break 2
8775 fi
8776done
81ecdfbb
RW
8777 done
8778IFS=$as_save_IFS
c6b750e1 8779
859789af
AC
8780fi
8781fi
c6b750e1 8782LD=$ac_cv_prog_LD
859789af 8783if test -n "$LD"; then
81ecdfbb
RW
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8785$as_echo "$LD" >&6; }
859789af 8786else
81ecdfbb
RW
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788$as_echo "no" >&6; }
859789af
AC
8789fi
8790
81ecdfbb 8791
05cbd757
PB
8792 fi
8793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8798if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8799 $as_echo_n "(cached) " >&6
859789af 8800else
05cbd757
PB
8801 if test -n "$LD"; then
8802 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8803else
c6b750e1
DJ
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
81ecdfbb 8809 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8811 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8813 break 2
8814 fi
8815done
81ecdfbb
RW
8816 done
8817IFS=$as_save_IFS
c6b750e1 8818
859789af
AC
8819fi
8820fi
c6b750e1 8821LD=$ac_cv_prog_LD
05cbd757 8822if test -n "$LD"; then
81ecdfbb
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8824$as_echo "$LD" >&6; }
859789af 8825else
81ecdfbb
RW
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
859789af 8828fi
c6b750e1 8829
81ecdfbb 8830
05cbd757
PB
8831 fi
8832 test -n "$ac_cv_prog_LD" && break
8833done
8834
8835if test -z "$ac_cv_prog_LD" ; then
8836 set dummy ld
8837 if test $build = $host ; then
8838 LD="$2"
859789af 8839 else
05cbd757 8840 LD="${ncn_tool_prefix}$2"
859789af 8841 fi
859789af
AC
8842fi
8843
9a819804
AO
8844
8845
8846if test -n "$LIPO"; then
8847 ac_cv_prog_LIPO=$LIPO
8848elif test -n "$ac_cv_prog_LIPO"; then
8849 LIPO=$ac_cv_prog_LIPO
8850fi
8851
8852if test -n "$ac_cv_prog_LIPO"; then
8853 for ncn_progname in lipo; do
8854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8855set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8858if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8859 $as_echo_n "(cached) " >&6
9a819804
AO
8860else
8861 if test -n "$LIPO"; then
8862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8863else
8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865for as_dir in $PATH
8866do
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
81ecdfbb 8869 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8871 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8873 break 2
8874 fi
8875done
81ecdfbb
RW
8876 done
8877IFS=$as_save_IFS
9a819804
AO
8878
8879fi
8880fi
8881LIPO=$ac_cv_prog_LIPO
8882if test -n "$LIPO"; then
81ecdfbb
RW
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8884$as_echo "$LIPO" >&6; }
9a819804 8885else
81ecdfbb
RW
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
9a819804
AO
8888fi
8889
81ecdfbb 8890
9a819804
AO
8891 done
8892fi
8893
8894for ncn_progname in lipo; do
be01d343
PB
8895 if test -n "$ncn_tool_prefix"; then
8896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8897set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8900if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8901 $as_echo_n "(cached) " >&6
be01d343
PB
8902else
8903 if test -n "$LIPO"; then
8904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8905else
c6b750e1
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
81ecdfbb 8911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8913 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8915 break 2
8916 fi
8917done
81ecdfbb
RW
8918 done
8919IFS=$as_save_IFS
c6b750e1 8920
be01d343
PB
8921fi
8922fi
c6b750e1 8923LIPO=$ac_cv_prog_LIPO
be01d343 8924if test -n "$LIPO"; then
81ecdfbb
RW
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8926$as_echo "$LIPO" >&6; }
be01d343 8927else
81ecdfbb
RW
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929$as_echo "no" >&6; }
be01d343
PB
8930fi
8931
81ecdfbb 8932
be01d343
PB
8933 fi
8934 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8939if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8940 $as_echo_n "(cached) " >&6
be01d343
PB
8941else
8942 if test -n "$LIPO"; then
8943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8944else
c6b750e1
DJ
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
81ecdfbb 8950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8952 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8954 break 2
8955 fi
8956done
81ecdfbb
RW
8957 done
8958IFS=$as_save_IFS
c6b750e1 8959
be01d343
PB
8960fi
8961fi
c6b750e1 8962LIPO=$ac_cv_prog_LIPO
be01d343 8963if test -n "$LIPO"; then
81ecdfbb
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8965$as_echo "$LIPO" >&6; }
be01d343 8966else
81ecdfbb
RW
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968$as_echo "no" >&6; }
be01d343 8969fi
c6b750e1 8970
81ecdfbb 8971
be01d343
PB
8972 fi
8973 test -n "$ac_cv_prog_LIPO" && break
8974done
8975
8976if test -z "$ac_cv_prog_LIPO" ; then
8977 set dummy lipo
8978 if test $build = $host ; then
8979 LIPO="$2"
8980 else
8981 LIPO="${ncn_tool_prefix}$2"
8982 fi
8983fi
8984
9a819804
AO
8985
8986
8987if test -n "$NM"; then
8988 ac_cv_prog_NM=$NM
8989elif test -n "$ac_cv_prog_NM"; then
8990 NM=$ac_cv_prog_NM
8991fi
8992
8993if test -n "$ac_cv_prog_NM"; then
8994 for ncn_progname in nm; do
8995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8996set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8999if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9000 $as_echo_n "(cached) " >&6
859789af
AC
9001else
9002 if test -n "$NM"; then
9003 ac_cv_prog_NM="$NM" # Let the user override the test.
9004else
c6b750e1
DJ
9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006for as_dir in $PATH
9007do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
81ecdfbb 9010 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9012 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9014 break 2
9015 fi
9016done
81ecdfbb
RW
9017 done
9018IFS=$as_save_IFS
c6b750e1 9019
859789af
AC
9020fi
9021fi
c6b750e1 9022NM=$ac_cv_prog_NM
859789af 9023if test -n "$NM"; then
81ecdfbb
RW
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9025$as_echo "$NM" >&6; }
859789af 9026else
81ecdfbb
RW
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028$as_echo "no" >&6; }
859789af
AC
9029fi
9030
81ecdfbb 9031
9a819804
AO
9032 done
9033fi
9034
9035for ncn_progname in nm; do
9036 if test -n "$ncn_tool_prefix"; then
9037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9038set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9041if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9042 $as_echo_n "(cached) " >&6
859789af 9043else
05cbd757
PB
9044 if test -n "$NM"; then
9045 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9046else
c6b750e1
DJ
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
81ecdfbb 9052 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9054 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9056 break 2
9057 fi
9058done
81ecdfbb
RW
9059 done
9060IFS=$as_save_IFS
c6b750e1 9061
859789af
AC
9062fi
9063fi
c6b750e1 9064NM=$ac_cv_prog_NM
05cbd757 9065if test -n "$NM"; then
81ecdfbb
RW
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9067$as_echo "$NM" >&6; }
859789af 9068else
81ecdfbb
RW
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
859789af 9071fi
c6b750e1 9072
81ecdfbb 9073
05cbd757 9074 fi
9a819804
AO
9075 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9077set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9080if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 9081 $as_echo_n "(cached) " >&6
9a819804
AO
9082else
9083 if test -n "$NM"; then
9084 ac_cv_prog_NM="$NM" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
81ecdfbb 9091 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9093 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9095 break 2
9096 fi
9097done
81ecdfbb
RW
9098 done
9099IFS=$as_save_IFS
9a819804
AO
9100
9101fi
9102fi
9103NM=$ac_cv_prog_NM
9104if test -n "$NM"; then
81ecdfbb
RW
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9106$as_echo "$NM" >&6; }
9a819804 9107else
81ecdfbb
RW
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
9a819804
AO
9110fi
9111
81ecdfbb 9112
9a819804
AO
9113 fi
9114 test -n "$ac_cv_prog_NM" && break
9115done
9116
9117if test -z "$ac_cv_prog_NM" ; then
9118 set dummy nm
9119 if test $build = $host ; then
9120 NM="$2"
9121 else
9122 NM="${ncn_tool_prefix}$2"
9123 fi
9124fi
9125
9126
9127
9128if test -n "$RANLIB"; then
9129 ac_cv_prog_RANLIB=$RANLIB
9130elif test -n "$ac_cv_prog_RANLIB"; then
9131 RANLIB=$ac_cv_prog_RANLIB
9132fi
9133
9134if test -n "$ac_cv_prog_RANLIB"; then
9135 for ncn_progname in ranlib; do
9136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9140if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9141 $as_echo_n "(cached) " >&6
9a819804
AO
9142else
9143 if test -n "$RANLIB"; then
9144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9145else
9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
81ecdfbb 9151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9153 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9155 break 2
9156 fi
9157done
81ecdfbb
RW
9158 done
9159IFS=$as_save_IFS
9a819804
AO
9160
9161fi
9162fi
9163RANLIB=$ac_cv_prog_RANLIB
9164if test -n "$RANLIB"; then
81ecdfbb
RW
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9166$as_echo "$RANLIB" >&6; }
9a819804 9167else
81ecdfbb
RW
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
9a819804
AO
9170fi
9171
81ecdfbb 9172
9a819804
AO
9173 done
9174fi
859789af 9175
9a819804 9176for ncn_progname in ranlib; do
05cbd757
PB
9177 if test -n "$ncn_tool_prefix"; then
9178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9179set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9182if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9183 $as_echo_n "(cached) " >&6
859789af
AC
9184else
9185 if test -n "$RANLIB"; then
9186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9187else
c6b750e1
DJ
9188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189for as_dir in $PATH
9190do
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
81ecdfbb 9193 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9195 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9197 break 2
9198 fi
9199done
81ecdfbb
RW
9200 done
9201IFS=$as_save_IFS
c6b750e1 9202
859789af
AC
9203fi
9204fi
c6b750e1 9205RANLIB=$ac_cv_prog_RANLIB
859789af 9206if test -n "$RANLIB"; then
81ecdfbb
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9208$as_echo "$RANLIB" >&6; }
859789af 9209else
81ecdfbb
RW
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211$as_echo "no" >&6; }
859789af
AC
9212fi
9213
81ecdfbb 9214
05cbd757
PB
9215 fi
9216 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9218set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9221if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9222 $as_echo_n "(cached) " >&6
859789af 9223else
05cbd757
PB
9224 if test -n "$RANLIB"; then
9225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9226else
c6b750e1
DJ
9227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230 IFS=$as_save_IFS
9231 test -z "$as_dir" && as_dir=.
81ecdfbb 9232 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9234 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9236 break 2
9237 fi
9238done
81ecdfbb
RW
9239 done
9240IFS=$as_save_IFS
c6b750e1 9241
859789af
AC
9242fi
9243fi
c6b750e1 9244RANLIB=$ac_cv_prog_RANLIB
05cbd757 9245if test -n "$RANLIB"; then
81ecdfbb
RW
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9247$as_echo "$RANLIB" >&6; }
859789af 9248else
81ecdfbb
RW
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250$as_echo "no" >&6; }
859789af 9251fi
c6b750e1 9252
81ecdfbb 9253
859789af 9254 fi
05cbd757
PB
9255 test -n "$ac_cv_prog_RANLIB" && break
9256done
9257
9258if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9259 RANLIB="true"
859789af
AC
9260fi
9261
9a819804
AO
9262
9263
9264if test -n "$STRIP"; then
9265 ac_cv_prog_STRIP=$STRIP
9266elif test -n "$ac_cv_prog_STRIP"; then
9267 STRIP=$ac_cv_prog_STRIP
9268fi
9269
9270if test -n "$ac_cv_prog_STRIP"; then
9271 for ncn_progname in strip; do
9272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9276if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9277 $as_echo_n "(cached) " >&6
9a819804
AO
9278else
9279 if test -n "$STRIP"; then
9280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9281else
9282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283for as_dir in $PATH
9284do
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
81ecdfbb 9287 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9289 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9291 break 2
9292 fi
9293done
81ecdfbb
RW
9294 done
9295IFS=$as_save_IFS
9a819804
AO
9296
9297fi
9298fi
9299STRIP=$ac_cv_prog_STRIP
9300if test -n "$STRIP"; then
81ecdfbb
RW
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9302$as_echo "$STRIP" >&6; }
9a819804 9303else
81ecdfbb
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305$as_echo "no" >&6; }
9a819804
AO
9306fi
9307
81ecdfbb 9308
9a819804
AO
9309 done
9310fi
9311
9312for ncn_progname in strip; do
be01d343
PB
9313 if test -n "$ncn_tool_prefix"; then
9314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9315set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9318if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9319 $as_echo_n "(cached) " >&6
be01d343
PB
9320else
9321 if test -n "$STRIP"; then
9322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9323else
c6b750e1
DJ
9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in $PATH
9326do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
81ecdfbb 9329 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9331 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9333 break 2
9334 fi
9335done
81ecdfbb
RW
9336 done
9337IFS=$as_save_IFS
c6b750e1 9338
be01d343
PB
9339fi
9340fi
c6b750e1 9341STRIP=$ac_cv_prog_STRIP
be01d343 9342if test -n "$STRIP"; then
81ecdfbb
RW
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9344$as_echo "$STRIP" >&6; }
be01d343 9345else
81ecdfbb
RW
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347$as_echo "no" >&6; }
be01d343
PB
9348fi
9349
81ecdfbb 9350
be01d343
PB
9351 fi
9352 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9357if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9358 $as_echo_n "(cached) " >&6
be01d343
PB
9359else
9360 if test -n "$STRIP"; then
9361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9362else
c6b750e1
DJ
9363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364for as_dir in $PATH
9365do
9366 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=.
81ecdfbb 9368 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9370 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9372 break 2
9373 fi
9374done
81ecdfbb
RW
9375 done
9376IFS=$as_save_IFS
c6b750e1 9377
be01d343
PB
9378fi
9379fi
c6b750e1 9380STRIP=$ac_cv_prog_STRIP
be01d343 9381if test -n "$STRIP"; then
81ecdfbb
RW
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9383$as_echo "$STRIP" >&6; }
be01d343 9384else
81ecdfbb
RW
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386$as_echo "no" >&6; }
be01d343 9387fi
c6b750e1 9388
81ecdfbb 9389
be01d343
PB
9390 fi
9391 test -n "$ac_cv_prog_STRIP" && break
9392done
9393
9394if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9395 STRIP="true"
be01d343
PB
9396fi
9397
9a819804
AO
9398
9399
9400if test -n "$WINDRES"; then
9401 ac_cv_prog_WINDRES=$WINDRES
9402elif test -n "$ac_cv_prog_WINDRES"; then
9403 WINDRES=$ac_cv_prog_WINDRES
9404fi
9405
9406if test -n "$ac_cv_prog_WINDRES"; then
9407 for ncn_progname in windres; do
9408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9409set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9412if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9413 $as_echo_n "(cached) " >&6
9a819804
AO
9414else
9415 if test -n "$WINDRES"; then
9416 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9417else
9418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419for as_dir in $PATH
9420do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
81ecdfbb 9423 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9425 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9427 break 2
9428 fi
9429done
81ecdfbb
RW
9430 done
9431IFS=$as_save_IFS
9a819804
AO
9432
9433fi
9434fi
9435WINDRES=$ac_cv_prog_WINDRES
9436if test -n "$WINDRES"; then
81ecdfbb
RW
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9438$as_echo "$WINDRES" >&6; }
9a819804 9439else
81ecdfbb
RW
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441$as_echo "no" >&6; }
9a819804
AO
9442fi
9443
81ecdfbb 9444
9a819804
AO
9445 done
9446fi
9447
9448for ncn_progname in windres; do
05cbd757
PB
9449 if test -n "$ncn_tool_prefix"; then
9450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9451set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9454if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9455 $as_echo_n "(cached) " >&6
859789af
AC
9456else
9457 if test -n "$WINDRES"; then
9458 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9459else
c6b750e1
DJ
9460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461for as_dir in $PATH
9462do
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
81ecdfbb 9465 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9467 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9469 break 2
9470 fi
9471done
81ecdfbb
RW
9472 done
9473IFS=$as_save_IFS
c6b750e1 9474
859789af
AC
9475fi
9476fi
c6b750e1 9477WINDRES=$ac_cv_prog_WINDRES
859789af 9478if test -n "$WINDRES"; then
81ecdfbb
RW
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9480$as_echo "$WINDRES" >&6; }
859789af 9481else
81ecdfbb
RW
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483$as_echo "no" >&6; }
859789af
AC
9484fi
9485
81ecdfbb 9486
05cbd757
PB
9487 fi
9488 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9493if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9494 $as_echo_n "(cached) " >&6
859789af 9495else
05cbd757
PB
9496 if test -n "$WINDRES"; then
9497 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9498else
c6b750e1
DJ
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
81ecdfbb 9504 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9506 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9508 break 2
9509 fi
9510done
81ecdfbb
RW
9511 done
9512IFS=$as_save_IFS
c6b750e1 9513
859789af
AC
9514fi
9515fi
c6b750e1 9516WINDRES=$ac_cv_prog_WINDRES
05cbd757 9517if test -n "$WINDRES"; then
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9519$as_echo "$WINDRES" >&6; }
859789af 9520else
81ecdfbb
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
859789af 9523fi
c6b750e1 9524
81ecdfbb 9525
05cbd757
PB
9526 fi
9527 test -n "$ac_cv_prog_WINDRES" && break
9528done
9529
9530if test -z "$ac_cv_prog_WINDRES" ; then
9531 set dummy windres
9532 if test $build = $host ; then
9533 WINDRES="$2"
859789af 9534 else
05cbd757 9535 WINDRES="${ncn_tool_prefix}$2"
859789af 9536 fi
859789af
AC
9537fi
9538
9a819804
AO
9539
9540
0c24b341
NC
9541if test -n "$WINDMC"; then
9542 ac_cv_prog_WINDMC=$WINDMC
9543elif test -n "$ac_cv_prog_WINDMC"; then
9544 WINDMC=$ac_cv_prog_WINDMC
9545fi
9546
9547if test -n "$ac_cv_prog_WINDMC"; then
9548 for ncn_progname in windmc; do
9549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9550set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9553if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9554 $as_echo_n "(cached) " >&6
0c24b341
NC
9555else
9556 if test -n "$WINDMC"; then
9557 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9558else
9559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
81ecdfbb 9564 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9566 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9568 break 2
9569 fi
9570done
81ecdfbb
RW
9571 done
9572IFS=$as_save_IFS
0c24b341
NC
9573
9574fi
9575fi
9576WINDMC=$ac_cv_prog_WINDMC
9577if test -n "$WINDMC"; then
81ecdfbb
RW
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9579$as_echo "$WINDMC" >&6; }
0c24b341 9580else
81ecdfbb
RW
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
0c24b341
NC
9583fi
9584
81ecdfbb 9585
0c24b341
NC
9586 done
9587fi
9588
9589for ncn_progname in windmc; do
9590 if test -n "$ncn_tool_prefix"; then
9591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9595if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9596 $as_echo_n "(cached) " >&6
0c24b341
NC
9597else
9598 if test -n "$WINDMC"; then
9599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
81ecdfbb 9606 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9608 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9610 break 2
9611 fi
9612done
81ecdfbb
RW
9613 done
9614IFS=$as_save_IFS
0c24b341
NC
9615
9616fi
9617fi
9618WINDMC=$ac_cv_prog_WINDMC
9619if test -n "$WINDMC"; then
81ecdfbb
RW
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9621$as_echo "$WINDMC" >&6; }
0c24b341 9622else
81ecdfbb
RW
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624$as_echo "no" >&6; }
0c24b341
NC
9625fi
9626
81ecdfbb 9627
0c24b341
NC
9628 fi
9629 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9631set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9634if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9635 $as_echo_n "(cached) " >&6
0c24b341
NC
9636else
9637 if test -n "$WINDMC"; then
9638 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9639else
9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
81ecdfbb 9645 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9647 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9649 break 2
9650 fi
9651done
81ecdfbb
RW
9652 done
9653IFS=$as_save_IFS
0c24b341
NC
9654
9655fi
9656fi
9657WINDMC=$ac_cv_prog_WINDMC
9658if test -n "$WINDMC"; then
81ecdfbb
RW
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9660$as_echo "$WINDMC" >&6; }
0c24b341 9661else
81ecdfbb
RW
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
0c24b341
NC
9664fi
9665
81ecdfbb 9666
0c24b341
NC
9667 fi
9668 test -n "$ac_cv_prog_WINDMC" && break
9669done
9670
9671if test -z "$ac_cv_prog_WINDMC" ; then
9672 set dummy windmc
9673 if test $build = $host ; then
9674 WINDMC="$2"
9675 else
9676 WINDMC="${ncn_tool_prefix}$2"
9677 fi
9678fi
9679
9680
9681
9a819804
AO
9682if test -n "$OBJCOPY"; then
9683 ac_cv_prog_OBJCOPY=$OBJCOPY
9684elif test -n "$ac_cv_prog_OBJCOPY"; then
9685 OBJCOPY=$ac_cv_prog_OBJCOPY
9686fi
9687
9688if test -n "$ac_cv_prog_OBJCOPY"; then
9689 for ncn_progname in objcopy; do
9690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9691set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9694if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9695 $as_echo_n "(cached) " >&6
9a819804
AO
9696else
9697 if test -n "$OBJCOPY"; then
9698 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9699else
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
81ecdfbb 9705 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9707 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9709 break 2
9710 fi
9711done
81ecdfbb
RW
9712 done
9713IFS=$as_save_IFS
9a819804
AO
9714
9715fi
9716fi
9717OBJCOPY=$ac_cv_prog_OBJCOPY
9718if test -n "$OBJCOPY"; then
81ecdfbb
RW
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9720$as_echo "$OBJCOPY" >&6; }
9a819804 9721else
81ecdfbb
RW
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723$as_echo "no" >&6; }
9a819804
AO
9724fi
9725
81ecdfbb 9726
9a819804
AO
9727 done
9728fi
9729
9730for ncn_progname in objcopy; do
05cbd757
PB
9731 if test -n "$ncn_tool_prefix"; then
9732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9733set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9736if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9737 $as_echo_n "(cached) " >&6
859789af
AC
9738else
9739 if test -n "$OBJCOPY"; then
9740 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9741else
c6b750e1
DJ
9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743for as_dir in $PATH
9744do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
81ecdfbb 9747 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9749 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9751 break 2
9752 fi
9753done
81ecdfbb
RW
9754 done
9755IFS=$as_save_IFS
c6b750e1 9756
859789af
AC
9757fi
9758fi
c6b750e1 9759OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9760if test -n "$OBJCOPY"; then
81ecdfbb
RW
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9762$as_echo "$OBJCOPY" >&6; }
859789af 9763else
81ecdfbb
RW
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765$as_echo "no" >&6; }
859789af
AC
9766fi
9767
81ecdfbb 9768
05cbd757
PB
9769 fi
9770 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9772set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9775if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9776 $as_echo_n "(cached) " >&6
859789af 9777else
05cbd757
PB
9778 if test -n "$OBJCOPY"; then
9779 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9780else
c6b750e1
DJ
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
81ecdfbb 9786 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9788 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9790 break 2
9791 fi
9792done
81ecdfbb
RW
9793 done
9794IFS=$as_save_IFS
c6b750e1 9795
859789af
AC
9796fi
9797fi
c6b750e1 9798OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9799if test -n "$OBJCOPY"; then
81ecdfbb
RW
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9801$as_echo "$OBJCOPY" >&6; }
859789af 9802else
81ecdfbb
RW
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804$as_echo "no" >&6; }
859789af 9805fi
c6b750e1 9806
81ecdfbb 9807
05cbd757
PB
9808 fi
9809 test -n "$ac_cv_prog_OBJCOPY" && break
9810done
9811
9812if test -z "$ac_cv_prog_OBJCOPY" ; then
9813 set dummy objcopy
9814 if test $build = $host ; then
9815 OBJCOPY="$2"
859789af 9816 else
05cbd757 9817 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9818 fi
859789af
AC
9819fi
9820
9a819804
AO
9821
9822
9823if test -n "$OBJDUMP"; then
9824 ac_cv_prog_OBJDUMP=$OBJDUMP
9825elif test -n "$ac_cv_prog_OBJDUMP"; then
9826 OBJDUMP=$ac_cv_prog_OBJDUMP
9827fi
9828
9829if test -n "$ac_cv_prog_OBJDUMP"; then
9830 for ncn_progname in objdump; do
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9835if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9836 $as_echo_n "(cached) " >&6
9a819804
AO
9837else
9838 if test -n "$OBJDUMP"; then
9839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
81ecdfbb 9846 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9848 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9850 break 2
9851 fi
9852done
81ecdfbb
RW
9853 done
9854IFS=$as_save_IFS
9a819804
AO
9855
9856fi
9857fi
9858OBJDUMP=$ac_cv_prog_OBJDUMP
9859if test -n "$OBJDUMP"; then
81ecdfbb
RW
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9861$as_echo "$OBJDUMP" >&6; }
9a819804 9862else
81ecdfbb
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9a819804
AO
9865fi
9866
81ecdfbb 9867
9a819804
AO
9868 done
9869fi
9870
9871for ncn_progname in objdump; do
05cbd757
PB
9872 if test -n "$ncn_tool_prefix"; then
9873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9877if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9878 $as_echo_n "(cached) " >&6
859789af
AC
9879else
9880 if test -n "$OBJDUMP"; then
9881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9882else
c6b750e1
DJ
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
81ecdfbb 9888 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9892 break 2
9893 fi
9894done
81ecdfbb
RW
9895 done
9896IFS=$as_save_IFS
c6b750e1 9897
859789af
AC
9898fi
9899fi
c6b750e1 9900OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9901if test -n "$OBJDUMP"; then
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9903$as_echo "$OBJDUMP" >&6; }
859789af 9904else
81ecdfbb
RW
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906$as_echo "no" >&6; }
859789af
AC
9907fi
9908
81ecdfbb 9909
05cbd757
PB
9910 fi
9911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9913set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9916if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9917 $as_echo_n "(cached) " >&6
859789af 9918else
05cbd757
PB
9919 if test -n "$OBJDUMP"; then
9920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9921else
c6b750e1
DJ
9922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
81ecdfbb 9927 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9929 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9931 break 2
9932 fi
9933done
81ecdfbb
RW
9934 done
9935IFS=$as_save_IFS
c6b750e1 9936
859789af
AC
9937fi
9938fi
c6b750e1 9939OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9940if test -n "$OBJDUMP"; then
81ecdfbb
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9942$as_echo "$OBJDUMP" >&6; }
859789af 9943else
81ecdfbb
RW
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
859789af 9946fi
c6b750e1 9947
81ecdfbb 9948
05cbd757
PB
9949 fi
9950 test -n "$ac_cv_prog_OBJDUMP" && break
9951done
9952
9953if test -z "$ac_cv_prog_OBJDUMP" ; then
9954 set dummy objdump
9955 if test $build = $host ; then
9956 OBJDUMP="$2"
859789af 9957 else
05cbd757 9958 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9959 fi
859789af
AC
9960fi
9961
a0da8069
NN
9962
9963
b121d7d4
DD
9964if test -n "$READELF"; then
9965 ac_cv_prog_READELF=$READELF
9966elif test -n "$ac_cv_prog_READELF"; then
9967 READELF=$ac_cv_prog_READELF
9968fi
9969
9970if test -n "$ac_cv_prog_READELF"; then
9971 for ncn_progname in readelf; do
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973set dummy ${ncn_progname}; ac_word=$2
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9976if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9977 $as_echo_n "(cached) " >&6
9978else
9979 if test -n "$READELF"; then
9980 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9989 ac_cv_prog_READELF="${ncn_progname}"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993done
9994 done
9995IFS=$as_save_IFS
9996
9997fi
9998fi
9999READELF=$ac_cv_prog_READELF
10000if test -n "$READELF"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10002$as_echo "$READELF" >&6; }
10003else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
10006fi
10007
10008
10009 done
10010fi
10011
10012for ncn_progname in readelf; do
10013 if test -n "$ncn_tool_prefix"; then
10014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10015set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10018if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10019 $as_echo_n "(cached) " >&6
10020else
10021 if test -n "$READELF"; then
10022 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10031 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035done
10036 done
10037IFS=$as_save_IFS
10038
10039fi
10040fi
10041READELF=$ac_cv_prog_READELF
10042if test -n "$READELF"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10044$as_echo "$READELF" >&6; }
10045else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048fi
10049
10050
10051 fi
10052 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10054set dummy ${ncn_progname}; ac_word=$2
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10057if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
10058 $as_echo_n "(cached) " >&6
10059else
10060 if test -n "$READELF"; then
10061 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10062else
10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
10070 ac_cv_prog_READELF="${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074done
10075 done
10076IFS=$as_save_IFS
10077
10078fi
10079fi
10080READELF=$ac_cv_prog_READELF
10081if test -n "$READELF"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10083$as_echo "$READELF" >&6; }
10084else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086$as_echo "no" >&6; }
10087fi
10088
10089
10090 fi
10091 test -n "$ac_cv_prog_READELF" && break
10092done
10093
10094if test -z "$ac_cv_prog_READELF" ; then
10095 set dummy readelf
10096 if test $build = $host ; then
10097 READELF="$2"
10098 else
10099 READELF="${ncn_tool_prefix}$2"
10100 fi
10101fi
10102
10103
10104
a0da8069
NN
10105
10106
10107
50ad1254
L
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10109$as_echo_n "checking for -plugin option... " >&6; }
10110
10111plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10112plugin_option=
10113for plugin in $plugin_names; do
10114 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10115 if test x$plugin_so = x$plugin; then
10116 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10117 fi
10118 if test x$plugin_so != x$plugin; then
10119 plugin_option="--plugin $plugin_so"
10120 break
10121 fi
10122done
03c02f31
L
10123if test -n "$ac_tool_prefix"; then
10124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10125set dummy ${ac_tool_prefix}ar; ac_word=$2
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127$as_echo_n "checking for $ac_word... " >&6; }
10128if ${ac_cv_prog_AR+:} false; then :
10129 $as_echo_n "(cached) " >&6
10130else
10131 if test -n "$AR"; then
10132 ac_cv_prog_AR="$AR" # Let the user override the test.
10133else
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141 ac_cv_prog_AR="${ac_tool_prefix}ar"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10144 fi
10145done
10146 done
10147IFS=$as_save_IFS
10148
10149fi
10150fi
10151AR=$ac_cv_prog_AR
10152if test -n "$AR"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10154$as_echo "$AR" >&6; }
10155else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
10158fi
10159
10160
10161fi
10162if test -z "$ac_cv_prog_AR"; then
10163 ac_ct_AR=$AR
10164 # Extract the first word of "ar", so it can be a program name with args.
10165set dummy ar; ac_word=$2
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
10168if ${ac_cv_prog_ac_ct_AR+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170else
10171 if test -n "$ac_ct_AR"; then
10172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10173else
10174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181 ac_cv_prog_ac_ct_AR="ar"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185done
10186 done
10187IFS=$as_save_IFS
10188
10189fi
10190fi
10191ac_ct_AR=$ac_cv_prog_ac_ct_AR
10192if test -n "$ac_ct_AR"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10194$as_echo "$ac_ct_AR" >&6; }
10195else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
10198fi
10199
10200 if test "x$ac_ct_AR" = x; then
10201 AR=""
10202 else
10203 case $cross_compiling:$ac_tool_warned in
10204yes:)
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10207ac_tool_warned=yes ;;
10208esac
10209 AR=$ac_ct_AR
10210 fi
10211else
10212 AR="$ac_cv_prog_AR"
10213fi
10214
10215if test "${AR}" = "" ; then
10216 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10217fi
10218touch conftest.c
10219${AR} $plugin_option rc conftest.a conftest.c
10220if test "$?" != 0; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10222$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10223 plugin_option=
10224fi
10225rm -f conftest.*
50ad1254
L
10226if test -n "$plugin_option"; then
10227 PLUGIN_OPTION="$plugin_option"
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10229$as_echo "$plugin_option" >&6; }
10230else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235AR_PLUGIN_OPTION=
10236RANLIB_PLUGIN_OPTION=
10237if test -n "$PLUGIN_OPTION"; then
10238 if $AR --help 2>&1 | grep -q "\--plugin"; then
10239 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10240 fi
10241 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10242 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10243 fi
44124a46
L
10244else
10245 if test "$enable_pgo_build" != "no"; then
10246 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10247 fi
50ad1254
L
10248fi
10249
10250
10251
be01d343 10252# Target tools.
c6b750e1 10253
81ecdfbb
RW
10254# Check whether --with-build-time-tools was given.
10255if test "${with_build_time_tools+set}" = set; then :
10256 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10257 x/*) ;;
10258 *)
10259 with_build_time_tools=
81ecdfbb
RW
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10261$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10262 ;;
10263 esac
859789af 10264else
2429c060 10265 with_build_time_tools=
81ecdfbb
RW
10266fi
10267
859789af 10268
9a819804
AO
10269
10270
10271if test -n "$CC_FOR_TARGET"; then
10272 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10273elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10274 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10275fi
10276
10277if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10278 for ncn_progname in cc gcc; do
10279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10280set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10283if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10284 $as_echo_n "(cached) " >&6
9a819804
AO
10285else
10286 if test -n "$CC_FOR_TARGET"; then
10287 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10288else
10289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290for as_dir in $PATH
10291do
10292 IFS=$as_save_IFS
10293 test -z "$as_dir" && as_dir=.
81ecdfbb 10294 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10296 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10298 break 2
10299 fi
10300done
81ecdfbb
RW
10301 done
10302IFS=$as_save_IFS
9a819804
AO
10303
10304fi
10305fi
10306CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10307if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10309$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10310else
81ecdfbb
RW
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312$as_echo "no" >&6; }
9a819804
AO
10313fi
10314
81ecdfbb 10315
9a819804
AO
10316 done
10317fi
10318
10319if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10320 for ncn_progname in cc gcc; do
81ecdfbb
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10322$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10323 if test -x $with_build_time_tools/${ncn_progname}; then
10324 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10326$as_echo "yes" >&6; }
cac3d6c4 10327 break
2429c060 10328 else
81ecdfbb
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
cac3d6c4
CM
10331 fi
10332 done
55db4b87
PB
10333fi
10334
2429c060
PB
10335if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10336 for ncn_progname in cc gcc; do
10337 if test -n "$ncn_target_tool_prefix"; then
10338 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10339set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10342if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10343 $as_echo_n "(cached) " >&6
55db4b87
PB
10344else
10345 if test -n "$CC_FOR_TARGET"; then
10346 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10347else
c6b750e1
DJ
10348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349for as_dir in $PATH
10350do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
81ecdfbb 10353 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10355 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10357 break 2
10358 fi
10359done
81ecdfbb
RW
10360 done
10361IFS=$as_save_IFS
c6b750e1 10362
55db4b87
PB
10363fi
10364fi
c6b750e1 10365CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10366if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10368$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10369else
81ecdfbb
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371$as_echo "no" >&6; }
55db4b87
PB
10372fi
10373
81ecdfbb 10374
2429c060
PB
10375 fi
10376 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10378set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10381if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10382 $as_echo_n "(cached) " >&6
55db4b87 10383else
05cbd757
PB
10384 if test -n "$CC_FOR_TARGET"; then
10385 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10386else
c6b750e1
DJ
10387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388for as_dir in $PATH
10389do
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
81ecdfbb 10392 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10394 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10396 break 2
10397 fi
10398done
81ecdfbb
RW
10399 done
10400IFS=$as_save_IFS
c6b750e1 10401
55db4b87
PB
10402fi
10403fi
c6b750e1 10404CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10405if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10407$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10408else
81ecdfbb
RW
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
55db4b87 10411fi
c6b750e1 10412
81ecdfbb 10413
2429c060
PB
10414 fi
10415 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10416 done
10417fi
c6b750e1 10418
05cbd757
PB
10419if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10420 set dummy cc gcc
10421 if test $build = $target ; then
10422 CC_FOR_TARGET="$2"
55db4b87 10423 else
05cbd757 10424 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10425 fi
d3f5afc4
MS
10426else
10427 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10428fi
10429
9a819804
AO
10430
10431
10432if test -n "$CXX_FOR_TARGET"; then
10433 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10434elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10435 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10436fi
10437
10438if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10439 for ncn_progname in c++ g++ cxx gxx; do
10440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10441set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10444if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10445 $as_echo_n "(cached) " >&6
9a819804
AO
10446else
10447 if test -n "$CXX_FOR_TARGET"; then
10448 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10449else
10450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451for as_dir in $PATH
10452do
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
81ecdfbb 10455 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10457 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10459 break 2
10460 fi
10461done
81ecdfbb
RW
10462 done
10463IFS=$as_save_IFS
9a819804
AO
10464
10465fi
10466fi
10467CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10468if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10470$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10471else
81ecdfbb
RW
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473$as_echo "no" >&6; }
9a819804
AO
10474fi
10475
81ecdfbb 10476
9a819804
AO
10477 done
10478fi
10479
10480if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10481 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10483$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10484 if test -x $with_build_time_tools/${ncn_progname}; then
10485 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487$as_echo "yes" >&6; }
2429c060
PB
10488 break
10489 else
81ecdfbb
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
2429c060
PB
10492 fi
10493 done
10494fi
10495
10496if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10497 for ncn_progname in c++ g++ cxx gxx; do
10498 if test -n "$ncn_target_tool_prefix"; then
10499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10500set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10503if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10504 $as_echo_n "(cached) " >&6
55db4b87
PB
10505else
10506 if test -n "$CXX_FOR_TARGET"; then
10507 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10508else
c6b750e1
DJ
10509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510for as_dir in $PATH
10511do
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
81ecdfbb 10514 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10516 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10518 break 2
10519 fi
10520done
81ecdfbb
RW
10521 done
10522IFS=$as_save_IFS
c6b750e1 10523
55db4b87
PB
10524fi
10525fi
c6b750e1 10526CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10527if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10529$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10530else
81ecdfbb
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
55db4b87
PB
10533fi
10534
81ecdfbb 10535
2429c060
PB
10536 fi
10537 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10539set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10542if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10543 $as_echo_n "(cached) " >&6
55db4b87 10544else
05cbd757
PB
10545 if test -n "$CXX_FOR_TARGET"; then
10546 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10547else
c6b750e1
DJ
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
81ecdfbb 10553 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10555 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10557 break 2
10558 fi
10559done
81ecdfbb
RW
10560 done
10561IFS=$as_save_IFS
c6b750e1 10562
55db4b87
PB
10563fi
10564fi
c6b750e1 10565CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10566if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10568$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10569else
81ecdfbb
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
55db4b87 10572fi
c6b750e1 10573
81ecdfbb 10574
2429c060
PB
10575 fi
10576 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10577 done
10578fi
c6b750e1 10579
05cbd757
PB
10580if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10581 set dummy c++ g++ cxx gxx
10582 if test $build = $target ; then
10583 CXX_FOR_TARGET="$2"
55db4b87 10584 else
05cbd757 10585 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10586 fi
d3f5afc4
MS
10587else
10588 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10589fi
10590
9a819804
AO
10591
10592
10593if test -n "$GCC_FOR_TARGET"; then
10594 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10595elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10596 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10597fi
10598
10599if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10600 for ncn_progname in gcc; do
10601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10602set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10605if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10606 $as_echo_n "(cached) " >&6
9a819804
AO
10607else
10608 if test -n "$GCC_FOR_TARGET"; then
10609 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10610else
10611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612for as_dir in $PATH
10613do
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
81ecdfbb 10616 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10618 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10620 break 2
10621 fi
10622done
81ecdfbb
RW
10623 done
10624IFS=$as_save_IFS
9a819804
AO
10625
10626fi
10627fi
10628GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10629if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10631$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10632else
81ecdfbb
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
9a819804
AO
10635fi
10636
81ecdfbb 10637
9a819804
AO
10638 done
10639fi
10640
10641if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10642 for ncn_progname in gcc; do
81ecdfbb
RW
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10644$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10645 if test -x $with_build_time_tools/${ncn_progname}; then
10646 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648$as_echo "yes" >&6; }
2429c060
PB
10649 break
10650 else
81ecdfbb
RW
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
2429c060
PB
10653 fi
10654 done
10655fi
10656
10657if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10658 for ncn_progname in gcc; do
10659 if test -n "$ncn_target_tool_prefix"; then
10660 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10661set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10664if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10665 $as_echo_n "(cached) " >&6
859789af 10666else
2429c060
PB
10667 if test -n "$GCC_FOR_TARGET"; then
10668 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10669else
c6b750e1
DJ
10670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
81ecdfbb 10675 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10677 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10679 break 2
10680 fi
10681done
81ecdfbb
RW
10682 done
10683IFS=$as_save_IFS
c6b750e1 10684
55db4b87
PB
10685fi
10686fi
c6b750e1 10687GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10688if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10690$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10691else
81ecdfbb
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693$as_echo "no" >&6; }
55db4b87
PB
10694fi
10695
81ecdfbb 10696
2429c060
PB
10697 fi
10698 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10700set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10703if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10704 $as_echo_n "(cached) " >&6
55db4b87 10705else
05cbd757
PB
10706 if test -n "$GCC_FOR_TARGET"; then
10707 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10708else
c6b750e1
DJ
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
81ecdfbb 10714 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10716 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10718 break 2
10719 fi
10720done
81ecdfbb
RW
10721 done
10722IFS=$as_save_IFS
c6b750e1 10723
55db4b87
PB
10724fi
10725fi
c6b750e1 10726GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10727if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10729$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10730else
81ecdfbb
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
55db4b87 10733fi
c6b750e1 10734
81ecdfbb 10735
2429c060
PB
10736 fi
10737 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10738 done
10739fi
c6b750e1 10740
05cbd757
PB
10741if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10742 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10743else
10744 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10745fi
10746
9a819804
AO
10747
10748
9a819804
AO
10749if test -n "$GFORTRAN_FOR_TARGET"; then
10750 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10751elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10752 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10753fi
10754
9a819804
AO
10755if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10756 for ncn_progname in gfortran; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10758set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10761if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10762 $as_echo_n "(cached) " >&6
55db4b87 10763else
9a819804
AO
10764 if test -n "$GFORTRAN_FOR_TARGET"; then
10765 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10766else
c6b750e1
DJ
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
81ecdfbb 10772 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10774 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10776 break 2
10777 fi
10778done
81ecdfbb
RW
10779 done
10780IFS=$as_save_IFS
c6b750e1 10781
55db4b87
PB
10782fi
10783fi
9a819804
AO
10784GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10785if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10787$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10788else
81ecdfbb
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
55db4b87 10791fi
c6b750e1 10792
81ecdfbb 10793
2429c060
PB
10794 done
10795fi
c6b750e1 10796
9a819804 10797if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10798 for ncn_progname in gfortran; do
81ecdfbb
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804$as_echo "yes" >&6; }
2429c060
PB
10805 break
10806 else
81ecdfbb
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
2429c060
PB
10809 fi
10810 done
10811fi
10812
10813if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10814 for ncn_progname in gfortran; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10820if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10821 $as_echo_n "(cached) " >&6
55db4b87
PB
10822else
10823 if test -n "$GFORTRAN_FOR_TARGET"; then
10824 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10825else
c6b750e1
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
81ecdfbb 10831 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10833 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10835 break 2
10836 fi
10837done
81ecdfbb
RW
10838 done
10839IFS=$as_save_IFS
c6b750e1 10840
55db4b87
PB
10841fi
10842fi
c6b750e1 10843GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10844if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10846$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10847else
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
55db4b87
PB
10850fi
10851
81ecdfbb 10852
2429c060
PB
10853 fi
10854 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10856set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10859if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10860 $as_echo_n "(cached) " >&6
55db4b87 10861else
05cbd757 10862 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10863 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10864else
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
81ecdfbb 10870 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10872 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10874 break 2
10875 fi
10876done
81ecdfbb
RW
10877 done
10878IFS=$as_save_IFS
c6b750e1 10879
55db4b87
PB
10880fi
10881fi
c6b750e1 10882GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10883if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10885$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10886else
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
55db4b87 10889fi
c6b750e1 10890
81ecdfbb 10891
2429c060
PB
10892 fi
10893 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10894 done
10895fi
c6b750e1 10896
05cbd757
PB
10897if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10898 set dummy gfortran
10899 if test $build = $target ; then
10900 GFORTRAN_FOR_TARGET="$2"
55db4b87 10901 else
05cbd757 10902 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10903 fi
d3f5afc4
MS
10904else
10905 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10906fi
10907
2429c060
PB
10908
10909
e552509b
ILT
10910if test -n "$GOC_FOR_TARGET"; then
10911 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10912elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10913 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10914fi
10915
10916if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10917 for ncn_progname in gccgo; do
10918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10919set dummy ${ncn_progname}; ac_word=$2
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10922if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10923 $as_echo_n "(cached) " >&6
10924else
10925 if test -n "$GOC_FOR_TARGET"; then
10926 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10927else
10928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929for as_dir in $PATH
10930do
10931 IFS=$as_save_IFS
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10935 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 break 2
10938 fi
10939done
10940 done
10941IFS=$as_save_IFS
10942
10943fi
10944fi
10945GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10946if test -n "$GOC_FOR_TARGET"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10948$as_echo "$GOC_FOR_TARGET" >&6; }
10949else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951$as_echo "no" >&6; }
10952fi
10953
10954
10955 done
10956fi
10957
10958if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10959 for ncn_progname in gccgo; do
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10961$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10962 if test -x $with_build_time_tools/${ncn_progname}; then
10963 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10965$as_echo "yes" >&6; }
10966 break
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969$as_echo "no" >&6; }
10970 fi
10971 done
10972fi
10973
10974if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10975 for ncn_progname in gccgo; do
10976 if test -n "$ncn_target_tool_prefix"; then
10977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10978set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10981if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10982 $as_echo_n "(cached) " >&6
10983else
10984 if test -n "$GOC_FOR_TARGET"; then
10985 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10994 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999 done
11000IFS=$as_save_IFS
11001
11002fi
11003fi
11004GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11005if test -n "$GOC_FOR_TARGET"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11007$as_echo "$GOC_FOR_TARGET" >&6; }
11008else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
11011fi
11012
11013
11014 fi
11015 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_progname}; ac_word=$2
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11020if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
11021 $as_echo_n "(cached) " >&6
11022else
11023 if test -n "$GOC_FOR_TARGET"; then
11024 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11025else
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
11033 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11036 fi
11037done
11038 done
11039IFS=$as_save_IFS
11040
11041fi
11042fi
11043GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11044if test -n "$GOC_FOR_TARGET"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11046$as_echo "$GOC_FOR_TARGET" >&6; }
11047else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
11050fi
11051
11052
11053 fi
11054 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11055 done
11056fi
11057
11058if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11059 set dummy gccgo
11060 if test $build = $target ; then
11061 GOC_FOR_TARGET="$2"
11062 else
11063 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11064 fi
11065else
11066 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11067fi
11068
11069
11070
2429c060
PB
11071cat > conftest.c << \EOF
11072#ifdef __GNUC__
11073 gcc_yay;
11074#endif
11075EOF
11076if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11077 have_gcc_for_target=yes
859789af 11078else
2429c060
PB
11079 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11080 have_gcc_for_target=no
859789af 11081fi
2429c060
PB
11082rm conftest.c
11083
11084
11085
859789af 11086
2429c060
PB
11087if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11088 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11090$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11091 if test -x $with_build_time_tools/ar; then
11092 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11093 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11095$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11096 else
81ecdfbb
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
3a35eeb3 11099 fi
2429c060
PB
11100 elif test $build != $host && test $have_gcc_for_target = yes; then
11101 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11102 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11103 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11104 fi
2429c060 11105fi
c6b750e1 11106if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11107 # Extract the first word of "ar", so it can be a program name with args.
11108set dummy ar; ac_word=$2
81ecdfbb
RW
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11111if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 11112 $as_echo_n "(cached) " >&6
859789af 11113else
c6b750e1
DJ
11114 case $AR_FOR_TARGET in
11115 [\\/]* | ?:[\\/]*)
2429c060
PB
11116 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11117 ;;
2429c060 11118 *)
c6b750e1
DJ
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $gcc_cv_tool_dirs
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
81ecdfbb 11124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11126 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11128 break 2
11129 fi
11130done
81ecdfbb
RW
11131 done
11132IFS=$as_save_IFS
c6b750e1 11133
2429c060
PB
11134 ;;
11135esac
859789af 11136fi
c6b750e1 11137AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11138if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11140$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11141else
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
859789af 11144fi
05cbd757 11145
81ecdfbb 11146
2429c060
PB
11147fi
11148if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11149
11150
11151if test -n "$AR_FOR_TARGET"; then
11152 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11153elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11154 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11155fi
11156
11157if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11158 for ncn_progname in ar; do
11159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11160set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11163if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11164 $as_echo_n "(cached) " >&6
9a819804
AO
11165else
11166 if test -n "$AR_FOR_TARGET"; then
11167 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11168else
11169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170for as_dir in $PATH
11171do
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
81ecdfbb 11174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11176 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11178 break 2
11179 fi
11180done
81ecdfbb
RW
11181 done
11182IFS=$as_save_IFS
9a819804
AO
11183
11184fi
11185fi
11186AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11187if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11189$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11190else
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192$as_echo "no" >&6; }
9a819804
AO
11193fi
11194
81ecdfbb 11195
9a819804
AO
11196 done
11197fi
11198
11199if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11200 for ncn_progname in ar; do
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11202$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11203 if test -x $with_build_time_tools/${ncn_progname}; then
11204 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206$as_echo "yes" >&6; }
2429c060
PB
11207 break
11208 else
81ecdfbb
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
2429c060
PB
11211 fi
11212 done
859789af
AC
11213fi
11214
2429c060
PB
11215if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11216 for ncn_progname in ar; do
11217 if test -n "$ncn_target_tool_prefix"; then
11218 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11219set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11222if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11223 $as_echo_n "(cached) " >&6
7e0f7140 11224else
2429c060
PB
11225 if test -n "$AR_FOR_TARGET"; then
11226 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11227else
c6b750e1
DJ
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
81ecdfbb 11233 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11235 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11237 break 2
11238 fi
11239done
81ecdfbb
RW
11240 done
11241IFS=$as_save_IFS
c6b750e1 11242
7e0f7140
GK
11243fi
11244fi
c6b750e1 11245AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11246if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11248$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11249else
81ecdfbb
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251$as_echo "no" >&6; }
7e0f7140
GK
11252fi
11253
81ecdfbb 11254
2429c060
PB
11255 fi
11256 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11258set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11261if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 11262 $as_echo_n "(cached) " >&6
7e0f7140 11263else
2429c060
PB
11264 if test -n "$AR_FOR_TARGET"; then
11265 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11266else
c6b750e1
DJ
11267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268for as_dir in $PATH
11269do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
81ecdfbb 11272 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11274 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11276 break 2
11277 fi
11278done
81ecdfbb
RW
11279 done
11280IFS=$as_save_IFS
c6b750e1 11281
7e0f7140
GK
11282fi
11283fi
c6b750e1 11284AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11285if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11287$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11288else
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
7e0f7140 11291fi
c6b750e1 11292
81ecdfbb 11293
2429c060
PB
11294 fi
11295 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11296 done
11297fi
c6b750e1 11298
2429c060
PB
11299if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11300 set dummy ar
7e0f7140 11301 if test $build = $target ; then
2429c060 11302 AR_FOR_TARGET="$2"
7e0f7140 11303 else
2429c060 11304 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11305 fi
d3f5afc4
MS
11306else
11307 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11308fi
11309
3a35eeb3
PB
11310else
11311 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11312fi
11313
11314
11315
11316
11317if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11318 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11320$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11321 if test -x $with_build_time_tools/as; then
11322 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11323 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11325$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11326 else
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
3a35eeb3 11329 fi
2429c060
PB
11330 elif test $build != $host && test $have_gcc_for_target = yes; then
11331 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11332 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11333 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11334 fi
11335fi
c6b750e1 11336if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11337 # Extract the first word of "as", so it can be a program name with args.
11338set dummy as; ac_word=$2
81ecdfbb
RW
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11341if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11342 $as_echo_n "(cached) " >&6
2429c060 11343else
c6b750e1
DJ
11344 case $AS_FOR_TARGET in
11345 [\\/]* | ?:[\\/]*)
2429c060
PB
11346 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11347 ;;
2429c060 11348 *)
c6b750e1
DJ
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $gcc_cv_tool_dirs
11351do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
81ecdfbb 11354 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11356 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11358 break 2
11359 fi
11360done
81ecdfbb
RW
11361 done
11362IFS=$as_save_IFS
c6b750e1 11363
2429c060
PB
11364 ;;
11365esac
11366fi
c6b750e1 11367AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11368if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11370$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11371else
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
2429c060
PB
11374fi
11375
81ecdfbb 11376
2429c060
PB
11377fi
11378if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11379
11380
11381if test -n "$AS_FOR_TARGET"; then
11382 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11383elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11384 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11385fi
11386
11387if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11388 for ncn_progname in as; do
11389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11390set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11393if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11394 $as_echo_n "(cached) " >&6
9a819804
AO
11395else
11396 if test -n "$AS_FOR_TARGET"; then
11397 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11398else
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
81ecdfbb 11404 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11406 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11408 break 2
11409 fi
11410done
81ecdfbb
RW
11411 done
11412IFS=$as_save_IFS
9a819804
AO
11413
11414fi
11415fi
11416AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11417if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11419$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11420else
81ecdfbb
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
9a819804
AO
11423fi
11424
81ecdfbb 11425
9a819804
AO
11426 done
11427fi
11428
11429if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11430 for ncn_progname in as; do
81ecdfbb
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11432$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11433 if test -x $with_build_time_tools/${ncn_progname}; then
11434 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436$as_echo "yes" >&6; }
2429c060
PB
11437 break
11438 else
81ecdfbb
RW
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440$as_echo "no" >&6; }
2429c060
PB
11441 fi
11442 done
11443fi
11444
11445if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11446 for ncn_progname in as; do
11447 if test -n "$ncn_target_tool_prefix"; then
11448 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11449set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11452if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11453 $as_echo_n "(cached) " >&6
2429c060
PB
11454else
11455 if test -n "$AS_FOR_TARGET"; then
11456 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11457else
c6b750e1
DJ
11458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459for as_dir in $PATH
11460do
11461 IFS=$as_save_IFS
11462 test -z "$as_dir" && as_dir=.
81ecdfbb 11463 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11465 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11467 break 2
11468 fi
11469done
81ecdfbb
RW
11470 done
11471IFS=$as_save_IFS
c6b750e1 11472
2429c060
PB
11473fi
11474fi
c6b750e1 11475AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11476if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11478$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11479else
81ecdfbb
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481$as_echo "no" >&6; }
2429c060
PB
11482fi
11483
81ecdfbb 11484
2429c060
PB
11485 fi
11486 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11488set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11491if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11492 $as_echo_n "(cached) " >&6
2429c060
PB
11493else
11494 if test -n "$AS_FOR_TARGET"; then
11495 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11496else
c6b750e1
DJ
11497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498for as_dir in $PATH
11499do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
81ecdfbb 11502 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11504 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11506 break 2
11507 fi
11508done
81ecdfbb
RW
11509 done
11510IFS=$as_save_IFS
c6b750e1 11511
2429c060
PB
11512fi
11513fi
c6b750e1 11514AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11515if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11517$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11518else
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
2429c060 11521fi
c6b750e1 11522
81ecdfbb 11523
2429c060
PB
11524 fi
11525 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11526 done
11527fi
c6b750e1 11528
2429c060
PB
11529if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11530 set dummy as
11531 if test $build = $target ; then
11532 AS_FOR_TARGET="$2"
11533 else
11534 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11535 fi
d3f5afc4
MS
11536else
11537 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11538fi
11539
3a35eeb3
PB
11540else
11541 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11542fi
11543
11544
11545
11546
11547if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11548 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11550$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11551 if test -x $with_build_time_tools/dlltool; then
11552 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11553 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11555$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11556 else
81ecdfbb
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
3a35eeb3 11559 fi
2429c060
PB
11560 elif test $build != $host && test $have_gcc_for_target = yes; then
11561 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11562 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11563 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11564 fi
11565fi
c6b750e1 11566if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11567 # Extract the first word of "dlltool", so it can be a program name with args.
11568set dummy dlltool; ac_word=$2
81ecdfbb
RW
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11571if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11572 $as_echo_n "(cached) " >&6
2429c060 11573else
c6b750e1
DJ
11574 case $DLLTOOL_FOR_TARGET in
11575 [\\/]* | ?:[\\/]*)
2429c060
PB
11576 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11577 ;;
2429c060 11578 *)
c6b750e1
DJ
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $gcc_cv_tool_dirs
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
81ecdfbb 11584 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11586 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11588 break 2
11589 fi
11590done
81ecdfbb
RW
11591 done
11592IFS=$as_save_IFS
c6b750e1 11593
2429c060
PB
11594 ;;
11595esac
11596fi
c6b750e1 11597DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11598if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11600$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11601else
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
2429c060
PB
11604fi
11605
81ecdfbb 11606
2429c060
PB
11607fi
11608if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11609
11610
11611if test -n "$DLLTOOL_FOR_TARGET"; then
11612 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11613elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11614 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11615fi
11616
11617if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11618 for ncn_progname in dlltool; do
11619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11620set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11623if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11624 $as_echo_n "(cached) " >&6
9a819804
AO
11625else
11626 if test -n "$DLLTOOL_FOR_TARGET"; then
11627 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11628else
11629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630for as_dir in $PATH
11631do
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
81ecdfbb 11634 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11636 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11638 break 2
11639 fi
11640done
81ecdfbb
RW
11641 done
11642IFS=$as_save_IFS
9a819804
AO
11643
11644fi
11645fi
11646DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11647if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11649$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11650else
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
9a819804
AO
11653fi
11654
81ecdfbb 11655
9a819804
AO
11656 done
11657fi
11658
11659if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11660 for ncn_progname in dlltool; do
81ecdfbb
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11662$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11663 if test -x $with_build_time_tools/${ncn_progname}; then
11664 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666$as_echo "yes" >&6; }
2429c060
PB
11667 break
11668 else
81ecdfbb
RW
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
2429c060
PB
11671 fi
11672 done
11673fi
11674
11675if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11676 for ncn_progname in dlltool; do
11677 if test -n "$ncn_target_tool_prefix"; then
11678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11679set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11682if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11683 $as_echo_n "(cached) " >&6
2429c060
PB
11684else
11685 if test -n "$DLLTOOL_FOR_TARGET"; then
11686 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11687else
c6b750e1
DJ
11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689for as_dir in $PATH
11690do
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
81ecdfbb 11693 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11695 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11697 break 2
11698 fi
11699done
81ecdfbb
RW
11700 done
11701IFS=$as_save_IFS
c6b750e1 11702
2429c060
PB
11703fi
11704fi
c6b750e1 11705DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11706if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11708$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11709else
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711$as_echo "no" >&6; }
2429c060
PB
11712fi
11713
81ecdfbb 11714
2429c060
PB
11715 fi
11716 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11718set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11721if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11722 $as_echo_n "(cached) " >&6
2429c060
PB
11723else
11724 if test -n "$DLLTOOL_FOR_TARGET"; then
11725 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11726else
c6b750e1
DJ
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
81ecdfbb 11732 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11734 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11736 break 2
11737 fi
11738done
81ecdfbb
RW
11739 done
11740IFS=$as_save_IFS
c6b750e1 11741
2429c060
PB
11742fi
11743fi
c6b750e1 11744DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11745if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11747$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11748else
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
2429c060 11751fi
c6b750e1 11752
81ecdfbb 11753
2429c060
PB
11754 fi
11755 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11756 done
11757fi
c6b750e1 11758
2429c060
PB
11759if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11760 set dummy dlltool
11761 if test $build = $target ; then
11762 DLLTOOL_FOR_TARGET="$2"
11763 else
11764 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11765 fi
d3f5afc4
MS
11766else
11767 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11768fi
11769
3a35eeb3
PB
11770else
11771 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11772fi
11773
11774
11775
11776
11777if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11778 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11780$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11781 if test -x $with_build_time_tools/ld; then
11782 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11783 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11785$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11786 else
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
3a35eeb3 11789 fi
2429c060
PB
11790 elif test $build != $host && test $have_gcc_for_target = yes; then
11791 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11792 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11793 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11794 fi
11795fi
c6b750e1 11796if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11797 # Extract the first word of "ld", so it can be a program name with args.
11798set dummy ld; ac_word=$2
81ecdfbb
RW
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11801if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11802 $as_echo_n "(cached) " >&6
2429c060 11803else
c6b750e1
DJ
11804 case $LD_FOR_TARGET in
11805 [\\/]* | ?:[\\/]*)
2429c060
PB
11806 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11807 ;;
2429c060 11808 *)
c6b750e1
DJ
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810for as_dir in $gcc_cv_tool_dirs
11811do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
81ecdfbb 11814 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11816 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11818 break 2
11819 fi
11820done
81ecdfbb
RW
11821 done
11822IFS=$as_save_IFS
c6b750e1 11823
2429c060
PB
11824 ;;
11825esac
11826fi
c6b750e1 11827LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11828if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11830$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11831else
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
2429c060
PB
11834fi
11835
81ecdfbb 11836
2429c060
PB
11837fi
11838if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11839
11840
11841if test -n "$LD_FOR_TARGET"; then
11842 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11843elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11844 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11845fi
11846
11847if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11848 for ncn_progname in ld; do
11849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11850set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11853if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11854 $as_echo_n "(cached) " >&6
9a819804
AO
11855else
11856 if test -n "$LD_FOR_TARGET"; then
11857 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
81ecdfbb 11864 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11866 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11868 break 2
11869 fi
11870done
81ecdfbb
RW
11871 done
11872IFS=$as_save_IFS
9a819804
AO
11873
11874fi
11875fi
11876LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11877if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11879$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11880else
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
9a819804
AO
11883fi
11884
81ecdfbb 11885
9a819804
AO
11886 done
11887fi
11888
11889if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11890 for ncn_progname in ld; do
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11892$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11893 if test -x $with_build_time_tools/${ncn_progname}; then
11894 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896$as_echo "yes" >&6; }
2429c060
PB
11897 break
11898 else
81ecdfbb
RW
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
2429c060
PB
11901 fi
11902 done
11903fi
11904
11905if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11906 for ncn_progname in ld; do
11907 if test -n "$ncn_target_tool_prefix"; then
11908 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11909set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11912if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11913 $as_echo_n "(cached) " >&6
2429c060
PB
11914else
11915 if test -n "$LD_FOR_TARGET"; then
11916 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11917else
c6b750e1
DJ
11918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919for as_dir in $PATH
11920do
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
81ecdfbb 11923 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11925 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11927 break 2
11928 fi
11929done
81ecdfbb
RW
11930 done
11931IFS=$as_save_IFS
c6b750e1 11932
2429c060
PB
11933fi
11934fi
c6b750e1 11935LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11936if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11938$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11939else
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941$as_echo "no" >&6; }
2429c060
PB
11942fi
11943
81ecdfbb 11944
2429c060
PB
11945 fi
11946 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11948set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11951if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11952 $as_echo_n "(cached) " >&6
2429c060
PB
11953else
11954 if test -n "$LD_FOR_TARGET"; then
11955 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11956else
c6b750e1
DJ
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
81ecdfbb 11962 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11964 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11966 break 2
11967 fi
11968done
81ecdfbb
RW
11969 done
11970IFS=$as_save_IFS
c6b750e1 11971
2429c060
PB
11972fi
11973fi
c6b750e1 11974LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11975if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11977$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11978else
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
2429c060 11981fi
c6b750e1 11982
81ecdfbb 11983
2429c060
PB
11984 fi
11985 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11986 done
11987fi
c6b750e1 11988
2429c060
PB
11989if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11990 set dummy ld
11991 if test $build = $target ; then
11992 LD_FOR_TARGET="$2"
11993 else
11994 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11995 fi
d3f5afc4
MS
11996else
11997 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11998fi
11999
3a35eeb3
PB
12000else
12001 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12002fi
12003
12004
12005
12006
12007if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12008 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12010$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12011 if test -x $with_build_time_tools/lipo; then
12012 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12013 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12015$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12016 else
81ecdfbb
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018$as_echo "no" >&6; }
3a35eeb3 12019 fi
2429c060
PB
12020 elif test $build != $host && test $have_gcc_for_target = yes; then
12021 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12022 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12023 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12024 fi
12025fi
9a819804
AO
12026if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12027 # Extract the first word of "lipo", so it can be a program name with args.
12028set dummy lipo; ac_word=$2
81ecdfbb
RW
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12031if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12032 $as_echo_n "(cached) " >&6
9a819804
AO
12033else
12034 case $LIPO_FOR_TARGET in
12035 [\\/]* | ?:[\\/]*)
12036 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12037 ;;
12038 *)
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040for as_dir in $gcc_cv_tool_dirs
12041do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
81ecdfbb 12044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12046 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12048 break 2
12049 fi
12050done
81ecdfbb
RW
12051 done
12052IFS=$as_save_IFS
9a819804
AO
12053
12054 ;;
12055esac
12056fi
12057LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12058if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12060$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12061else
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
9a819804
AO
12064fi
12065
81ecdfbb 12066
9a819804
AO
12067fi
12068if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12069
12070
12071if test -n "$LIPO_FOR_TARGET"; then
12072 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12073elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12074 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12075fi
12076
12077if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12078 for ncn_progname in lipo; do
12079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12080set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12083if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12084 $as_echo_n "(cached) " >&6
2429c060 12085else
9a819804
AO
12086 if test -n "$LIPO_FOR_TARGET"; then
12087 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12088else
12089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
c6b750e1
DJ
12091do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
81ecdfbb 12094 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12096 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12098 break 2
12099 fi
12100done
81ecdfbb
RW
12101 done
12102IFS=$as_save_IFS
c6b750e1 12103
2429c060 12104fi
9a819804
AO
12105fi
12106LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12107if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12109$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12110else
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
2429c060
PB
12113fi
12114
81ecdfbb 12115
9a819804 12116 done
2429c060 12117fi
9a819804
AO
12118
12119if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12120 for ncn_progname in lipo; do
81ecdfbb
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12122$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12123 if test -x $with_build_time_tools/${ncn_progname}; then
12124 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126$as_echo "yes" >&6; }
2429c060
PB
12127 break
12128 else
81ecdfbb
RW
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130$as_echo "no" >&6; }
2429c060
PB
12131 fi
12132 done
12133fi
12134
12135if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12136 for ncn_progname in lipo; do
12137 if test -n "$ncn_target_tool_prefix"; then
12138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12139set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12142if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12143 $as_echo_n "(cached) " >&6
2429c060
PB
12144else
12145 if test -n "$LIPO_FOR_TARGET"; then
12146 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12147else
c6b750e1
DJ
12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149for as_dir in $PATH
12150do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
81ecdfbb 12153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12155 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12157 break 2
12158 fi
12159done
81ecdfbb
RW
12160 done
12161IFS=$as_save_IFS
c6b750e1 12162
2429c060
PB
12163fi
12164fi
c6b750e1 12165LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12166if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12168$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12169else
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
2429c060
PB
12172fi
12173
81ecdfbb 12174
2429c060
PB
12175 fi
12176 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12178set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12181if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 12182 $as_echo_n "(cached) " >&6
2429c060
PB
12183else
12184 if test -n "$LIPO_FOR_TARGET"; then
12185 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12186else
c6b750e1
DJ
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
81ecdfbb 12192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12194 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12196 break 2
12197 fi
12198done
81ecdfbb
RW
12199 done
12200IFS=$as_save_IFS
c6b750e1 12201
2429c060
PB
12202fi
12203fi
c6b750e1 12204LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12205if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12207$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12208else
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
2429c060 12211fi
c6b750e1 12212
81ecdfbb 12213
2429c060
PB
12214 fi
12215 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12216 done
12217fi
c6b750e1 12218
2429c060
PB
12219if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12220 set dummy lipo
12221 if test $build = $target ; then
12222 LIPO_FOR_TARGET="$2"
12223 else
12224 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12225 fi
d3f5afc4
MS
12226else
12227 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12228fi
12229
3a35eeb3
PB
12230else
12231 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12232fi
12233
12234
12235
12236
12237if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12238 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12240$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12241 if test -x $with_build_time_tools/nm; then
12242 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12243 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12245$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12246 else
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248$as_echo "no" >&6; }
3a35eeb3 12249 fi
2429c060
PB
12250 elif test $build != $host && test $have_gcc_for_target = yes; then
12251 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12252 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12253 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12254 fi
12255fi
c6b750e1 12256if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12257 # Extract the first word of "nm", so it can be a program name with args.
12258set dummy nm; ac_word=$2
81ecdfbb
RW
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12261if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 12262 $as_echo_n "(cached) " >&6
2429c060 12263else
c6b750e1
DJ
12264 case $NM_FOR_TARGET in
12265 [\\/]* | ?:[\\/]*)
2429c060
PB
12266 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12267 ;;
2429c060 12268 *)
c6b750e1
DJ
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $gcc_cv_tool_dirs
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
81ecdfbb 12274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12276 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12278 break 2
12279 fi
12280done
81ecdfbb
RW
12281 done
12282IFS=$as_save_IFS
c6b750e1 12283
2429c060
PB
12284 ;;
12285esac
12286fi
c6b750e1 12287NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12288if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12290$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12291else
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
2429c060
PB
12294fi
12295
81ecdfbb 12296
2429c060
PB
12297fi
12298if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12299
12300
12301if test -n "$NM_FOR_TARGET"; then
12302 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12303elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12304 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12305fi
12306
12307if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12308 for ncn_progname in nm; do
12309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12310set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12313if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12314 $as_echo_n "(cached) " >&6
9a819804
AO
12315else
12316 if test -n "$NM_FOR_TARGET"; then
12317 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12318else
12319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
81ecdfbb 12324 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12326 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12328 break 2
12329 fi
12330done
81ecdfbb
RW
12331 done
12332IFS=$as_save_IFS
9a819804
AO
12333
12334fi
12335fi
12336NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12337if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12339$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12340else
81ecdfbb
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
9a819804
AO
12343fi
12344
81ecdfbb 12345
9a819804
AO
12346 done
12347fi
12348
12349if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12350 for ncn_progname in nm; do
81ecdfbb
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12352$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12353 if test -x $with_build_time_tools/${ncn_progname}; then
12354 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356$as_echo "yes" >&6; }
2429c060
PB
12357 break
12358 else
81ecdfbb
RW
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360$as_echo "no" >&6; }
2429c060
PB
12361 fi
12362 done
12363fi
12364
12365if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12366 for ncn_progname in nm; do
12367 if test -n "$ncn_target_tool_prefix"; then
12368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12369set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12372if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12373 $as_echo_n "(cached) " >&6
859789af 12374else
55db4b87
PB
12375 if test -n "$NM_FOR_TARGET"; then
12376 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12377else
c6b750e1
DJ
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
81ecdfbb 12383 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12385 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12387 break 2
12388 fi
12389done
81ecdfbb
RW
12390 done
12391IFS=$as_save_IFS
c6b750e1 12392
859789af
AC
12393fi
12394fi
c6b750e1 12395NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12396if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12398$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12399else
81ecdfbb
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
859789af
AC
12402fi
12403
81ecdfbb 12404
2429c060
PB
12405 fi
12406 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12408set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12411if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12412 $as_echo_n "(cached) " >&6
859789af 12413else
05cbd757
PB
12414 if test -n "$NM_FOR_TARGET"; then
12415 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12416else
c6b750e1
DJ
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
81ecdfbb 12422 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12424 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12426 break 2
12427 fi
12428done
81ecdfbb
RW
12429 done
12430IFS=$as_save_IFS
c6b750e1 12431
859789af
AC
12432fi
12433fi
c6b750e1 12434NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12435if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12437$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12438else
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
859789af 12441fi
c6b750e1 12442
81ecdfbb 12443
2429c060
PB
12444 fi
12445 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12446 done
12447fi
c6b750e1 12448
05cbd757
PB
12449if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12450 set dummy nm
12451 if test $build = $target ; then
12452 NM_FOR_TARGET="$2"
859789af 12453 else
05cbd757 12454 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12455 fi
d3f5afc4
MS
12456else
12457 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12458fi
12459
3a35eeb3
PB
12460else
12461 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12462fi
12463
12464
12465
12466
6b91c541
AP
12467if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12468 if test -n "$with_build_time_tools"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12470$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12471 if test -x $with_build_time_tools/objcopy; then
12472 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12473 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12475$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478$as_echo "no" >&6; }
12479 fi
12480 elif test $build != $host && test $have_gcc_for_target = yes; then
12481 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12482 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12483 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12484 fi
12485fi
12486if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12487 # Extract the first word of "objcopy", so it can be a program name with args.
12488set dummy objcopy; ac_word=$2
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12491if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12492 $as_echo_n "(cached) " >&6
12493else
12494 case $OBJCOPY_FOR_TARGET in
12495 [\\/]* | ?:[\\/]*)
12496 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12497 ;;
12498 *)
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500for as_dir in $gcc_cv_tool_dirs
12501do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12506 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 break 2
12509 fi
12510done
12511 done
12512IFS=$as_save_IFS
12513
12514 ;;
12515esac
12516fi
12517OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12518if test -n "$OBJCOPY_FOR_TARGET"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12520$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12521else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523$as_echo "no" >&6; }
12524fi
12525
12526
12527fi
12528if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12529
12530
12531if test -n "$OBJCOPY_FOR_TARGET"; then
12532 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12533elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12534 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12535fi
12536
12537if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12538 for ncn_progname in objcopy; do
12539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12540set dummy ${ncn_progname}; ac_word=$2
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12543if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12544 $as_echo_n "(cached) " >&6
12545else
12546 if test -n "$OBJCOPY_FOR_TARGET"; then
12547 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12548else
12549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550for as_dir in $PATH
12551do
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12556 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12559 fi
12560done
12561 done
12562IFS=$as_save_IFS
12563
12564fi
12565fi
12566OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12567if test -n "$OBJCOPY_FOR_TARGET"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12569$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12570else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572$as_echo "no" >&6; }
12573fi
12574
12575
12576 done
12577fi
12578
12579if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12580 for ncn_progname in objcopy; do
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12582$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12583 if test -x $with_build_time_tools/${ncn_progname}; then
12584 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586$as_echo "yes" >&6; }
12587 break
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591 fi
12592 done
12593fi
12594
12595if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12596 for ncn_progname in objcopy; do
12597 if test -n "$ncn_target_tool_prefix"; then
12598 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12599set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12602if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12603 $as_echo_n "(cached) " >&6
12604else
12605 if test -n "$OBJCOPY_FOR_TARGET"; then
12606 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12607else
12608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12615 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12618 fi
12619done
12620 done
12621IFS=$as_save_IFS
12622
12623fi
12624fi
12625OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12626if test -n "$OBJCOPY_FOR_TARGET"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12628$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12629else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632fi
12633
12634
12635 fi
12636 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12638set dummy ${ncn_progname}; ac_word=$2
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12641if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12642 $as_echo_n "(cached) " >&6
12643else
12644 if test -n "$OBJCOPY_FOR_TARGET"; then
12645 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12646else
12647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648for as_dir in $PATH
12649do
12650 IFS=$as_save_IFS
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12654 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 break 2
12657 fi
12658done
12659 done
12660IFS=$as_save_IFS
12661
12662fi
12663fi
12664OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12665if test -n "$OBJCOPY_FOR_TARGET"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12667$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12668else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
12671fi
12672
12673
12674 fi
12675 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12676 done
12677fi
12678
12679if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12680 set dummy objcopy
12681 if test $build = $target ; then
12682 OBJCOPY_FOR_TARGET="$2"
12683 else
12684 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12685 fi
12686else
12687 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12688fi
12689
12690else
12691 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12692fi
12693
12694
12695
12696
2429c060
PB
12697if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12698 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12700$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12701 if test -x $with_build_time_tools/objdump; then
12702 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12703 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12705$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12706 else
81ecdfbb
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
3a35eeb3 12709 fi
2429c060
PB
12710 elif test $build != $host && test $have_gcc_for_target = yes; then
12711 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12712 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12713 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12714 fi
12715fi
c6b750e1 12716if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12717 # Extract the first word of "objdump", so it can be a program name with args.
12718set dummy objdump; ac_word=$2
81ecdfbb
RW
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12721if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12722 $as_echo_n "(cached) " >&6
2429c060 12723else
c6b750e1
DJ
12724 case $OBJDUMP_FOR_TARGET in
12725 [\\/]* | ?:[\\/]*)
2429c060
PB
12726 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12727 ;;
2429c060 12728 *)
c6b750e1
DJ
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $gcc_cv_tool_dirs
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
81ecdfbb 12734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12736 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12738 break 2
12739 fi
12740done
81ecdfbb
RW
12741 done
12742IFS=$as_save_IFS
c6b750e1 12743
2429c060
PB
12744 ;;
12745esac
12746fi
c6b750e1 12747OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12748if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12750$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12751else
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
2429c060
PB
12754fi
12755
81ecdfbb 12756
2429c060
PB
12757fi
12758if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12759
12760
12761if test -n "$OBJDUMP_FOR_TARGET"; then
12762 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12763elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12764 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12765fi
12766
12767if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12768 for ncn_progname in objdump; do
12769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12770set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12773if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12774 $as_echo_n "(cached) " >&6
9a819804
AO
12775else
12776 if test -n "$OBJDUMP_FOR_TARGET"; then
12777 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12778else
12779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780for as_dir in $PATH
12781do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
81ecdfbb 12784 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12786 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12788 break 2
12789 fi
12790done
81ecdfbb
RW
12791 done
12792IFS=$as_save_IFS
9a819804
AO
12793
12794fi
12795fi
12796OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12797if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12799$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12800else
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
9a819804
AO
12803fi
12804
81ecdfbb 12805
9a819804
AO
12806 done
12807fi
12808
12809if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12810 for ncn_progname in objdump; do
81ecdfbb
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12812$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12813 if test -x $with_build_time_tools/${ncn_progname}; then
12814 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12816$as_echo "yes" >&6; }
2429c060
PB
12817 break
12818 else
81ecdfbb
RW
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
2429c060
PB
12821 fi
12822 done
12823fi
12824
12825if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12826 for ncn_progname in objdump; do
12827 if test -n "$ncn_target_tool_prefix"; then
12828 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12829set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12832if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12833 $as_echo_n "(cached) " >&6
5ae72758
DJ
12834else
12835 if test -n "$OBJDUMP_FOR_TARGET"; then
12836 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12837else
c6b750e1
DJ
12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
81ecdfbb 12843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12845 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12847 break 2
12848 fi
12849done
81ecdfbb
RW
12850 done
12851IFS=$as_save_IFS
c6b750e1 12852
5ae72758
DJ
12853fi
12854fi
c6b750e1 12855OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12856if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12858$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12859else
81ecdfbb
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
5ae72758
DJ
12862fi
12863
81ecdfbb 12864
2429c060
PB
12865 fi
12866 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12868set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12871if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12872 $as_echo_n "(cached) " >&6
5ae72758
DJ
12873else
12874 if test -n "$OBJDUMP_FOR_TARGET"; then
12875 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12876else
c6b750e1
DJ
12877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878for as_dir in $PATH
12879do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
81ecdfbb 12882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12884 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12886 break 2
12887 fi
12888done
81ecdfbb
RW
12889 done
12890IFS=$as_save_IFS
c6b750e1 12891
5ae72758
DJ
12892fi
12893fi
c6b750e1 12894OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12895if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12897$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12898else
81ecdfbb
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
5ae72758 12901fi
c6b750e1 12902
81ecdfbb 12903
2429c060
PB
12904 fi
12905 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12906 done
12907fi
c6b750e1 12908
5ae72758
DJ
12909if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12910 set dummy objdump
12911 if test $build = $target ; then
12912 OBJDUMP_FOR_TARGET="$2"
12913 else
12914 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12915 fi
d3f5afc4
MS
12916else
12917 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12918fi
12919
3a35eeb3
PB
12920else
12921 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12922fi
12923
12924
12925
12926
12927if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12928 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12930$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12931 if test -x $with_build_time_tools/ranlib; then
12932 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12933 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12935$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12936 else
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
3a35eeb3 12939 fi
2429c060
PB
12940 elif test $build != $host && test $have_gcc_for_target = yes; then
12941 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12942 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12943 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12944 fi
12945fi
c6b750e1 12946if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12947 # Extract the first word of "ranlib", so it can be a program name with args.
12948set dummy ranlib; ac_word=$2
81ecdfbb
RW
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12951if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12952 $as_echo_n "(cached) " >&6
2429c060 12953else
c6b750e1
DJ
12954 case $RANLIB_FOR_TARGET in
12955 [\\/]* | ?:[\\/]*)
2429c060
PB
12956 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12957 ;;
2429c060 12958 *)
c6b750e1
DJ
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $gcc_cv_tool_dirs
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
81ecdfbb 12964 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12966 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12968 break 2
12969 fi
12970done
81ecdfbb
RW
12971 done
12972IFS=$as_save_IFS
c6b750e1 12973
2429c060
PB
12974 ;;
12975esac
12976fi
c6b750e1 12977RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12978if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12980$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12981else
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983$as_echo "no" >&6; }
2429c060
PB
12984fi
12985
81ecdfbb 12986
2429c060
PB
12987fi
12988if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12989
12990
12991if test -n "$RANLIB_FOR_TARGET"; then
12992 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12993elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12994 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12995fi
12996
12997if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12998 for ncn_progname in ranlib; do
12999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13000set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13003if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13004 $as_echo_n "(cached) " >&6
9a819804
AO
13005else
13006 if test -n "$RANLIB_FOR_TARGET"; then
13007 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
81ecdfbb 13014 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13016 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13018 break 2
13019 fi
13020done
81ecdfbb
RW
13021 done
13022IFS=$as_save_IFS
9a819804
AO
13023
13024fi
13025fi
13026RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13027if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13029$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 13030else
81ecdfbb
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
9a819804
AO
13033fi
13034
81ecdfbb 13035
9a819804
AO
13036 done
13037fi
13038
13039if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13040 for ncn_progname in ranlib; do
81ecdfbb
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13042$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13043 if test -x $with_build_time_tools/${ncn_progname}; then
13044 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046$as_echo "yes" >&6; }
2429c060
PB
13047 break
13048 else
81ecdfbb
RW
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050$as_echo "no" >&6; }
2429c060
PB
13051 fi
13052 done
13053fi
13054
13055if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13056 for ncn_progname in ranlib; do
13057 if test -n "$ncn_target_tool_prefix"; then
13058 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 13059set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13062if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13063 $as_echo_n "(cached) " >&6
859789af 13064else
55db4b87
PB
13065 if test -n "$RANLIB_FOR_TARGET"; then
13066 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13067else
c6b750e1
DJ
13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069for as_dir in $PATH
13070do
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
81ecdfbb 13073 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13075 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13077 break 2
13078 fi
13079done
81ecdfbb
RW
13080 done
13081IFS=$as_save_IFS
c6b750e1 13082
859789af
AC
13083fi
13084fi
c6b750e1 13085RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 13086if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13088$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13089else
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
859789af
AC
13092fi
13093
81ecdfbb 13094
2429c060
PB
13095 fi
13096 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13098set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13101if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 13102 $as_echo_n "(cached) " >&6
859789af 13103else
05cbd757
PB
13104 if test -n "$RANLIB_FOR_TARGET"; then
13105 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 13106else
c6b750e1
DJ
13107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
81ecdfbb 13112 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13114 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13116 break 2
13117 fi
13118done
81ecdfbb
RW
13119 done
13120IFS=$as_save_IFS
c6b750e1 13121
859789af
AC
13122fi
13123fi
c6b750e1 13124RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 13125if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13127$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 13128else
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
859789af 13131fi
c6b750e1 13132
81ecdfbb 13133
2429c060
PB
13134 fi
13135 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13136 done
13137fi
c6b750e1 13138
2429c060
PB
13139if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13140 set dummy ranlib
13141 if test $build = $target ; then
13142 RANLIB_FOR_TARGET="$2"
13143 else
13144 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13145 fi
d3f5afc4
MS
13146else
13147 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 13148fi
05cbd757 13149
3a35eeb3
PB
13150else
13151 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
13152fi
13153
2429c060
PB
13154
13155
13156
b121d7d4
DD
13157if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13158 if test -n "$with_build_time_tools"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13160$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13161 if test -x $with_build_time_tools/readelf; then
13162 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13163 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13165$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169 fi
13170 elif test $build != $host && test $have_gcc_for_target = yes; then
13171 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13172 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13173 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13174 fi
13175fi
13176if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13177 # Extract the first word of "readelf", so it can be a program name with args.
13178set dummy readelf; ac_word=$2
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13181if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13182 $as_echo_n "(cached) " >&6
13183else
13184 case $READELF_FOR_TARGET in
13185 [\\/]* | ?:[\\/]*)
13186 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13187 ;;
13188 *)
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190for as_dir in $gcc_cv_tool_dirs
13191do
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13196 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200done
13201 done
13202IFS=$as_save_IFS
13203
13204 ;;
13205esac
13206fi
13207READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13208if test -n "$READELF_FOR_TARGET"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13210$as_echo "$READELF_FOR_TARGET" >&6; }
13211else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216
13217fi
13218if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13219
13220
13221if test -n "$READELF_FOR_TARGET"; then
13222 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13223elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13224 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13225fi
13226
13227if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13228 for ncn_progname in readelf; do
13229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13230set dummy ${ncn_progname}; ac_word=$2
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13233if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13234 $as_echo_n "(cached) " >&6
13235else
13236 if test -n "$READELF_FOR_TARGET"; then
13237 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13238else
13239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240for as_dir in $PATH
13241do
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13246 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13249 fi
13250done
13251 done
13252IFS=$as_save_IFS
13253
13254fi
13255fi
13256READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13257if test -n "$READELF_FOR_TARGET"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13259$as_echo "$READELF_FOR_TARGET" >&6; }
13260else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263fi
13264
13265
13266 done
13267fi
13268
13269if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13270 for ncn_progname in readelf; do
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13272$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13273 if test -x $with_build_time_tools/${ncn_progname}; then
13274 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276$as_echo "yes" >&6; }
13277 break
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281 fi
13282 done
13283fi
13284
13285if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13286 for ncn_progname in readelf; do
13287 if test -n "$ncn_target_tool_prefix"; then
13288 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13289set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13292if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13293 $as_echo_n "(cached) " >&6
13294else
13295 if test -n "$READELF_FOR_TARGET"; then
13296 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13305 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309done
13310 done
13311IFS=$as_save_IFS
13312
13313fi
13314fi
13315READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13316if test -n "$READELF_FOR_TARGET"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13318$as_echo "$READELF_FOR_TARGET" >&6; }
13319else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
13322fi
13323
13324
13325 fi
13326 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13328set dummy ${ncn_progname}; ac_word=$2
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13331if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13332 $as_echo_n "(cached) " >&6
13333else
13334 if test -n "$READELF_FOR_TARGET"; then
13335 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13336else
13337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338for as_dir in $PATH
13339do
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13344 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 break 2
13347 fi
13348done
13349 done
13350IFS=$as_save_IFS
13351
13352fi
13353fi
13354READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13355if test -n "$READELF_FOR_TARGET"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13357$as_echo "$READELF_FOR_TARGET" >&6; }
13358else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360$as_echo "no" >&6; }
13361fi
13362
13363
13364 fi
13365 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13366 done
13367fi
13368
13369if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13370 set dummy readelf
13371 if test $build = $target ; then
13372 READELF_FOR_TARGET="$2"
13373 else
13374 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13375 fi
13376else
13377 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13378fi
13379
13380else
13381 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13382fi
13383
13384
13385
13386
2429c060
PB
13387if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13388 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13390$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13391 if test -x $with_build_time_tools/strip; then
13392 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13393 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13395$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13396 else
81ecdfbb
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
3a35eeb3 13399 fi
2429c060
PB
13400 elif test $build != $host && test $have_gcc_for_target = yes; then
13401 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13402 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13403 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13404 fi
13405fi
c6b750e1 13406if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13407 # Extract the first word of "strip", so it can be a program name with args.
13408set dummy strip; ac_word=$2
81ecdfbb
RW
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13411if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13412 $as_echo_n "(cached) " >&6
2429c060 13413else
c6b750e1
DJ
13414 case $STRIP_FOR_TARGET in
13415 [\\/]* | ?:[\\/]*)
2429c060
PB
13416 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13417 ;;
2429c060 13418 *)
c6b750e1
DJ
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420for as_dir in $gcc_cv_tool_dirs
13421do
13422 IFS=$as_save_IFS
13423 test -z "$as_dir" && as_dir=.
81ecdfbb 13424 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13426 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13428 break 2
13429 fi
13430done
81ecdfbb
RW
13431 done
13432IFS=$as_save_IFS
c6b750e1 13433
2429c060
PB
13434 ;;
13435esac
13436fi
c6b750e1 13437STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13438if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13440$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13441else
81ecdfbb
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
2429c060
PB
13444fi
13445
81ecdfbb 13446
2429c060
PB
13447fi
13448if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13449
13450
13451if test -n "$STRIP_FOR_TARGET"; then
13452 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13453elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13454 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13455fi
13456
13457if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13458 for ncn_progname in strip; do
13459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13460set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13463if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13464 $as_echo_n "(cached) " >&6
9a819804
AO
13465else
13466 if test -n "$STRIP_FOR_TARGET"; then
13467 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13468else
13469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470for as_dir in $PATH
13471do
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
81ecdfbb 13474 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13476 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13478 break 2
13479 fi
13480done
81ecdfbb
RW
13481 done
13482IFS=$as_save_IFS
9a819804
AO
13483
13484fi
13485fi
13486STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13487if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13489$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13490else
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
9a819804
AO
13493fi
13494
81ecdfbb 13495
9a819804
AO
13496 done
13497fi
13498
13499if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13500 for ncn_progname in strip; do
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13502$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13503 if test -x $with_build_time_tools/${ncn_progname}; then
13504 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13506$as_echo "yes" >&6; }
2429c060
PB
13507 break
13508 else
81ecdfbb
RW
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510$as_echo "no" >&6; }
2429c060
PB
13511 fi
13512 done
13513fi
13514
13515if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13516 for ncn_progname in strip; do
13517 if test -n "$ncn_target_tool_prefix"; then
13518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13519set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13522if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13523 $as_echo_n "(cached) " >&6
7e0f7140
GK
13524else
13525 if test -n "$STRIP_FOR_TARGET"; then
13526 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
81ecdfbb 13533 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13535 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13537 break 2
13538 fi
13539done
81ecdfbb
RW
13540 done
13541IFS=$as_save_IFS
c6b750e1 13542
7e0f7140
GK
13543fi
13544fi
c6b750e1 13545STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13546if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13548$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13549else
81ecdfbb
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
7e0f7140
GK
13552fi
13553
81ecdfbb 13554
2429c060
PB
13555 fi
13556 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13558set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13561if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13562 $as_echo_n "(cached) " >&6
7e0f7140
GK
13563else
13564 if test -n "$STRIP_FOR_TARGET"; then
13565 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13566else
c6b750e1
DJ
13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568for as_dir in $PATH
13569do
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
81ecdfbb 13572 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13574 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13576 break 2
13577 fi
13578done
81ecdfbb
RW
13579 done
13580IFS=$as_save_IFS
c6b750e1 13581
7e0f7140
GK
13582fi
13583fi
c6b750e1 13584STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13585if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13587$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13588else
81ecdfbb
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590$as_echo "no" >&6; }
7e0f7140 13591fi
c6b750e1 13592
81ecdfbb 13593
2429c060
PB
13594 fi
13595 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13596 done
13597fi
c6b750e1 13598
7e0f7140
GK
13599if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13600 set dummy strip
13601 if test $build = $target ; then
13602 STRIP_FOR_TARGET="$2"
13603 else
13604 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13605 fi
d3f5afc4
MS
13606else
13607 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13608fi
13609
3a35eeb3
PB
13610else
13611 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13612fi
13613
13614
13615
13616
13617if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13618 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13620$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13621 if test -x $with_build_time_tools/windres; then
13622 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13623 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13625$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13626 else
81ecdfbb
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628$as_echo "no" >&6; }
3a35eeb3 13629 fi
2429c060
PB
13630 elif test $build != $host && test $have_gcc_for_target = yes; then
13631 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13632 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13633 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13634 fi
13635fi
c6b750e1 13636if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13637 # Extract the first word of "windres", so it can be a program name with args.
13638set dummy windres; ac_word=$2
81ecdfbb
RW
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13641if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13642 $as_echo_n "(cached) " >&6
2429c060 13643else
c6b750e1
DJ
13644 case $WINDRES_FOR_TARGET in
13645 [\\/]* | ?:[\\/]*)
2429c060
PB
13646 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13647 ;;
2429c060 13648 *)
c6b750e1
DJ
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650for as_dir in $gcc_cv_tool_dirs
13651do
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
81ecdfbb 13654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13656 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13658 break 2
13659 fi
13660done
81ecdfbb
RW
13661 done
13662IFS=$as_save_IFS
c6b750e1 13663
2429c060
PB
13664 ;;
13665esac
13666fi
c6b750e1 13667WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13668if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13670$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13671else
81ecdfbb
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
2429c060
PB
13674fi
13675
81ecdfbb 13676
2429c060
PB
13677fi
13678if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13679
13680
13681if test -n "$WINDRES_FOR_TARGET"; then
13682 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13683elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13684 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13685fi
13686
13687if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13688 for ncn_progname in windres; do
13689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13690set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13693if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13694 $as_echo_n "(cached) " >&6
9a819804
AO
13695else
13696 if test -n "$WINDRES_FOR_TARGET"; then
13697 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13698else
13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700for as_dir in $PATH
13701do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
81ecdfbb 13704 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13706 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13708 break 2
13709 fi
13710done
81ecdfbb
RW
13711 done
13712IFS=$as_save_IFS
9a819804
AO
13713
13714fi
13715fi
13716WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13717if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13719$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13720else
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
9a819804
AO
13723fi
13724
81ecdfbb 13725
9a819804
AO
13726 done
13727fi
13728
13729if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13730 for ncn_progname in windres; do
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13732$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13733 if test -x $with_build_time_tools/${ncn_progname}; then
13734 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736$as_echo "yes" >&6; }
2429c060
PB
13737 break
13738 else
81ecdfbb
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
2429c060
PB
13741 fi
13742 done
13743fi
13744
13745if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13746 for ncn_progname in windres; do
13747 if test -n "$ncn_target_tool_prefix"; then
13748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13749set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13752if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13753 $as_echo_n "(cached) " >&6
859789af 13754else
55db4b87
PB
13755 if test -n "$WINDRES_FOR_TARGET"; then
13756 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13757else
c6b750e1
DJ
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
81ecdfbb 13763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13765 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13767 break 2
13768 fi
13769done
81ecdfbb
RW
13770 done
13771IFS=$as_save_IFS
c6b750e1 13772
859789af
AC
13773fi
13774fi
c6b750e1 13775WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13776if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13778$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13779else
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
859789af
AC
13782fi
13783
81ecdfbb 13784
2429c060
PB
13785 fi
13786 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13788set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13791if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13792 $as_echo_n "(cached) " >&6
859789af 13793else
05cbd757
PB
13794 if test -n "$WINDRES_FOR_TARGET"; then
13795 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13796else
c6b750e1
DJ
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
81ecdfbb 13802 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13804 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13806 break 2
13807 fi
13808done
81ecdfbb
RW
13809 done
13810IFS=$as_save_IFS
c6b750e1 13811
859789af
AC
13812fi
13813fi
c6b750e1 13814WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13815if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13817$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13818else
81ecdfbb
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
859789af 13821fi
c6b750e1 13822
81ecdfbb 13823
2429c060
PB
13824 fi
13825 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13826 done
13827fi
c6b750e1 13828
05cbd757
PB
13829if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13830 set dummy windres
13831 if test $build = $target ; then
13832 WINDRES_FOR_TARGET="$2"
859789af 13833 else
05cbd757 13834 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13835 fi
d3f5afc4
MS
13836else
13837 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13838fi
13839
3a35eeb3
PB
13840else
13841 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13842fi
13843
852e5f18 13844
0c24b341
NC
13845
13846
13847if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13848 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13850$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13851 if test -x $with_build_time_tools/windmc; then
13852 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13853 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13855$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13856 else
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
0c24b341
NC
13859 fi
13860 elif test $build != $host && test $have_gcc_for_target = yes; then
13861 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13862 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13863 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13864 fi
13865fi
13866if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13867 # Extract the first word of "windmc", so it can be a program name with args.
13868set dummy windmc; ac_word=$2
81ecdfbb
RW
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13871if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13872 $as_echo_n "(cached) " >&6
0c24b341
NC
13873else
13874 case $WINDMC_FOR_TARGET in
13875 [\\/]* | ?:[\\/]*)
13876 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13877 ;;
13878 *)
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880for as_dir in $gcc_cv_tool_dirs
13881do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
81ecdfbb 13884 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13886 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13888 break 2
13889 fi
13890done
81ecdfbb
RW
13891 done
13892IFS=$as_save_IFS
0c24b341
NC
13893
13894 ;;
13895esac
13896fi
13897WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13898if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13900$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13901else
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903$as_echo "no" >&6; }
0c24b341
NC
13904fi
13905
81ecdfbb 13906
0c24b341
NC
13907fi
13908if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13909
13910
13911if test -n "$WINDMC_FOR_TARGET"; then
13912 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13913elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13914 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13915fi
13916
13917if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13918 for ncn_progname in windmc; do
13919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13920set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13923if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13924 $as_echo_n "(cached) " >&6
0c24b341
NC
13925else
13926 if test -n "$WINDMC_FOR_TARGET"; then
13927 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13928else
13929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930for as_dir in $PATH
13931do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
81ecdfbb 13934 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13936 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13938 break 2
13939 fi
13940done
81ecdfbb
RW
13941 done
13942IFS=$as_save_IFS
0c24b341
NC
13943
13944fi
13945fi
13946WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13947if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13949$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13950else
81ecdfbb
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952$as_echo "no" >&6; }
0c24b341
NC
13953fi
13954
81ecdfbb 13955
0c24b341
NC
13956 done
13957fi
13958
13959if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13960 for ncn_progname in windmc; do
81ecdfbb
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13962$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13963 if test -x $with_build_time_tools/${ncn_progname}; then
13964 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13966$as_echo "yes" >&6; }
0c24b341
NC
13967 break
13968 else
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970$as_echo "no" >&6; }
0c24b341
NC
13971 fi
13972 done
13973fi
13974
13975if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13976 for ncn_progname in windmc; do
13977 if test -n "$ncn_target_tool_prefix"; then
13978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13979set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13982if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13983 $as_echo_n "(cached) " >&6
0c24b341
NC
13984else
13985 if test -n "$WINDMC_FOR_TARGET"; then
13986 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13987else
13988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989for as_dir in $PATH
13990do
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
81ecdfbb 13993 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13995 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13997 break 2
13998 fi
13999done
81ecdfbb
RW
14000 done
14001IFS=$as_save_IFS
0c24b341
NC
14002
14003fi
14004fi
14005WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14006if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14008$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14009else
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011$as_echo "no" >&6; }
0c24b341
NC
14012fi
14013
81ecdfbb 14014
0c24b341
NC
14015 fi
14016 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14018set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14021if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 14022 $as_echo_n "(cached) " >&6
0c24b341
NC
14023else
14024 if test -n "$WINDMC_FOR_TARGET"; then
14025 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14026else
14027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028for as_dir in $PATH
14029do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
81ecdfbb 14032 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 14034 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
14036 break 2
14037 fi
14038done
81ecdfbb
RW
14039 done
14040IFS=$as_save_IFS
0c24b341
NC
14041
14042fi
14043fi
14044WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14045if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14047$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 14048else
81ecdfbb
RW
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
0c24b341
NC
14051fi
14052
81ecdfbb 14053
0c24b341
NC
14054 fi
14055 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14056 done
14057fi
14058
14059if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14060 set dummy windmc
14061 if test $build = $target ; then
14062 WINDMC_FOR_TARGET="$2"
14063 else
14064 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14065 fi
14066else
14067 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14068fi
14069
14070else
14071 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14072fi
14073
14074
be01d343
PB
14075RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14076
81ecdfbb
RW
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14078$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 14079if test "x${build}" != "x${host}" ; then
2429c060
PB
14080 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14081 # We already found the complete path
b8025f34 14082 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14085 else
14086 # Canadian cross, just use what we found
81ecdfbb
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14088$as_echo "pre-installed" >&6; }
2429c060 14089 fi
be01d343
PB
14090else
14091 ok=yes
14092 case " ${configdirs} " in
14093 *" binutils "*) ;;
14094 *) ok=no ;;
14095 esac
c6b750e1 14096
be01d343
PB
14097 if test $ok = yes; then
14098 # An in-tree tool is available and we can use it
14099 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14101$as_echo "just compiled" >&6; }
2429c060
PB
14102 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14103 # We already found the complete path
b8025f34 14104 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14106$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14107 elif test "x$target" = "x$host"; then
14108 # We can use an host tool
14109 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14111$as_echo "host tool" >&6; }
be01d343
PB
14112 else
14113 # We need a cross tool
81ecdfbb
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115$as_echo "pre-installed" >&6; }
be01d343
PB
14116 fi
14117fi
4b900473 14118
81ecdfbb
RW
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14120$as_echo_n "checking where to find the target as... " >&6; }
be01d343 14121if test "x${build}" != "x${host}" ; then
2429c060
PB
14122 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14123 # We already found the complete path
b8025f34 14124 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14126$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14127 else
14128 # Canadian cross, just use what we found
81ecdfbb
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14130$as_echo "pre-installed" >&6; }
2429c060 14131 fi
be01d343
PB
14132else
14133 ok=yes
14134 case " ${configdirs} " in
14135 *" gas "*) ;;
14136 *) ok=no ;;
14137 esac
c6b750e1 14138
be01d343
PB
14139 if test $ok = yes; then
14140 # An in-tree tool is available and we can use it
14141 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14143$as_echo "just compiled" >&6; }
2429c060
PB
14144 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14145 # We already found the complete path
b8025f34 14146 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14148$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14149 elif test "x$target" = "x$host"; then
14150 # We can use an host tool
14151 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14153$as_echo "host tool" >&6; }
be01d343
PB
14154 else
14155 # We need a cross tool
81ecdfbb
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157$as_echo "pre-installed" >&6; }
be01d343
PB
14158 fi
14159fi
4b900473 14160
81ecdfbb
RW
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14162$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 14163if test "x${build}" != "x${host}" ; then
2429c060
PB
14164 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14165 # We already found the complete path
b8025f34 14166 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14168$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14169 else
14170 # Canadian cross, just use what we found
81ecdfbb
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14172$as_echo "pre-installed" >&6; }
2429c060 14173 fi
be01d343
PB
14174else
14175 ok=yes
14176 case " ${configdirs} " in
14177 *" gcc "*) ;;
14178 *) ok=no ;;
14179 esac
c6b750e1 14180
be01d343
PB
14181 if test $ok = yes; then
14182 # An in-tree tool is available and we can use it
14183 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14185$as_echo "just compiled" >&6; }
2429c060
PB
14186 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14187 # We already found the complete path
b8025f34 14188 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14190$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14191 elif test "x$target" = "x$host"; then
14192 # We can use an host tool
14193 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14195$as_echo "host tool" >&6; }
be01d343
PB
14196 else
14197 # We need a cross tool
81ecdfbb
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199$as_echo "pre-installed" >&6; }
be01d343
PB
14200 fi
14201fi
4b900473 14202
81ecdfbb
RW
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14204$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 14205if test "x${build}" != "x${host}" ; then
2429c060
PB
14206 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14207 # We already found the complete path
b8025f34 14208 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14210$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14211 else
14212 # Canadian cross, just use what we found
81ecdfbb
RW
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14214$as_echo "pre-installed" >&6; }
2429c060 14215 fi
be01d343
PB
14216else
14217 ok=yes
14218 case " ${configdirs} " in
14219 *" gcc "*) ;;
14220 *) ok=no ;;
14221 esac
14222 case ,${enable_languages}, in
14223 *,c++,*) ;;
14224 *) ok=no ;;
14225 esac
14226 if test $ok = yes; then
14227 # An in-tree tool is available and we can use it
95e43135 14228 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
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14230$as_echo "just compiled" >&6; }
2429c060
PB
14231 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14232 # We already found the complete path
b8025f34 14233 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14235$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14236 elif test "x$target" = "x$host"; then
14237 # We can use an host tool
14238 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14240$as_echo "host tool" >&6; }
be01d343
PB
14241 else
14242 # We need a cross tool
81ecdfbb
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14244$as_echo "pre-installed" >&6; }
be01d343
PB
14245 fi
14246fi
4b900473 14247
81ecdfbb
RW
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14249$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 14250if test "x${build}" != "x${host}" ; then
2429c060
PB
14251 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14252 # We already found the complete path
b8025f34 14253 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14255$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14256 else
14257 # Canadian cross, just use what we found
81ecdfbb
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14259$as_echo "pre-installed" >&6; }
2429c060 14260 fi
be01d343
PB
14261else
14262 ok=yes
14263 case " ${configdirs} " in
14264 *" gcc "*) ;;
14265 *) ok=no ;;
14266 esac
14267 case ,${enable_languages}, in
14268 *,c++,*) ;;
14269 *) ok=no ;;
14270 esac
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
95e43135 14273 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
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
2429c060
PB
14276 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
b8025f34 14278 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
be01d343
PB
14286 else
14287 # We need a cross tool
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
be01d343
PB
14290 fi
14291fi
4b900473 14292
81ecdfbb
RW
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14294$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14295if test "x${build}" != "x${host}" ; then
2429c060
PB
14296 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
b8025f34 14298 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14301 else
14302 # Canadian cross, just use what we found
81ecdfbb
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
2429c060 14305 fi
be01d343
PB
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
c6b750e1 14312
be01d343
PB
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
2429c060
PB
14318 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
b8025f34 14320 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
be01d343
PB
14328 else
14329 # We need a cross tool
81ecdfbb
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
be01d343
PB
14332 fi
14333fi
4b900473 14334
81ecdfbb
RW
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14336$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14337if test "x${build}" != "x${host}" ; then
2429c060
PB
14338 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
b8025f34 14340 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14343 else
14344 # Canadian cross, just use what we found
81ecdfbb
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
2429c060 14347 fi
be01d343
PB
14348else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" gcc "*) ;;
14352 *) ok=no ;;
14353 esac
c6b750e1 14354
be01d343
PB
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
2429c060
PB
14360 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
b8025f34 14362 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
be01d343
PB
14370 else
14371 # We need a cross tool
81ecdfbb
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
be01d343
PB
14374 fi
14375fi
4b900473 14376
81ecdfbb
RW
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14378$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14379if test "x${build}" != "x${host}" ; then
2429c060
PB
14380 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
b8025f34 14382 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14385 else
14386 # Canadian cross, just use what we found
81ecdfbb
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
2429c060 14389 fi
be01d343
PB
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" gcc "*) ;;
14394 *) ok=no ;;
14395 esac
14396 case ,${enable_languages}, in
14397 *,fortran,*) ;;
14398 *) ok=no ;;
14399 esac
14400 if test $ok = yes; then
14401 # An in-tree tool is available and we can use it
14402 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14404$as_echo "just compiled" >&6; }
2429c060
PB
14405 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
b8025f34 14407 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14410 elif test "x$target" = "x$host"; then
14411 # We can use an host tool
14412 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14414$as_echo "host tool" >&6; }
be01d343
PB
14415 else
14416 # We need a cross tool
81ecdfbb
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418$as_echo "pre-installed" >&6; }
be01d343
PB
14419 fi
14420fi
4b900473 14421
e552509b
ILT
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14423$as_echo_n "checking where to find the target gccgo... " >&6; }
14424if test "x${build}" != "x${host}" ; then
14425 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
14427 ac_dir=`dirname $GOC_FOR_TARGET`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
14430 else
14431 # Canadian cross, just use what we found
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
14434 fi
14435else
14436 ok=yes
14437 case " ${configdirs} " in
14438 *" gcc "*) ;;
14439 *) ok=no ;;
14440 esac
14441 case ,${enable_languages}, in
14442 *,go,*) ;;
14443 *) ok=no ;;
14444 esac
14445 if test $ok = yes; then
14446 # An in-tree tool is available and we can use it
14447 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14449$as_echo "just compiled" >&6; }
14450 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14451 # We already found the complete path
14452 ac_dir=`dirname $GOC_FOR_TARGET`
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14454$as_echo "pre-installed in $ac_dir" >&6; }
14455 elif test "x$target" = "x$host"; then
14456 # We can use an host tool
14457 GOC_FOR_TARGET='$(GOC)'
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14459$as_echo "host tool" >&6; }
14460 else
14461 # We need a cross tool
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14463$as_echo "pre-installed" >&6; }
14464 fi
14465fi
14466
81ecdfbb
RW
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14468$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14469if test "x${build}" != "x${host}" ; then
2429c060
PB
14470 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14471 # We already found the complete path
b8025f34 14472 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14474$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14475 else
14476 # Canadian cross, just use what we found
81ecdfbb
RW
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14478$as_echo "pre-installed" >&6; }
2429c060 14479 fi
be01d343
PB
14480else
14481 ok=yes
14482 case " ${configdirs} " in
14483 *" ld "*) ;;
14484 *) ok=no ;;
14485 esac
c6b750e1 14486
be01d343
PB
14487 if test $ok = yes; then
14488 # An in-tree tool is available and we can use it
14489 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14491$as_echo "just compiled" >&6; }
2429c060
PB
14492 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14493 # We already found the complete path
b8025f34 14494 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14496$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14497 elif test "x$target" = "x$host"; then
14498 # We can use an host tool
14499 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14501$as_echo "host tool" >&6; }
be01d343
PB
14502 else
14503 # We need a cross tool
81ecdfbb
RW
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14505$as_echo "pre-installed" >&6; }
be01d343
PB
14506 fi
14507fi
4b900473 14508
81ecdfbb
RW
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14510$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14511if test "x${build}" != "x${host}" ; then
2429c060
PB
14512 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
b8025f34 14514 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14517 else
14518 # Canadian cross, just use what we found
81ecdfbb
RW
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14520$as_echo "pre-installed" >&6; }
2429c060 14521 fi
be01d343 14522else
2429c060
PB
14523 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
b8025f34 14525 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14528 elif test "x$target" = "x$host"; then
be01d343
PB
14529 # We can use an host tool
14530 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14532$as_echo "host tool" >&6; }
be01d343
PB
14533 else
14534 # We need a cross tool
81ecdfbb
RW
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536$as_echo "pre-installed" >&6; }
be01d343
PB
14537 fi
14538fi
4b900473 14539
81ecdfbb
RW
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14541$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14542if test "x${build}" != "x${host}" ; then
2429c060
PB
14543 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14544 # We already found the complete path
b8025f34 14545 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14548 else
14549 # Canadian cross, just use what we found
81ecdfbb
RW
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14551$as_echo "pre-installed" >&6; }
2429c060 14552 fi
be01d343
PB
14553else
14554 ok=yes
14555 case " ${configdirs} " in
14556 *" binutils "*) ;;
14557 *) ok=no ;;
14558 esac
c6b750e1 14559
be01d343
PB
14560 if test $ok = yes; then
14561 # An in-tree tool is available and we can use it
14562 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14564$as_echo "just compiled" >&6; }
2429c060
PB
14565 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14566 # We already found the complete path
b8025f34 14567 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14569$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14570 elif test "x$target" = "x$host"; then
14571 # We can use an host tool
14572 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14574$as_echo "host tool" >&6; }
be01d343
PB
14575 else
14576 # We need a cross tool
81ecdfbb
RW
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578$as_echo "pre-installed" >&6; }
be01d343
PB
14579 fi
14580fi
4b900473 14581
6b91c541
AP
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14583$as_echo_n "checking where to find the target objcopy... " >&6; }
14584if test "x${build}" != "x${host}" ; then
14585 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14586 # We already found the complete path
14587 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14589$as_echo "pre-installed in $ac_dir" >&6; }
14590 else
14591 # Canadian cross, just use what we found
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14593$as_echo "pre-installed" >&6; }
14594 fi
14595else
14596 ok=yes
14597 case " ${configdirs} " in
14598 *" binutils "*) ;;
14599 *) ok=no ;;
14600 esac
14601
14602 if test $ok = yes; then
14603 # An in-tree tool is available and we can use it
14604 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14606$as_echo "just compiled" >&6; }
14607 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14608 # We already found the complete path
14609 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14611$as_echo "pre-installed in $ac_dir" >&6; }
14612 elif test "x$target" = "x$host"; then
14613 # We can use an host tool
1b6c0831 14614 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14616$as_echo "host tool" >&6; }
14617 else
14618 # We need a cross tool
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14620$as_echo "pre-installed" >&6; }
14621 fi
14622fi
14623
81ecdfbb
RW
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14625$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14626if test "x${build}" != "x${host}" ; then
2429c060
PB
14627 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14628 # We already found the complete path
b8025f34 14629 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14631$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14632 else
14633 # Canadian cross, just use what we found
81ecdfbb
RW
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14635$as_echo "pre-installed" >&6; }
2429c060 14636 fi
be01d343
PB
14637else
14638 ok=yes
14639 case " ${configdirs} " in
14640 *" binutils "*) ;;
14641 *) ok=no ;;
14642 esac
c6b750e1 14643
be01d343
PB
14644 if test $ok = yes; then
14645 # An in-tree tool is available and we can use it
14646 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14648$as_echo "just compiled" >&6; }
2429c060
PB
14649 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14650 # We already found the complete path
b8025f34 14651 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14653$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14654 elif test "x$target" = "x$host"; then
14655 # We can use an host tool
14656 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14658$as_echo "host tool" >&6; }
be01d343
PB
14659 else
14660 # We need a cross tool
81ecdfbb
RW
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14662$as_echo "pre-installed" >&6; }
be01d343
PB
14663 fi
14664fi
4b900473 14665
81ecdfbb
RW
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14667$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14668if test "x${build}" != "x${host}" ; then
2429c060
PB
14669 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14670 # We already found the complete path
b8025f34 14671 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14673$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14674 else
14675 # Canadian cross, just use what we found
81ecdfbb
RW
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14677$as_echo "pre-installed" >&6; }
2429c060 14678 fi
be01d343
PB
14679else
14680 ok=yes
14681 case " ${configdirs} " in
14682 *" binutils "*) ;;
14683 *) ok=no ;;
14684 esac
c6b750e1 14685
be01d343
PB
14686 if test $ok = yes; then
14687 # An in-tree tool is available and we can use it
14688 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14690$as_echo "just compiled" >&6; }
2429c060
PB
14691 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14692 # We already found the complete path
b8025f34 14693 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14695$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14696 elif test "x$target" = "x$host"; then
14697 # We can use an host tool
14698 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14700$as_echo "host tool" >&6; }
be01d343
PB
14701 else
14702 # We need a cross tool
81ecdfbb
RW
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14704$as_echo "pre-installed" >&6; }
be01d343
PB
14705 fi
14706fi
4b900473 14707
b121d7d4
DD
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14709$as_echo_n "checking where to find the target readelf... " >&6; }
14710if test "x${build}" != "x${host}" ; then
14711 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14712 # We already found the complete path
14713 ac_dir=`dirname $READELF_FOR_TARGET`
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14715$as_echo "pre-installed in $ac_dir" >&6; }
14716 else
14717 # Canadian cross, just use what we found
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14719$as_echo "pre-installed" >&6; }
14720 fi
14721else
14722 ok=yes
14723 case " ${configdirs} " in
14724 *" binutils "*) ;;
14725 *) ok=no ;;
14726 esac
14727
14728 if test $ok = yes; then
14729 # An in-tree tool is available and we can use it
14730 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14732$as_echo "just compiled" >&6; }
14733 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14734 # We already found the complete path
14735 ac_dir=`dirname $READELF_FOR_TARGET`
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14737$as_echo "pre-installed in $ac_dir" >&6; }
14738 elif test "x$target" = "x$host"; then
14739 # We can use an host tool
14740 READELF_FOR_TARGET='$(READELF)'
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14742$as_echo "host tool" >&6; }
14743 else
14744 # We need a cross tool
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14746$as_echo "pre-installed" >&6; }
14747 fi
14748fi
14749
81ecdfbb
RW
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14751$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14752if test "x${build}" != "x${host}" ; then
2429c060
PB
14753 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14754 # We already found the complete path
b8025f34 14755 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14757$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14758 else
14759 # Canadian cross, just use what we found
81ecdfbb
RW
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14761$as_echo "pre-installed" >&6; }
2429c060 14762 fi
be01d343
PB
14763else
14764 ok=yes
14765 case " ${configdirs} " in
14766 *" binutils "*) ;;
14767 *) ok=no ;;
14768 esac
c6b750e1 14769
be01d343
PB
14770 if test $ok = yes; then
14771 # An in-tree tool is available and we can use it
9b980aa1 14772 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14774$as_echo "just compiled" >&6; }
2429c060
PB
14775 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14776 # We already found the complete path
b8025f34 14777 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14779$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14780 elif test "x$target" = "x$host"; then
14781 # We can use an host tool
14782 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14784$as_echo "host tool" >&6; }
be01d343
PB
14785 else
14786 # We need a cross tool
81ecdfbb
RW
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14788$as_echo "pre-installed" >&6; }
be01d343
PB
14789 fi
14790fi
4b900473 14791
81ecdfbb
RW
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14793$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14794if test "x${build}" != "x${host}" ; then
2429c060
PB
14795 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14796 # We already found the complete path
b8025f34 14797 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14799$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14800 else
14801 # Canadian cross, just use what we found
81ecdfbb
RW
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14803$as_echo "pre-installed" >&6; }
2429c060 14804 fi
be01d343
PB
14805else
14806 ok=yes
14807 case " ${configdirs} " in
14808 *" binutils "*) ;;
14809 *) ok=no ;;
14810 esac
c6b750e1 14811
be01d343
PB
14812 if test $ok = yes; then
14813 # An in-tree tool is available and we can use it
14814 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14816$as_echo "just compiled" >&6; }
2429c060
PB
14817 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14818 # We already found the complete path
b8025f34 14819 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14821$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14822 elif test "x$target" = "x$host"; then
14823 # We can use an host tool
14824 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14826$as_echo "host tool" >&6; }
be01d343
PB
14827 else
14828 # We need a cross tool
81ecdfbb
RW
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14830$as_echo "pre-installed" >&6; }
be01d343 14831 fi
a0da8069 14832fi
54752a6b 14833
81ecdfbb
RW
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14835$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14836if test "x${build}" != "x${host}" ; then
14837 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14838 # We already found the complete path
14839 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14841$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14842 else
14843 # Canadian cross, just use what we found
81ecdfbb
RW
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14845$as_echo "pre-installed" >&6; }
0c24b341
NC
14846 fi
14847else
14848 ok=yes
14849 case " ${configdirs} " in
14850 *" binutils "*) ;;
14851 *) ok=no ;;
14852 esac
14853
14854 if test $ok = yes; then
14855 # An in-tree tool is available and we can use it
14856 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14858$as_echo "just compiled" >&6; }
0c24b341
NC
14859 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14860 # We already found the complete path
14861 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14863$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14864 elif test "x$target" = "x$host"; then
14865 # We can use an host tool
14866 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14868$as_echo "host tool" >&6; }
0c24b341
NC
14869 else
14870 # We need a cross tool
81ecdfbb
RW
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14872$as_echo "pre-installed" >&6; }
0c24b341
NC
14873 fi
14874fi
14875
54752a6b
NN
14876
14877
be01d343 14878
4b900473 14879
a0da8069
NN
14880# Certain tools may need extra flags.
14881AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14882RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14883NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14884
be01d343
PB
14885# When building target libraries, except in a Canadian cross, we use
14886# the same toolchain as the compiler we just built.
14887COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14888COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14889COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14890if test $host = $build; then
14891 case " $configdirs " in
14892 *" gcc "*)
14893 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14894 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14895 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14896 ;;
14897 esac
14898fi
14899
14900
14901
14902
14903
81ecdfbb
RW
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14905$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14906# Check whether --enable-maintainer-mode was given.
14907if test "${enable_maintainer_mode+set}" = set; then :
14908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14909else
14910 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14911fi
14912
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14914$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14915
14916
14917if test "$USE_MAINTAINER_MODE" = yes; then
14918 MAINTAINER_MODE_TRUE=
14919 MAINTAINER_MODE_FALSE='#'
14920else
14921 MAINTAINER_MODE_TRUE='#'
14922 MAINTAINER_MODE_FALSE=
c6b750e1 14923fi
3d5e36ae
AO
14924MAINT=$MAINTAINER_MODE_TRUE
14925
1d39f329
NN
14926# ---------------------
14927# GCC bootstrap support
14928# ---------------------
14929
14930# Stage specific cflags for build.
14931stage1_cflags="-g"
14932case $build in
14933 vax-*-*)
14934 case ${GCC} in
14935 yes) stage1_cflags="-g -Wa,-J" ;;
14936 *) stage1_cflags="-g -J" ;;
14937 esac ;;
1d39f329
NN
14938esac
14939
1d89b610 14940
1d39f329 14941
8a0d8a5c 14942# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14943# Check whether --enable-stage1-checking was given.
14944if test "${enable_stage1_checking+set}" = set; then :
14945 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14946else
5566c1fa 14947 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14948 # For --disable-checking or implicit --enable-checking=release, avoid
14949 # setting --enable-checking=gc in the default stage1 checking for LTO
14950 # bootstraps. See PR62077.
ce6c656d
L
14951 case $BUILD_CONFIG in
14952 *lto*)
05a13254
NC
14953 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14954 *)
14955 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14956 esac
05a13254
NC
14957 if test "x$enable_checking" = x && \
14958 test -d ${srcdir}/gcc && \
14959 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14960 stage1_checking=--enable-checking=yes,types,extra
14961 fi
8a0d8a5c 14962else
5566c1fa 14963 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14964fi
81ecdfbb 14965fi
8a0d8a5c
PB
14966
14967
c6b750e1 14968
81ecdfbb
RW
14969# Enable -Werror in bootstrap stage2 and later.
14970# Check whether --enable-werror was given.
14971if test "${enable_werror+set}" = set; then :
14972 enableval=$enable_werror;
1a6f2dc7
NN
14973case ${enable_werror} in
14974 yes) stage2_werror_flag="--enable-werror-always" ;;
14975 *) stage2_werror_flag="" ;;
1d39f329
NN
14976esac
14977
82033c9b 14978else
82033c9b 14979
bf41f30d
NC
14980if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14981 case $BUILD_CONFIG in
14982 bootstrap-debug)
14983 stage2_werror_flag="--enable-werror-always" ;;
14984 "")
14985 stage2_werror_flag="--enable-werror-always" ;;
14986 esac
14987fi
82033c9b 14988
bf41f30d 14989fi
82033c9b 14990
1b6c0831 14991
1b6c0831 14992
1b6c0831 14993
e8a5fa9c
RW
14994# Specify what files to not compare during bootstrap.
14995
14996compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14997case "$target" in
14998 hppa*64*-*-hpux*) ;;
bf41f30d 14999 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 15000 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
15001esac
15002
15003
81ecdfbb
RW
15004ac_config_files="$ac_config_files Makefile"
15005
c6b750e1 15006cat >confcache <<\_ACEOF
a0da8069
NN
15007# This file is a shell script that caches the results of configure
15008# tests run on this system so they can be shared between configure
c6b750e1
DJ
15009# scripts and configure runs, see configure's option --config-cache.
15010# It is not useful on other systems. If it contains results you don't
15011# want to keep, you may remove or edit it.
a0da8069 15012#
c6b750e1
DJ
15013# config.status only pays attention to the cache file if you give it
15014# the --recheck option to rerun configure.
a0da8069 15015#
c6b750e1
DJ
15016# `ac_cv_env_foo' variables (set or unset) will be overridden when
15017# loading this file, other *unset* `ac_cv_foo' will be assigned the
15018# following values.
15019
15020_ACEOF
15021
a0da8069
NN
15022# The following way of writing the cache mishandles newlines in values,
15023# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15024# So, we kill variables containing newlines.
a0da8069
NN
15025# Ultrix sh set writes to stderr and can't be redirected directly,
15026# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15027(
15028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15029 eval ac_val=\$$ac_var
15030 case $ac_val in #(
15031 *${as_nl}*)
15032 case $ac_var in #(
15033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15035 esac
15036 case $ac_var in #(
15037 _ | IFS | as_nl) ;; #(
15038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15039 *) { eval $ac_var=; unset $ac_var;} ;;
15040 esac ;;
15041 esac
15042 done
15043
c6b750e1 15044 (set) 2>&1 |
81ecdfbb
RW
15045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15046 *${as_nl}ac_space=\ *)
15047 # `set' does not quote correctly, so add quotes: double-quote
15048 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
15049 sed -n \
15050 "s/'/'\\\\''/g;
15051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15052 ;; #(
c6b750e1
DJ
15053 *)
15054 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 15056 ;;
81ecdfbb
RW
15057 esac |
15058 sort
15059) |
c6b750e1 15060 sed '
81ecdfbb 15061 /^ac_cv_env_/b end
c6b750e1 15062 t clear
81ecdfbb 15063 :clear
c6b750e1
DJ
15064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15065 t end
81ecdfbb
RW
15066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15067 :end' >>confcache
15068if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15069 if test -w "$cache_file"; then
d0ac1c44 15070 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15072$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15073 if test ! -f "$cache_file" || test -h "$cache_file"; then
15074 cat confcache >"$cache_file"
15075 else
15076 case $cache_file in #(
15077 */* | ?:*)
15078 mv -f confcache "$cache_file"$$ &&
15079 mv -f "$cache_file"$$ "$cache_file" ;; #(
15080 *)
15081 mv -f confcache "$cache_file" ;;
15082 esac
15083 fi
15084 fi
a0da8069 15085 else
81ecdfbb
RW
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15087$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 15088 fi
852e5f18 15089fi
a0da8069 15090rm -f confcache
852e5f18 15091
a0da8069
NN
15092test "x$prefix" = xNONE && prefix=$ac_default_prefix
15093# Let make expand exec_prefix.
15094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 15095
a0da8069
NN
15096# Transform confdefs.h into DEFS.
15097# Protect against shell expansion while executing Makefile rules.
15098# Protect against Makefile macro expansion.
c6b750e1
DJ
15099#
15100# If the first sed substitution is executed (which looks for macros that
81ecdfbb 15101# take arguments), then branch to the quote section. Otherwise,
c6b750e1 15102# look for a macro that doesn't take arguments.
81ecdfbb
RW
15103ac_script='
15104:mline
15105/\\$/{
15106 N
15107 s,\\\n,,
15108 b mline
15109}
c6b750e1 15110t clear
81ecdfbb
RW
15111:clear
15112s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15113t quote
81ecdfbb 15114s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 15115t quote
81ecdfbb
RW
15116b any
15117:quote
15118s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15119s/\[/\\&/g
15120s/\]/\\&/g
15121s/\$/$$/g
15122H
15123:any
15124${
15125 g
15126 s/^\n//
15127 s/\n/ /g
15128 p
15129}
15130'
15131DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
15132
15133
15134ac_libobjs=
15135ac_ltlibobjs=
d0ac1c44 15136U=
c6b750e1
DJ
15137for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15138 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15140 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15142 # will be set to the directory where LIBOBJS objects are built.
15143 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15144 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
15145done
15146LIBOBJS=$ac_libobjs
852e5f18 15147
c6b750e1 15148LTLIBOBJS=$ac_ltlibobjs
376a0e54 15149
cac3d6c4 15150
c6b750e1 15151
d0ac1c44 15152: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15153ac_write_fail=0
c6b750e1
DJ
15154ac_clean_files_save=$ac_clean_files
15155ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15157$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15158as_write_fail=0
15159cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
15160#! $SHELL
15161# Generated by $as_me.
a0da8069 15162# Run this file to recreate the current configuration.
a0da8069 15163# Compiler output produced by configure, useful for debugging
c6b750e1 15164# configure, is in config.log if it exists.
376a0e54 15165
c6b750e1
DJ
15166debug=false
15167ac_cs_recheck=false
15168ac_cs_silent=false
c6b750e1 15169
81ecdfbb
RW
15170SHELL=\${CONFIG_SHELL-$SHELL}
15171export SHELL
15172_ASEOF
15173cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15174## -------------------- ##
15175## M4sh Initialization. ##
15176## -------------------- ##
15177
15178# Be more Bourne compatible
15179DUALCASE=1; export DUALCASE # for MKS sh
15180if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
15181 emulate sh
15182 NULLCMD=:
81ecdfbb 15183 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
15184 # is contrary to our usage. Disable this feature.
15185 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15186 setopt NO_GLOB_SUBST
15187else
15188 case `(set -o) 2>/dev/null` in #(
15189 *posix*) :
15190 set -o posix ;; #(
15191 *) :
15192 ;;
15193esac
c6b750e1 15194fi
c6b750e1 15195
81ecdfbb
RW
15196
15197as_nl='
15198'
15199export as_nl
15200# Printing a long string crashes Solaris 7 /usr/bin/printf.
15201as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15202as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15204# Prefer a ksh shell builtin over an external printf program on Solaris,
15205# but without wasting forks for bash or zsh.
15206if test -z "$BASH_VERSION$ZSH_VERSION" \
15207 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15208 as_echo='print -r --'
15209 as_echo_n='print -rn --'
15210elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15211 as_echo='printf %s\n'
15212 as_echo_n='printf %s'
15213else
15214 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15215 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15216 as_echo_n='/usr/ucb/echo -n'
15217 else
15218 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15219 as_echo_n_body='eval
15220 arg=$1;
15221 case $arg in #(
15222 *"$as_nl"*)
15223 expr "X$arg" : "X\\(.*\\)$as_nl";
15224 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15225 esac;
15226 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15227 '
15228 export as_echo_n_body
15229 as_echo_n='sh -c $as_echo_n_body as_echo'
15230 fi
15231 export as_echo_body
15232 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
15233fi
15234
81ecdfbb
RW
15235# The user is always right.
15236if test "${PATH_SEPARATOR+set}" != set; then
15237 PATH_SEPARATOR=:
15238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15239 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15240 PATH_SEPARATOR=';'
15241 }
15242fi
15243
15244
15245# IFS
15246# We need space, tab and new line, in precisely that order. Quoting is
15247# there to prevent editors from complaining about space-tab.
15248# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15249# splitting by setting IFS to empty value.)
15250IFS=" "" $as_nl"
15251
15252# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15253as_myself=
81ecdfbb
RW
15254case $0 in #((
15255 *[\\/]* ) as_myself=$0 ;;
15256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15257for as_dir in $PATH
15258do
15259 IFS=$as_save_IFS
15260 test -z "$as_dir" && as_dir=.
15261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15262 done
15263IFS=$as_save_IFS
15264
15265 ;;
15266esac
15267# We did not find ourselves, most probably we were run as `sh COMMAND'
15268# in which case we are not to be found in the path.
15269if test "x$as_myself" = x; then
15270 as_myself=$0
15271fi
15272if test ! -f "$as_myself"; then
15273 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15274 exit 1
15275fi
c6b750e1 15276
81ecdfbb
RW
15277# Unset variables that we do not need and which cause bugs (e.g. in
15278# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15279# suppresses any "Segmentation fault" message there. '((' could
15280# trigger a bug in pdksh 5.2.14.
15281for as_var in BASH_ENV ENV MAIL MAILPATH
15282do eval test x\${$as_var+set} = xset \
15283 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15284done
c6b750e1
DJ
15285PS1='$ '
15286PS2='> '
15287PS4='+ '
15288
15289# NLS nuisances.
81ecdfbb
RW
15290LC_ALL=C
15291export LC_ALL
15292LANGUAGE=C
15293export LANGUAGE
15294
15295# CDPATH.
15296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15297
15298
d0ac1c44
SM
15299# as_fn_error STATUS ERROR [LINENO LOG_FD]
15300# ----------------------------------------
81ecdfbb
RW
15301# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15302# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15303# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15304as_fn_error ()
15305{
d0ac1c44
SM
15306 as_status=$1; test $as_status -eq 0 && as_status=1
15307 if test "$4"; then
15308 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15309 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15310 fi
d0ac1c44 15311 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15312 as_fn_exit $as_status
15313} # as_fn_error
15314
15315
15316# as_fn_set_status STATUS
15317# -----------------------
15318# Set $? to STATUS, without forking.
15319as_fn_set_status ()
15320{
15321 return $1
15322} # as_fn_set_status
15323
15324# as_fn_exit STATUS
15325# -----------------
15326# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15327as_fn_exit ()
15328{
15329 set +e
15330 as_fn_set_status $1
15331 exit $1
15332} # as_fn_exit
15333
15334# as_fn_unset VAR
15335# ---------------
15336# Portably unset VAR.
15337as_fn_unset ()
15338{
15339 { eval $1=; unset $1;}
15340}
15341as_unset=as_fn_unset
15342# as_fn_append VAR VALUE
15343# ----------------------
15344# Append the text in VALUE to the end of the definition contained in VAR. Take
15345# advantage of any shell optimizations that allow amortized linear growth over
15346# repeated appends, instead of the typical quadratic growth present in naive
15347# implementations.
15348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15349 eval 'as_fn_append ()
15350 {
15351 eval $1+=\$2
15352 }'
15353else
15354 as_fn_append ()
15355 {
15356 eval $1=\$$1\$2
15357 }
15358fi # as_fn_append
15359
15360# as_fn_arith ARG...
15361# ------------------
15362# Perform arithmetic evaluation on the ARGs, and store the result in the
15363# global $as_val. Take advantage of shells that can avoid forks. The arguments
15364# must be portable across $(()) and expr.
15365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15366 eval 'as_fn_arith ()
15367 {
15368 as_val=$(( $* ))
15369 }'
15370else
15371 as_fn_arith ()
15372 {
15373 as_val=`expr "$@" || test $? -eq 1`
15374 }
15375fi # as_fn_arith
15376
c6b750e1 15377
81ecdfbb
RW
15378if expr a : '\(a\)' >/dev/null 2>&1 &&
15379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15380 as_expr=expr
15381else
15382 as_expr=false
15383fi
15384
81ecdfbb 15385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15386 as_basename=basename
15387else
15388 as_basename=false
15389fi
15390
81ecdfbb
RW
15391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15392 as_dirname=dirname
15393else
15394 as_dirname=false
15395fi
c6b750e1 15396
81ecdfbb 15397as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15399 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15401$as_echo X/"$0" |
15402 sed '/^.*\/\([^/][^/]*\)\/*$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\/\(\/\/\)$/{
15407 s//\1/
15408 q
15409 }
15410 /^X\/\(\/\).*/{
15411 s//\1/
15412 q
15413 }
15414 s/.*/./; q'`
c6b750e1 15415
c6b750e1
DJ
15416# Avoid depending upon Character Ranges.
15417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15420as_cr_digits='0123456789'
15421as_cr_alnum=$as_cr_Letters$as_cr_digits
15422
81ecdfbb
RW
15423ECHO_C= ECHO_N= ECHO_T=
15424case `echo -n x` in #(((((
15425-n*)
15426 case `echo 'xy\c'` in
15427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15428 xy) ECHO_C='\c';;
15429 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15430 ECHO_T=' ';;
15431 esac;;
15432*)
15433 ECHO_N='-n';;
c6b750e1
DJ
15434esac
15435
81ecdfbb
RW
15436rm -f conf$$ conf$$.exe conf$$.file
15437if test -d conf$$.dir; then
15438 rm -f conf$$.dir/conf$$.file
c6b750e1 15439else
81ecdfbb
RW
15440 rm -f conf$$.dir
15441 mkdir conf$$.dir 2>/dev/null
c6b750e1 15442fi
81ecdfbb
RW
15443if (echo >conf$$.file) 2>/dev/null; then
15444 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15445 as_ln_s='ln -s'
81ecdfbb
RW
15446 # ... but there are two gotchas:
15447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15449 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15451 as_ln_s='cp -pR'
81ecdfbb
RW
15452 elif ln conf$$.file conf$$ 2>/dev/null; then
15453 as_ln_s=ln
15454 else
d0ac1c44 15455 as_ln_s='cp -pR'
c6b750e1 15456 fi
c6b750e1 15457else
d0ac1c44 15458 as_ln_s='cp -pR'
c6b750e1 15459fi
81ecdfbb
RW
15460rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15461rmdir conf$$.dir 2>/dev/null
15462
15463
15464# as_fn_mkdir_p
15465# -------------
15466# Create "$as_dir" as a directory, including parents if necessary.
15467as_fn_mkdir_p ()
15468{
15469
15470 case $as_dir in #(
15471 -*) as_dir=./$as_dir;;
15472 esac
15473 test -d "$as_dir" || eval $as_mkdir_p || {
15474 as_dirs=
15475 while :; do
15476 case $as_dir in #(
15477 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15478 *) as_qdir=$as_dir;;
15479 esac
15480 as_dirs="'$as_qdir' $as_dirs"
15481 as_dir=`$as_dirname -- "$as_dir" ||
15482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$as_dir" : 'X\(//\)[^/]' \| \
15484 X"$as_dir" : 'X\(//\)$' \| \
15485 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15486$as_echo X"$as_dir" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\/\)$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\).*/{
15500 s//\1/
15501 q
15502 }
15503 s/.*/./; q'`
15504 test -d "$as_dir" && break
15505 done
15506 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15507 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15508
c6b750e1 15509
81ecdfbb 15510} # as_fn_mkdir_p
c6b750e1 15511if mkdir -p . 2>/dev/null; then
81ecdfbb 15512 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15513else
15514 test -d ./-p && rmdir ./-p
15515 as_mkdir_p=false
15516fi
15517
d0ac1c44
SM
15518
15519# as_fn_executable_p FILE
15520# -----------------------
15521# Test if FILE is an executable regular file.
15522as_fn_executable_p ()
15523{
15524 test -f "$1" && test -x "$1"
15525} # as_fn_executable_p
15526as_test_x='test -x'
15527as_executable_p=as_fn_executable_p
c6b750e1
DJ
15528
15529# Sed expression to map a string onto a valid CPP name.
15530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15531
15532# Sed expression to map a string onto a valid variable name.
15533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15534
15535
c6b750e1 15536exec 6>&1
81ecdfbb
RW
15537## ----------------------------------- ##
15538## Main body of $CONFIG_STATUS script. ##
15539## ----------------------------------- ##
15540_ASEOF
15541test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15542
15543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15545# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15546# values after options handling.
15547ac_log="
c6b750e1 15548This file was extended by $as_me, which was
d0ac1c44 15549generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15550
15551 CONFIG_FILES = $CONFIG_FILES
15552 CONFIG_HEADERS = $CONFIG_HEADERS
15553 CONFIG_LINKS = $CONFIG_LINKS
15554 CONFIG_COMMANDS = $CONFIG_COMMANDS
15555 $ $0 $@
15556
81ecdfbb
RW
15557on `(hostname || uname -n) 2>/dev/null | sed 1q`
15558"
15559
c6b750e1
DJ
15560_ACEOF
15561
81ecdfbb
RW
15562case $ac_config_files in *"
15563"*) set x $ac_config_files; shift; ac_config_files=$*;;
15564esac
c6b750e1 15565
c6b750e1 15566
c6b750e1 15567
81ecdfbb
RW
15568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569# Files that config.status was made for.
15570config_files="$ac_config_files"
c6b750e1 15571
81ecdfbb 15572_ACEOF
c6b750e1 15573
81ecdfbb 15574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15575ac_cs_usage="\
81ecdfbb
RW
15576\`$as_me' instantiates files and other configuration actions
15577from templates according to the current configuration. Unless the files
15578and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15579
81ecdfbb 15580Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15581
15582 -h, --help print this help, then exit
81ecdfbb 15583 -V, --version print version number and configuration settings, then exit
d0ac1c44 15584 --config print configuration, then exit
81ecdfbb
RW
15585 -q, --quiet, --silent
15586 do not print progress messages
c6b750e1
DJ
15587 -d, --debug don't remove temporary files
15588 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15589 --file=FILE[:TEMPLATE]
15590 instantiate the configuration file FILE
c6b750e1
DJ
15591
15592Configuration files:
15593$config_files
15594
81ecdfbb 15595Report bugs to the package provider."
c6b750e1 15596
81ecdfbb
RW
15597_ACEOF
15598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15599ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15600ac_cs_version="\\
15601config.status
d0ac1c44
SM
15602configured by $0, generated by GNU Autoconf 2.69,
15603 with options \\"\$ac_cs_config\\"
c6b750e1 15604
d0ac1c44 15605Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15606This config.status script is free software; the Free Software Foundation
15607gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15608
15609ac_pwd='$ac_pwd'
15610srcdir='$srcdir'
15611INSTALL='$INSTALL'
8e957354 15612AWK='$AWK'
81ecdfbb 15613test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15614_ACEOF
15615
81ecdfbb
RW
15616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15617# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15618ac_need_defaults=:
15619while test $# != 0
a0da8069 15620do
c6b750e1 15621 case $1 in
d0ac1c44 15622 --*=?*)
81ecdfbb
RW
15623 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15624 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15625 ac_shift=:
15626 ;;
d0ac1c44
SM
15627 --*=)
15628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15629 ac_optarg=
15630 ac_shift=:
15631 ;;
81ecdfbb 15632 *)
c6b750e1
DJ
15633 ac_option=$1
15634 ac_optarg=$2
15635 ac_shift=shift
15636 ;;
c6b750e1
DJ
15637 esac
15638
15639 case $ac_option in
15640 # Handling of the options.
a0da8069 15641 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15642 ac_cs_recheck=: ;;
81ecdfbb
RW
15643 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15644 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15645 --config | --confi | --conf | --con | --co | --c )
15646 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15647 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15648 debug=: ;;
15649 --file | --fil | --fi | --f )
15650 $ac_shift
81ecdfbb
RW
15651 case $ac_optarg in
15652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15653 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15654 esac
15655 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15656 ac_need_defaults=false;;
81ecdfbb
RW
15657 --he | --h | --help | --hel | -h )
15658 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15661 ac_cs_silent=: ;;
15662
15663 # This is an error.
d0ac1c44 15664 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15665Try \`$0 --help' for more information." ;;
c6b750e1 15666
81ecdfbb
RW
15667 *) as_fn_append ac_config_targets " $1"
15668 ac_need_defaults=false ;;
c6b750e1 15669
376a0e54 15670 esac
c6b750e1 15671 shift
376a0e54
CM
15672done
15673
c6b750e1 15674ac_configure_extra_args=
376a0e54 15675
c6b750e1
DJ
15676if $ac_cs_silent; then
15677 exec 6>/dev/null
15678 ac_configure_extra_args="$ac_configure_extra_args --silent"
15679fi
376a0e54 15680
c6b750e1 15681_ACEOF
81ecdfbb 15682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15683if \$ac_cs_recheck; then
d0ac1c44 15684 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15685 shift
15686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15687 CONFIG_SHELL='$SHELL'
15688 export CONFIG_SHELL
15689 exec "\$@"
c6b750e1
DJ
15690fi
15691
15692_ACEOF
81ecdfbb
RW
15693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694exec 5>>config.log
15695{
15696 echo
15697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15698## Running $as_me. ##
15699_ASBOX
15700 $as_echo "$ac_log"
15701} >&5
c6b750e1 15702
81ecdfbb
RW
15703_ACEOF
15704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15705#
15706# INIT-COMMANDS
15707#
15708extrasub_build="$extrasub_build"
15709 extrasub_host="$extrasub_host"
15710 extrasub_target="$extrasub_target"
15711
81ecdfbb 15712_ACEOF
c6b750e1 15713
81ecdfbb 15714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15715
81ecdfbb 15716# Handling of arguments.
c6b750e1
DJ
15717for ac_config_target in $ac_config_targets
15718do
81ecdfbb
RW
15719 case $ac_config_target in
15720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15721
d0ac1c44 15722 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15723 esac
15724done
15725
81ecdfbb 15726
c6b750e1
DJ
15727# If the user did not use the arguments to specify the items to instantiate,
15728# then the envvar interface is used. Set only those that are not.
15729# We use the long form for the default assignment because of an extremely
15730# bizarre bug on SunOS 4.1.3.
15731if $ac_need_defaults; then
15732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15733fi
15734
15735# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15736# simply because there is no reason against having it here, and in addition,
c6b750e1 15737# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15738# Hook for its removal unless debugging.
15739# Note that there is a small window in which the directory will not be cleaned:
15740# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15741$debug ||
15742{
d0ac1c44 15743 tmp= ac_tmp=
81ecdfbb 15744 trap 'exit_status=$?
d0ac1c44
SM
15745 : "${ac_tmp:=$tmp}"
15746 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15747' 0
15748 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15749}
c6b750e1
DJ
15750# Create a (secure) tmp directory for tmp files.
15751
15752{
81ecdfbb 15753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15754 test -d "$tmp"
c6b750e1
DJ
15755} ||
15756{
81ecdfbb
RW
15757 tmp=./conf$$-$RANDOM
15758 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15759} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15760ac_tmp=$tmp
81ecdfbb
RW
15761
15762# Set up the scripts for CONFIG_FILES section.
15763# No need to generate them if there are no CONFIG_FILES.
15764# This happens for instance with `./config.status config.h'.
15765if test -n "$CONFIG_FILES"; then
15766
15767if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15768 ac_cs_awk_getline=:
15769 ac_cs_awk_pipe_init=
15770 ac_cs_awk_read_file='
15771 while ((getline aline < (F[key])) > 0)
15772 print(aline)
15773 close(F[key])'
15774 ac_cs_awk_pipe_fini=
15775else
15776 ac_cs_awk_getline=false
15777 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15778 ac_cs_awk_read_file='
15779 print "|#_!!_#|"
15780 print "cat " F[key] " &&"
15781 '$ac_cs_awk_pipe_init
15782 # The final `:' finishes the AND list.
15783 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15784fi
15785ac_cr=`echo X | tr X '\015'`
15786# On cygwin, bash can eat \r inside `` if the user requested igncr.
15787# But we know of no other shell where ac_cr would be empty at this
15788# point, so we can use a bashism as a fallback.
15789if test "x$ac_cr" = x; then
15790 eval ac_cr=\$\'\\r\'
15791fi
15792ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15793if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15794 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15795else
15796 ac_cs_awk_cr=$ac_cr
15797fi
15798
d0ac1c44 15799echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15800_ACEOF
15801
15802# Create commands to substitute file output variables.
c6b750e1 15803{
81ecdfbb 15804 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15805 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15806 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15807 echo "_ACAWK" &&
15808 echo "_ACEOF"
15809} >conf$$files.sh &&
15810. ./conf$$files.sh ||
d0ac1c44 15811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15812rm -f conf$$files.sh
c6b750e1 15813
81ecdfbb
RW
15814{
15815 echo "cat >conf$$subs.awk <<_ACEOF" &&
15816 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15817 echo "_ACEOF"
15818} >conf$$subs.sh ||
d0ac1c44
SM
15819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15820ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15821ac_delim='%!_!# '
15822for ac_last_try in false false false false false :; do
15823 . ./conf$$subs.sh ||
d0ac1c44 15824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15825
15826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15827 if test $ac_delim_n = $ac_delim_num; then
15828 break
15829 elif $ac_last_try; then
d0ac1c44 15830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15831 else
15832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15833 fi
15834done
15835rm -f conf$$subs.sh
15836
15837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15838cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15839_ACEOF
81ecdfbb
RW
15840sed -n '
15841h
15842s/^/S["/; s/!.*/"]=/
15843p
15844g
15845s/^[^!]*!//
15846:repl
15847t repl
15848s/'"$ac_delim"'$//
15849t delim
15850:nl
15851h
d0ac1c44 15852s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15853t more1
15854s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15855p
15856n
15857b repl
15858:more1
15859s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15860p
15861g
15862s/.\{148\}//
15863t nl
15864:delim
15865h
d0ac1c44 15866s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15867t more2
15868s/["\\]/\\&/g; s/^/"/; s/$/"/
15869p
15870b
15871:more2
15872s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15873p
15874g
15875s/.\{148\}//
15876t delim
15877' <conf$$subs.awk | sed '
15878/^[^""]/{
15879 N
15880 s/\n//
15881}
15882' >>$CONFIG_STATUS || ac_write_fail=1
15883rm -f conf$$subs.awk
15884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15885_ACAWK
d0ac1c44 15886cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15887 for (key in S) S_is_set[key] = 1
15888 FS = "\a"
15889 \$ac_cs_awk_pipe_init
15890}
15891{
15892 line = $ 0
15893 nfields = split(line, field, "@")
15894 substed = 0
15895 len = length(field[1])
15896 for (i = 2; i < nfields; i++) {
15897 key = field[i]
15898 keylen = length(key)
15899 if (S_is_set[key]) {
15900 value = S[key]
15901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15902 len += length(value) + length(field[++i])
15903 substed = 1
15904 } else
15905 len += 1 + keylen
15906 }
15907 if (nfields == 3 && !substed) {
15908 key = field[2]
15909 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15910 \$ac_cs_awk_read_file
15911 next
15912 }
15913 }
15914 print line
15915}
15916\$ac_cs_awk_pipe_fini
15917_ACAWK
15918_ACEOF
15919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15922else
15923 cat
d0ac1c44
SM
15924fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15926_ACEOF
15927
d0ac1c44
SM
15928# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15929# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15930# trailing colons and then remove the whole line if VPATH becomes empty
15931# (actually we leave an empty line to preserve line numbers).
15932if test "x$srcdir" = x.; then
d0ac1c44
SM
15933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15934h
15935s///
15936s/^/:/
15937s/[ ]*$/:/
15938s/:\$(srcdir):/:/g
15939s/:\${srcdir}:/:/g
15940s/:@srcdir@:/:/g
15941s/^:*//
81ecdfbb 15942s/:*$//
d0ac1c44
SM
15943x
15944s/\(=[ ]*\).*/\1/
15945G
15946s/\n//
81ecdfbb
RW
15947s/^[^=]*=[ ]*$//
15948}'
15949fi
c6b750e1 15950
81ecdfbb
RW
15951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15952fi # test -n "$CONFIG_FILES"
c6b750e1 15953
c6b750e1 15954
81ecdfbb
RW
15955eval set X " :F $CONFIG_FILES "
15956shift
15957for ac_tag
15958do
15959 case $ac_tag in
15960 :[FHLC]) ac_mode=$ac_tag; continue;;
15961 esac
15962 case $ac_mode$ac_tag in
15963 :[FHL]*:*);;
d0ac1c44 15964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15965 :[FH]-) ac_tag=-:-;;
15966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15967 esac
15968 ac_save_IFS=$IFS
15969 IFS=:
15970 set x $ac_tag
15971 IFS=$ac_save_IFS
15972 shift
15973 ac_file=$1
15974 shift
252b5132 15975
81ecdfbb
RW
15976 case $ac_mode in
15977 :L) ac_source=$1;;
15978 :[FH])
15979 ac_file_inputs=
15980 for ac_f
15981 do
15982 case $ac_f in
d0ac1c44 15983 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15984 *) # Look for the file first in the build tree, then in the source tree
15985 # (if the path is not absolute). The absolute path cannot be DOS-style,
15986 # because $ac_f cannot contain `:'.
15987 test -f "$ac_f" ||
15988 case $ac_f in
15989 [\\/$]*) false;;
15990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15991 esac ||
d0ac1c44 15992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15993 esac
15994 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15995 as_fn_append ac_file_inputs " '$ac_f'"
15996 done
c6b750e1 15997
81ecdfbb
RW
15998 # Let's still pretend it is `configure' which instantiates (i.e., don't
15999 # use $as_me), people would be surprised to read:
16000 # /* config.h. Generated by config.status. */
16001 configure_input='Generated from '`
16002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16003 `' by configure.'
16004 if test x"$ac_file" != x-; then
16005 configure_input="$ac_file. $configure_input"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16007$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 16008 fi
81ecdfbb
RW
16009 # Neutralize special characters interpreted by sed in replacement strings.
16010 case $configure_input in #(
16011 *\&* | *\|* | *\\* )
16012 ac_sed_conf_input=`$as_echo "$configure_input" |
16013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16014 *) ac_sed_conf_input=$configure_input;;
16015 esac
cac3d6c4 16016
81ecdfbb 16017 case $ac_tag in
d0ac1c44
SM
16018 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16020 esac
16021 ;;
a0da8069 16022 esac
252b5132 16023
81ecdfbb 16024 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
16025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16026 X"$ac_file" : 'X\(//\)[^/]' \| \
16027 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16029$as_echo X"$ac_file" |
16030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16031 s//\1/
16032 q
16033 }
16034 /^X\(\/\/\)[^/].*/{
16035 s//\1/
16036 q
16037 }
16038 /^X\(\/\/\)$/{
16039 s//\1/
16040 q
16041 }
16042 /^X\(\/\).*/{
16043 s//\1/
16044 q
16045 }
16046 s/.*/./; q'`
16047 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 16048 ac_builddir=.
252b5132 16049
81ecdfbb
RW
16050case "$ac_dir" in
16051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16052*)
16053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16054 # A ".." for each directory in $ac_dir_suffix.
16055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16056 case $ac_top_builddir_sub in
16057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16059 esac ;;
16060esac
16061ac_abs_top_builddir=$ac_pwd
16062ac_abs_builddir=$ac_pwd$ac_dir_suffix
16063# for backward compatibility:
16064ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
16065
16066case $srcdir in
81ecdfbb 16067 .) # We are building in place.
c6b750e1 16068 ac_srcdir=.
81ecdfbb
RW
16069 ac_top_srcdir=$ac_top_builddir_sub
16070 ac_abs_top_srcdir=$ac_pwd ;;
16071 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 16072 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16073 ac_top_srcdir=$srcdir
16074 ac_abs_top_srcdir=$srcdir ;;
16075 *) # Relative name.
16076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16077 ac_top_srcdir=$ac_top_build_prefix$srcdir
16078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 16079esac
81ecdfbb 16080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16081
252b5132 16082
81ecdfbb
RW
16083 case $ac_mode in
16084 :F)
16085 #
16086 # CONFIG_FILE
16087 #
c6b750e1
DJ
16088
16089 case $INSTALL in
16090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 16092 esac
81ecdfbb 16093_ACEOF
252b5132 16094
81ecdfbb
RW
16095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096# If the template does not know about datarootdir, expand it.
16097# FIXME: This hack should be removed a few years after 2.60.
16098ac_datarootdir_hack=; ac_datarootdir_seen=
16099ac_sed_dataroot='
16100/datarootdir/ {
16101 p
16102 q
16103}
16104/@datadir@/p
16105/@docdir@/p
16106/@infodir@/p
16107/@localedir@/p
16108/@mandir@/p'
16109case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16110*datarootdir*) ac_datarootdir_seen=yes;;
16111*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16113$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 16114_ACEOF
81ecdfbb
RW
16115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16116 ac_datarootdir_hack='
16117 s&@datadir@&$datadir&g
16118 s&@docdir@&$docdir&g
16119 s&@infodir@&$infodir&g
16120 s&@localedir@&$localedir&g
16121 s&@mandir@&$mandir&g
16122 s&\\\${datarootdir}&$datarootdir&g' ;;
16123esac
16124_ACEOF
16125
16126# Neutralize VPATH when `$srcdir' = `.'.
16127# Shell code in configure.ac might set extrasub.
16128# FIXME: do we really want to maintain this feature?
16129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130ac_sed_extra="$ac_vpsub
c6b750e1
DJ
16131$extrasub
16132_ACEOF
81ecdfbb 16133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
16134:t
16135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16136s|@configure_input@|$ac_sed_conf_input|;t t
16137s&@top_builddir@&$ac_top_builddir_sub&;t t
16138s&@top_build_prefix@&$ac_top_build_prefix&;t t
16139s&@srcdir@&$ac_srcdir&;t t
16140s&@abs_srcdir@&$ac_abs_srcdir&;t t
16141s&@top_srcdir@&$ac_top_srcdir&;t t
16142s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16143s&@builddir@&$ac_builddir&;t t
16144s&@abs_builddir@&$ac_abs_builddir&;t t
16145s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16146s&@INSTALL@&$ac_INSTALL&;t t
16147$ac_datarootdir_hack
16148"
16149eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16150if $ac_cs_awk_getline; then
d0ac1c44 16151 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 16152else
d0ac1c44
SM
16153 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16154fi \
16155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16156
16157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16162which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16163$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16164which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16165
d0ac1c44 16166 rm -f "$ac_tmp/stdin"
81ecdfbb 16167 case $ac_file in
d0ac1c44
SM
16168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16170 esac \
d0ac1c44 16171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16172 ;;
c148b4cb 16173
c148b4cb 16174
c148b4cb 16175
81ecdfbb
RW
16176 esac
16177
06a51eac
RW
16178
16179 case $ac_file$ac_mode in
16180 "Makefile":F) sed "$extrasub_build" Makefile |
16181 sed "$extrasub_host" |
16182 sed "$extrasub_target" > mf$$
16183 mv -f mf$$ Makefile ;;
16184
16185 esac
81ecdfbb
RW
16186done # for ac_tag
16187
16188
16189as_fn_exit 0
c6b750e1 16190_ACEOF
c6b750e1
DJ
16191ac_clean_files=$ac_clean_files_save
16192
81ecdfbb 16193test $ac_write_fail = 0 ||
d0ac1c44 16194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 16195
c6b750e1
DJ
16196
16197# configure is writing to config.log, and then calls config.status.
16198# config.status does its own redirection, appending to config.log.
16199# Unfortunately, on DOS this fails, as config.log is still kept open
16200# by configure, so config.status won't be able to write to it; its
16201# output is simply discarded. So we exec the FD to /dev/null,
16202# effectively closing config.log, so it can be properly (re)opened and
16203# appended to by config.status. When coming back to configure, we
16204# need to make the FD available again.
16205if test "$no_create" != yes; then
16206 ac_cs_success=:
16207 ac_config_status_args=
16208 test "$silent" = yes &&
16209 ac_config_status_args="$ac_config_status_args --quiet"
16210 exec 5>/dev/null
16211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16212 exec 5>>config.log
16213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16214 # would make configure fail if this is the last instruction.
d0ac1c44 16215 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
16216fi
16217if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16219$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 16220fi
c148b4cb 16221