]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
[PATCH] Fix PR91790 by considering different first_stmt_info for realign
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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.
22e05272 90as_myself=
5213506e
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
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
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;}
5213506e
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
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
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'\" &&
87264276
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"
5213506e
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
1c710c3c 211do
5213506e
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 :
22e05272
JM
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
5213506e
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."
1c710c3c 266 else
5213506e
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."
1c710c3c 271 fi
5213506e
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
1c710c3c 301
5213506e
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"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
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
5213506e
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
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
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
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
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
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
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
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
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
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
1c710c3c 456
2aeb72e9
DD
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
11a67599 463
1c710c3c 464
5213506e
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 |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
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; }
1c710c3c 487
22e05272
JM
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
1c710c3c
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
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
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';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
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.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
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
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
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
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
b4c522fa 615GDC_FOR_TARGET
632e2a07 616GOC_FOR_TARGET
5213506e 617GFORTRAN_FOR_TARGET
5213506e
RW
618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
e7a82751 621READELF
e4a9a572 622OTOOL
5213506e
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
5213506e
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
b4c522fa 649GDC_FOR_BUILD
632e2a07 650GOC_FOR_BUILD
5213506e 651GFORTRAN_FOR_BUILD
5213506e
RW
652DLLTOOL_FOR_BUILD
653CXX_FOR_BUILD
654CXXFLAGS_FOR_BUILD
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
aae29963 659target_configdirs
5213506e 660configdirs
5213506e 661build_configdirs
5213506e
RW
662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
ffedf511
RW
669target_configargs
670host_configargs
671build_configargs
e12c4094 672BUILD_CONFIG
6f57bdf6 673LDFLAGS_FOR_TARGET
5213506e
RW
674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 678get_gcc_base_ver
1c01ebf6 679extra_host_zlib_configure_flags
d7f09764 680extra_host_libiberty_configure_flags
fca38047 681stage1_languages
cdfee50a 682host_shared
45b3824d
TS
683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
33ad93b9 685islinc
eae1a5d4 686isllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e 689stage1_ldflags
0b21f5d3 690stage1_libs
0ff2d841 691extra_isl_gmp_configure_flags
5213506e
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
697do_compare
698GNATMAKE
699GNATBIND
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
5f520819 710extra_liboffloadmic_configure_flags
5213506e
RW
711target_subdir
712host_subdir
713build_subdir
714build_libsubdir
87264276
PB
715AWK
716SED
5213506e
RW
717LN_S
718LN
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730target_noncanonical
731host_noncanonical
732build_noncanonical
733build_os
734build_vendor
735build_cpu
736build
737TOPLEVEL_CONFIGURE_ARGUMENTS
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files='serialization_dependencies
777host_makefile_frag
778target_makefile_frag
779alphaieee_frag
780ospace_frag'
781ac_user_opts='
782enable_option_checking
783with_build_libsubdir
a05c2c75 784with_system_zlib
85c64bbe
BS
785enable_as_accelerator_for
786enable_offload_targets
5213506e 787enable_gold
21539e2e 788enable_ld
78edb32f 789enable_compressed_debug_sections
87e6d9dc
TB
790enable_libquadmath
791enable_libquadmath_support
5213506e
RW
792enable_libada
793enable_libssp
1873ec0c 794enable_libstdcxx
5f520819 795enable_liboffloadmic
ff3ac0f4 796enable_bootstrap
5213506e
RW
797with_mpc
798with_mpc_include
799with_mpc_lib
800with_mpfr_dir
801with_mpfr
802with_mpfr_include
803with_mpfr_lib
804with_gmp_dir
805with_gmp
806with_gmp_include
807with_gmp_lib
5213506e 808with_stage1_libs
aac9103b 809with_static_standard_libraries
0b21f5d3 810with_stage1_ldflags
5213506e 811with_boot_libs
ed2eaa9f 812with_boot_ldflags
33ad93b9
RG
813with_isl
814with_isl_include
815with_isl_lib
816enable_isl_version_check
d7f09764 817enable_lto
45b3824d
TS
818enable_linker_plugin_configure_flags
819enable_linker_plugin_flags
cdfee50a 820enable_host_shared
5213506e 821enable_stage1_languages
43c40f3e 822enable_objc_gc
114bf3f1
MK
823with_target_bdw_gc
824with_target_bdw_gc_include
825with_target_bdw_gc_lib
3c36aa6b 826with_gcc_major_version_only
5213506e
RW
827with_build_sysroot
828with_debug_prefix_map
5646b7b9 829with_build_config
beeda1d9 830enable_vtable_verify
5213506e
RW
831enable_serial_configure
832with_build_time_tools
833enable_maintainer_mode
834enable_stage1_checking
835enable_werror
5213506e
RW
836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CXX
846CXXFLAGS
847CCC
ffedf511
RW
848build_configargs
849host_configargs
850target_configargs
5213506e
RW
851AR
852AS
853DLLTOOL
854LD
855LIPO
856NM
857RANLIB
858STRIP
859WINDRES
860WINDMC
861OBJCOPY
862OBJDUMP
e4a9a572 863OTOOL
e7a82751 864READELF
5213506e
RW
865CC_FOR_TARGET
866CXX_FOR_TARGET
867GCC_FOR_TARGET
5213506e 868GFORTRAN_FOR_TARGET
632e2a07 869GOC_FOR_TARGET
b4c522fa 870GDC_FOR_TARGET
5213506e
RW
871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
9bccfdf5 877OBJCOPY_FOR_TARGET
5213506e 878OBJDUMP_FOR_TARGET
e4a9a572 879OTOOL_FOR_TARGET
5213506e 880RANLIB_FOR_TARGET
e7a82751 881READELF_FOR_TARGET
5213506e
RW
882STRIP_FOR_TARGET
883WINDRES_FOR_TARGET
884WINDMC_FOR_TARGET'
885
671aa708
NN
886
887# Initialize some variables set by options.
1c710c3c
DJ
888ac_init_help=
889ac_init_version=false
5213506e
RW
890ac_unrecognized_opts=
891ac_unrecognized_sep=
671aa708
NN
892# The variables have the same names as the options, with
893# dashes changed to underlines.
1c710c3c 894cache_file=/dev/null
671aa708 895exec_prefix=NONE
671aa708 896no_create=
671aa708
NN
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
671aa708
NN
905verbose=
906x_includes=NONE
907x_libraries=NONE
1c710c3c
DJ
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 914# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
5213506e
RW
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
671aa708
NN
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
671aa708
NN
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
5213506e
RW
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
79c06341 934
671aa708 935ac_prev=
5213506e 936ac_dashdash=
671aa708
NN
937for ac_option
938do
671aa708
NN
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
5213506e 941 eval $ac_prev=\$ac_option
671aa708
NN
942 ac_prev=
943 continue
944 fi
79c06341 945
5213506e 946 case $ac_option in
22e05272
JM
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
5213506e 950 esac
671aa708
NN
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
5213506e
RW
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
671aa708
NN
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 961 bindir=$ac_optarg ;;
671aa708
NN
962
963 -build | --build | --buil | --bui | --bu)
1c710c3c 964 ac_prev=build_alias ;;
671aa708 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 966 build_alias=$ac_optarg ;;
671aa708
NN
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
671aa708 977
5213506e 978 -datadir | --datadir | --datadi | --datad)
671aa708 979 ac_prev=datadir ;;
5213506e 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 981 datadir=$ac_optarg ;;
671aa708 982
5213506e
RW
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
671aa708 990 -disable-* | --disable-*)
5213506e 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 992 # Reject names that are not valid shell variable names.
5213506e 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 994 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
671aa708
NN
1015
1016 -enable-* | --enable-*)
5213506e 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1018 # Reject names that are not valid shell variable names.
5213506e 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1020 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
2aeb72e9 1029 esac
5213506e 1030 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1c710c3c 1039 exec_prefix=$ac_optarg ;;
671aa708
NN
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1c710c3c
DJ
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
671aa708
NN
1051
1052 -host | --host | --hos | --ho)
1c710c3c 1053 ac_prev=host_alias ;;
671aa708 1054 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1055 host_alias=$ac_optarg ;;
671aa708 1056
5213506e
RW
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
671aa708
NN
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1068 includedir=$ac_optarg ;;
671aa708
NN
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1073 infodir=$ac_optarg ;;
671aa708
NN
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1078 libdir=$ac_optarg ;;
671aa708
NN
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1085 libexecdir=$ac_optarg ;;
671aa708 1086
5213506e
RW
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
671aa708 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1093 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1097 localstatedir=$ac_optarg ;;
671aa708
NN
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1102 mandir=$ac_optarg ;;
671aa708
NN
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1109 | --no-cr | --no-c | -n)
671aa708
NN
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1123 oldincludedir=$ac_optarg ;;
671aa708
NN
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1128 prefix=$ac_optarg ;;
671aa708
NN
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1135 program_prefix=$ac_optarg ;;
671aa708
NN
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1142 program_suffix=$ac_optarg ;;
671aa708
NN
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1159 program_transform_name=$ac_optarg ;;
671aa708 1160
5213506e
RW
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
671aa708
NN
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1c710c3c 1179 sbindir=$ac_optarg ;;
671aa708
NN
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1c710c3c 1190 sharedstatedir=$ac_optarg ;;
671aa708
NN
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1c710c3c 1195 site=$ac_optarg ;;
671aa708
NN
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1200 srcdir=$ac_optarg ;;
671aa708
NN
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1207 sysconfdir=$ac_optarg ;;
671aa708
NN
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1210 ac_prev=target_alias ;;
671aa708 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1212 target_alias=$ac_optarg ;;
671aa708
NN
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1c710c3c
DJ
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
671aa708
NN
1219
1220 -with-* | --with-*)
5213506e 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1222 # Reject names that are not valid shell variable names.
5213506e 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1224 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
2aeb72e9 1233 esac
5213506e 1234 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1235
1236 -without-* | --without-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
671aa708
NN
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1261 x_includes=$ac_optarg ;;
671aa708
NN
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1268 x_libraries=$ac_optarg ;;
671aa708 1269
22e05272
JM
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
671aa708
NN
1272 ;;
1273
1c710c3c
DJ
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
5213506e
RW
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1282 export $ac_envvar ;;
1283
671aa708 1284 *)
1c710c3c 1285 # FIXME: should be removed in autoconf 3.0.
5213506e 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
1c710c3c 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1297 as_fn_error $? "missing argument to $ac_option"
af71363e 1298fi
af71363e 1299
5213506e
RW
1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
22e05272 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1305 esac
5213506e 1306fi
2aeb72e9 1307
5213506e
RW
1308# Check all directory arguments for consistency.
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
2aeb72e9 1313do
5213506e
RW
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
2aeb72e9 1322 case $ac_val in
5213506e
RW
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1325 esac
22e05272 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1327done
1328
1c710c3c
DJ
1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
0b0dc272 1335
1c710c3c
DJ
1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1c710c3c
DJ
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
671aa708 1349
671aa708 1350
5213506e
RW
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1354 as_fn_error $? "working directory cannot be determined"
5213506e 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1356 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1357
1358
671aa708
NN
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
5213506e
RW
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
671aa708 1386 srcdir=$ac_confdir
5213506e 1387 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
5213506e
RW
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1396fi
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
22e05272 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
87841584
AM
1411case $srcdir in
1412 *" "*)
22e05272 1413 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1414 ;;
1415esac
ac9e6043
RW
1416ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
5213506e
RW
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1c710c3c
DJ
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
22e05272 1446 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1c710c3c
DJ
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1454 [$ac_default_prefix]
1c710c3c 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1456 [PREFIX]
1c710c3c
DJ
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
5213506e
RW
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
5213506e 1506 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
21539e2e 1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1518 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1519 Enable compressed debug sections for gas, gold or ld
1520 by default
87e6d9dc
TB
1521 --disable-libquadmath do not build libquadmath directory
1522 --disable-libquadmath-support
1523 disable libquadmath support for Fortran
30b74385
RW
1524 --enable-libada build libada directory
1525 --enable-libssp build libssp directory
1873ec0c 1526 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1527 --enable-liboffloadmic=ARG
1528 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1529 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1530 --disable-isl-version-check
560d18d3 1531 disable check for isl version
d7f09764 1532 --enable-lto enable link time optimization support
45b3824d
TS
1533 --enable-linker-plugin-configure-flags=FLAGS
1534 additional flags for configuring linker plugins
1535 [none]
1536 --enable-linker-plugin-flags=FLAGS
1537 additional flags for configuring and building linker
1538 plugins [none]
cdfee50a 1539 --enable-host-shared build host code as shared libraries
33e39b66
AS
1540 --enable-stage1-languages[=all]
1541 choose additional languages to build during stage1.
1542 Mostly useful for compiler development
43c40f3e
RO
1543 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1544 Objective-C runtime
318a4e6d 1545 --enable-vtable-verify Enable vtable verification feature
30b74385 1546 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1547 force sequential configuration of sub-packages for
1548 the host, target or build machine, or all
1549 sub-packages
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-stage1-checking[=all]
1554 choose additional checking for stage1 of the
1555 compiler
1c710c3c
DJ
1556 --enable-werror enable -Werror in bootstrap stage2 and later
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1562 --with-system-zlib use installed libz
33e39b66
AS
1563 --with-mpc=PATH specify prefix directory for installed MPC package.
1564 Equivalent to --with-mpc-include=PATH/include plus
1565 --with-mpc-lib=PATH/lib
1566 --with-mpc-include=PATH specify directory for installed MPC include files
1567 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1568 --with-mpfr-dir=PATH this option has been REMOVED
1569 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1570 Equivalent to --with-mpfr-include=PATH/include plus
1571 --with-mpfr-lib=PATH/lib
1c710c3c 1572 --with-mpfr-include=PATH
30b74385
RW
1573 specify directory for installed MPFR include files
1574 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1575 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1576 --with-gmp=PATH specify prefix directory for the installed GMP
1577 package. Equivalent to
1578 --with-gmp-include=PATH/include plus
1579 --with-gmp-lib=PATH/lib
30b74385
RW
1580 --with-gmp-include=PATH specify directory for installed GMP include files
1581 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1582 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1583 --with-static-standard-libraries
1584 use -static-libstdc++ and -static-libgcc
1585 (default=auto)
33e39b66
AS
1586 --with-stage1-ldflags=FLAGS
1587 linker flags for stage1
33e39b66
AS
1588 --with-boot-libs=LIBS libraries for stage2 and later
1589 --with-boot-ldflags=FLAGS
1590 linker flags for stage2 and later
e357a5e0 1591 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1592 package. Equivalent to
33ad93b9
RG
1593 --with-isl-include=PATH/include plus
1594 --with-isl-lib=PATH/lib
560d18d3
AK
1595 --with-isl-include=PATH Specify directory for installed isl include files
1596 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1597 --with-target-bdw-gc=PATHLIST
1598 specify prefix directory for installed bdw-gc
1599 package. Equivalent to
1600 --with-target-bdw-gc-include=PATH/include plus
1601 --with-target-bdw-gc-lib=PATH/lib
1602 --with-target-bdw-gc-include=PATHLIST
1603 specify directories for installed bdw-gc include
1604 files
1605 --with-target-bdw-gc-lib=PATHLIST
1606 specify directories for installed bdw-gc library
3c36aa6b
JJ
1607 --with-gcc-major-version-only
1608 use only GCC major number in filesystem paths
30b74385 1609 --with-build-sysroot=SYSROOT
1c710c3c 1610 use sysroot as the system root during the build
c8aea42c 1611 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1612 map A to B, C to D ... in debug information
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
30b74385 1615 --with-build-time-tools=PATH
1c710c3c 1616 use given path to find target tools during the build
1c710c3c
DJ
1617
1618Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
5213506e 1623 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1625 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
ffedf511
RW
1628 build_configargs
1629 additional configure arguments for build directories
1630 host_configargs
1631 additional configure arguments for host directories
1632 target_configargs
1633 additional configure arguments for target directories
278a7a38
AO
1634 AR AR for the host
1635 AS AS for the host
1636 DLLTOOL DLLTOOL for the host
1637 LD LD for the host
1638 LIPO LIPO for the host
1639 NM NM for the host
1640 RANLIB RANLIB for the host
1641 STRIP STRIP for the host
1642 WINDRES WINDRES for the host
901119ae 1643 WINDMC WINDMC for the host
278a7a38
AO
1644 OBJCOPY OBJCOPY for the host
1645 OBJDUMP OBJDUMP for the host
e4a9a572 1646 OTOOL OTOOL for the host
e7a82751 1647 READELF READELF for the host
278a7a38
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
278a7a38
AO
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
632e2a07
ILT
1656 GOC_FOR_TARGET
1657 GOC for the target
b4c522fa
IB
1658 GDC_FOR_TARGET
1659 GDC for the target
278a7a38
AO
1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
9bccfdf5
AP
1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
278a7a38
AO
1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
e4a9a572
IS
1676 OTOOL_FOR_TARGET
1677 OTOOL for the target
278a7a38
AO
1678 RANLIB_FOR_TARGET
1679 RANLIB for the target
e7a82751
RM
1680 READELF_FOR_TARGET
1681 READELF for the target
278a7a38
AO
1682 STRIP_FOR_TARGET
1683 STRIP for the target
1684 WINDRES_FOR_TARGET
1685 WINDRES for the target
901119ae
KT
1686 WINDMC_FOR_TARGET
1687 WINDMC for the target
1c710c3c
DJ
1688
1689Use these variables to override the choices made by `configure' or to help
1690it to find libraries and programs with nonstandard names/locations.
1691
5213506e 1692Report bugs to the package provider.
1c710c3c 1693_ACEOF
5213506e 1694ac_status=$?
1c710c3c
DJ
1695fi
1696
1697if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1c710c3c 1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1c710c3c
DJ
1703 ac_builddir=.
1704
5213506e
RW
1705case "$ac_dir" in
1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707*)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715esac
1716ac_abs_top_builddir=$ac_pwd
1717ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718# for backward compatibility:
1719ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1720
1721case $srcdir in
5213506e 1722 .) # We are building in place.
1c710c3c 1723 ac_srcdir=.
5213506e
RW
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1727 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1734esac
5213506e
RW
1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1745 else
5213506e
RW
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1749 done
1750fi
1751
5213506e 1752test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1753if $ac_init_version; then
1754 cat <<\_ACEOF
5213506e 1755configure
22e05272 1756generated by GNU Autoconf 2.69
1c710c3c 1757
22e05272 1758Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
5213506e 1762 exit
0b0dc272 1763fi
5213506e
RW
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
22e05272
JM
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
5213506e
RW
1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_cxx_try_compile LINENO
1808# ----------------------------
1809# Try to compile conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_compile ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
22e05272
JM
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
5213506e
RW
1842
1843} # ac_fn_cxx_try_compile
1844
0b21f5d3
EB
1845# ac_fn_cxx_try_link LINENO
1846# -------------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_cxx_try_link ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
22e05272 1872 test -x conftest$ac_exeext
0b21f5d3
EB
1873 }; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
0b21f5d3
EB
1888
1889} # ac_fn_cxx_try_link
1890
5213506e
RW
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
22e05272 1918 test -x conftest$ac_exeext
5213506e
RW
1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
5213506e
RW
1934
1935} # ac_fn_c_try_link
1936cat >config.log <<_ACEOF
1c710c3c
DJ
1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake.
1939
1940It was created by $as_me, which was
22e05272 1941generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1942
1943 $ $0 $@
1944
1945_ACEOF
5213506e 1946exec 5>>config.log
1c710c3c
DJ
1947{
1948cat <<_ASUNAME
1949## --------- ##
1950## Platform. ##
1951## --------- ##
1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961
1962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1965/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1969
1970_ASUNAME
1971
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
5213506e
RW
1977 $as_echo "PATH: $as_dir"
1978 done
1979IFS=$as_save_IFS
1c710c3c
DJ
1980
1981} >&5
1982
1983cat >&5 <<_ACEOF
1984
1985
1986## ----------- ##
1987## Core tests. ##
1988## ----------- ##
1989
1990_ACEOF
1991
1992
1993# Keep a trace of the command line.
1994# Strip out --no-create and --no-recursion so they do not pile up.
1995# Strip out --silent because we don't want to record it for future runs.
1996# Also quote any args containing shell meta-characters.
1997# Make two passes to allow for proper duplicate-argument suppression.
1998ac_configure_args=
1999ac_configure_args0=
2000ac_configure_args1=
1c710c3c
DJ
2001ac_must_keep_next=false
2002for ac_pass in 1 2
2003do
2004 for ac_arg
2005 do
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
5213506e
RW
2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2013 esac
2014 case $ac_pass in
5213506e 2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2016 2)
5213506e 2017 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2029 ;;
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2032 fi
5213506e 2033 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2034 ;;
2035 esac
2036 done
2037done
5213506e
RW
2038{ ac_configure_args0=; unset ac_configure_args0;}
2039{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2040
2041# When interrupted or exit'd, cleanup temporary files, and complete
2042# config.log. We remove comments because anyway the quotes in there
2043# would cause problems or look ugly.
5213506e
RW
2044# WARNING: Use '\'' to represent an apostrophe within the trap.
2045# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2046trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
22e05272 2051 $as_echo "## ---------------- ##
1c710c3c 2052## Cache variables. ##
22e05272 2053## ---------------- ##"
1c710c3c
DJ
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2056(
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
1c710c3c 2072 (set) 2>&1 |
5213506e
RW
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
1c710c3c 2075 sed -n \
5213506e
RW
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
1c710c3c 2079 *)
5213506e 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2081 ;;
5213506e
RW
2082 esac |
2083 sort
2084)
1c710c3c
DJ
2085 echo
2086
22e05272 2087 $as_echo "## ----------------- ##
1c710c3c 2088## Output variables. ##
22e05272 2089## ----------------- ##"
1c710c3c
DJ
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
5213506e
RW
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
22e05272 2102 $as_echo "## ------------------- ##
5213506e 2103## File substitutions. ##
22e05272 2104## ------------------- ##"
1c710c3c
DJ
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
5213506e
RW
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
22e05272 2118 $as_echo "## ----------- ##
1c710c3c 2119## confdefs.h. ##
22e05272 2120## ----------- ##"
1c710c3c 2121 echo
5213506e 2122 cat confdefs.h
1c710c3c
DJ
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
5213506e
RW
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
1c710c3c 2128 } >&5
5213506e
RW
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2131 exit $exit_status
5213506e 2132' 0
1c710c3c 2133for ac_signal in 1 2 13 15; do
5213506e 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2135done
2136ac_signal=0
2137
2138# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2139rm -f -r conftest* confdefs.h
2140
2141$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2142
2143# Predefined preprocessor variables.
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_NAME "$PACKAGE_NAME"
2147_ACEOF
2148
1c710c3c
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151_ACEOF
2152
1c710c3c
DJ
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_VERSION "$PACKAGE_VERSION"
2155_ACEOF
0b0dc272 2156
1c710c3c
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_STRING "$PACKAGE_STRING"
2159_ACEOF
2160
1c710c3c
DJ
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163_ACEOF
2164
5213506e
RW
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_URL "$PACKAGE_URL"
2167_ACEOF
2168
1c710c3c
DJ
2169
2170# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2171# Prefer an explicitly selected file to automatically selected ones.
2172ac_site_file1=NONE
2173ac_site_file2=NONE
2174if test -n "$CONFIG_SITE"; then
22e05272
JM
2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
5213506e
RW
2181elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2187fi
5213506e
RW
2188for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189do
2190 test "x$ac_site_file" = xNONE && continue
22e05272 2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2194 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198as_fn_error $? "failed to load site script $ac_site_file
2199See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2200 fi
2201done
2202
2203if test -r "$cache_file"; then
22e05272
JM
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2209 case $cache_file in
5213506e
RW
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
1c710c3c
DJ
2212 esac
2213 fi
671aa708 2214else
5213506e
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2217 >$cache_file
2218fi
2219
2220# Check that the precious variables saved in the cache have kept the same
2221# value.
2222ac_cache_corrupted=false
5213506e 2223for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2228 case $ac_old_set,$ac_new_set in
2229 set,)
5213506e
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2232 ac_cache_corrupted=: ;;
2233 ,set)
5213506e
RW
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2236 ac_cache_corrupted=: ;;
2237 ,);;
2238 *)
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
5213506e 2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2267 esac
2268 fi
2269done
2270if $ac_cache_corrupted; then
5213506e
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2276fi
5213506e
RW
2277## -------------------- ##
2278## Main body of script. ##
2279## -------------------- ##
671aa708 2280
2aeb72e9
DD
2281ac_ext=c
2282ac_cpp='$CPP $CPPFLAGS'
2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
1c710c3c
DJ
2287
2288
2289
1c710c3c
DJ
2290
2291
0115d4a3 2292
1c710c3c 2293
ad33ff57
RW
2294progname=$0
2295# if PWD already has a value, it is probably wrong.
2296if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2297
2298# Export original configure arguments for use by sub-configures.
2299# Quote arguments with shell meta charatcers.
2300TOPLEVEL_CONFIGURE_ARGUMENTS=
2301set -- "$progname" "$@"
2302for ac_arg
2303do
2304 case "$ac_arg" in
2305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2307 # if the argument is of the form -foo=baz, quote the baz part only
2308 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 *) ;;
2310 esac
2311 # Add the quoted argument to the list.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313done
2314if test "$silent" = yes; then
2315 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316fi
2317# Remove the initial space we just introduced and, as these will be
2318# expanded by make, quote '$'.
2319TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320
1c710c3c
DJ
2321
2322# Find the build, host, and target systems.
671aa708 2323ac_aux_dir=
5213506e 2324for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2325 if 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/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
671aa708
NN
2338done
2339if test -z "$ac_aux_dir"; then
22e05272 2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2341fi
5213506e
RW
2342
2343# These three variables are undocumented and unsupported,
2344# and are intended to be withdrawn in a future Autoconf release.
2345# They can cause serious problems if a builder's source tree is in a directory
2346# whose full name contains unusual characters.
2347ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350
671aa708 2351
1c710c3c 2352# Make sure we can run config.sub.
5213506e 2353$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357$as_echo_n "checking build system type... " >&6; }
22e05272 2358if ${ac_cv_build+:} false; then :
5213506e
RW
2359 $as_echo_n "(cached) " >&6
2360else
2361 ac_build_alias=$build_alias
2362test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364test "x$ac_build_alias" = x &&
22e05272 2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2366ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2368
2369fi
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371$as_echo "$ac_cv_build" >&6; }
2372case $ac_cv_build in
2373*-*-*) ;;
22e05272 2374*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2375esac
1c710c3c 2376build=$ac_cv_build
5213506e
RW
2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_build
2379shift
2380build_cpu=$1
2381build_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385build_os=$*
2386IFS=$ac_save_IFS
2387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2388
671aa708 2389
1c710c3c
DJ
2390 case ${build_alias} in
2391 "") build_noncanonical=${build} ;;
2392 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2393esac
2394
2395
af71363e 2396
1c710c3c
DJ
2397 case ${host_alias} in
2398 "") host_noncanonical=${build_noncanonical} ;;
2399 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2400esac
2401
af71363e 2402
1c710c3c
DJ
2403
2404 case ${target_alias} in
2405 "") target_noncanonical=${host_noncanonical} ;;
2406 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2407esac
2408
af71363e 2409
1c710c3c
DJ
2410
2411
2412test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
1c710c3c 2415 program_transform_name=s,y,y,
af71363e 2416
5213506e
RW
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418$as_echo_n "checking host system type... " >&6; }
22e05272 2419if ${ac_cv_host+:} false; then :
5213506e 2420 $as_echo_n "(cached) " >&6
af71363e 2421else
5213506e
RW
2422 if test "x$host_alias" = x; then
2423 ac_cv_host=$ac_cv_build
2424else
2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2427fi
1c710c3c 2428
af71363e 2429fi
5213506e
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431$as_echo "$ac_cv_host" >&6; }
2432case $ac_cv_host in
2433*-*-*) ;;
22e05272 2434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2435esac
1c710c3c 2436host=$ac_cv_host
5213506e
RW
2437ac_save_IFS=$IFS; IFS='-'
2438set x $ac_cv_host
2439shift
2440host_cpu=$1
2441host_vendor=$2
2442shift; shift
2443# Remember, the first character of IFS is used to create $*,
2444# except with old shells:
2445host_os=$*
2446IFS=$ac_save_IFS
2447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2448
2449
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451$as_echo_n "checking target system type... " >&6; }
22e05272 2452if ${ac_cv_target+:} false; then :
5213506e 2453 $as_echo_n "(cached) " >&6
1c710c3c 2454else
5213506e
RW
2455 if test "x$target_alias" = x; then
2456 ac_cv_target=$ac_cv_host
2457else
2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2460fi
1c710c3c
DJ
2461
2462fi
5213506e
RW
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464$as_echo "$ac_cv_target" >&6; }
2465case $ac_cv_target in
2466*-*-*) ;;
22e05272 2467*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2468esac
1c710c3c 2469target=$ac_cv_target
5213506e
RW
2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_target
2472shift
2473target_cpu=$1
2474target_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478target_os=$*
2479IFS=$ac_save_IFS
2480case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2481
2482
2483# The aliases save the names the user supplied, while $host etc.
2484# will get canonicalized.
2485test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_prefix=${target_alias}-
5213506e 2489
671aa708 2490test "$program_prefix" != NONE &&
5213506e 2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
5213506e
RW
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
1c710c3c 2496# By default was `s,x,x', remove it if useless.
5213506e
RW
2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2499
671aa708
NN
2500
2501
775956d0
NN
2502# Get 'install' or 'install-sh' and its variants.
2503# Find a good install program. We prefer a C program (faster),
2504# so one script is as good as another. But avoid the broken or
2505# incompatible versions:
2506# SysV /etc/install, /usr/sbin/install
2507# SunOS /usr/etc/install
2508# IRIX /sbin/install
2509# AIX /bin/install
1c710c3c 2510# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2514# OS/2's system install, which has a completely different semantic
775956d0 2515# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2516# Reject install programs that cannot install multiple files.
5213506e
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2519if test -z "$INSTALL"; then
22e05272 2520if ${ac_cv_path_install+:} false; then :
5213506e 2521 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2522else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
5213506e
RW
2528 # Account for people who put trailing slashes in PATH elements.
2529case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
1c710c3c 2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2541 if test $ac_prog = install &&
1c710c3c 2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2543 # AIX install. It has an incompatible calling convention.
2544 :
1c710c3c
DJ
2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
775956d0 2549 else
38d24731
RW
2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
775956d0
NN
2562 fi
2563 fi
2564 done
1c710c3c
DJ
2565 done
2566 ;;
2567esac
5213506e
RW
2568
2569 done
2570IFS=$as_save_IFS
1c710c3c 2571
38d24731 2572rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2573
2574fi
2575 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2576 INSTALL=$ac_cv_path_install
775956d0 2577 else
38d24731
RW
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
775956d0 2580 # break other packages using the cache if that directory is
38d24731 2581 # removed, or if the value is a relative name.
1c710c3c 2582 INSTALL=$ac_install_sh
775956d0
NN
2583 fi
2584fi
5213506e
RW
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586$as_echo "$INSTALL" >&6; }
775956d0
NN
2587
2588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589# It thinks the first close brace ends the variable substitution.
2590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
1c710c3c 2592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2593
2594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
5213506e
RW
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2597$as_echo_n "checking whether ln works... " >&6; }
22e05272 2598if ${acx_cv_prog_LN+:} false; then :
5213506e 2599 $as_echo_n "(cached) " >&6
ad6717df
PB
2600else
2601 rm -f conftestdata_t
2602echo >conftestdata_f
2603if ln conftestdata_f conftestdata_t 2>/dev/null
2604then
2605 acx_cv_prog_LN=ln
2606else
2607 acx_cv_prog_LN=no
2608fi
2609rm -f conftestdata_f conftestdata_t
2610
2611fi
2612if test $acx_cv_prog_LN = no; then
2613 LN="cp"
5213506e
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2615$as_echo "no, using $LN" >&6; }
ad6717df
PB
2616else
2617 LN="$acx_cv_prog_LN"
5213506e
RW
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
ad6717df
PB
2620fi
2621
5213506e
RW
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2623$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2624LN_S=$as_ln_s
2625if test "$LN_S" = "ln -s"; then
5213506e
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
fb0103e5 2628else
5213506e
RW
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2630$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2631fi
2632
87264276
PB
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2634$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2635if ${ac_cv_path_SED+:} false; then :
87264276
PB
2636 $as_echo_n "(cached) " >&6
2637else
2638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2639 for ac_i in 1 2 3 4 5 6 7; do
2640 ac_script="$ac_script$as_nl$ac_script"
2641 done
2642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2643 { ac_script=; unset ac_script;}
2644 if test -z "$SED"; then
2645 ac_path_SED_found=false
2646 # Loop through the user's path and test for each of PROGNAME-LIST
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in sed gsed; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2655 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2656# Check for GNU ac_path_SED and select it if it is found.
2657 # Check for GNU $ac_path_SED
2658case `"$ac_path_SED" --version 2>&1` in
2659*GNU*)
2660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2661*)
2662 ac_count=0
2663 $as_echo_n 0123456789 >"conftest.in"
2664 while :
2665 do
2666 cat "conftest.in" "conftest.in" >"conftest.tmp"
2667 mv "conftest.tmp" "conftest.in"
2668 cp "conftest.in" "conftest.nl"
2669 $as_echo '' >> "conftest.nl"
2670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2672 as_fn_arith $ac_count + 1 && ac_count=$as_val
2673 if test $ac_count -gt ${ac_path_SED_max-0}; then
2674 # Best one so far, save it but keep looking for a better one
2675 ac_cv_path_SED="$ac_path_SED"
2676 ac_path_SED_max=$ac_count
2677 fi
2678 # 10*(2^10) chars as input seems more than enough
2679 test $ac_count -gt 10 && break
2680 done
2681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2682esac
2683
2684 $ac_path_SED_found && break 3
2685 done
2686 done
2687 done
2688IFS=$as_save_IFS
2689 if test -z "$ac_cv_path_SED"; then
22e05272 2690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2691 fi
2692else
2693 ac_cv_path_SED=$SED
2694fi
2695
2696fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2698$as_echo "$ac_cv_path_SED" >&6; }
2699 SED="$ac_cv_path_SED"
2700 rm -f conftest.sed
2701
2702for ac_prog in gawk mawk nawk awk
2703do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705set dummy $ac_prog; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2708if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731AWK=$ac_cv_prog_AWK
2732if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734$as_echo "$AWK" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741 test -n "$AWK" && break
2742done
2743
775956d0 2744
ee6a22df
L
2745srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746
2747# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748# a relative path.
2749if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2750 INSTALL="${srcpwd}/install-sh -c"
2751fi
2752
671aa708
NN
2753# Set srcdir to "." if that's what it is.
2754# This is important for multilib support.
2755pwd=`${PWDCMD-pwd}`
671aa708
NN
2756if test "${pwd}" = "${srcpwd}" ; then
2757 srcdir=.
79c06341
JL
2758fi
2759
671aa708 2760topsrcdir=$srcpwd
5d4a5ee6 2761
671aa708 2762extra_host_args=
afabd8e6 2763
671aa708
NN
2764### To add a new directory to the tree, first choose whether it is a target
2765### or a host dependent tool. Then put it into the appropriate list
2766### (library or tools, host or target), doing a dependency sort.
79c06341 2767
1c710c3c 2768# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2769# configdirs, or target_configdirs; see the serialization section below.
79c06341 2770
1c710c3c
DJ
2771# Dependency sorting is only needed when *configuration* must be done in
2772# a particular order. In all cases a dependency should be specified in
671aa708 2773# the Makefile, whether or not it's implicitly specified here.
79c06341 2774
671aa708
NN
2775# Double entries in build_configdirs, configdirs, or target_configdirs may
2776# cause circular dependencies and break everything horribly.
79c06341 2777
23f6b2f9
PB
2778# these library is used by various programs built for the build
2779# environment
2780#
929315a9 2781build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2782
2783# these tools are built for the build environment
85bfb75e 2784build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2785
671aa708 2786# these libraries are used by various programs built for the host environment
eae1a5d4 2787#f
de6abd85 2788host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2789
671aa708
NN
2790# these tools are built for the host environment
2791# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2792# know that we are building the simulator.
2793# binutils, gas and ld appear in that order because it makes sense to run
2794# "make check" in that particular order.
38e3d868 2795# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2796host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2797
671aa708
NN
2798# these libraries are built for the target environment, and are built after
2799# the host libraries and the host tools (which may be a cross compiler)
8499116a 2800# Note that libiberty is not a target library.
291f172e 2801target_libraries="target-libgcc \
eff02e4f 2802 target-libbacktrace \
671aa708
NN
2803 target-libgloss \
2804 target-newlib \
6d3b5aea 2805 target-libgomp \
5f520819 2806 target-liboffloadmic \
5fd1486c 2807 target-libhsail-rt \
48310492 2808 target-libatomic \
0a35513e 2809 target-libitm \
cb543528 2810 target-libstdc++-v3 \
f35db108 2811 target-libsanitizer \
2077db1b 2812 target-libvtv \
77008252 2813 target-libssp \
1ec601bf 2814 target-libquadmath \
6de9cd9a 2815 target-libgfortran \
012447ea 2816 target-libffi \
d9cdb878 2817 target-libobjc \
632e2a07 2818 target-libada \
b4c522fa 2819 target-libgo \
bb50312e
IB
2820 target-libphobos \
2821 target-zlib"
671aa708 2822
4dbda6f0
NN
2823# these tools are built using the target libraries, and are intended to
2824# run only in the target environment
671aa708 2825#
4dbda6f0 2826# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2827# list belongs in this list.
671aa708 2828#
85bfb75e 2829target_tools="target-rda"
79c06341 2830
671aa708 2831################################################################################
79c06341 2832
671aa708
NN
2833## All tools belong in one of the four categories, and are assigned above
2834## We assign ${configdirs} this way to remove all embedded newlines. This
2835## is important because configure will choke if they ever get through.
2836## ${configdirs} is directories we build using the host tools.
2837## ${target_configdirs} is directories we build using the target tools.
671aa708 2838configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2839target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2840build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2841
ac9e6043
RW
2842
2843
671aa708 2844################################################################################
79c06341 2845
671aa708 2846srcname="gnu development package"
79c06341 2847
671aa708
NN
2848# This gets set non-empty for some net releases of packages.
2849appdirs=""
79c06341 2850
671aa708
NN
2851# Define is_cross_compiler to save on calls to 'test'.
2852is_cross_compiler=
2853if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
79c06341 2855else
671aa708 2856 is_cross_compiler=yes
1c710c3c 2857fi
79c06341 2858
b4acb5ef 2859# Find the build and target subdir names.
8b87bb96 2860
2e9e6f68
DJ
2861# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862# have matching libraries, they should use host libraries: Makefile.tpl
2863# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864# However, they still use the build modules, because the corresponding
2865# host modules (e.g. bison) are only built for the host when bootstrap
2866# finishes. So:
2867# - build_subdir is where we find build modules, and never changes.
2868# - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2871build_subdir="build-${build_noncanonical}"
1c710c3c 2872
5213506e
RW
2873# Check whether --with-build-libsubdir was given.
2874if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2876else
2877 build_libsubdir="$build_subdir"
5213506e
RW
2878fi
2879
215c351a
PB
2880# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884else
2885 host_subdir=.
2886fi
8b87bb96
NN
2887# No prefix.
2888target_subdir=${target_noncanonical}
1c710c3c 2889
0db770bd
RW
2890# Be sure to cover against remnants of an in-tree build.
2891if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2893Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894fi
79c06341 2895
671aa708
NN
2896# Skipdirs are removed silently.
2897skipdirs=
2898# Noconfigdirs are removed loudly.
2899noconfigdirs=""
79c06341 2900
671aa708
NN
2901use_gnu_ld=
2902# Make sure we don't let GNU ld be added if we didn't want it.
2903if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
5afab7ad 2905 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2906fi
2907
671aa708
NN
2908use_gnu_as=
2909# Make sure we don't let GNU as be added if we didn't want it.
2910if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2913fi
2914
d7f09764 2915use_included_zlib=
a05c2c75
L
2916
2917# Check whether --with-system-zlib was given.
2918if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920fi
2921
d7f09764
DN
2922# Make sure we don't let ZLIB be added if we didn't want it.
2923if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926fi
2927
1c710c3c 2928# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2929# it's not even worth trying to configure, much less build, that tool.
79c06341 2930
671aa708
NN
2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
b4f96efe 2934 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2935 # We won't be able to build gdbtk without X.
1c710c3c 2936 enable_gdbtk=no
671aa708
NN
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
79c06341 2940
1bcce263 2941# Some are only suitable for cross toolchains.
671aa708
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}" ;;
671aa708 2947esac
79c06341 2948
671aa708
NN
2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
ee6a22df
L
2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
79c06341
JL
2956fi
2957
671aa708
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
79c06341 2963
85c64bbe
BS
2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2966 enableval=$enable_as_accelerator_for;
85c64bbe
BS
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
22e05272 2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
21539e2e
MK
2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
9580395f
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]
21539e2e
MK
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
9580395f
L
2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
21539e2e
MK
2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
5213506e
RW
3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3004else
3005 ENABLE_GOLD=no
5213506e
RW
3006fi
3007
21539e2e
MK
3008case "${ENABLE_GOLD}" in
3009 yes|default)
38e3d868
RM
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
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.
5afab7ad 3028 case "${target}" in
7705dfd1 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
38e3d868 3035 ENABLE_GOLD=yes
5afab7ad
ILT
3036 ;;
3037 esac
38e3d868
RM
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
22e05272 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3044 ;;
21539e2e
MK
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)
9580395f 3057 if test x${default_ld} != x; then
22e05272 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
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 *)
22e05272 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3072 ;;
3073esac
5afab7ad 3074
78edb32f
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
22e05272 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
671aa708 3090# Configure extra directories which are host specific
79c06341 3091
671aa708
NN
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
79c06341 3096
4fab7234
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
1c710c3c 3101# Remove more programs from consideration, based on the host or
671aa708
NN
3102# target this usually means that a port of the program doesn't
3103# exist yet.
ec8d6ddc 3104
671aa708 3105case "${host}" in
111eeb6e 3106 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3108 ;;
671aa708 3109esac
ec8d6ddc 3110
6de9cd9a 3111
87e6d9dc
TB
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
5213506e
RW
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3140else
3141 ENABLE_LIBADA=yes
5213506e
RW
3142fi
3143
d9cdb878 3144if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3145 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3146fi
3147
5213506e
RW
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3151else
3152 ENABLE_LIBSSP=yes
5213506e
RW
3153fi
3154
ef0087a7 3155
1873ec0c
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
1007a55c 3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3165fi
3166
5f520819
KY
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 *)
22e05272 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3178esac
3179else
4b4f2e35 3180 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
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
3201fi
3202
3203
3204
44a7d18d 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3206if test x$enable_libgomp = x ; then
953ff289 3207 case "${target}" in
416ac4d4 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3209 ;;
8c6d158a 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3211 ;;
b24513a1 3212 *-*-solaris2* | *-*-hpux11*)
953ff289 3213 ;;
cac90078 3214 *-*-darwin* | *-*-aix*)
953ff289 3215 ;;
44a7d18d
TS
3216 nvptx*-*-*)
3217 ;;
953ff289
DN
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
27079765 3222fi
953ff289 3223
48310492
RH
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
5f520819
KY
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
e948157d
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
01f3428c 3266$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
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
01f3428c 3272$as_echo "no" >&6; }
e948157d
RH
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3276$as_echo "yes" >&6; }
e948157d
RH
3277 fi
3278 fi
0a35513e
AH
3279fi
3280
93bf5390
RH
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
2077db1b
CT
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; \
1e74b850 3307 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
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
5373cd33 3319
f6a24a94
MJ
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
5373cd33
IE
3340
3341
d91491e5
SE
3342# Disable libquadmath for some systems.
3343case "${target}" in
e7fae550
DE
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
d91491e5
SE
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
1e9e0e23
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
b318fb4b 3357 # No hosted I/O support.
1e9e0e23
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
91dfef96
JM
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
1e9e0e23
JM
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3365 ;;
8d2af3a2
DD
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
85b8555e 3370 rl78-*-*)
7cb62ef1
EB
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
85b8555e 3374 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3375 ;;
0969ec7d
EB
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
1e9e0e23
JM
3380esac
3381
1e9e0e23 3382# Disable libstdc++-v3 for some systems.
1873ec0c
L
3383# Allow user to override this if they pass --enable-libstdc++-v3
3384if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 arm*-wince-pe*)
3391 # the C++ libraries don't build on top of CE's C libraries
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 avr-*-*)
3395 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3396 ;;
91dfef96
JM
3397 bpf-*-*)
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
fef939d6
JB
3400 ft32-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
1873ec0c
L
3403 esac
3404fi
1e9e0e23 3405
91dfef96
JM
3406# Disable C++ on systems where it is known to not work.
3407# For testing, you can override this with --enable-languages=c++.
3408case ,${enable_languages}, in
3409 *,c++,*)
3410 ;;
3411 *)
3412 case "${target}" in
3413 bpf-*-*)
3414 unsupported_languages="$unsupported_languages c++"
3415 ;;
3416 esac
3417 ;;
3418esac
3419
3420# Disable Objc on systems where it is known to not work.
3421# For testing, you can override this with --enable-languages=objc.
3422case ,${enable_languages}, in
3423 *,objc,*)
3424 ;;
3425 *)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages objc"
3429 ;;
3430 esac
3431 ;;
3432esac
3433
260eedb9
IB
3434# Disable D on systems where it is known to not work.
3435# For testing, you can override this with --enable-languages=d.
3436case ,${enable_languages}, in
3437 *,d,*)
3438 ;;
3439 *)
3440 case "${target}" in
4d024c32 3441 *-*-darwin*)
91dfef96
JM
3442 unsupported_languages="$unsupported_languages d"
3443 ;;
3444 bpf-*-*)
260eedb9
IB
3445 unsupported_languages="$unsupported_languages d"
3446 ;;
3447 esac
3448 ;;
3449esac
3450
3451# Disable libphobos on unsupported systems.
3452# For testing, you can override this with --enable-libphobos.
3453if test -d ${srcdir}/libphobos; then
3454 if test x$enable_libphobos = x; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3456$as_echo_n "checking for libphobos support... " >&6; }
3457 if (srcdir=${srcdir}/libphobos; \
3458 . ${srcdir}/configure.tgt; \
7d31d331 3459 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3460 then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463 noconfigdirs="$noconfigdirs target-libphobos"
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466$as_echo "yes" >&6; }
3467 fi
3468 fi
3469fi
3470
1e9e0e23
JM
3471# Disable Fortran for some systems.
3472case "${target}" in
3473 mmix-*-*)
3474 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3475 unsupported_languages="$unsupported_languages fortran"
3476 ;;
91dfef96
JM
3477 bpf-*-*)
3478 unsupported_languages="$unsupported_languages fortran"
3479 ;;
1e9e0e23
JM
3480esac
3481
012447ea
JJ
3482# Disable libffi for some systems.
3483case "${target}" in
3484 powerpc-*-darwin*)
3485 ;;
3486 i[3456789]86-*-darwin*)
3487 ;;
3488 x86_64-*-darwin[912]*)
3489 ;;
3490 *-*-darwin*)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 *-*-netware*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
3496 *-*-phoenix*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-rtems*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-tpf*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-uclinux*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-vxworks*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
b20e7532
AT
3511 aarch64*-*-freebsd*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
012447ea
JJ
3514 alpha*-*-*vms*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 arm*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 arm-wince-pe)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm*-*-symbianelf*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
91dfef96
JM
3526 bpf-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
012447ea
JJ
3529 cris-*-* | crisv32-*-*)
3530 case "${target}" in
3531 *-*-linux*)
3532 ;;
3533 *) # See PR46792 regarding target-libffi.
3534 noconfigdirs="$noconfigdirs target-libffi";;
3535 esac
3536 ;;
3537 hppa*64*-*-hpux*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 hppa*-hp-hpux11*)
3541 ;;
3542 hppa*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3544 ;;
3545 ia64*-*-*vms*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3547 ;;
3548 i[3456789]86-w64-mingw*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 i[3456789]86-*-mingw*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 x86_64-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 mmix-*-*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 powerpc-*-aix*)
012447ea
JJ
3561 ;;
3562 rs6000-*-aix*)
012447ea
JJ
3563 ;;
3564 ft32-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3566 ;;
3567 *-*-lynxos*)
3568 noconfigdirs="$noconfigdirs target-libffi"
3569 ;;
3570esac
3571
3572# Disable the go frontend on systems where it is known to not work. Please keep
3573# this in sync with contrib/config-list.mk.
3574case "${target}" in
91dfef96 3575*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3576 unsupported_languages="$unsupported_languages go"
3577 ;;
3578esac
3579
cdbc9e92
ILT
3580# Disable libgo for some systems where it is known to not work.
3581# For testing, you can easily override this with --enable-libgo.
3582if test x$enable_libgo = x; then
3583 case "${target}" in
3584 *-*-darwin*)
3585 # PR 46986
3586 noconfigdirs="$noconfigdirs target-libgo"
3587 ;;
3588 *-*-cygwin* | *-*-mingw*)
3589 noconfigdirs="$noconfigdirs target-libgo"
3590 ;;
91dfef96
JM
3591 bpf-*-*)
3592 noconfigdirs="$noconfigdirs target-libgo"
3593 ;;
cdbc9e92
ILT
3594 esac
3595fi
3596
c03353e2
RIL
3597# Default libgloss CPU subdirectory.
3598libgloss_dir="$target_cpu"
6de9cd9a 3599
fbcf0dca
JM
3600case "${target}" in
3601 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3602 libgloss_dir=wince
3603 ;;
4dddfc74
YZ
3604 aarch64*-*-* )
3605 libgloss_dir=aarch64
3606 ;;
fbcf0dca
JM
3607 arm*-*-*)
3608 libgloss_dir=arm
3609 ;;
3610 cris-*-* | crisv32-*-*)
3611 libgloss_dir=cris
3612 ;;
3613 hppa*-*-*)
3614 libgloss_dir=pa
3615 ;;
3616 i[3456789]86-*-*)
3617 libgloss_dir=i386
3618 ;;
3619 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3620 libgloss_dir=m68hc11
3621 ;;
3622 m68*-*-* | fido-*-*)
3623 libgloss_dir=m68k
3624 ;;
3625 mips*-*-*)
3626 libgloss_dir=mips
3627 ;;
3628 powerpc*-*-*)
3629 libgloss_dir=rs6000
3630 ;;
8d2af3a2
DD
3631 pru-*-*)
3632 libgloss_dir=pru
3633 ;;
fbcf0dca
JM
3634 sparc*-*-*)
3635 libgloss_dir=sparc
3636 ;;
3637esac
3638
6a789d5e 3639# Disable newlib and libgloss for various target OSes.
671aa708 3640case "${target}" in
6a789d5e
JM
3641 alpha*-dec-osf*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 i[3456789]86-*-linux*)
3645 # This section makes it possible to build newlib natively on linux.
3646 # If we are using a cross compiler then don't configure newlib.
3647 if test x${is_cross_compiler} != xno ; then
3648 noconfigdirs="$noconfigdirs target-newlib"
3649 fi
3650 noconfigdirs="$noconfigdirs target-libgloss"
3651 # If we are not using a cross compiler, do configure newlib.
3652 # Note however, that newlib will only be configured in this situation
3653 # if the --with-newlib option has been given, because otherwise
3654 # 'target-newlib' will appear in skipdirs.
3655 ;;
3656 i[3456789]86-*-rdos*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 sparc-*-sunos4*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
91dfef96
JM
3665 bpf-*-*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
6a789d5e
JM
3668 *-*-aix*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-beos*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
671aa708 3674 *-*-chorusos)
0036370f 3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3676 ;;
6a789d5e
JM
3677 *-*-dragonfly*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-freebsd*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 *-*-lynxos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 *-*-mingw*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 *-*-netbsd*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 *-*-netware*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 *-*-tpf*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 *-*-uclinux*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
3704 *-*-vxworks*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706 ;;
3707esac
3708
3709case "${target}" in
3710 *-*-chorusos)
3711 ;;
3be96231
TG
3712 aarch64-*-darwin*)
3713 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3714 noconfigdirs="$noconfigdirs sim target-rda"
3715 ;;
7431c1a1
AS
3716 amdgcn*-*-*)
3717 ;;
3be96231
TG
3718 arm-*-darwin*)
3719 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3720 noconfigdirs="$noconfigdirs sim target-rda"
3721 ;;
75eeae1a 3722 powerpc-*-darwin*)
e1514c3f 3723 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3724 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3725 ;;
354ebf88
RW
3726 i[3456789]86-*-darwin*)
3727 noconfigdirs="$noconfigdirs ld gprof"
3728 noconfigdirs="$noconfigdirs sim target-rda"
3729 ;;
3730 x86_64-*-darwin[912]*)
0db3a858
TG
3731 noconfigdirs="$noconfigdirs ld gas gprof"
3732 noconfigdirs="$noconfigdirs sim target-rda"
3733 ;;
42c1cd8a
AT
3734 *-*-darwin*)
3735 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3736 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3737 ;;
8c6d158a 3738 *-*-dragonfly*)
8c6d158a 3739 ;;
c3f84f61 3740 *-*-freebsd*)
6de9cd9a
DN
3741 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3742 && test -f /usr/local/include/gmp.h; then
3743 with_gmp=/usr/local
3744 fi
6de9cd9a 3745 ;;
ef4e7569
US
3746 *-*-kaos*)
3747 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3748 noconfigdirs="$noconfigdirs target-libgloss"
3749 ;;
671aa708 3750 *-*-netbsd*)
671aa708 3751 ;;
61fec9ff 3752 *-*-netware*)
671aa708 3753 ;;
fd6487af
JS
3754 *-*-phoenix*)
3755 noconfigdirs="$noconfigdirs target-libgloss"
3756 ;;
671aa708 3757 *-*-rtems*)
2909494b 3758 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3759 ;;
a8ba31f2
EC
3760 # The tpf target doesn't support gdb yet.
3761 *-*-tpf*)
6a789d5e 3762 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3763 ;;
5785c0ed 3764 *-*-uclinux*)
6a789d5e 3765 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3766 ;;
671aa708 3767 *-*-vxworks*)
671aa708
NN
3768 ;;
3769 alpha*-dec-osf*)
3770 # ld works, but does not support shared libraries.
671aa708 3771 # gas doesn't generate exception information.
6a789d5e 3772 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3773 ;;
3774 alpha*-*-*vms*)
2909494b 3775 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3776 ;;
671aa708
NN
3777 alpha*-*-*)
3778 # newlib is not 64 bit ready
2909494b 3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3780 ;;
91dfef96
JM
3781 bpf-*-*)
3782 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3783 ;;
671aa708 3784 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3785 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3786 ;;
2fd88f4f
AK
3787 arc*-*-*)
3788 noconfigdirs="$noconfigdirs sim"
3789 ;;
671aa708 3790 arm-*-pe*)
2909494b 3791 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3792 ;;
671aa708 3793 arm-*-riscix*)
0036370f 3794 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3795 ;;
b588ae30
GJL
3796 avr-*-*)
3797 if test x${with_avrlibc} != xno; then
3798 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3799 fi
3800 ;;
671aa708 3801 c4x-*-* | tic4x-*-*)
0036370f 3802 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3803 ;;
0036370f
JM
3804 tic54x-*-*)
3805 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3806 ;;
671aa708 3807 d10v-*-*)
0036370f 3808 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3809 ;;
3810 d30v-*-*)
0036370f 3811 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3812 ;;
3813 fr30-*-elf*)
2909494b 3814 noconfigdirs="$noconfigdirs gdb"
671aa708 3815 ;;
a05c2c75
L
3816 ft32-*-*)
3817 noconfigdirs="$noconfigdirs target-rda gprof"
3818 ;;
55f2d967 3819 moxie-*-*)
a05c2c75 3820 noconfigdirs="$noconfigdirs"
55f2d967 3821 ;;
671aa708 3822 h8300*-*-*)
2909494b 3823 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3824 ;;
3825 h8500-*-*)
0036370f 3826 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3827 ;;
ee6a22df 3828 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3829 ;;
a05c2c75
L
3830 hppa*64*-*-hpux*)
3831 noconfigdirs="$noconfigdirs gdb"
3832 ;;
3833 hppa*-*-hpux11*)
3834 noconfigdirs="$noconfigdirs gdb ld"
3835 ;;
4569f85e 3836 hppa*64*-*-linux*)
671aa708 3837 ;;
56f8587a 3838 hppa*-*-linux*)
3e732ba0 3839 ;;
671aa708 3840 hppa*-*-*elf* | \
671aa708
NN
3841 hppa*-*-lites* | \
3842 hppa*-*-openbsd* | \
3843 hppa*64*-*-*)
671aa708 3844 ;;
c03353e2 3845 hppa*-*-pro*)
c03353e2 3846 ;;
671aa708 3847 hppa*-*-*)
2909494b 3848 noconfigdirs="$noconfigdirs ld"
671aa708 3849 ;;
fb87ad5d 3850 i960-*-*)
0036370f 3851 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3852 ;;
671aa708
NN
3853 ia64*-*-elf*)
3854 # No gdb support yet.
1bcce263 3855 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3856 ;;
3857 ia64*-**-hpux*)
5a2931d1 3858 # No ld support yet.
a05c2c75 3859 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3860 ;;
52535a64 3861 ia64*-*-*vms*)
091fe9ca
TG
3862 # No ld support yet.
3863 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3864 ;;
ef4c4300 3865 i[3456789]86-w64-mingw*)
ef4c4300
KT
3866 ;;
3867 i[3456789]86-*-mingw*)
b91f0a41 3868 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3869 ;;
671aa708
NN
3870 *-*-cygwin*)
3871 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3872 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3873 # always build newlib if winsup directory is present.
b91f0a41 3874 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3875 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3876 elif test -d "$srcdir/newlib"; then
b91f0a41 3877 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3878 fi
1c710c3c 3879 ;;
f2a0e225 3880 i[3456789]86-*-pe)
ebb9f8b0 3881 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3882 ;;
f2a0e225 3883 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3884 # The linker does not yet know about weak symbols in COFF,
3885 # and is not configured to handle mixed ELF and COFF.
0036370f 3886 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3887 ;;
f2a0e225 3888 i[3456789]86-*-sco*)
0036370f 3889 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3890 ;;
fbdd5d87 3891 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3892 noconfigdirs="$noconfigdirs target-libgloss"
3893 ;;
f2a0e225 3894 i[3456789]86-*-sysv4*)
0036370f 3895 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3896 ;;
f2a0e225 3897 i[3456789]86-*-beos*)
6a789d5e 3898 noconfigdirs="$noconfigdirs gdb"
3aa83176 3899 ;;
d1f8db0c 3900 i[3456789]86-*-rdos*)
6a789d5e 3901 noconfigdirs="$noconfigdirs gdb"
c03353e2 3902 ;;
671aa708 3903 mmix-*-*)
2909494b 3904 noconfigdirs="$noconfigdirs gdb"
671aa708 3905 ;;
ab34901f 3906 mt-*-*)
79dd769c
AH
3907 noconfigdirs="$noconfigdirs sim"
3908 ;;
58b40a67
FT
3909 nfp-*-*)
3910 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3911 noconfigdirs="$noconfigdirs $target_libraries"
3912 ;;
671aa708
NN
3913 powerpc-*-aix*)
3914 # copied from rs6000-*-* entry
6a789d5e 3915 noconfigdirs="$noconfigdirs gprof"
671aa708 3916 ;;
4569f85e 3917 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3918 target_configdirs="$target_configdirs target-winsup"
0036370f 3919 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3920 # always build newlib.
3921 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3922 ;;
3923 # This is temporary until we can link against shared libraries
3924 powerpcle-*-solaris*)
0036370f 3925 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3926 ;;
3927 powerpc-*-beos*)
6a789d5e 3928 noconfigdirs="$noconfigdirs gdb"
671aa708 3929 ;;
671aa708 3930 rs6000-*-lynxos*)
6a789d5e 3931 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3932 ;;
3933 rs6000-*-aix*)
6a789d5e 3934 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3935 ;;
3936 rs6000-*-*)
2909494b 3937 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3938 ;;
3939 m68k-apollo-*)
0036370f 3940 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3941 ;;
ca9fe997 3942 microblaze*)
2909494b 3943 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3944 ;;
d896cc4d 3945 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3946 if test x$with_newlib = xyes; then
3947 noconfigdirs="$noconfigdirs gprof"
3948 fi
d9dced13 3949 ;;
671aa708 3950 mips*-*-irix5*)
0036370f 3951 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3952 ;;
3953 mips*-*-irix6*)
2909494b 3954 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3955 ;;
671aa708 3956 mips*-*-bsd*)
bc98bcc4 3957 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3958 ;;
671aa708 3959 mips*-*-linux*)
671aa708 3960 ;;
bc98bcc4
JBG
3961 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3962 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3963 noconfigdirs="$noconfigdirs ld gas gprof"
3964 ;;
671aa708 3965 mips*-*-*)
2909494b 3966 noconfigdirs="$noconfigdirs gprof"
671aa708 3967 ;;
738f2522 3968 nvptx*-*-*)
738f2522
BS
3969 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3970 ;;
bc6d9014 3971 sh-*-*)
ea2002ba
CB
3972 case "${target}" in
3973 sh*-*-elf)
2909494b 3974 ;;
ea2002ba 3975 *)
2909494b 3976 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3977 esac
671aa708 3978 ;;
671aa708 3979 sparc-*-sunos4*)
6a789d5e 3980 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3981 use_gnu_ld=no
3982 fi
3983 ;;
b42f0d7e 3984 tic6x-*-*)
0d557ff8 3985 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3986 ;;
341c653c 3987 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3988 noconfigdirs="$noconfigdirs sim"
3989 ;;
671aa708 3990 v810-*-*)
0036370f 3991 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3992 ;;
3993 vax-*-*)
2909494b 3994 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3995 ;;
1fc1d82e
MR
3996 wasm32-*-*)
3997 noconfigdirs="$noconfigdirs ld"
3998 ;;
671aa708 3999esac
79c06341 4000
671aa708
NN
4001# If we aren't building newlib, then don't build libgloss, since libgloss
4002# depends upon some newlib header files.
4003case "${noconfigdirs}" in
4004 *target-libgloss*) ;;
4005 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4006esac
4007
671aa708 4008# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4009host_makefile_frag=/dev/null
4010if test -d ${srcdir}/config ; then
4011case "${host}" in
f2a0e225 4012 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4013 host_makefile_frag="config/mh-djgpp"
4014 ;;
4015 *-cygwin*)
2a79c47f 4016
5213506e
RW
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4018$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4019echo a >cygwin-cat-check
e25a8c82 4020if test `cat cygwin-cat-check` = a ; then
2a79c47f 4021 rm cygwin-cat-check
5213506e
RW
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023$as_echo "yes" >&6; }
2a79c47f
NC
4024else
4025 rm cygwin-cat-check
5213506e
RW
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
22e05272 4028 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4029 Please either mount the build directory in binary mode or run the following
4030 commands before running any configure script:
4031set -o igncr
4032export SHELLOPTS
5213506e 4033 " "$LINENO" 5
2a79c47f
NC
4034fi
4035
671aa708
NN
4036 host_makefile_frag="config/mh-cygwin"
4037 ;;
c53a18d3 4038 *-mingw*)
1f5a6b84 4039 host_makefile_frag="config/mh-mingw"
95af8923 4040 ;;
cabb9d59 4041 alpha*-linux*)
13be44ed
UB
4042 host_makefile_frag="config/mh-alpha-linux"
4043 ;;
efd41714 4044 hppa*-hp-hpux10*)
efd41714 4045 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4046 ;;
111eeb6e 4047 hppa*-hp-hpux*)
efd41714
PB
4048 host_makefile_frag="config/mh-pa"
4049 ;;
4050 hppa*-*)
4051 host_makefile_frag="config/mh-pa"
4052 ;;
d8ed14ce
IS
4053 *-*-darwin*)
4054 host_makefile_frag="config/mh-darwin"
be8fff81 4055 ;;
d19bca38
PB
4056 powerpc-*-aix*)
4057 host_makefile_frag="config/mh-ppc-aix"
4058 ;;
4059 rs6000-*-aix*)
4060 host_makefile_frag="config/mh-ppc-aix"
4061 ;;
671aa708
NN
4062esac
4063fi
4064
55ffb5ed 4065if test "${build}" != "${host}" ; then
0999159b
PB
4066 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4067 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4068 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4069 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4070 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4071 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4072 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4073 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4074 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4075 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4076 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4077 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4078 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4079else
4080 AR_FOR_BUILD="\$(AR)"
4081 AS_FOR_BUILD="\$(AS)"
fb0103e5 4082 CC_FOR_BUILD="\$(CC)"
0999159b 4083 CXX_FOR_BUILD="\$(CXX)"
0999159b 4084 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4085 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4086 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4087 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4088 LD_FOR_BUILD="\$(LD)"
4089 NM_FOR_BUILD="\$(NM)"
4090 RANLIB_FOR_BUILD="\$(RANLIB)"
4091 WINDRES_FOR_BUILD="\$(WINDRES)"
4092 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4093fi
4094
4095ac_ext=c
1c710c3c
DJ
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4102set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4105if ${ac_cv_prog_CC+:} false; then :
5213506e 4106 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4107else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110else
4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
5213506e 4116 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4120 break 2
4121 fi
4122done
5213506e
RW
4123 done
4124IFS=$as_save_IFS
1c710c3c
DJ
4125
4126fi
4127fi
4128CC=$ac_cv_prog_CC
4129if test -n "$CC"; then
5213506e
RW
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4131$as_echo "$CC" >&6; }
1c710c3c 4132else
5213506e
RW
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
1c710c3c
DJ
4135fi
4136
5213506e 4137
1c710c3c
DJ
4138fi
4139if test -z "$ac_cv_prog_CC"; then
4140 ac_ct_CC=$CC
fb0103e5
RG
4141 # Extract the first word of "gcc", so it can be a program name with args.
4142set dummy gcc; ac_word=$2
5213506e
RW
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4145if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4146 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4147else
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
5213506e 4156 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4158 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4160 break 2
4161 fi
4162done
5213506e
RW
4163 done
4164IFS=$as_save_IFS
1c710c3c
DJ
4165
4166fi
4167fi
4168ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169if test -n "$ac_ct_CC"; then
5213506e
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4172else
5213506e
RW
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
1c710c3c
DJ
4175fi
4176
5213506e
RW
4177 if test "x$ac_ct_CC" = x; then
4178 CC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181yes:)
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184ac_tool_warned=yes ;;
4185esac
4186 CC=$ac_ct_CC
4187 fi
1c710c3c
DJ
4188else
4189 CC="$ac_cv_prog_CC"
4190fi
4191
4192if test -z "$CC"; then
5213506e
RW
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4195set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4198if ${ac_cv_prog_CC+:} false; then :
5213506e 4199 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4200else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203else
1c710c3c
DJ
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
5213506e 4209 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4211 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4213 break 2
4214 fi
4215done
5213506e
RW
4216 done
4217IFS=$as_save_IFS
1c710c3c 4218
0b0dc272 4219fi
0b0dc272 4220fi
1c710c3c 4221CC=$ac_cv_prog_CC
af71363e 4222if test -n "$CC"; then
5213506e
RW
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224$as_echo "$CC" >&6; }
2aeb72e9 4225else
5213506e
RW
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
2aeb72e9
DD
4228fi
4229
2aeb72e9 4230
5213506e 4231 fi
1c710c3c 4232fi
55ffb5ed
NN
4233if test -z "$CC"; then
4234 # Extract the first word of "cc", so it can be a program name with args.
4235set dummy cc; ac_word=$2
5213506e
RW
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4238if ${ac_cv_prog_CC+:} false; then :
5213506e 4239 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4240else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243else
0b0dc272 4244 ac_prog_rejected=no
1c710c3c
DJ
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
5213506e 4250 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4253 ac_prog_rejected=yes
4254 continue
4255 fi
4256 ac_cv_prog_CC="cc"
5213506e 4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4258 break 2
4259 fi
4260done
5213506e
RW
4261 done
4262IFS=$as_save_IFS
1c710c3c 4263
55ffb5ed
NN
4264if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_CC
4267 shift
1c710c3c 4268 if test $# != 0; then
55ffb5ed
NN
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set CC to just the basename; use the full file name.
4272 shift
1c710c3c 4273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4274 fi
4275fi
4276fi
4277fi
1c710c3c 4278CC=$ac_cv_prog_CC
55ffb5ed 4279if test -n "$CC"; then
5213506e
RW
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281$as_echo "$CC" >&6; }
55ffb5ed 4282else
5213506e
RW
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
55ffb5ed
NN
4285fi
4286
5213506e 4287
1c710c3c
DJ
4288fi
4289if test -z "$CC"; then
4290 if test -n "$ac_tool_prefix"; then
5213506e 4291 for ac_prog in cl.exe
1c710c3c
DJ
4292 do
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4297if ${ac_cv_prog_CC+:} false; then :
5213506e 4298 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4299else
4300 if test -n "$CC"; then
4301 ac_cv_prog_CC="$CC" # Let the user override the test.
4302else
1c710c3c
DJ
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
5213506e 4308 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4312 break 2
4313 fi
4314done
5213506e
RW
4315 done
4316IFS=$as_save_IFS
1c710c3c 4317
55ffb5ed
NN
4318fi
4319fi
1c710c3c 4320CC=$ac_cv_prog_CC
55ffb5ed 4321if test -n "$CC"; then
5213506e
RW
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4323$as_echo "$CC" >&6; }
a4b9e93e 4324else
5213506e
RW
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
fb0103e5 4327fi
af71363e 4328
5213506e 4329
1c710c3c
DJ
4330 test -n "$CC" && break
4331 done
af71363e 4332fi
1c710c3c
DJ
4333if test -z "$CC"; then
4334 ac_ct_CC=$CC
5213506e 4335 for ac_prog in cl.exe
1c710c3c
DJ
4336do
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338set dummy $ac_prog; ac_word=$2
5213506e
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4341if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4342 $as_echo_n "(cached) " >&6
0b0dc272 4343else
1c710c3c
DJ
4344 if test -n "$ac_ct_CC"; then
4345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4346else
1c710c3c
DJ
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
5213506e 4352 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4354 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4356 break 2
4357 fi
4358done
5213506e
RW
4359 done
4360IFS=$as_save_IFS
1c710c3c 4361
af71363e
AS
4362fi
4363fi
1c710c3c
DJ
4364ac_ct_CC=$ac_cv_prog_ac_ct_CC
4365if test -n "$ac_ct_CC"; then
5213506e
RW
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4367$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4368else
5213506e
RW
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370$as_echo "no" >&6; }
af71363e 4371fi
0b0dc272 4372
5213506e 4373
1c710c3c
DJ
4374 test -n "$ac_ct_CC" && break
4375done
4376
5213506e
RW
4377 if test "x$ac_ct_CC" = x; then
4378 CC=""
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381yes:)
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384ac_tool_warned=yes ;;
4385esac
4386 CC=$ac_ct_CC
4387 fi
1c710c3c
DJ
4388fi
4389
4390fi
4391
4392
5213506e
RW
4393test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4395as_fn_error $? "no acceptable C compiler found in \$PATH
4396See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4397
4398# Provide some information about the compiler.
5213506e
RW
4399$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4400set X $ac_compile
4401ac_compiler=$2
4402for ac_option in --version -v -V -qversion; do
4403 { { ac_try="$ac_compiler $ac_option >&5"
4404case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407esac
4408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409$as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4411 ac_status=$?
5213506e
RW
4412 if test -s conftest.err; then
4413 sed '10a\
4414... rest of stderr output deleted ...
4415 10q' conftest.err >conftest.er1
4416 cat conftest.er1 >&5
5213506e 4417 fi
22e05272 4418 rm -f conftest.er1 conftest.err
5213506e
RW
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }
4421done
1c710c3c 4422
5213506e 4423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4424/* end confdefs.h. */
4425
4426int
4427main ()
4428{
4429
4430 ;
4431 return 0;
4432}
4433_ACEOF
4434ac_clean_files_save=$ac_clean_files
22e05272 4435ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4436# Try to create an executable without -o first, disregard a.out.
4437# It will help us diagnose broken compilers, and finding out an intuition
4438# of exeext.
22e05272
JM
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4440$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4441ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4442
4443# The possible output files:
4444ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4445
4446ac_rmfiles=
4447for ac_file in $ac_files
4448do
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4452 esac
4453done
4454rm -f $ac_rmfiles
4455
4456if { { ac_try="$ac_link_default"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_link_default") 2>&5
1c710c3c 4464 ac_status=$?
5213506e
RW
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
4467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4468# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4469# in a Makefile. We should not override ac_cv_exeext if it was cached,
4470# so that the user can short-circuit this test for compilers unknown to
4471# Autoconf.
4472for ac_file in $ac_files ''
1c710c3c
DJ
4473do
4474 test -f "$ac_file" || continue
4475 case $ac_file in
5213506e 4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4477 ;;
4478 [ab].out )
4479 # We found the default executable, but exeext='' is most
4480 # certainly right.
4481 break;;
4482 *.* )
5213506e
RW
4483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4484 then :; else
4485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486 fi
4487 # We set ac_cv_exeext here because the later test for it is not
4488 # safe: cross compilers may not add the suffix if given an `-o'
4489 # argument, so we may need to know it at that point already.
4490 # Even if this section looks crufty: it has the advantage of
4491 # actually working.
1c710c3c
DJ
4492 break;;
4493 * )
4494 break;;
4495 esac
4496done
5213506e
RW
4497test "$ac_cv_exeext" = no && ac_cv_exeext=
4498
1c710c3c 4499else
5213506e
RW
4500 ac_file=''
4501fi
5213506e 4502if test -z "$ac_file"; then :
22e05272
JM
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
5213506e
RW
4508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4510as_fn_error 77 "C compiler cannot create executables
4511See \`config.log' for more details" "$LINENO" 5; }
4512else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4514$as_echo "yes" >&6; }
1c710c3c 4515fi
22e05272
JM
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4517$as_echo_n "checking for C compiler default output file name... " >&6; }
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4519$as_echo "$ac_file" >&6; }
1c710c3c 4520ac_exeext=$ac_cv_exeext
1c710c3c 4521
22e05272 4522rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4523ac_clean_files=$ac_clean_files_save
5213506e
RW
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4525$as_echo_n "checking for suffix of executables... " >&6; }
4526if { { ac_try="$ac_link"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532$as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_link") 2>&5
1c710c3c 4534 ac_status=$?
5213506e
RW
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; then :
1c710c3c
DJ
4537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4538# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4539# work properly (i.e., refer to `conftest.exe'), while it won't with
4540# `rm'.
4541for ac_file in conftest.exe conftest conftest.*; do
4542 test -f "$ac_file" || continue
4543 case $ac_file in
5213506e 4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4546 break;;
4547 * ) break;;
4548 esac
4549done
af71363e 4550else
5213506e
RW
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4553as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4554See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4555fi
22e05272 4556rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4558$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4559
4560rm -f conftest.$ac_ext
4561EXEEXT=$ac_cv_exeext
4562ac_exeext=$EXEEXT
22e05272
JM
4563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h. */
4565#include <stdio.h>
4566int
4567main ()
4568{
4569FILE *f = fopen ("conftest.out", "w");
4570 return ferror (f) || fclose (f) != 0;
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576ac_clean_files="$ac_clean_files conftest.out"
4577# Check that the compiler produces executables we can run. If not, either
4578# the compiler is broken, or we cross compile.
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4580$as_echo_n "checking whether we are cross compiling... " >&6; }
4581if test "$cross_compiling" != yes; then
4582 { { ac_try="$ac_link"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588$as_echo "$ac_try_echo"; } >&5
4589 (eval "$ac_link") 2>&5
4590 ac_status=$?
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593 if { ac_try='./conftest$ac_cv_exeext'
4594 { { case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599$as_echo "$ac_try_echo"; } >&5
4600 (eval "$ac_try") 2>&5
4601 ac_status=$?
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }; }; then
4604 cross_compiling=no
4605 else
4606 if test "$cross_compiling" = maybe; then
4607 cross_compiling=yes
4608 else
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611as_fn_error $? "cannot run C compiled programs.
4612If you meant to cross compile, use \`--host'.
4613See \`config.log' for more details" "$LINENO" 5; }
4614 fi
4615 fi
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4618$as_echo "$cross_compiling" >&6; }
4619
4620rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4621ac_clean_files=$ac_clean_files_save
5213506e
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4623$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4624if ${ac_cv_objext+:} false; then :
5213506e 4625 $as_echo_n "(cached) " >&6
1c710c3c 4626else
5213506e 4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4628/* end confdefs.h. */
4629
4630int
4631main ()
4632{
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638rm -f conftest.o conftest.obj
5213506e
RW
4639if { { ac_try="$ac_compile"
4640case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643esac
4644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645$as_echo "$ac_try_echo"; } >&5
4646 (eval "$ac_compile") 2>&5
1c710c3c 4647 ac_status=$?
5213506e
RW
4648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649 test $ac_status = 0; }; then :
4650 for ac_file in conftest.o conftest.obj conftest.*; do
4651 test -f "$ac_file" || continue;
1c710c3c 4652 case $ac_file in
5213506e 4653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4655 break;;
4656 esac
4657done
4658else
5213506e 4659 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
5213506e
RW
4662{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4664as_fn_error $? "cannot compute suffix of object files: cannot compile
4665See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4666fi
1c710c3c
DJ
4667rm -f conftest.$ac_cv_objext conftest.$ac_ext
4668fi
5213506e
RW
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4670$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4671OBJEXT=$ac_cv_objext
4672ac_objext=$OBJEXT
5213506e
RW
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4674$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4675if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4676 $as_echo_n "(cached) " >&6
1c710c3c 4677else
5213506e 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684#ifndef __GNUC__
4685 choke me
4686#endif
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
5213506e 4692if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4693 ac_compiler_gnu=yes
4694else
5213506e 4695 ac_compiler_gnu=no
1c710c3c 4696fi
5213506e 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4698ac_cv_c_compiler_gnu=$ac_compiler_gnu
4699
4700fi
5213506e
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4702$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4703if test $ac_compiler_gnu = yes; then
4704 GCC=yes
4705else
4706 GCC=
4707fi
1c710c3c
DJ
4708ac_test_CFLAGS=${CFLAGS+set}
4709ac_save_CFLAGS=$CFLAGS
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4711$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4712if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_save_c_werror_flag=$ac_c_werror_flag
4716 ac_c_werror_flag=yes
4717 ac_cv_prog_cc_g=no
4718 CFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
5213506e 4730if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4731 ac_cv_prog_cc_g=yes
4732else
5213506e
RW
4733 CFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740
4741 ;
4742 return 0;
4743}
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746
4747else
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h. */
af71363e 4752
5213506e
RW
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4765fi
5213506e 4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4767fi
5213506e
RW
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4772$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4773if test "$ac_test_CFLAGS" = set; then
1c710c3c 4774 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4775elif test $ac_cv_prog_cc_g = yes; then
4776 if test "$GCC" = yes; then
4777 CFLAGS="-g -O2"
4778 else
4779 CFLAGS="-g"
4780 fi
4781else
4782 if test "$GCC" = yes; then
4783 CFLAGS="-O2"
4784 else
4785 CFLAGS=
4786 fi
4787fi
5213506e
RW
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4789$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4790if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4791 $as_echo_n "(cached) " >&6
1c710c3c 4792else
5213506e 4793 ac_cv_prog_cc_c89=no
1c710c3c 4794ac_save_CC=$CC
5213506e 4795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4796/* end confdefs.h. */
4797#include <stdarg.h>
4798#include <stdio.h>
22e05272 4799struct stat;
1c710c3c
DJ
4800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4801struct buf { int x; };
4802FILE * (*rcsopen) (struct buf *, struct stat *, int);
4803static char *e (p, i)
4804 char **p;
4805 int i;
4806{
4807 return p[i];
4808}
4809static char *f (char * (*g) (char **, int), char **p, ...)
4810{
4811 char *s;
4812 va_list v;
4813 va_start (v,p);
4814 s = g (p, va_arg (v,int));
4815 va_end (v);
4816 return s;
4817}
4818
4819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4820 function prototypes and stuff, but not '\xHH' hex character constants.
4821 These don't provoke an error unfortunately, instead are silently treated
5213506e 4822 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4824 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4825 that's true only with -std. */
1c710c3c
DJ
4826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4827
5213506e
RW
4828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4829 inside strings and character constants. */
4830#define FOO(x) 'x'
4831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4832
1c710c3c
DJ
4833int test (int i, double x);
4834struct s1 {int (*f) (int a);};
4835struct s2 {int (*f) (double a);};
4836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4837int argc;
4838char **argv;
4839int
4840main ()
4841{
4842return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4843 ;
4844 return 0;
4845}
4846_ACEOF
5213506e
RW
4847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4849do
4850 CC="$ac_save_CC $ac_arg"
5213506e
RW
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4853fi
5213506e
RW
4854rm -f core conftest.err conftest.$ac_objext
4855 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4856done
5213506e 4857rm -f conftest.$ac_ext
1c710c3c
DJ
4858CC=$ac_save_CC
4859
4860fi
5213506e
RW
4861# AC_CACHE_VAL
4862case "x$ac_cv_prog_cc_c89" in
4863 x)
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4865$as_echo "none needed" >&6; } ;;
4866 xno)
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4868$as_echo "unsupported" >&6; } ;;
1c710c3c 4869 *)
5213506e
RW
4870 CC="$CC $ac_cv_prog_cc_c89"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4873esac
5213506e 4874if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4875
2aeb72e9
DD
4876fi
4877
2aeb72e9
DD
4878ac_ext=c
4879ac_cpp='$CPP $CPPFLAGS'
4880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883
5213506e 4884ac_ext=cpp
2aeb72e9
DD
4885ac_cpp='$CXXCPP $CPPFLAGS'
4886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4889if test -z "$CXX"; then
4890 if test -n "$CCC"; then
4891 CXX=$CCC
4892 else
4893 if test -n "$ac_tool_prefix"; then
4894 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4895 do
4896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4900if ${ac_cv_prog_CXX+:} false; then :
5213506e 4901 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4902else
4903 if test -n "$CXX"; then
4904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
5213506e 4911 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4915 break 2
4916 fi
4917done
5213506e
RW
4918 done
4919IFS=$as_save_IFS
55ffb5ed 4920
c3a86da9
DJ
4921fi
4922fi
4923CXX=$ac_cv_prog_CXX
4924if test -n "$CXX"; then
5213506e
RW
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4926$as_echo "$CXX" >&6; }
c3a86da9 4927else
5213506e
RW
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
c3a86da9
DJ
4930fi
4931
5213506e 4932
c3a86da9
DJ
4933 test -n "$CXX" && break
4934 done
4935fi
4936if test -z "$CXX"; then
4937 ac_ct_CXX=$CXX
5213506e 4938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4939do
4940 # Extract the first word of "$ac_prog", so it can be a program name with args.
4941set dummy $ac_prog; ac_word=$2
5213506e
RW
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4944if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4945 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4946else
4947 if test -n "$ac_ct_CXX"; then
4948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
5213506e 4955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4957 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4959 break 2
4960 fi
4961done
5213506e
RW
4962 done
4963IFS=$as_save_IFS
c3a86da9
DJ
4964
4965fi
4966fi
4967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4968if test -n "$ac_ct_CXX"; then
5213506e
RW
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4970$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4971else
5213506e
RW
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
c3a86da9
DJ
4974fi
4975
5213506e 4976
c3a86da9
DJ
4977 test -n "$ac_ct_CXX" && break
4978done
c3a86da9 4979
5213506e
RW
4980 if test "x$ac_ct_CXX" = x; then
4981 CXX="g++"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984yes:)
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987ac_tool_warned=yes ;;
4988esac
4989 CXX=$ac_ct_CXX
4990 fi
c3a86da9
DJ
4991fi
4992
5213506e
RW
4993 fi
4994fi
c3a86da9 4995# Provide some information about the compiler.
5213506e
RW
4996$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4997set X $ac_compile
4998ac_compiler=$2
4999for ac_option in --version -v -V -qversion; do
5000 { { ac_try="$ac_compiler $ac_option >&5"
5001case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004esac
5005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5006$as_echo "$ac_try_echo"; } >&5
5007 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5008 ac_status=$?
5213506e
RW
5009 if test -s conftest.err; then
5010 sed '10a\
5011... rest of stderr output deleted ...
5012 10q' conftest.err >conftest.er1
5013 cat conftest.er1 >&5
5213506e 5014 fi
22e05272 5015 rm -f conftest.er1 conftest.err
5213506e
RW
5016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5017 test $ac_status = 0; }
5018done
c3a86da9 5019
5213506e
RW
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5021$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5022if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5023 $as_echo_n "(cached) " >&6
c3a86da9 5024else
5213506e 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5026/* end confdefs.h. */
5027
5028int
5029main ()
5030{
5031#ifndef __GNUC__
5032 choke me
5033#endif
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5213506e 5039if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5040 ac_compiler_gnu=yes
5041else
5213506e 5042 ac_compiler_gnu=no
c3a86da9 5043fi
5213506e 5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5045ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5046
5047fi
5213506e
RW
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5049$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5050if test $ac_compiler_gnu = yes; then
5051 GXX=yes
5052else
5053 GXX=
5054fi
c3a86da9
DJ
5055ac_test_CXXFLAGS=${CXXFLAGS+set}
5056ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5058$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5059if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5060 $as_echo_n "(cached) " >&6
5061else
5062 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5063 ac_cxx_werror_flag=yes
5064 ac_cv_prog_cxx_g=no
5065 CXXFLAGS="-g"
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
5213506e 5077if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5078 ac_cv_prog_cxx_g=yes
5079else
5213506e
RW
5080 CXXFLAGS=""
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5082/* end confdefs.h. */
5213506e 5083
c3a86da9
DJ
5084int
5085main ()
5086{
5213506e 5087
c3a86da9
DJ
5088 ;
5089 return 0;
5090}
5091_ACEOF
5213506e 5092if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5093
5213506e
RW
5094else
5095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5096 CXXFLAGS="-g"
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5098/* end confdefs.h. */
5213506e 5099
c3a86da9
DJ
5100int
5101main ()
5102{
5213506e 5103
c3a86da9
DJ
5104 ;
5105 return 0;
5106}
5107_ACEOF
5213506e
RW
5108if ac_fn_cxx_try_compile "$LINENO"; then :
5109 ac_cv_prog_cxx_g=yes
11a67599 5110fi
5213506e
RW
5111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112fi
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5119$as_echo "$ac_cv_prog_cxx_g" >&6; }
5120if test "$ac_test_CXXFLAGS" = set; then
5121 CXXFLAGS=$ac_save_CXXFLAGS
5122elif test $ac_cv_prog_cxx_g = yes; then
5123 if test "$GXX" = yes; then
5124 CXXFLAGS="-g -O2"
5125 else
5126 CXXFLAGS="-g"
5127 fi
5128else
5129 if test "$GXX" = yes; then
5130 CXXFLAGS="-O2"
5131 else
5132 CXXFLAGS=
5133 fi
c3a86da9 5134fi
c3a86da9
DJ
5135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141
5142# We must set the default linker to the linker used by gcc for the correct
5143# operation of libtool. If LD is not defined and we are using gcc, try to
5144# set the LD default to the ld used by gcc.
5145if test -z "$LD"; then
5146 if test "$GCC" = yes; then
5147 case $build in
5148 *-*-mingw*)
5149 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5150 *)
5151 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5152 esac
5153 case $gcc_prog_ld in
5154 # Accept absolute paths.
5155 [\\/]* | [A-Za-z]:[\\/]*)
5156 LD="$gcc_prog_ld" ;;
5157 esac
5158 fi
23f6b2f9
PB
5159fi
5160
0b21f5d3
EB
5161# Check whether -static-libstdc++ -static-libgcc is supported.
5162have_static_libs=no
5163if test "$GCC" = yes; then
5164 saved_LDFLAGS="$LDFLAGS"
5165
5166 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5168$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5169 ac_ext=cpp
5170ac_cpp='$CXXCPP $CPPFLAGS'
5171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5174
5175
5176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h. */
0d6414b2
EB
5178
5179#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5180#error -static-libstdc++ not implemented
5181#endif
0b21f5d3
EB
5182int main() {}
5183_ACEOF
5184if ac_fn_cxx_try_link "$LINENO"; then :
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186$as_echo "yes" >&6; }; have_static_libs=yes
5187else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191rm -f core conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
5193 ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198
5199
5200 LDFLAGS="$saved_LDFLAGS"
5201fi
5202
23f6b2f9
PB
5203
5204
55ffb5ed 5205
1c710c3c
DJ
5206if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5208set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5211if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5212 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5213else
5214 if test -n "$GNATBIND"; then
5215 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5216else
1c710c3c
DJ
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5213506e 5222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5224 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5226 break 2
5227 fi
5228done
5213506e
RW
5229 done
5230IFS=$as_save_IFS
1c710c3c 5231
55ffb5ed
NN
5232fi
5233fi
1c710c3c 5234GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5235if test -n "$GNATBIND"; then
5213506e
RW
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5237$as_echo "$GNATBIND" >&6; }
55ffb5ed 5238else
5213506e
RW
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240$as_echo "no" >&6; }
55ffb5ed
NN
5241fi
5242
5213506e 5243
1c710c3c 5244fi
55ffb5ed 5245if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5246 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5247 # Extract the first word of "gnatbind", so it can be a program name with args.
5248set dummy gnatbind; ac_word=$2
5213506e
RW
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5251if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5252 $as_echo_n "(cached) " >&6
55ffb5ed 5253else
1c710c3c
DJ
5254 if test -n "$ac_ct_GNATBIND"; then
5255 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5256else
1c710c3c
DJ
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5213506e 5262 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5264 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5266 break 2
5267 fi
5268done
5213506e
RW
5269 done
5270IFS=$as_save_IFS
1c710c3c 5271
55ffb5ed
NN
5272fi
5273fi
1c710c3c
DJ
5274ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5275if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5277$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5278else
5213506e
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
55ffb5ed
NN
5281fi
5282
5213506e
RW
5283 if test "x$ac_ct_GNATBIND" = x; then
5284 GNATBIND="no"
5285 else
5286 case $cross_compiling:$ac_tool_warned in
5287yes:)
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290ac_tool_warned=yes ;;
5291esac
5292 GNATBIND=$ac_ct_GNATBIND
5293 fi
55ffb5ed 5294else
1c710c3c 5295 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5296fi
5297
1c710c3c
DJ
5298if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5300set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5303if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5304 $as_echo_n "(cached) " >&6
5305be7e
RG
5305else
5306 if test -n "$GNATMAKE"; then
5307 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5308else
1c710c3c
DJ
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5213506e 5314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5316 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5318 break 2
5319 fi
5320done
5213506e
RW
5321 done
5322IFS=$as_save_IFS
1c710c3c 5323
5305be7e
RG
5324fi
5325fi
1c710c3c 5326GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5327if test -n "$GNATMAKE"; then
5213506e
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5329$as_echo "$GNATMAKE" >&6; }
5305be7e 5330else
5213506e
RW
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5305be7e
RG
5333fi
5334
5213506e 5335
1c710c3c 5336fi
5305be7e 5337if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5338 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5339 # Extract the first word of "gnatmake", so it can be a program name with args.
5340set dummy gnatmake; ac_word=$2
5213506e
RW
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5343if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5344 $as_echo_n "(cached) " >&6
5305be7e 5345else
1c710c3c
DJ
5346 if test -n "$ac_ct_GNATMAKE"; then
5347 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5348else
1c710c3c
DJ
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5213506e 5354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5356 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5358 break 2
5359 fi
5360done
5213506e
RW
5361 done
5362IFS=$as_save_IFS
1c710c3c 5363
5305be7e
RG
5364fi
5365fi
1c710c3c
DJ
5366ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5367if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5369$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5370else
5213506e
RW
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5305be7e
RG
5373fi
5374
5213506e
RW
5375 if test "x$ac_ct_GNATMAKE" = x; then
5376 GNATMAKE="no"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379yes:)
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382ac_tool_warned=yes ;;
5383esac
5384 GNATMAKE=$ac_ct_GNATMAKE
5385 fi
5305be7e 5386else
1c710c3c 5387 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5388fi
5389
5213506e
RW
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5391$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5392if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5393 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5394else
5395 cat >conftest.adb <<EOF
5396procedure conftest is begin null; end conftest;
5397EOF
5398acx_cv_cc_gcc_supports_ada=no
5399# There is a bug in old released versions of GCC which causes the
5400# driver to exit successfully when the appropriate language module
5401# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5402# Therefore we must check for the error message as well as an
5403# unsuccessful exit.
1db673ca
RO
5404# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5405# given a .adb file, but produce no object file. So we must check
5406# if an object file was really produced to guard against this.
55ffb5ed 5407errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5408if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5409 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5410fi
5411rm -f conftest.*
5412fi
5213506e
RW
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5414$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5415
7cb62ef1 5416if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5417 have_gnat=yes
5418else
5419 have_gnat=no
5420fi
5421
5213506e
RW
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5423$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5424if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5425 $as_echo_n "(cached) " >&6
a76494aa
PB
5426else
5427 echo abfoo >t1
5428 echo cdfoo >t2
b55e6680 5429 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5430 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5431 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5432 :
5433 else
5434 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5435 fi
5436 fi
a76494aa
PB
5437 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5438 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5439 :
a76494aa
PB
5440 else
5441 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5442 fi
5443 fi
5444 rm t1 t2
5445
5446fi
5213506e
RW
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5448$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5449do_compare="$gcc_cv_prog_cmp_skip"
5450
5451
55ffb5ed 5452
ff3ac0f4
ILT
5453# Check whether --enable-bootstrap was given.
5454if test "${enable_bootstrap+set}" = set; then :
5455 enableval=$enable_bootstrap;
5456else
5457 enable_bootstrap=default
5458fi
5459
5460
5461# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5462if test -r $srcdir/gcc/configure; then
5463 have_compiler=yes
5464else
5465 have_compiler=no
5466fi
ff3ac0f4
ILT
5467
5468case "$have_compiler:$host:$target:$enable_bootstrap" in
5469 *:*:*:no) ;;
5470
5471 # Default behavior. Enable bootstrap if we have a compiler
5472 # and we are in a native configuration.
5473 yes:$build:$build:default)
5474 enable_bootstrap=yes ;;
5475
5476 *:*:*:default)
5477 enable_bootstrap=no ;;
5478
5479 # We have a compiler and we are in a native configuration, bootstrap is ok
5480 yes:$build:$build:yes)
5481 ;;
5482
5483 # Other configurations, but we have a compiler. Assume the user knows
5484 # what he's doing.
5485 yes:*:*:yes)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5487$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5488 ;;
5489
5490 # No compiler: if they passed --enable-bootstrap explicitly, fail
5491 no:*:*:yes)
22e05272 5492 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5493
5494 # Fail if wrong command line
5495 *)
22e05272 5496 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5497 ;;
5498esac
5499
46070488
JM
5500# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5501# C++98 compiler can still start the bootstrap.
5502if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5503 CXX="$CXX -std=gnu++98"
46070488
JM
5504fi
5505
592c90ff
KG
5506# Used for setting $lt_cv_objdir
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5508$as_echo_n "checking for objdir... " >&6; }
22e05272 5509if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5510 $as_echo_n "(cached) " >&6
5511else
5512 rm -f .libs 2>/dev/null
5513mkdir .libs 2>/dev/null
5514if test -d .libs; then
5515 lt_cv_objdir=.libs
5516else
5517 # MS-DOS does not allow filenames that begin with a dot.
5518 lt_cv_objdir=_libs
5519fi
5520rmdir .libs 2>/dev/null
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5523$as_echo "$lt_cv_objdir" >&6; }
5524objdir=$lt_cv_objdir
5525
5526
5527
5528
5529
5530cat >>confdefs.h <<_ACEOF
5531#define LT_OBJDIR "$lt_cv_objdir/"
5532_ACEOF
5533
5534
5535
acd26225 5536# Check for GMP, MPFR and MPC
3a5729ea 5537gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5538gmpinc=
e69bf64b 5539have_gmp=no
acd26225
KG
5540
5541# Specify a location for mpc
5542# check for this first so it ends up on the link line before mpfr.
5543
5213506e
RW
5544# Check whether --with-mpc was given.
5545if test "${with_mpc+set}" = set; then :
5546 withval=$with_mpc;
5547fi
acd26225 5548
acd26225 5549
9965e3cd 5550# Check whether --with-mpc-include was given.
5213506e
RW
5551if test "${with_mpc_include+set}" = set; then :
5552 withval=$with_mpc_include;
5553fi
acd26225 5554
acd26225 5555
9965e3cd 5556# Check whether --with-mpc-lib was given.
5213506e
RW
5557if test "${with_mpc_lib+set}" = set; then :
5558 withval=$with_mpc_lib;
5559fi
acd26225 5560
acd26225
KG
5561
5562if test "x$with_mpc" != x; then
3a5729ea
KG
5563 gmplibs="-L$with_mpc/lib $gmplibs"
5564 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5565fi
5566if test "x$with_mpc_include" != x; then
3a5729ea 5567 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5568fi
5569if test "x$with_mpc_lib" != x; then
3a5729ea 5570 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5571fi
5572if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5573 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5574 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5575 # Do not test the mpc version. Assume that it is sufficient, since
5576 # it is in the source tree, and the library has not been built yet
5577 # but it would be included on the link line in the version check below
5578 # hence making the test fail.
3a5729ea 5579 have_gmp=yes
acd26225 5580fi
e69bf64b 5581
bebf829d
PB
5582# Specify a location for mpfr
5583# check for this first so it ends up on the link line before gmp.
1c710c3c 5584
5213506e
RW
5585# Check whether --with-mpfr-dir was given.
5586if test "${with_mpfr_dir+set}" = set; then :
22e05272 5587 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5588Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5589fi
5590
bebf829d
PB
5591
5592
5213506e
RW
5593# Check whether --with-mpfr was given.
5594if test "${with_mpfr+set}" = set; then :
5595 withval=$with_mpfr;
5596fi
1c710c3c 5597
bebf829d 5598
9965e3cd 5599# Check whether --with-mpfr-include was given.
5213506e
RW
5600if test "${with_mpfr_include+set}" = set; then :
5601 withval=$with_mpfr_include;
5602fi
1c710c3c 5603
8a877c9c 5604
9965e3cd 5605# Check whether --with-mpfr-lib was given.
5213506e
RW
5606if test "${with_mpfr_lib+set}" = set; then :
5607 withval=$with_mpfr_lib;
5608fi
8a877c9c 5609
bebf829d
PB
5610
5611if test "x$with_mpfr" != x; then
5612 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5613 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5614fi
8a877c9c 5615if test "x$with_mpfr_include" != x; then
3a5729ea 5616 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5617fi
5618if test "x$with_mpfr_lib" != x; then
5619 gmplibs="-L$with_mpfr_lib $gmplibs"
5620fi
e69bf64b 5621if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5622 # MPFR v3.1.0 moved the sources into a src sub-directory.
5623 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5624 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5625 fi
00f35794
BE
5626 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5627 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5628 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5629 # Do not test the mpfr version. Assume that it is sufficient, since
5630 # it is in the source tree, and the library has not been built yet
5631 # but it would be included on the link line in the version check below
5632 # hence making the test fail.
5633 have_gmp=yes
5634fi
bebf829d 5635
6de9cd9a 5636# Specify a location for gmp
1c710c3c 5637
5213506e
RW
5638# Check whether --with-gmp-dir was given.
5639if test "${with_gmp_dir+set}" = set; then :
22e05272 5640 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5641Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5642fi
5643
6de9cd9a 5644
6de9cd9a 5645
5213506e
RW
5646# Check whether --with-gmp was given.
5647if test "${with_gmp+set}" = set; then :
5648 withval=$with_gmp;
5649fi
1c710c3c 5650
6de9cd9a 5651
9965e3cd 5652# Check whether --with-gmp-include was given.
5213506e
RW
5653if test "${with_gmp_include+set}" = set; then :
5654 withval=$with_gmp_include;
5655fi
1c710c3c 5656
8a877c9c 5657
9965e3cd 5658# Check whether --with-gmp-lib was given.
5213506e
RW
5659if test "${with_gmp_lib+set}" = set; then :
5660 withval=$with_gmp_lib;
5661fi
8a877c9c
KG
5662
5663
6de9cd9a 5664
bebf829d
PB
5665if test "x$with_gmp" != x; then
5666 gmplibs="-L$with_gmp/lib $gmplibs"
5667 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5668fi
8a877c9c
KG
5669if test "x$with_gmp_include" != x; then
5670 gmpinc="-I$with_gmp_include $gmpinc"
5671fi
5672if test "x$with_gmp_lib" != x; then
5673 gmplibs="-L$with_gmp_lib $gmplibs"
5674fi
e69bf64b 5675if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5676 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5677 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5678 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5679 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5680 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5681 # Do not test the gmp version. Assume that it is sufficient, since
5682 # it is in the source tree, and the library has not been built yet
5683 # but it would be included on the link line in the version check below
5684 # hence making the test fail.
5685 have_gmp=yes
5686fi
6de9cd9a 5687
d943d7c4 5688if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5689 have_gmp=yes
5690 saved_CFLAGS="$CFLAGS"
5691 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5692 # Check for the recommended and required versions of GMP.
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5694$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5695
5696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5697/* end confdefs.h. */
5698#include "gmp.h"
5699int
5700main ()
5701{
5702
5703 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5704 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5705 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5706 choke me
5707 #endif
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5715/* end confdefs.h. */
362c6d2f 5716#include <gmp.h>
1c710c3c
DJ
5717int
5718main ()
5719{
6de9cd9a 5720
362c6d2f
KG
5721 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5722 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5723 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5724 choke me
5725 #endif
1c710c3c
DJ
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5213506e
RW
5731if ac_fn_c_try_compile "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
362c6d2f
KG
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5736$as_echo "buggy but acceptable" >&6; }
5737fi
5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5739else
5213506e
RW
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5742fi
5213506e 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5744
acd26225 5745 # If we have GMP, check the MPFR version.
e69bf64b 5746 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5747 # Check for the recommended and required versions of MPFR.
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5749$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5751/* end confdefs.h. */
70ec446f 5752#include <gmp.h>
e69bf64b 5753 #include <mpfr.h>
1c710c3c
DJ
5754int
5755main ()
5756{
e48d66a9 5757
8be34204 5758 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
5759 choke me
5760 #endif
1c710c3c
DJ
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5213506e
RW
5766if ac_fn_c_try_compile "$LINENO"; then :
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5768/* end confdefs.h. */
a3993f33 5769#include <gmp.h>
e69bf64b 5770 #include <mpfr.h>
1c710c3c
DJ
5771int
5772main ()
5773{
a3993f33 5774
8be34204 5775 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
5776 choke me
5777 #endif
acd26225
KG
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5213506e
RW
5783if ac_fn_c_try_compile "$LINENO"; then :
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785$as_echo "yes" >&6; }
acd26225 5786else
5213506e
RW
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5788$as_echo "buggy but acceptable" >&6; }
acd26225 5789fi
5213506e 5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5791else
5213506e
RW
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }; have_gmp=no
acd26225 5794fi
5213506e 5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5796 fi
5797
5798 # Check for the MPC header version.
3a5729ea 5799 if test x"$have_gmp" = xyes ; then
362c6d2f 5800 # Check for the recommended and required versions of MPC.
5213506e
RW
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5802$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5804/* end confdefs.h. */
5805#include <mpc.h>
5806int
5807main ()
5808{
5809
362c6d2f
KG
5810 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5811 choke me
5812 #endif
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_compile "$LINENO"; then :
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include <mpc.h>
5822int
5823main ()
5824{
5825
5826 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5827 choke me
5828 #endif
5829
5830 ;
5831 return 0;
5832}
5833_ACEOF
5213506e
RW
5834if ac_fn_c_try_compile "$LINENO"; then :
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5836$as_echo "yes" >&6; }
362c6d2f
KG
5837else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5839$as_echo "buggy but acceptable" >&6; }
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5842else
5213506e 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5844$as_echo "no" >&6; }; have_gmp=no
acd26225 5845fi
5213506e 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5847 fi
5848
5849 # Now check the MPFR library.
5850 if test x"$have_gmp" = xyes; then
5851 saved_LIBS="$LIBS"
5852 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5854$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5856/* end confdefs.h. */
3a5729ea 5857#include <mpc.h>
acd26225
KG
5858int
5859main ()
5860{
5861
5862 mpfr_t n;
5863 mpfr_t x;
3a5729ea 5864 mpc_t c;
acd26225
KG
5865 int t;
5866 mpfr_init (n);
5867 mpfr_init (x);
5868 mpfr_atan2 (n, n, x, GMP_RNDN);
5869 mpfr_erfc (n, x, GMP_RNDN);
5870 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5871 mpfr_clear(n);
5872 mpfr_clear(x);
5873 mpc_init2 (c, 53);
5874 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5875 mpc_cosh (c, c, MPC_RNDNN);
5876 mpc_pow (c, c, c, MPC_RNDNN);
5877 mpc_acosh (c, c, MPC_RNDNN);
5878 mpc_clear (c);
1c710c3c
DJ
5879
5880 ;
5881 return 0;
5882}
5883_ACEOF
5213506e
RW
5884if ac_fn_c_try_link "$LINENO"; then :
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886$as_echo "yes" >&6; }
1c710c3c 5887else
5213506e
RW
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5890fi
5213506e
RW
5891rm -f core conftest.err conftest.$ac_objext \
5892 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5893 LIBS="$saved_LIBS"
5894 fi
5895
e69bf64b 5896 CFLAGS="$saved_CFLAGS"
6de9cd9a 5897
362c6d2f
KG
5898# The library versions listed in the error message below should match
5899# the HARD-minimums enforced above.
e69bf64b 5900 if test x$have_gmp != xyes; then
8be34204 5901 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
5902Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5903their locations. Source code for these libraries can be found at
5904their respective hosting sites as well as at
aeebd94c 5905https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
5906http://gcc.gnu.org/install/prerequisites.html for additional info. If
5907you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5908make sure that you have installed both the libraries and the header
5909files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5910 fi
70ec446f
KG
5911fi
5912
acd26225
KG
5913# Flags needed for both GMP, MPFR and/or MPC.
5914
5915
6de9cd9a
DN
5916
5917
5918
9e3eba15 5919
0ff2d841 5920
0b21f5d3 5921# Libraries to use for stage1 or when not bootstrapping.
00020c16 5922
0b21f5d3
EB
5923# Check whether --with-stage1-libs was given.
5924if test "${with_stage1_libs+set}" = set; then :
5925 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5926 stage1_libs=
00020c16 5927 else
0b21f5d3 5928 stage1_libs=$withval
00020c16
ILT
5929 fi
5930else
5dc85f7e 5931 stage1_libs=
5213506e
RW
5932fi
5933
00020c16
ILT
5934
5935
aac9103b
TT
5936# Whether or not to use -static-libstdc++ and -static-libgcc. The
5937# default is yes if gcc is being built; no otherwise. The reason for
5938# this default is that gdb is sometimes linked against GNU Source
5939# Highlight, which is a shared library that uses C++ exceptions. In
5940# this case, -static-libstdc++ will cause crashes.
5941
5942# Check whether --with-static-standard-libraries was given.
5943if test "${with_static_standard_libraries+set}" = set; then :
5944 withval=$with_static_standard_libraries;
5945else
5946 with_static_standard_libraries=auto
5947fi
5948
5949if test "$with_static_standard_libraries" = auto; then
5950 with_static_standard_libraries=$have_compiler
5951fi
5952
0b21f5d3 5953# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5954
0b21f5d3
EB
5955# Check whether --with-stage1-ldflags was given.
5956if test "${with_stage1_ldflags+set}" = set; then :
5957 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5958 stage1_ldflags=
00020c16 5959 else
0b21f5d3 5960 stage1_ldflags=$withval
00020c16
ILT
5961 fi
5962else
0b21f5d3
EB
5963 stage1_ldflags=
5964 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5965 # if supported. But if the user explicitly specified the libraries to use,
5966 # trust that they are doing what they want.
aac9103b
TT
5967 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5968 -a "$have_static_libs" = yes; then
0b21f5d3
EB
5969 stage1_ldflags="-static-libstdc++ -static-libgcc"
5970 fi
5213506e
RW
5971fi
5972
00020c16
ILT
5973
5974
5dc85f7e 5975# Libraries to use for stage2 and later builds.
00020c16 5976
5213506e
RW
5977# Check whether --with-boot-libs was given.
5978if test "${with_boot_libs+set}" = set; then :
5979 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5980 poststage1_libs=
5981 else
5982 poststage1_libs=$withval
5983 fi
5984else
5dc85f7e 5985 poststage1_libs=
5213506e
RW
5986fi
5987
00020c16
ILT
5988
5989
ed2eaa9f
ILT
5990# Linker flags to use for stage2 and later builds.
5991
5992# Check whether --with-boot-ldflags was given.
5993if test "${with_boot_ldflags+set}" = set; then :
5994 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5995 poststage1_ldflags=
5996 else
5997 poststage1_ldflags=$withval
5998 fi
5999else
6000 poststage1_ldflags=
bec93d73
ILT
6001 # In stages 2 and 3, default to linking libstdc++ and libgcc
6002 # statically. But if the user explicitly specified the libraries to
6003 # use, trust that they are doing what they want.
6004 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
6005 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6006 fi
6007fi
6008
6009
6010
e357a5e0 6011# GCC GRAPHITE dependency isl.
4a9bb2aa 6012# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
6013
6014
33ad93b9
RG
6015# Check whether --with-isl was given.
6016if test "${with_isl+set}" = set; then :
6017 withval=$with_isl;
5213506e 6018fi
f8bf9252 6019
f8bf9252 6020
eae1a5d4 6021# Treat --without-isl as a request to disable
625afa23 6022# GRAPHITE support and skip all following checks.
eae1a5d4 6023if test "x$with_isl" != "xno"; then
e357a5e0 6024 # Check for isl
625afa23
RG
6025
6026
33ad93b9
RG
6027# Check whether --with-isl-include was given.
6028if test "${with_isl_include+set}" = set; then :
6029 withval=$with_isl_include;
5213506e
RW
6030fi
6031
f8bf9252 6032
33ad93b9
RG
6033# Check whether --with-isl-lib was given.
6034if test "${with_isl_lib+set}" = set; then :
6035 withval=$with_isl_lib;
5213506e 6036fi
f8bf9252 6037
f8bf9252 6038
33ad93b9
RG
6039 # Check whether --enable-isl-version-check was given.
6040if test "${enable_isl_version_check+set}" = set; then :
6041 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6042else
6043 ENABLE_ISL_CHECK=yes
7d32a440
SP
6044fi
6045
6046
33ad93b9
RG
6047 # Initialize isllibs and islinc.
6048 case $with_isl in
6049 no)
6050 isllibs=
6051 islinc=
6052 ;;
6053 "" | yes)
6054 ;;
6055 *)
6056 isllibs="-L$with_isl/lib"
6057 islinc="-I$with_isl/include"
6058 ;;
6059 esac
6060 if test "x${with_isl_include}" != x ; then
6061 islinc="-I$with_isl_include"
6062 fi
6063 if test "x${with_isl_lib}" != x; then
6064 isllibs="-L$with_isl_lib"
6065 fi
6066 if test "x${islinc}" = x && test "x${isllibs}" = x \
6067 && test -d ${srcdir}/isl; then
6068 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6069 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6070 ENABLE_ISL_CHECK=no
560d18d3
AK
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6072$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6073 fi
7d32a440 6074
eae1a5d4
RG
6075 isllibs="${isllibs} -lisl"
6076
7d32a440 6077
7d32a440 6078
9847828b
RB
6079 if test "${ENABLE_ISL_CHECK}" = yes ; then
6080 _isl_saved_CFLAGS=$CFLAGS
6081 _isl_saved_LDFLAGS=$LDFLAGS
6082 _isl_saved_LIBS=$LIBS
6083
6084 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6085 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6086 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6087
f877b3ad
RB
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6089$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6091/* end confdefs.h. */
f877b3ad 6092#include <isl/schedule.h>
622dbadf
BC
6093int
6094main ()
6095{
f877b3ad 6096isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_link "$LINENO"; then :
9847828b 6102 gcc_cv_isl=yes
622dbadf
BC
6103else
6104 gcc_cv_isl=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6109$as_echo "$gcc_cv_isl" >&6; }
6110
560d18d3 6111 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6113$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6114 fi
6115
9847828b
RB
6116 CFLAGS=$_isl_saved_CFLAGS
6117 LDFLAGS=$_isl_saved_LDFLAGS
6118 LIBS=$_isl_saved_LIBS
6119 fi
6120
6121
f8bf9252 6122
f8bf9252 6123
33ad93b9
RG
6124
6125
33ad93b9
RG
6126 if test "x${with_isl}" = xno; then
6127 graphite_requested=no
6128 elif test "x${with_isl}" != x \
6129 || test "x${with_isl_include}" != x \
6130 || test "x${with_isl_lib}" != x ; then
6131 graphite_requested=yes
6132 else
6133 graphite_requested=no
7d32a440 6134 fi
d789184e 6135
d789184e
SP
6136
6137
33ad93b9
RG
6138 if test "${gcc_cv_isl}" = no ; then
6139 isllibs=
6140 islinc=
6141 fi
6142
6143 if test "${graphite_requested}" = yes \
6144 && test "x${isllibs}" = x \
6145 && test "x${islinc}" = x ; then
f8bf9252 6146
22e05272 6147 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6148 fi
f8bf9252 6149
d32ef397 6150
d32ef397
AS
6151fi
6152
e357a5e0 6153# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6154if test "x$with_isl" = xno ||
625afa23 6155 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6156 noconfigdirs="$noconfigdirs isl"
625afa23 6157 islinc=
32d024bf
RG
6158fi
6159
625afa23
RG
6160
6161
6162
d7f09764
DN
6163# Check for LTO support.
6164# Check whether --enable-lto was given.
6165if test "${enable_lto+set}" = set; then :
6166 enableval=$enable_lto; enable_lto=$enableval
6167else
6168 enable_lto=yes; default_enable_lto=yes
6169fi
6170
6171
7413962d 6172
9a02962b
DK
6173
6174
6175target_elf=no
6176case $target in
6177 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6178 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6179 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6180 nvptx-*-none)
9a02962b
DK
6181 target_elf=no
6182 ;;
6183 *)
6184 target_elf=yes
6185 ;;
6186esac
6187
6188if test $target_elf = yes; then :
48215350
DK
6189 # ELF platforms build the lto-plugin always.
6190 build_lto_plugin=yes
9a02962b 6191
9a02962b
DK
6192else
6193 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6194 case $target in
deeba76a 6195 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6196 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6197 *) enable_lto=no ;;
6198 esac
9a02962b 6199 else
db50fe7d
IS
6200 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6201 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6202 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6203 # warn during gcc/ subconfigure; unless you're bootstrapping with
6204 # -flto it won't be needed until after installation anyway.
6205 case $target in
9e530bcd 6206 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6207 *) if test x"$enable_lto" = x"yes"; then
22e05272 6208 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6209 fi
6210 ;;
6211 esac
6212 fi
1cd0b716 6213 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6214 # Build it unless LTO was explicitly disabled.
1cd0b716 6215 case $target in
48215350 6216 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6217 *) ;;
6218 esac
48215350 6219
9a02962b
DK
6220fi
6221
d7f09764 6222
45b3824d
TS
6223# Check whether --enable-linker-plugin-configure-flags was given.
6224if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6225 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6226else
6227 extra_linker_plugin_configure_flags=
6228fi
6229
6230
6231# Check whether --enable-linker-plugin-flags was given.
6232if test "${enable_linker_plugin_flags+set}" = set; then :
6233 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6234else
6235 extra_linker_plugin_flags=
6236fi
6237
6238
6239
cdfee50a
NS
6240# Enable --enable-host-shared.
6241# Checked early to determine whether jit is an 'all' language
6242# Check whether --enable-host-shared was given.
6243if test "${enable_host_shared+set}" = set; then :
6244 enableval=$enable_host_shared; host_shared=$enableval
6245else
6246 host_shared=no
6247fi
6248
6249
f8bf9252 6250
0823efed 6251# By default, C and C++ are the only stage 1 languages.
e1888513 6252stage1_languages=,c,
2805b53a 6253
00020c16 6254# Target libraries that we bootstrap.
ad1e5170 6255bootstrap_target_libs=,target-libgcc,
00020c16 6256
55ffb5ed
NN
6257# Figure out what language subdirectories are present.
6258# Look if the user specified --enable-languages="..."; if not, use
6259# the environment variable $LANGUAGES if defined. $LANGUAGES might
6260# go away some day.
6261# NB: embedded tabs in this IF block -- do not untabify
6262if test -d ${srcdir}/gcc; then
6263 if test x"${enable_languages+set}" != xset; then
6264 if test x"${LANGUAGES+set}" = xset; then
6265 enable_languages="${LANGUAGES}"
6b1786aa 6266 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6267 else
cdfee50a 6268 enable_languages=default
55ffb5ed
NN
6269 fi
6270 else
6271 if test x"${enable_languages}" = x ||
6272 test x"${enable_languages}" = xyes;
6273 then
6b1786aa 6274 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6275 exit 1
6276 fi
6277 fi
6278 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6279
7f26dfa3
FXC
6280 # 'f95' is the old name for the 'fortran' language. We issue a warning
6281 # and make the substitution.
6282 case ,${enable_languages}, in
6283 *,f95,*)
6b1786aa 6284 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6285 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6286 ;;
6287 esac
6288
0823efed
DN
6289 # If bootstrapping, C++ must be enabled.
6290 case ",$enable_languages,:$enable_bootstrap" in
6291 *,c++,*:*) ;;
6292 *:yes)
ff3ac0f4
ILT
6293 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6294 enable_languages="${enable_languages},c++"
6295 else
22e05272 6296 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6297 fi
6298 ;;
6299 esac
6300
55ffb5ed
NN
6301 # First scan to see if an enabled language requires some other language.
6302 # We assume that a given config-lang.in will list all the language
6303 # front ends it requires, even if some are required indirectly.
6304 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6305 case ${lang_frag} in
6306 ..) ;;
6307 # The odd quoting in the next line works around
6308 # an apparent bug in bash 1.12 on linux.
6309 ${srcdir}/gcc/[*]/config-lang.in) ;;
6310 *)
69ecd18f
ILT
6311 # From the config-lang.in, get $language, $lang_requires, and
6312 # $lang_requires_boot_languages.
55ffb5ed
NN
6313 language=
6314 lang_requires=
69ecd18f 6315 lang_requires_boot_languages=
d4360477
NS
6316 # set srcdir during sourcing lang_frag to the gcc dir.
6317 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6318 # polutes this shell
6319 saved_srcdir=${srcdir}
6320 srcdir=${srcdir}/gcc . ${lang_frag}
6321 srcdir=${saved_srcdir}
69ecd18f 6322 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6323 case ,${enable_languages}, in
6324 *,$other,*) ;;
cdfee50a 6325 *,default,*) ;;
55ffb5ed
NN
6326 *,all,*) ;;
6327 *,$language,*)
6328 echo " \`$other' language required by \`$language'; enabling" 1>&2
6329 enable_languages="${enable_languages},${other}"
6330 ;;
6331 esac
6332 done
69ecd18f
ILT
6333 for other in ${lang_requires_boot_languages} ; do
6334 if test "$other" != "c"; then
6335 case ,${enable_stage1_languages}, in
6336 *,$other,*) ;;
cdfee50a 6337 *,default,*) ;;
69ecd18f
ILT
6338 *,all,*) ;;
6339 *)
6340 case ,${enable_languages}, in
6341 *,$language,*)
6342 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6343 enable_stage1_languages="$enable_stage1_languages,${other}"
6344 ;;
6345 esac
6346 ;;
6347 esac
6348 fi
6349 done
55ffb5ed
NN
6350 ;;
6351 esac
6352 done
6353
e1888513 6354 new_enable_languages=,c,
d7f09764
DN
6355
6356 # If LTO is enabled, add the LTO front end.
d7f09764 6357 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6358 case ,${enable_languages}, in
6359 *,lto,*) ;;
6360 *) enable_languages="${enable_languages},lto" ;;
6361 esac
1cd0b716 6362 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6363 configdirs="$configdirs lto-plugin"
d7f09764
DN
6364 fi
6365 fi
6366
426c1eb0
TS
6367 # If we're building an offloading compiler, add the LTO front end.
6368 if test x"$enable_as_accelerator_for" != x ; then
6369 case ,${enable_languages}, in
6370 *,lto,*) ;;
6371 *) enable_languages="${enable_languages},lto" ;;
6372 esac
6373 fi
6374
cdfee50a 6375 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6376 potential_languages=,c,
55ffb5ed 6377
4da3b0f8
ILT
6378 enabled_target_libs=
6379 disabled_target_libs=
6380
55ffb5ed
NN
6381 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6382 case ${lang_frag} in
6383 ..) ;;
6384 # The odd quoting in the next line works around
6385 # an apparent bug in bash 1.12 on linux.
6386 ${srcdir}/gcc/[*]/config-lang.in) ;;
6387 *)
1c710c3c 6388 # From the config-lang.in, get $language, $target_libs,
2805b53a 6389 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6390 language=
6391 target_libs=
6392 lang_dirs=
1546bb64 6393 subdir_requires=
e1888513
PB
6394 boot_language=no
6395 build_by_default=yes
d4360477
NS
6396 # set srcdir during sourcing. See above about save & restore
6397 saved_srcdir=${srcdir}
6398 srcdir=${srcdir}/gcc . ${lang_frag}
6399 srcdir=${saved_srcdir}
e1888513
PB
6400 if test x${language} = x; then
6401 echo "${lang_frag} doesn't set \$language." 1>&2
6402 exit 1
6403 fi
6404
78767fd9 6405 if test "$language" = "c++"; then
0823efed 6406 boot_language=yes
00020c16
ILT
6407 fi
6408
178f875a 6409 add_this_lang=no
cdfee50a
NS
6410 # C is always enabled, so no need to add it again
6411 if test "$language" != "c"; then
6412 case ,${enable_languages}, in
6413 *,${language},*)
6414 # Language was explicitly selected; include it
d4a10d0a 6415 add_this_lang=yes
cdfee50a
NS
6416 ;;
6417 *,all,*)
6418 # All languages are enabled
6419 add_this_lang=all
6420 ;;
6421 *,default,*)
6422 # 'default' was selected, select it if it is a default language
178f875a 6423 add_this_lang=${build_by_default}
cdfee50a
NS
6424 ;;
6425 esac
6426 fi
6de9cd9a 6427
1546bb64 6428 # Disable languages that need other directories if these aren't available.
95695ad3 6429 for i in $subdir_requires; do
b6348cb3 6430 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6431 case ${add_this_lang} in
6432 yes)
1546bb64 6433 # Specifically requested language; tell them.
22e05272 6434 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6435 ;;
cdfee50a
NS
6436 all)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6438$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6439 add_this_lang=unsupported
6440 ;;
1546bb64
PB
6441 *)
6442 # Silently disable.
e1888513 6443 add_this_lang=unsupported
1546bb64
PB
6444 ;;
6445 esac
6446 done
6447
e1888513 6448 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6449 case ${add_this_lang}:${language}:${have_gnat} in
6450 yes:ada:no)
e1888513 6451 # Specifically requested language; tell them.
22e05272 6452 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6453 ;;
cdfee50a
NS
6454 all:ada:no)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6456$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6457 add_this_lang=unsupported
6458 ;;
e1888513
PB
6459 *:ada:no)
6460 # Silently disable.
6461 add_this_lang=unsupported
6462 ;;
6463 esac
6464
cdfee50a
NS
6465 # Disable jit if -enable-host-shared not specified
6466 case ${add_this_lang}:${language}:${host_shared} in
6467 yes:jit:no)
6468 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6469 as_fn_error $? "
cdfee50a
NS
6470Enabling language \"jit\" requires --enable-host-shared.
6471
6472--enable-host-shared typically slows the rest of the compiler down by
6473a few %, so you must explicitly enable it.
6474
6475If you want to build both the jit and the regular compiler, it is often
6476best to do this via two separate configure/builds, in separate
6477directories, to avoid imposing the performance cost of
6478--enable-host-shared on the regular compiler." "$LINENO" 5
6479 ;;
6480 all:jit:no)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6482$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6483 add_this_lang=unsupported
6484 ;;
6485 *:jit:no)
6486 # Silently disable.
6487 add_this_lang=unsupported
6488 ;;
6489 esac
6490
6491 # Disable a language that is unsupported by the target.
6492 case "${add_this_lang}: $unsupported_languages " in
6493 no:*) ;;
6494 unsupported:*) ;;
6495 *:*" $language "*)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6497$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6498 add_this_lang=unsupported
4fab7234
HPN
6499 ;;
6500 esac
6501
6de9cd9a 6502 case $add_this_lang in
e1888513 6503 unsupported)
55ffb5ed 6504 # Remove language-dependent dirs.
4da3b0f8
ILT
6505 disabled_target_libs="$disabled_target_libs $target_libs"
6506 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6507 ;;
e1888513
PB
6508 no)
6509 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6510 disabled_target_libs="$disabled_target_libs $target_libs"
6511 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6512 potential_languages="${potential_languages}${language},"
6513 ;;
cdfee50a 6514 all|yes)
e1888513
PB
6515 new_enable_languages="${new_enable_languages}${language},"
6516 potential_languages="${potential_languages}${language},"
2805b53a 6517 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6518 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6519 case "${boot_language}:,$enable_stage1_languages," in
6520 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6521 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6522 case ",$stage1_languages," in
6523 *,$language,* | ,yes, | ,all,) ;;
6524 *) stage1_languages="${stage1_languages}${language}," ;;
6525 esac
00020c16
ILT
6526 # We need to bootstrap any supporting libraries.
6527 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6528 ;;
6529 esac
6530 ;;
55ffb5ed
NN
6531 esac
6532 ;;
6533 esac
6534 done
6535
4da3b0f8
ILT
6536 # Add target libraries which are only needed for disabled languages
6537 # to noconfigdirs.
6538 if test -n "$disabled_target_libs"; then
6539 for dir in $disabled_target_libs; do
6540 case " $enabled_target_libs " in
6541 *" ${dir} "*) ;;
6542 *) noconfigdirs="$noconfigdirs $dir" ;;
6543 esac
6544 done
6545 fi
6546
5213506e
RW
6547 # Check whether --enable-stage1-languages was given.
6548if test "${enable_stage1_languages+set}" = set; then :
6549 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6550 ,no,|,,)
6551 # Set it to something that will have no effect in the loop below
6552 enable_stage1_languages=c ;;
6553 ,yes,)
6554 enable_stage1_languages=`echo $new_enable_languages | \
6555 sed -e "s/^,//" -e "s/,$//" ` ;;
6556 *,all,*)
6557 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6558 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6559 esac
6560
6561 # Add "good" languages from enable_stage1_languages to stage1_languages,
6562 # while "bad" languages go in missing_languages. Leave no duplicates.
6563 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6564 case $potential_languages in
6565 *,$i,*)
6566 case $stage1_languages in
6567 *,$i,*) ;;
6568 *) stage1_languages="$stage1_languages$i," ;;
6569 esac ;;
6570 *)
6571 case $missing_languages in
6572 *,$i,*) ;;
6573 *) missing_languages="$missing_languages$i," ;;
6574 esac ;;
6575 esac
6576 done
5213506e
RW
6577fi
6578
e1888513
PB
6579
6580 # Remove leading/trailing commas that were added for simplicity
6581 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6582 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6583 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6584 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6585
55ffb5ed 6586 if test "x$missing_languages" != x; then
22e05272 6587 as_fn_error $? "
0cf085e4 6588The following requested languages could not be built: ${missing_languages}
5213506e 6589Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6590 fi
55ffb5ed
NN
6591 if test "x$new_enable_languages" != "x$enable_languages"; then
6592 echo The following languages will be built: ${new_enable_languages}
e1888513 6593 enable_languages="$new_enable_languages"
55ffb5ed 6594 fi
e1888513 6595
1c710c3c 6596
b2eaac4a 6597 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6598fi
6599
27079765
AH
6600# Handle --disable-<component> generically.
6601for dir in $configdirs $build_configdirs $target_configdirs ; do
6602 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6603 varname=`echo $dirname | sed -e s/+/_/g`
6604 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6605 noconfigdirs="$noconfigdirs $dir"
6606 fi
6607done
6608
43c40f3e
RO
6609# Check for Boehm's garbage collector
6610# Check whether --enable-objc-gc was given.
6611if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6612 enableval=$enable_objc_gc;
6613fi
6614
6615
6616# Check whether --with-target-bdw-gc was given.
6617if test "${with_target_bdw_gc+set}" = set; then :
6618 withval=$with_target_bdw_gc;
6619fi
6620
6621
6622# Check whether --with-target-bdw-gc-include was given.
6623if test "${with_target_bdw_gc_include+set}" = set; then :
6624 withval=$with_target_bdw_gc_include;
6625fi
6626
6627
6628# Check whether --with-target-bdw-gc-lib was given.
6629if test "${with_target_bdw_gc_lib+set}" = set; then :
6630 withval=$with_target_bdw_gc_lib;
6631fi
6632
6633
6634case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6636$as_echo_n "checking for bdw garbage collector... " >&6; }
6637 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6639$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6640 else
6641 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6642 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6643 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6644 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6647$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6648 fi
6649 fi
43c40f3e
RO
6650esac
6651
5e9d6aa4 6652# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6653case ,${enable_languages}, in
1007a55c 6654 *,c++,*)
5e9d6aa4 6655 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6656 case "${noconfigdirs}" in
6657 *target-libstdc++-v3*)
5e9d6aa4 6658 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6659 ;;
6660 *) ;;
6661 esac
6662 ;;
99776ebd 6663 *)
5e9d6aa4 6664 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6665 ;;
6666esac
6667
ee6a22df
L
6668# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6669# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6670# If we have the source for $noconfigdirs entries, add them to $notsupp.
6671
6672notsupp=""
6673for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6674 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6675 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6676 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6677 if test -r $srcdir/$dirname/configure ; then
6678 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6679 true
6680 else
6681 notsupp="$notsupp $dir"
6682 fi
6683 fi
6684 fi
ee6a22df
L
6685 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6686 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6687 if test -r $srcdir/$dirname/configure ; then
6688 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6689 true
6690 else
6691 notsupp="$notsupp $dir"
6692 fi
6693 fi
6694 fi
55ffb5ed
NN
6695 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6696 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6697 if test -r $srcdir/$dirname/configure ; then
6698 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6699 true
6700 else
6701 notsupp="$notsupp $dir"
6702 fi
6703 fi
6704 fi
6705done
6706
55ffb5ed
NN
6707# Quietly strip out all directories which aren't configurable in this tree.
6708# This relies on all configurable subdirectories being autoconfiscated, which
6709# is now the case.
23f6b2f9
PB
6710build_configdirs_all="$build_configdirs"
6711build_configdirs=
6712for i in ${build_configdirs_all} ; do
1c710c3c 6713 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6714 if test -f ${srcdir}/$j/configure ; then
6715 build_configdirs="${build_configdirs} $i"
6716 fi
6717done
6718
55ffb5ed
NN
6719configdirs_all="$configdirs"
6720configdirs=
6721for i in ${configdirs_all} ; do
6722 if test -f ${srcdir}/$i/configure ; then
6723 configdirs="${configdirs} $i"
6724 fi
6725done
23f6b2f9 6726
55ffb5ed
NN
6727target_configdirs_all="$target_configdirs"
6728target_configdirs=
6729for i in ${target_configdirs_all} ; do
1c710c3c 6730 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6731 if test -f ${srcdir}/$j/configure ; then
6732 target_configdirs="${target_configdirs} $i"
6733 fi
6734done
6735
45b3824d
TS
6736# libiberty-linker-plugin is special: it doesn't have its own source directory,
6737# so we have to add it after the preceding checks.
6738if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6739then
6740 case " $configdirs " in
6741 *" libiberty "*)
6742 # If we can build libiberty, we can also build libiberty-linker-plugin.
6743 configdirs="$configdirs libiberty-linker-plugin"
6744 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6745 --with-libiberty=../libiberty-linker-plugin";;
6746 *)
22e05272 6747 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6748 esac
6749fi
6750
fca38047
TS
6751# Sometimes we have special requirements for the host libiberty.
6752extra_host_libiberty_configure_flags=
1c01ebf6 6753extra_host_zlib_configure_flags=
fca38047
TS
6754case " $configdirs " in
6755 *" lto-plugin "* | *" libcc1 "*)
6756 # When these are to be built as shared libraries, the same applies to
6757 # libiberty.
6758 extra_host_libiberty_configure_flags=--enable-shared
6759 ;;
1c01ebf6
L
6760 *" bfd "*)
6761 # When bfd is to be built as a shared library, the same applies to
6762 # zlib.
6763 if test "$enable_shared" = "yes"; then
6764 extra_host_zlib_configure_flags=--enable-host-shared
6765 fi
6766 ;;
fca38047
TS
6767esac
6768
6769
1c01ebf6 6770
55ffb5ed
NN
6771# Produce a warning message for the subdirs we can't configure.
6772# This isn't especially interesting in the Cygnus tree, but in the individual
6773# FSF releases, it's important to let people know when their machine isn't
6774# supported by the one or two programs in a package.
6775
6776if test -n "${notsupp}" && test -z "${norecursion}" ; then
6777 # If $appdirs is non-empty, at least one of those directories must still
6778 # be configured, or we error out. (E.g., if the gas release supports a
6779 # specified target in some subdirs but not the gas subdir, we shouldn't
6780 # pretend that all is well.)
6781 if test -n "$appdirs" ; then
6782 for dir in $appdirs ; do
6783 if test -r $dir/Makefile.in ; then
6784 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6785 appdirs=""
6786 break
6787 fi
23f6b2f9 6788 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6789 appdirs=""
6790 break
6791 fi
6792 fi
6793 done
6794 if test -n "$appdirs" ; then
6795 echo "*** This configuration is not supported by this package." 1>&2
6796 exit 1
6797 fi
6798 fi
6799 # Okay, some application will build, or we don't care to check. Still
6800 # notify of subdirs not getting built.
6801 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6802 echo " ${notsupp}" 1>&2
6803 echo " (Any other directories should still work fine.)" 1>&2
6804fi
6805
6806case "$host" in
6807 *msdosdjgpp*)
6808 enable_gdbtk=no ;;
6809esac
6810
c3a86da9
DJ
6811# To find our prefix, in gcc_cv_tool_prefix.
6812
6813# The user is always right.
6814if test "${PATH_SEPARATOR+set}" != set; then
6815 echo "#! /bin/sh" >conf$$.sh
6816 echo "exit 0" >>conf$$.sh
6817 chmod +x conf$$.sh
6818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6819 PATH_SEPARATOR=';'
6820 else
6821 PATH_SEPARATOR=:
6822 fi
6823 rm -f conf$$.sh
6824fi
6825
6826
3c36aa6b
JJ
6827 get_gcc_base_ver="cat"
6828
6829# Check whether --with-gcc-major-version-only was given.
6830if test "${with_gcc_major_version_only+set}" = set; then :
6831 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6832 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6833 fi
6834
6835fi
6836
6837
6838
6839
6840
c3a86da9
DJ
6841
6842if test "x$exec_prefix" = xNONE; then
6843 if test "x$prefix" = xNONE; then
6844 gcc_cv_tool_prefix=$ac_default_prefix
6845 else
6846 gcc_cv_tool_prefix=$prefix
6847 fi
6848else
6849 gcc_cv_tool_prefix=$exec_prefix
6850fi
6851
6852# If there is no compiler in the tree, use the PATH only. In any
6853# case, if there is no compiler in the tree nobody should use
6854# AS_FOR_TARGET and LD_FOR_TARGET.
6855if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6856 if test x$with_gcc_major_version_only = xyes ; then
6857 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6858 else
6859 gcc_version=`cat $srcdir/gcc/BASE-VER`
6860 fi
c3a86da9
DJ
6861 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6862 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6863 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6864 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6865 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6866 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6867else
6868 gcc_cv_tool_dirs=
6869fi
6870
6871if test x$build = x$target && test -n "$md_exec_prefix"; then
6872 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6873fi
6874
6875
6876
55ffb5ed
NN
6877copy_dirs=
6878
1c710c3c 6879
5213506e
RW
6880# Check whether --with-build-sysroot was given.
6881if test "${with_build_sysroot+set}" = set; then :
6882 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6883 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6884 fi
6885else
6886 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6887fi
526635cb
MM
6888
6889
c8aea42c 6890
5213506e
RW
6891
6892# Check whether --with-debug-prefix-map was given.
6893if test "${with_debug_prefix_map+set}" = set; then :
6894 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6895 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6896 for debug_map in $withval; do
6897 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6898 done
6899 fi
6900else
6901 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6902fi
6903
c8aea42c
PB
6904
6905
1c8bd6a3
PB
6906# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6907# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6908# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6909# We want to ensure that TARGET libraries (which we know are built with
6910# gcc) are built with "-O2 -g", so include those options when setting
6911# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6912if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6913 if test "x${is_cross_compiler}" = xyes; then
6914 CFLAGS_FOR_TARGET="-g -O2"
6915 else
6916 CFLAGS_FOR_TARGET=$CFLAGS
6917 case " $CFLAGS " in
6918 *" -O2 "*) ;;
6919 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6920 esac
6921 case " $CFLAGS " in
6922 *" -g "* | *" -g3 "*) ;;
6923 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6924 esac
6925 fi
1c8bd6a3
PB
6926fi
6927
6928
6929if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6930 if test "x${is_cross_compiler}" = xyes; then
6931 CXXFLAGS_FOR_TARGET="-g -O2"
6932 else
6933 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6934 case " $CXXFLAGS " in
6935 *" -O2 "*) ;;
6936 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6937 esac
6938 case " $CXXFLAGS " in
6939 *" -g "* | *" -g3 "*) ;;
6940 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6941 esac
6942 fi
1c8bd6a3
PB
6943fi
6944
6945
6f57bdf6
DK
6946
6947
55ffb5ed
NN
6948# Handle --with-headers=XXX. If the value is not "yes", the contents of
6949# the named directory are copied to $(tooldir)/sys-include.
6950if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6951 if test x${is_cross_compiler} = xno ; then
6952 echo 1>&2 '***' --with-headers is only supported when cross compiling
6953 exit 1
6954 fi
6955 if test x"${with_headers}" != xyes ; then
c3a86da9 6956 x=${gcc_cv_tool_prefix}
1c710c3c 6957 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6958 fi
6959fi
6960
6961# Handle --with-libs=XXX. If the value is not "yes", the contents of
6962# the name directories are copied to $(tooldir)/lib. Multiple directories
6963# are permitted.
6964if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6965 if test x${is_cross_compiler} = xno ; then
6966 echo 1>&2 '***' --with-libs is only supported when cross compiling
6967 exit 1
6968 fi
6969 if test x"${with_libs}" != xyes ; then
6970 # Copy the libraries in reverse order, so that files in the first named
6971 # library override files in subsequent libraries.
c3a86da9 6972 x=${gcc_cv_tool_prefix}
55ffb5ed 6973 for l in ${with_libs}; do
1c710c3c 6974 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6975 done
6976 fi
6977fi
6978
d7f09764 6979# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6980#
6981# This is done by determining whether or not the appropriate directory
6982# is available, and by checking whether or not specific configurations
6983# have requested that this magic not happen.
1c710c3c
DJ
6984#
6985# The command line options always override the explicit settings in
6b1786aa 6986# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6987#
1c710c3c 6988# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6989# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6990# --without-gnu-ld options for the configure script. Similarly, if
6991# the default is to use the included zlib and you don't want to do that,
6992# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6993
6994if test x${use_gnu_as} = x &&
6995 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6996 with_gnu_as=yes
6997 extra_host_args="$extra_host_args --with-gnu-as"
6998fi
6999
7000if test x${use_gnu_ld} = x &&
5afab7ad 7001 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7002 with_gnu_ld=yes
7003 extra_host_args="$extra_host_args --with-gnu-ld"
7004fi
7005
d7f09764
DN
7006if test x${use_included_zlib} = x &&
7007 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7008 :
7009else
7010 with_system_zlib=yes
7011 extra_host_args="$extra_host_args --with-system-zlib"
7012fi
7013
e8b05380
PB
7014# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7015# can detect this case.
7016
7017if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7018 with_newlib=yes
7019 extra_host_args="$extra_host_args --with-newlib"
7020fi
7021
55ffb5ed
NN
7022# Handle ${copy_dirs}
7023set fnord ${copy_dirs}
7024shift
7025while test $# != 0 ; do
7026 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7027 :
7028 else
7029 echo Copying $1 to $2
7030
7031 # Use the install script to create the directory and all required
7032 # parent directories.
7033 if test -d $2 ; then
7034 :
7035 else
7036 echo >config.temp
7037 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7038 fi
7039
7040 # Copy the directory, assuming we have tar.
7041 # FIXME: Should we use B in the second tar? Not all systems support it.
7042 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7043
7044 # It is the responsibility of the user to correctly adjust all
7045 # symlinks. If somebody can figure out how to handle them correctly
7046 # here, feel free to add the code.
7047
7048 echo $1 > $2/COPIED
7049 fi
7050 shift; shift
7051done
7052
e8b05380
PB
7053# Determine a target-dependent exec_prefix that the installed
7054# gcc will search in. Keep this list sorted by triplet, with
7055# the *-*-osname triplets last.
7056md_exec_prefix=
7057case "${target}" in
30b74385 7058 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7059 md_exec_prefix=/dev/env/DJDIR/bin
7060 ;;
e8b05380 7061 *-*-hpux* | \
e8b05380 7062 *-*-nto-qnx* | \
6de66370 7063 *-*-solaris2*)
e8b05380
PB
7064 md_exec_prefix=/usr/ccs/bin
7065 ;;
7066esac
7067
671aa708
NN
7068extra_arflags_for_target=
7069extra_nmflags_for_target=
7070extra_ranlibflags_for_target=
7071target_makefile_frag=/dev/null
7072case "${target}" in
58e24147
AM
7073 spu-*-*)
7074 target_makefile_frag="config/mt-spu"
7075 ;;
d896cc4d 7076 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
7077 target_makefile_frag="config/mt-sde"
7078 ;;
1ec3b87b
RS
7079 mipsisa*-*-elfoabi*)
7080 target_makefile_frag="config/mt-mips-elfoabi"
7081 ;;
08d0963a
RS
7082 mips*-*-*linux* | mips*-*-gnu*)
7083 target_makefile_frag="config/mt-mips-gnu"
7084 ;;
707f1839
SL
7085 nios2-*-elf*)
7086 target_makefile_frag="config/mt-nios2-elf"
7087 ;;
76052545
EB
7088 *-*-linux-android*)
7089 target_makefile_frag="config/mt-android"
7090 ;;
416ac4d4 7091 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7092 target_makefile_frag="config/mt-gnu"
671aa708
NN
7093 ;;
7094 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7095 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7096 # commands to handle both 32-bit and 64-bit objects. These flags are
7097 # harmless if we're using GNU nm or ar.
7098 extra_arflags_for_target=" -X32_64"
7099 extra_nmflags_for_target=" -B -X32_64"
7100 ;;
671aa708
NN
7101esac
7102
7103alphaieee_frag=/dev/null
7104case $target in
7105 alpha*-*-*)
7106 # This just makes sure to use the -mieee option to build target libs.
7107 # This should probably be set individually by each library.
7108 alphaieee_frag="config/mt-alphaieee"
7109 ;;
7110esac
7111
7112# If --enable-target-optspace always use -Os instead of -O2 to build
7113# the target libraries, similarly if it is not specified, use -Os
7114# on selected platforms.
7115ospace_frag=/dev/null
7116case "${enable_target_optspace}:${target}" in
7117 yes:*)
7118 ospace_frag="config/mt-ospace"
7119 ;;
7120 :d30v-*)
7121 ospace_frag="config/mt-d30v"
7122 ;;
d9063947 7123 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7124 ospace_frag="config/mt-ospace"
7125 ;;
7126 no:* | :*)
7127 ;;
7128 *)
7129 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7130 ;;
7131esac
7132
671aa708
NN
7133# Some systems (e.g., one of the i386-aix systems the gas testers are
7134# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7135tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7136build_tooldir=${tooldir}
7137
671aa708
NN
7138# Create a .gdbinit file which runs the one in srcdir
7139# and tells GDB to look there for source files.
7140
7141if test -r ${srcdir}/.gdbinit ; then
7142 case ${srcdir} in
7143 .) ;;
7144 *) cat > ./.gdbinit <<EOF
7145# ${NO_EDIT}
7146dir ${srcdir}
7147dir .
7148source ${srcdir}/.gdbinit
7149EOF
7150 ;;
7151 esac
7152fi
7153
671aa708
NN
7154# Make sure that the compiler is able to generate an executable. If it
7155# can't, we are probably in trouble. We don't care whether we can run the
7156# executable--we might be using a cross compiler--we only care whether it
7157# can be created. At this point the main configure script has set CC.
7158we_are_ok=no
7159echo "int main () { return 0; }" > conftest.c
7160${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7161if test $? = 0 ; then
7162 if test -s conftest || test -s conftest.exe ; then
7163 we_are_ok=yes
7164 fi
1c710c3c 7165fi
671aa708
NN
7166case $we_are_ok in
7167 no)
7168 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7169 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7170 rm -f conftest*
7171 exit 1
7172 ;;
7173esac
7174rm -f conftest*
7175
d89f0ad6 7176# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7177case "${host}" in
7178 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7179 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7180 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7181 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7182esac
7183
d89f0ad6
AL
7184# On systems where the dynamic library environment variable is PATH,
7185# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7186# built executables to PATH.
7187if test "$RPATH_ENVVAR" = PATH; then
7188 GCC_SHLIB_SUBDIR=/shlib
7189else
7190 GCC_SHLIB_SUBDIR=
7191fi
7192
beeda1d9
JJ
7193# Adjust the toplevel makefile according to whether bootstrap was selected.
7194case $enable_bootstrap in
7195 yes)
7196 bootstrap_suffix=bootstrap
7197 BUILD_CONFIG=bootstrap-debug
7198 ;;
7199 no)
7200 bootstrap_suffix=no-bootstrap
7201 BUILD_CONFIG=
7202 ;;
7203esac
7204
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7206$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7207
7208
7209# Check whether --with-build-config was given.
7210if test "${with_build_config+set}" = set; then :
7211 withval=$with_build_config; case $with_build_config in
7212 yes) with_build_config= ;;
7213 no) with_build_config= BUILD_CONFIG= ;;
7214 esac
7215fi
7216
7217
7218if test "x${with_build_config}" != x; then
7219 BUILD_CONFIG=$with_build_config
7220else
7221 case $BUILD_CONFIG in
7222 bootstrap-debug)
7223 if echo "int f (void) { return 0; }" > conftest.c &&
7224 ${CC} -c conftest.c &&
7225 mv conftest.o conftest.o.g0 &&
7226 ${CC} -c -g conftest.c &&
7227 mv conftest.o conftest.o.g &&
7228 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7229 :
7230 else
7231 BUILD_CONFIG=
7232 fi
7233 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7234 ;;
7235 esac
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7238$as_echo "$BUILD_CONFIG" >&6; }
7239
7240
7241# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7243$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7244# Check whether --enable-vtable-verify was given.
7245if test "${enable_vtable_verify+set}" = set; then :
7246 enableval=$enable_vtable_verify; case "$enableval" in
7247 yes) enable_vtable_verify=yes ;;
7248 no) enable_vtable_verify=no ;;
7249 *) enable_vtable_verify=no;;
7250 esac
7251else
7252 enable_vtable_verify=no
7253fi
7254
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7256$as_echo "$enable_vtable_verify" >&6; }
7257
671aa708
NN
7258# Record target_configdirs and the configure arguments for target and
7259# build configuration in Makefile.
7260target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7261build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7262bootstrap_fixincludes=no
671aa708 7263
ad1e5170
JR
7264# If we are building libgomp, bootstrap it.
7265if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7266 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7267fi
7268
beeda1d9
JJ
7269# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7270# or bootstrap-ubsan, bootstrap it.
7271if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7272 case "$BUILD_CONFIG" in
7273 *bootstrap-asan* | *bootstrap-ubsan* )
7274 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7275 bootstrap_fixincludes=yes
beeda1d9
JJ
7276 ;;
7277 esac
ac8701fe
L
7278fi
7279
beeda1d9
JJ
7280# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7281if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7282 test "$enable_vtable_verify" != no; then
2077db1b
CT
7283 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7284fi
7285
671aa708
NN
7286# Determine whether gdb needs tk/tcl or not.
7287# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7288# and in that case we want gdb to be built without tk. Ugh!
7289# In fact I believe gdb is the *only* package directly dependent on tk,
7290# so we should be able to put the 'maybe's in unconditionally and
7291# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7292# 100% sure that that's safe though.
e914a571 7293
b4f96efe 7294gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7295case "$enable_gdbtk" in
7296 no)
7297 GDB_TK="" ;;
e914a571
AC
7298 yes)
7299 GDB_TK="${gdb_tk}" ;;
671aa708 7300 *)
e914a571
AC
7301 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7302 # distro. Eventually someone will fix this and move Insight, nee
7303 # gdbtk to a separate directory.
7304 if test -d ${srcdir}/gdb/gdbtk ; then
7305 GDB_TK="${gdb_tk}"
7306 else
7307 GDB_TK=""
7308 fi
7309 ;;
671aa708 7310esac
ef9db8d5
DJ
7311CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7312INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7313
98e5be21
TT
7314# gdb depends on gnulib, but as nothing else does, only include it if
7315# gdb is built.
7316if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7317 # The Makefile provides the ordering, so it's enough here to add
7318 # gnulib to the list.
7319 configdirs="${configdirs} gnulib"
7320fi
7321
60975492 7322# Strip out unwanted targets.
8b87bb96
NN
7323
7324# While at that, we remove Makefiles if we were started for recursive
7325# configuration, so that the top-level Makefile reconfigures them,
7326# like we used to do when configure itself was recursive.
8b87bb96 7327
3e54529c
RW
7328# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7329# but now we're fixing up the Makefile ourselves with the additional
7330# commands passed to AC_CONFIG_FILES. Use separate variables
7331# extrasub-{build,host,target} not because there is any reason to split
7332# the substitutions up that way, but only to remain below the limit of
7333# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7334
7335# Do not nest @if/@endif or @unless/@endunless pairs, because
7336# configure will not warn you at all.
8b87bb96 7337
79cd2b23
RW
7338case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7339 yes:yes:*\ gold\ *:*,c++,*) ;;
7340 yes:yes:*\ gold\ *:*)
22e05272 7341 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7342 ;;
7343esac
7344
3e54529c 7345extrasub_build=
23f6b2f9 7346for module in ${build_configdirs} ; do
5607edfd
PB
7347 if test -z "${no_recursion}" \
7348 && test -f ${build_subdir}/${module}/Makefile; then
7349 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7350 rm -f ${build_subdir}/${module}/Makefile
7351 fi
3e54529c 7352 extrasub_build="$extrasub_build
5607edfd
PB
7353/^@if build-$module\$/d
7354/^@endif build-$module\$/d
da34ca3f 7355/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7356/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7357/^@endif build-$module-$bootstrap_suffix\$/d
7358/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7359done
3e54529c 7360extrasub_host=
5607edfd 7361for module in ${configdirs} ; do
a6fbc1e2 7362 if test -z "${no_recursion}"; then
f063a9ed 7363 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7364 if test -f ${file}; then
7365 echo 1>&2 "*** removing ${file} to force reconfigure"
7366 rm -f ${file}
7367 fi
7368 done
5607edfd 7369 fi
9e1c8fc1
JJ
7370 case ${module},${bootstrap_fixincludes} in
7371 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7372 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7373 esac
3e54529c 7374 extrasub_host="$extrasub_host
5607edfd
PB
7375/^@if $module\$/d
7376/^@endif $module\$/d
da34ca3f 7377/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7378/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7379/^@endif $module-$host_bootstrap_suffix\$/d
7380/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7381done
3e54529c 7382extrasub_target=
5607edfd
PB
7383for module in ${target_configdirs} ; do
7384 if test -z "${no_recursion}" \
7385 && test -f ${target_subdir}/${module}/Makefile; then
7386 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7387 rm -f ${target_subdir}/${module}/Makefile
7388 fi
00020c16
ILT
7389
7390 # We only bootstrap target libraries listed in bootstrap_target_libs.
7391 case $bootstrap_target_libs in
7392 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7393 *) target_bootstrap_suffix=no-bootstrap ;;
7394 esac
7395
3e54529c 7396 extrasub_target="$extrasub_target
5607edfd
PB
7397/^@if target-$module\$/d
7398/^@endif target-$module\$/d
da34ca3f 7399/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7400/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7401/^@endif target-$module-$target_bootstrap_suffix\$/d
7402/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7403done
7404
3e54529c
RW
7405# Do the final fixup along with target modules.
7406extrasub_target="$extrasub_target
da34ca3f
AO
7407/^@if /,/^@endif /d
7408/^@unless /d
7409/^@endunless /d"
671aa708
NN
7410
7411# Create the serialization dependencies. This uses a temporary file.
7412
5213506e
RW
7413# Check whether --enable-serial-configure was given.
7414if test "${enable_serial_configure+set}" = set; then :
7415 enableval=$enable_serial_configure;
7416fi
ade82b16
AO
7417
7418
bf1d3e81
NN
7419case ${enable_serial_configure} in
7420 yes)
7421 enable_serial_build_configure=yes
7422 enable_serial_host_configure=yes
7423 enable_serial_target_configure=yes
7424 ;;
7425esac
7426
671aa708
NN
7427# These force 'configure's to be done one at a time, to avoid problems
7428# with contention over a shared config.cache.
7429rm -f serdep.tmp
ade82b16 7430echo '# serdep.tmp' > serdep.tmp
671aa708 7431olditem=
bf1d3e81 7432test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7433for item in ${build_configdirs} ; do
7434 case ${olditem} in
7435 "") ;;
ade82b16 7436 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7437 esac
7438 olditem=${item}
7439done
7440olditem=
bf1d3e81 7441test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7442for item in ${configdirs} ; do
7443 case ${olditem} in
7444 "") ;;
ade82b16 7445 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7446 esac
7447 olditem=${item}
7448done
7449olditem=
bf1d3e81 7450test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7451for item in ${target_configdirs} ; do
7452 case ${olditem} in
7453 "") ;;
ade82b16 7454 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7455 esac
7456 olditem=${item}
7457done
7458serialization_dependencies=serdep.tmp
7459
7460
ade82b16 7461# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7462# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7463# might not want to pass down to subconfigures. The exception being
7464# --cache-file=/dev/null, which is used to turn off the use of cache
7465# files altogether, and which should be passed on to subconfigures.
7466# Also strip program-prefix, program-suffix, and program-transform-name,
7467# so that we can pass down a consistent program-transform-name.
1c710c3c 7468baseargs=
29a63921 7469tbaseargs=
1c710c3c
DJ
7470keep_next=no
7471skip_next=no
7472eval "set -- $ac_configure_args"
44bfc3ac
DJ
7473for ac_arg
7474do
1c710c3c
DJ
7475 if test X"$skip_next" = X"yes"; then
7476 skip_next=no
7477 continue
7478 fi
7479 if test X"$keep_next" = X"yes"; then
7480 case $ac_arg in
7481 *\'*)
7482 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7483 esac
7484 baseargs="$baseargs '$ac_arg'"
29a63921 7485 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7486 keep_next=no
7487 continue
7488 fi
7489
7490 # Handle separated arguments. Based on the logic generated by
7491 # autoconf 2.59.
7492 case $ac_arg in
7493 *=* | --config-cache | -C | -disable-* | --disable-* \
7494 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7495 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7496 | -with-* | --with-* | -without-* | --without-* | --x)
7497 separate_arg=no
7498 ;;
7499 -*)
7500 separate_arg=yes
7501 ;;
7502 *)
7503 separate_arg=no
7504 ;;
7505 esac
7506
29a63921
AO
7507 skip_targ=no
7508 case $ac_arg in
7509
7510 --with-* | --without-*)
7511 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7512
7513 case $libopt in
7514 *[-_]include)
7515 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7516 ;;
7517 *[-_]lib)
7518 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7519 ;;
7520 *)
7521 lib=$libopt
7522 ;;
7523 esac
7524
7525
7526 case $lib in
4a9bb2aa 7527 mpc | mpfr | gmp | isl)
29a63921
AO
7528 # If we're processing --with-$lib, --with-$lib-include or
7529 # --with-$lib-lib, for one of the libs above, and target is
7530 # different from host, don't pass the current argument to any
7531 # target library's configure.
7532 if test x$is_cross_compiler = xyes; then
7533 skip_targ=yes
7534 fi
7535 ;;
7536 esac
7537 ;;
7538 esac
7539
1c710c3c 7540 case "$ac_arg" in
f1a036e4
NC
7541 --cache-file=/dev/null | \
7542 -cache-file=/dev/null )
7543 # Handled here to avoid the test to skip args below.
7544 baseargs="$baseargs '$ac_arg'"
29a63921 7545 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7546 # Assert: $separate_arg should always be no.
7547 keep_next=$separate_arg
7548 ;;
1c710c3c
DJ
7549 --no*)
7550 continue
7551 ;;
7552 --c* | \
7553 --sr* | \
7554 --ho* | \
7555 --bu* | \
7556 --t* | \
7557 --program-* | \
7558 -cache_file* | \
7559 -srcdir* | \
7560 -host* | \
7561 -build* | \
7562 -target* | \
7563 -program-prefix* | \
7564 -program-suffix* | \
7565 -program-transform-name* )
7566 skip_next=$separate_arg
7567 continue
7568 ;;
7569 -*)
7570 # An option. Add it.
7571 case $ac_arg in
7572 *\'*)
7573 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7574 esac
7575 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7576 if test X"$skip_targ" = Xno; then
7577 tbaseargs="$tbaseargs '$ac_arg'"
7578 fi
1c710c3c
DJ
7579 keep_next=$separate_arg
7580 ;;
7581 *)
7582 # Either a variable assignment, or a nonopt (triplet). Don't
7583 # pass it down; let the Makefile handle this.
7584 continue
7585 ;;
7586 esac
7587done
7588# Remove the initial space we just introduced and, as these will be
7589# expanded by make, quote '$'.
7590baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7591
43bb47c2
DJ
7592# Add in --program-transform-name, after --program-prefix and
7593# --program-suffix have been applied to it. Autoconf has already
7594# doubled dollar signs and backslashes in program_transform_name; we want
7595# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7596# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7597# Also, because we want to override the logic in subdir configure scripts to
7598# choose program_transform_name, replace any s,x,x, with s,y,y,.
7599sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7600${program_transform_name}
7601EOF_SED
7602gcc_transform_name=`cat conftestsed.out`
7603rm -f conftestsed.out
7604baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7605tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7606if test "$silent" = yes; then
7607 baseargs="$baseargs --silent"
29a63921 7608 tbaseargs="$tbaseargs --silent"
d9acb717 7609fi
0115d4a3 7610baseargs="$baseargs --disable-option-checking"
29a63921 7611tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7612
ffedf511
RW
7613# Record and document user additions to sub configure arguments.
7614
7615
7616
7617
671aa708
NN
7618# For the build-side libraries, we just need to pretend we're native,
7619# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7620# desired. We can't even use the same cache file for all build-side
7621# libraries, as they're compiled differently; some with C, some with
7622# C++ or with different feature-enabling options.
7623build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7624
7625# For host modules, accept cache file option, or specification as blank.
7626case "${cache_file}" in
7627"") # empty
7628 cache_file_option="" ;;
7629/* | [A-Za-z]:[\\/]* ) # absolute path
7630 cache_file_option="--cache-file=${cache_file}" ;;
7631*) # relative path
7632 cache_file_option="--cache-file=../${cache_file}" ;;
7633esac
7634
09438bde
NN
7635# Host dirs don't like to share a cache file either, horribly enough.
7636# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7637host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7638
29a63921 7639target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7640
7641# Passing a --with-cross-host argument lets the target libraries know
7642# whether they are being built with a cross-compiler or being built
7643# native. However, it would be better to use other mechanisms to make the
7644# sorts of decisions they want to make on this basis. Please consider
7645# this option to be deprecated. FIXME.
7646if test x${is_cross_compiler} = xyes ; then
1c710c3c 7647 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7648fi
7649
79e0604d
FXC
7650# Special user-friendly check for native x86_64-linux build, if
7651# multilib is not explicitly enabled.
7652case "$target:$have_compiler:$host:$target:$enable_multilib" in
7653 x86_64-*linux*:yes:$build:$build:)
e640447c 7654 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7655 dev64=no
7656 echo "int main () { return 0; }" > conftest.c
7657 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7658 if test $? = 0 ; then
7659 if test -s conftest || test -s conftest.exe ; then
7660 dev64=yes
7661 fi
7662 fi
7663 rm -f conftest*
7664 if test x${dev64} != xyes ; then
22e05272 7665 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
79e0604d
FXC
7666 fi
7667 ;;
7668esac
7669
dc683a3f
RW
7670# Default to --enable-multilib.
7671if test x${enable_multilib} = x ; then
671aa708 7672 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7673fi
671aa708
NN
7674
7675# Pass --with-newlib if appropriate. Note that target_configdirs has
7676# changed from the earlier setting of with_newlib.
7677if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7678 target_configargs="--with-newlib ${target_configargs}"
7679fi
7680
6b9eb62c
NN
7681# Different target subdirs use different values of certain variables
7682# (notably CXX). Worse, multilibs use *lots* of different values.
7683# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7684# it doesn't automatically accept command-line overrides of them.
7685# This means it's not safe for target subdirs to share a cache file,
7686# which is disgusting, but there you have it. Hopefully this can be
7687# fixed in future. It's still worthwhile to use a cache file for each
7688# directory. I think.
7689
bebcd931
MS
7690# Pass the appropriate --build, --host, --target and --cache-file arguments.
7691# We need to pass --target, as newer autoconf's requires consistency
7692# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7693target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7694
671aa708
NN
7695FLAGS_FOR_TARGET=
7696case " $target_configdirs " in
7697 *" newlib "*)
7698 case " $target_configargs " in
7699 *" --with-newlib "*)
7700 case "$target" in
5d571eaa 7701 *-cygwin*)
443e6238 7702 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7703 ;;
671aa708
NN
7704 esac
7705
7706 # If we're not building GCC, don't discard standard headers.
7707 if test -d ${srcdir}/gcc; then
7708 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7709
7710 if test "${build}" != "${host}"; then
7711 # On Canadian crosses, CC_FOR_TARGET will have already been set
7712 # by `configure', so we won't have an opportunity to add -Bgcc/
7713 # to it. This is right: we don't want to search that directory
7714 # for binaries, but we want the header files in there, so add
7715 # them explicitly.
0463992b 7716 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7717
7718 # Someone might think of using the pre-installed headers on
7719 # Canadian crosses, in case the installed compiler is not fully
7720 # compatible with the compiler being built. In this case, it
7721 # would be better to flag an error than risking having
7722 # incompatible object files being constructed. We can't
7723 # guarantee that an error will be flagged, but let's hope the
7724 # compiler will do it, when presented with incompatible header
7725 # files.
7726 fi
7727 fi
7728
7729 case "${target}-${is_cross_compiler}" in
f2a0e225 7730 i[3456789]86-*-linux*-no)
671aa708
NN
7731 # Here host == target, so we don't need to build gcc,
7732 # so we don't want to discard standard headers.
7733 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7734 ;;
7735 *)
7736 # If we're building newlib, use its generic headers last, but search
7737 # for any libc-related directories first (so make it the last -B
7738 # switch).
7739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7740
7741 # If we're building libgloss, find the startup file, simulator library
7742 # and linker script.
7743 case " $target_configdirs " in
7744 *" libgloss "*)
7745 # Look for startup file, simulator library and maybe linker script.
7746 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7747 # Look for libnosys.a in case the target needs it.
7748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7749 # Most targets have the linker script in the source directory.
7750 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7751 ;;
7752 esac
671aa708
NN
7753 ;;
7754 esac
7755 ;;
7756 esac
7757 ;;
7758esac
5d571eaa 7759
b91f0a41 7760case "$target" in
5d571eaa
OS
7761 x86_64-*mingw* | *-w64-mingw*)
7762 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7763 # however, use a symlink named 'mingw' in ${prefix} .
7764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7765 ;;
7766 *-mingw*)
7767 # MinGW can't be handled as Cygwin above since it does not use newlib.
7768 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'
7769 ;;
b91f0a41 7770esac
671aa708 7771
6691a79e
ME
7772# Allow the user to override the flags for
7773# our build compiler if desired.
f019adc1
MF
7774if test x"${build}" = x"${host}" ; then
7775 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7776 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7777 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7778fi
6691a79e 7779
671aa708
NN
7780# On Canadian crosses, we'll be searching the right directories for
7781# the previously-installed cross compiler, so don't bother to add
7782# flags for directories within the install tree of the compiler
7783# being built; programs in there won't even run.
7784if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7785 # Search for pre-installed headers if nothing else fits.
9124bc53 7786 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7787fi
7788
7789if test "x${use_gnu_ld}" = x &&
7790 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7791 # Arrange for us to find uninstalled linker scripts.
215c351a 7792 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7793fi
7794
e88a2c09
DD
7795# Search for other target-specific linker scripts and such.
7796case "${target}" in
3e19841a
PB
7797 mep*)
7798 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7799 ;;
e88a2c09
DD
7800esac
7801
671aa708 7802# Makefile fragments.
7b61653a
PE
7803for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7804do
7805 eval fragval=\$$frag
7806 if test $fragval != /dev/null; then
7807 eval $frag=${srcdir}/$fragval
7808 fi
7809done
671aa708
NN
7810
7811
7812
7813
7814
7815# Miscellanea: directories, flags, etc.
7816
7817
7818
7819
7820
7821
7822
d89f0ad6 7823
23f6b2f9 7824# Build module lists & subconfigure args.
671aa708
NN
7825
7826
7827
2abefe3d
PB
7828# Host module lists & subconfigure args.
7829
7830
7831
aae29963 7832
2abefe3d
PB
7833# Target module lists & subconfigure args.
7834
7835
7836
7837# Build tools.
7838
7839
7840
0999159b
PB
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
b4c522fa 7854
2abefe3d
PB
7855# Generate default definitions for YACC, M4, LEX and other programs that run
7856# on the build machine. These are used if the Makefile can't locate these
7857# programs in objdir.
7858MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7859
7860for ac_prog in 'bison -y' byacc yacc
7861do
1c710c3c 7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7863set dummy $ac_prog; ac_word=$2
5213506e
RW
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7866if ${ac_cv_prog_YACC+:} false; then :
5213506e 7867 $as_echo_n "(cached) " >&6
2abefe3d
PB
7868else
7869 if test -n "$YACC"; then
7870 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7871else
1c710c3c
DJ
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
5213506e 7877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7879 ac_cv_prog_YACC="$ac_prog"
5213506e 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7881 break 2
7882 fi
7883done
5213506e
RW
7884 done
7885IFS=$as_save_IFS
1c710c3c 7886
2abefe3d
PB
7887fi
7888fi
1c710c3c 7889YACC=$ac_cv_prog_YACC
2abefe3d 7890if test -n "$YACC"; then
5213506e
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7892$as_echo "$YACC" >&6; }
2abefe3d 7893else
5213506e
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
2abefe3d
PB
7896fi
7897
5213506e 7898
1c710c3c 7899 test -n "$YACC" && break
2abefe3d
PB
7900done
7901test -n "$YACC" || YACC="$MISSING bison -y"
7902
7903case " $build_configdirs " in
7904 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7905esac
7906
7907for ac_prog in bison
7908do
1c710c3c 7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7910set dummy $ac_prog; ac_word=$2
5213506e
RW
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7913if ${ac_cv_prog_BISON+:} false; then :
5213506e 7914 $as_echo_n "(cached) " >&6
2abefe3d
PB
7915else
7916 if test -n "$BISON"; then
7917 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7918else
1c710c3c
DJ
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
5213506e 7924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7926 ac_cv_prog_BISON="$ac_prog"
5213506e 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7928 break 2
7929 fi
7930done
5213506e
RW
7931 done
7932IFS=$as_save_IFS
1c710c3c 7933
2abefe3d
PB
7934fi
7935fi
1c710c3c 7936BISON=$ac_cv_prog_BISON
2abefe3d 7937if test -n "$BISON"; then
5213506e
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7939$as_echo "$BISON" >&6; }
2abefe3d 7940else
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
2abefe3d
PB
7943fi
7944
5213506e 7945
1c710c3c 7946 test -n "$BISON" && break
2abefe3d
PB
7947done
7948test -n "$BISON" || BISON="$MISSING bison"
7949
7950case " $build_configdirs " in
7951 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7952esac
7953
7954for ac_prog in gm4 gnum4 m4
7955do
1c710c3c 7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7957set dummy $ac_prog; ac_word=$2
5213506e
RW
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7960if ${ac_cv_prog_M4+:} false; then :
5213506e 7961 $as_echo_n "(cached) " >&6
2abefe3d
PB
7962else
7963 if test -n "$M4"; then
7964 ac_cv_prog_M4="$M4" # Let the user override the test.
7965else
1c710c3c
DJ
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
5213506e 7971 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7973 ac_cv_prog_M4="$ac_prog"
5213506e 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7975 break 2
7976 fi
7977done
5213506e
RW
7978 done
7979IFS=$as_save_IFS
1c710c3c 7980
2abefe3d
PB
7981fi
7982fi
1c710c3c 7983M4=$ac_cv_prog_M4
2abefe3d 7984if test -n "$M4"; then
5213506e
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7986$as_echo "$M4" >&6; }
2abefe3d 7987else
5213506e
RW
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
2abefe3d
PB
7990fi
7991
5213506e 7992
1c710c3c 7993 test -n "$M4" && break
2abefe3d
PB
7994done
7995test -n "$M4" || M4="$MISSING m4"
7996
7997case " $build_configdirs " in
7998 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7999esac
8000
8001for ac_prog in flex lex
8002do
1c710c3c 8003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8004set dummy $ac_prog; ac_word=$2
5213506e
RW
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8007if ${ac_cv_prog_LEX+:} false; then :
5213506e 8008 $as_echo_n "(cached) " >&6
2abefe3d
PB
8009else
8010 if test -n "$LEX"; then
8011 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8012else
1c710c3c
DJ
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
5213506e 8018 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8020 ac_cv_prog_LEX="$ac_prog"
5213506e 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8022 break 2
8023 fi
8024done
5213506e
RW
8025 done
8026IFS=$as_save_IFS
1c710c3c 8027
2abefe3d
PB
8028fi
8029fi
1c710c3c 8030LEX=$ac_cv_prog_LEX
2abefe3d 8031if test -n "$LEX"; then
5213506e
RW
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8033$as_echo "$LEX" >&6; }
2abefe3d 8034else
5213506e
RW
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
2abefe3d
PB
8037fi
8038
5213506e 8039
1c710c3c 8040 test -n "$LEX" && break
2abefe3d
PB
8041done
8042test -n "$LEX" || LEX="$MISSING flex"
8043
8044case " $build_configdirs " in
8045 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8046 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8047esac
8048
8049for ac_prog in flex
8050do
1c710c3c 8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8052set dummy $ac_prog; ac_word=$2
5213506e
RW
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8055if ${ac_cv_prog_FLEX+:} false; then :
5213506e 8056 $as_echo_n "(cached) " >&6
2abefe3d
PB
8057else
8058 if test -n "$FLEX"; then
8059 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8060else
1c710c3c
DJ
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
5213506e 8066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8068 ac_cv_prog_FLEX="$ac_prog"
5213506e 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8070 break 2
8071 fi
8072done
5213506e
RW
8073 done
8074IFS=$as_save_IFS
1c710c3c 8075
2abefe3d
PB
8076fi
8077fi
1c710c3c 8078FLEX=$ac_cv_prog_FLEX
2abefe3d 8079if test -n "$FLEX"; then
5213506e
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8081$as_echo "$FLEX" >&6; }
2abefe3d 8082else
5213506e
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
2abefe3d
PB
8085fi
8086
5213506e 8087
1c710c3c 8088 test -n "$FLEX" && break
2abefe3d
PB
8089done
8090test -n "$FLEX" || FLEX="$MISSING flex"
8091
8092case " $build_configdirs " in
8093 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8094esac
8095
8096for ac_prog in makeinfo
8097do
1c710c3c 8098 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8099set dummy $ac_prog; ac_word=$2
5213506e
RW
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8102if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8103 $as_echo_n "(cached) " >&6
2abefe3d
PB
8104else
8105 if test -n "$MAKEINFO"; then
8106 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8107else
1c710c3c
DJ
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
5213506e 8113 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8115 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8117 break 2
8118 fi
8119done
5213506e
RW
8120 done
8121IFS=$as_save_IFS
1c710c3c 8122
2abefe3d
PB
8123fi
8124fi
1c710c3c 8125MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8126if test -n "$MAKEINFO"; then
5213506e
RW
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8128$as_echo "$MAKEINFO" >&6; }
2abefe3d 8129else
5213506e
RW
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
2abefe3d
PB
8132fi
8133
5213506e 8134
1c710c3c 8135 test -n "$MAKEINFO" && break
2abefe3d
PB
8136done
8137test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8138
8139case " $build_configdirs " in
8140 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8141 *)
8142
d18ff35a 8143 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8144 # higher, else we use the "missing" dummy.
8145 if ${MAKEINFO} --version \
d18ff35a 8146 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8147 :
8148 else
8149 MAKEINFO="$MISSING makeinfo"
8150 fi
8151 ;;
8152
8153esac
671aa708 8154
2abefe3d 8155# FIXME: expect and dejagnu may become build tools?
671aa708 8156
2abefe3d
PB
8157for ac_prog in expect
8158do
1c710c3c 8159 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8160set dummy $ac_prog; ac_word=$2
5213506e
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8163if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8164 $as_echo_n "(cached) " >&6
2abefe3d
PB
8165else
8166 if test -n "$EXPECT"; then
8167 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8168else
1c710c3c
DJ
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
5213506e 8174 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8176 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8178 break 2
8179 fi
8180done
5213506e
RW
8181 done
8182IFS=$as_save_IFS
1c710c3c 8183
2abefe3d
PB
8184fi
8185fi
1c710c3c 8186EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8187if test -n "$EXPECT"; then
5213506e
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8189$as_echo "$EXPECT" >&6; }
2abefe3d 8190else
5213506e
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
2abefe3d 8193fi
671aa708 8194
5213506e 8195
1c710c3c 8196 test -n "$EXPECT" && break
2abefe3d
PB
8197done
8198test -n "$EXPECT" || EXPECT="expect"
671aa708 8199
2abefe3d
PB
8200case " $configdirs " in
8201 *" expect "*)
8202 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8203 ;;
8204esac
671aa708 8205
2abefe3d
PB
8206for ac_prog in runtest
8207do
1c710c3c 8208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8209set dummy $ac_prog; ac_word=$2
5213506e
RW
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8212if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8213 $as_echo_n "(cached) " >&6
2abefe3d
PB
8214else
8215 if test -n "$RUNTEST"; then
8216 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8217else
1c710c3c
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
5213506e 8223 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8225 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8227 break 2
8228 fi
8229done
5213506e
RW
8230 done
8231IFS=$as_save_IFS
1c710c3c 8232
2abefe3d
PB
8233fi
8234fi
1c710c3c 8235RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8236if test -n "$RUNTEST"; then
5213506e
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8238$as_echo "$RUNTEST" >&6; }
2abefe3d 8239else
5213506e
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
2abefe3d 8242fi
671aa708 8243
5213506e 8244
1c710c3c 8245 test -n "$RUNTEST" && break
2abefe3d
PB
8246done
8247test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8248
2abefe3d
PB
8249case " $configdirs " in
8250 *" dejagnu "*)
c394e891 8251 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8252 ;;
8253esac
671aa708
NN
8254
8255
671aa708 8256# Host tools.
ca9f4b81
AO
8257ncn_tool_prefix=
8258test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8259ncn_target_tool_prefix=
8260test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8261
278a7a38
AO
8262
8263
8264if test -n "$AR"; then
8265 ac_cv_prog_AR=$AR
8266elif test -n "$ac_cv_prog_AR"; then
8267 AR=$ac_cv_prog_AR
8268fi
8269
8270if test -n "$ac_cv_prog_AR"; then
8271 for ncn_progname in ar; do
8272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8273set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8276if ${ac_cv_prog_AR+:} false; then :
5213506e 8277 $as_echo_n "(cached) " >&6
278a7a38
AO
8278else
8279 if test -n "$AR"; then
8280 ac_cv_prog_AR="$AR" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
5213506e 8287 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8289 ac_cv_prog_AR="${ncn_progname}"
5213506e 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8291 break 2
8292 fi
8293done
5213506e
RW
8294 done
8295IFS=$as_save_IFS
278a7a38
AO
8296
8297fi
8298fi
8299AR=$ac_cv_prog_AR
8300if test -n "$AR"; then
5213506e
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8302$as_echo "$AR" >&6; }
278a7a38 8303else
5213506e
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
278a7a38
AO
8306fi
8307
5213506e 8308
278a7a38
AO
8309 done
8310fi
8311
8312for ncn_progname in ar; do
2693c0b0
PB
8313 if test -n "$ncn_tool_prefix"; then
8314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8318if ${ac_cv_prog_AR+:} false; then :
5213506e 8319 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8320else
8321 if test -n "$AR"; then
8322 ac_cv_prog_AR="$AR" # Let the user override the test.
8323else
1c710c3c
DJ
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
5213506e 8329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8331 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8333 break 2
8334 fi
8335done
5213506e
RW
8336 done
8337IFS=$as_save_IFS
1c710c3c 8338
ca9f4b81
AO
8339fi
8340fi
1c710c3c 8341AR=$ac_cv_prog_AR
ca9f4b81 8342if test -n "$AR"; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8344$as_echo "$AR" >&6; }
ca9f4b81 8345else
5213506e
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
ca9f4b81
AO
8348fi
8349
5213506e 8350
2693c0b0
PB
8351 fi
8352 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8357if ${ac_cv_prog_AR+:} false; then :
5213506e 8358 $as_echo_n "(cached) " >&6
ca9f4b81 8359else
2693c0b0 8360 if test -n "$AR"; then
af71363e
AS
8361 ac_cv_prog_AR="$AR" # Let the user override the test.
8362else
1c710c3c
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
5213506e 8368 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8370 ac_cv_prog_AR="${ncn_progname}"
5213506e 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8372 break 2
8373 fi
8374done
5213506e
RW
8375 done
8376IFS=$as_save_IFS
1c710c3c 8377
ca9f4b81
AO
8378fi
8379fi
1c710c3c 8380AR=$ac_cv_prog_AR
2693c0b0 8381if test -n "$AR"; then
5213506e
RW
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8383$as_echo "$AR" >&6; }
ca9f4b81 8384else
5213506e
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
ca9f4b81 8387fi
1c710c3c 8388
5213506e 8389
2693c0b0
PB
8390 fi
8391 test -n "$ac_cv_prog_AR" && break
8392done
8393
8394if test -z "$ac_cv_prog_AR" ; then
8395 set dummy ar
8396 if test $build = $host ; then
8397 AR="$2"
ca9f4b81 8398 else
2693c0b0 8399 AR="${ncn_tool_prefix}$2"
ca9f4b81 8400 fi
ca9f4b81
AO
8401fi
8402
278a7a38
AO
8403
8404
8405if test -n "$AS"; then
8406 ac_cv_prog_AS=$AS
8407elif test -n "$ac_cv_prog_AS"; then
8408 AS=$ac_cv_prog_AS
8409fi
8410
8411if test -n "$ac_cv_prog_AS"; then
8412 for ncn_progname in as; do
8413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8414set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8417if ${ac_cv_prog_AS+:} false; then :
5213506e 8418 $as_echo_n "(cached) " >&6
278a7a38
AO
8419else
8420 if test -n "$AS"; then
8421 ac_cv_prog_AS="$AS" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
5213506e 8428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8430 ac_cv_prog_AS="${ncn_progname}"
5213506e 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8432 break 2
8433 fi
8434done
5213506e
RW
8435 done
8436IFS=$as_save_IFS
278a7a38
AO
8437
8438fi
8439fi
8440AS=$ac_cv_prog_AS
8441if test -n "$AS"; then
5213506e
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8443$as_echo "$AS" >&6; }
278a7a38 8444else
5213506e
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
278a7a38
AO
8447fi
8448
5213506e 8449
278a7a38
AO
8450 done
8451fi
8452
8453for ncn_progname in as; do
2693c0b0
PB
8454 if test -n "$ncn_tool_prefix"; then
8455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8459if ${ac_cv_prog_AS+:} false; then :
5213506e 8460 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8461else
8462 if test -n "$AS"; then
8463 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8464else
1c710c3c
DJ
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
5213506e 8470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8472 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8474 break 2
8475 fi
8476done
5213506e
RW
8477 done
8478IFS=$as_save_IFS
1c710c3c 8479
ca9f4b81
AO
8480fi
8481fi
1c710c3c 8482AS=$ac_cv_prog_AS
ca9f4b81 8483if test -n "$AS"; then
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8485$as_echo "$AS" >&6; }
ca9f4b81 8486else
5213506e
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
ca9f4b81
AO
8489fi
8490
5213506e 8491
2693c0b0
PB
8492 fi
8493 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8495set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8498if ${ac_cv_prog_AS+:} false; then :
5213506e 8499 $as_echo_n "(cached) " >&6
ca9f4b81 8500else
2693c0b0
PB
8501 if test -n "$AS"; then
8502 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8503else
1c710c3c
DJ
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
5213506e 8509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8511 ac_cv_prog_AS="${ncn_progname}"
5213506e 8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8513 break 2
8514 fi
8515done
5213506e
RW
8516 done
8517IFS=$as_save_IFS
1c710c3c 8518
ca9f4b81
AO
8519fi
8520fi
1c710c3c 8521AS=$ac_cv_prog_AS
2693c0b0 8522if test -n "$AS"; then
5213506e
RW
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8524$as_echo "$AS" >&6; }
ca9f4b81 8525else
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
ca9f4b81 8528fi
1c710c3c 8529
5213506e 8530
2693c0b0
PB
8531 fi
8532 test -n "$ac_cv_prog_AS" && break
8533done
8534
8535if test -z "$ac_cv_prog_AS" ; then
8536 set dummy as
8537 if test $build = $host ; then
8538 AS="$2"
ca9f4b81 8539 else
2693c0b0 8540 AS="${ncn_tool_prefix}$2"
ca9f4b81 8541 fi
ca9f4b81
AO
8542fi
8543
278a7a38
AO
8544
8545
8546if test -n "$DLLTOOL"; then
8547 ac_cv_prog_DLLTOOL=$DLLTOOL
8548elif test -n "$ac_cv_prog_DLLTOOL"; then
8549 DLLTOOL=$ac_cv_prog_DLLTOOL
8550fi
8551
8552if test -n "$ac_cv_prog_DLLTOOL"; then
8553 for ncn_progname in dlltool; do
8554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8555set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8558if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8559 $as_echo_n "(cached) " >&6
278a7a38
AO
8560else
8561 if test -n "$DLLTOOL"; then
8562 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8563else
8564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
5213506e 8569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8571 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8573 break 2
8574 fi
8575done
5213506e
RW
8576 done
8577IFS=$as_save_IFS
278a7a38
AO
8578
8579fi
8580fi
8581DLLTOOL=$ac_cv_prog_DLLTOOL
8582if test -n "$DLLTOOL"; then
5213506e
RW
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8584$as_echo "$DLLTOOL" >&6; }
278a7a38 8585else
5213506e
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
278a7a38
AO
8588fi
8589
5213506e 8590
278a7a38
AO
8591 done
8592fi
8593
8594for ncn_progname in dlltool; do
2693c0b0
PB
8595 if test -n "$ncn_tool_prefix"; then
8596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8600if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8601 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8602else
8603 if test -n "$DLLTOOL"; then
8604 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8605else
1c710c3c
DJ
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
5213506e 8611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8613 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8615 break 2
8616 fi
8617done
5213506e
RW
8618 done
8619IFS=$as_save_IFS
1c710c3c 8620
ca9f4b81
AO
8621fi
8622fi
1c710c3c 8623DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8624if test -n "$DLLTOOL"; then
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8626$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8627else
5213506e
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
ca9f4b81
AO
8630fi
8631
5213506e 8632
2693c0b0
PB
8633 fi
8634 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8639if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8640 $as_echo_n "(cached) " >&6
ca9f4b81 8641else
2693c0b0
PB
8642 if test -n "$DLLTOOL"; then
8643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8644else
1c710c3c
DJ
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
5213506e 8650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8652 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8654 break 2
8655 fi
8656done
5213506e
RW
8657 done
8658IFS=$as_save_IFS
1c710c3c 8659
ca9f4b81
AO
8660fi
8661fi
1c710c3c 8662DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8663if test -n "$DLLTOOL"; then
5213506e
RW
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8665$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8666else
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
ca9f4b81 8669fi
1c710c3c 8670
5213506e 8671
2693c0b0
PB
8672 fi
8673 test -n "$ac_cv_prog_DLLTOOL" && break
8674done
8675
8676if test -z "$ac_cv_prog_DLLTOOL" ; then
8677 set dummy dlltool
8678 if test $build = $host ; then
8679 DLLTOOL="$2"
ca9f4b81 8680 else
2693c0b0 8681 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8682 fi
ca9f4b81
AO
8683fi
8684
278a7a38
AO
8685
8686
8687if test -n "$LD"; then
8688 ac_cv_prog_LD=$LD
8689elif test -n "$ac_cv_prog_LD"; then
8690 LD=$ac_cv_prog_LD
8691fi
8692
8693if test -n "$ac_cv_prog_LD"; then
8694 for ncn_progname in ld; do
8695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8699if ${ac_cv_prog_LD+:} false; then :
5213506e 8700 $as_echo_n "(cached) " >&6
278a7a38
AO
8701else
8702 if test -n "$LD"; then
8703 ac_cv_prog_LD="$LD" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
5213506e 8710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8712 ac_cv_prog_LD="${ncn_progname}"
5213506e 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8714 break 2
8715 fi
8716done
5213506e
RW
8717 done
8718IFS=$as_save_IFS
278a7a38
AO
8719
8720fi
8721fi
8722LD=$ac_cv_prog_LD
8723if test -n "$LD"; then
5213506e
RW
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8725$as_echo "$LD" >&6; }
278a7a38 8726else
5213506e
RW
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728$as_echo "no" >&6; }
278a7a38
AO
8729fi
8730
5213506e 8731
278a7a38
AO
8732 done
8733fi
8734
8735for ncn_progname in ld; do
2693c0b0
PB
8736 if test -n "$ncn_tool_prefix"; then
8737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8741if ${ac_cv_prog_LD+:} false; then :
5213506e 8742 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8743else
8744 if test -n "$LD"; then
8745 ac_cv_prog_LD="$LD" # Let the user override the test.
8746else
1c710c3c
DJ
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
5213506e 8752 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8754 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8756 break 2
8757 fi
8758done
5213506e
RW
8759 done
8760IFS=$as_save_IFS
1c710c3c 8761
ca9f4b81
AO
8762fi
8763fi
1c710c3c 8764LD=$ac_cv_prog_LD
ca9f4b81 8765if test -n "$LD"; then
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8767$as_echo "$LD" >&6; }
ca9f4b81 8768else
5213506e
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
ca9f4b81
AO
8771fi
8772
5213506e 8773
2693c0b0
PB
8774 fi
8775 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8777set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8780if ${ac_cv_prog_LD+:} false; then :
5213506e 8781 $as_echo_n "(cached) " >&6
ca9f4b81 8782else
2693c0b0
PB
8783 if test -n "$LD"; then
8784 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8785else
1c710c3c
DJ
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
5213506e 8791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8793 ac_cv_prog_LD="${ncn_progname}"
5213506e 8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8795 break 2
8796 fi
8797done
5213506e
RW
8798 done
8799IFS=$as_save_IFS
1c710c3c 8800
ca9f4b81
AO
8801fi
8802fi
1c710c3c 8803LD=$ac_cv_prog_LD
2693c0b0 8804if test -n "$LD"; then
5213506e
RW
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8806$as_echo "$LD" >&6; }
ca9f4b81 8807else
5213506e
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }
ca9f4b81 8810fi
1c710c3c 8811
5213506e 8812
2693c0b0
PB
8813 fi
8814 test -n "$ac_cv_prog_LD" && break
8815done
8816
8817if test -z "$ac_cv_prog_LD" ; then
8818 set dummy ld
8819 if test $build = $host ; then
8820 LD="$2"
ca9f4b81 8821 else
2693c0b0 8822 LD="${ncn_tool_prefix}$2"
ca9f4b81 8823 fi
ca9f4b81
AO
8824fi
8825
278a7a38
AO
8826
8827
8828if test -n "$LIPO"; then
8829 ac_cv_prog_LIPO=$LIPO
8830elif test -n "$ac_cv_prog_LIPO"; then
8831 LIPO=$ac_cv_prog_LIPO
8832fi
8833
8834if test -n "$ac_cv_prog_LIPO"; then
8835 for ncn_progname in lipo; do
8836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8837set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8840if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8841 $as_echo_n "(cached) " >&6
278a7a38
AO
8842else
8843 if test -n "$LIPO"; then
8844 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8845else
8846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847for as_dir in $PATH
8848do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
5213506e 8851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8853 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8855 break 2
8856 fi
8857done
5213506e
RW
8858 done
8859IFS=$as_save_IFS
278a7a38
AO
8860
8861fi
8862fi
8863LIPO=$ac_cv_prog_LIPO
8864if test -n "$LIPO"; then
5213506e
RW
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8866$as_echo "$LIPO" >&6; }
278a7a38 8867else
5213506e
RW
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869$as_echo "no" >&6; }
278a7a38
AO
8870fi
8871
5213506e 8872
278a7a38
AO
8873 done
8874fi
8875
8876for ncn_progname in lipo; do
2abefe3d
PB
8877 if test -n "$ncn_tool_prefix"; then
8878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8882if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8883 $as_echo_n "(cached) " >&6
2abefe3d
PB
8884else
8885 if test -n "$LIPO"; then
8886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8887else
1c710c3c
DJ
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
5213506e 8893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8895 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8897 break 2
8898 fi
8899done
5213506e
RW
8900 done
8901IFS=$as_save_IFS
1c710c3c 8902
2abefe3d
PB
8903fi
8904fi
1c710c3c 8905LIPO=$ac_cv_prog_LIPO
2abefe3d 8906if test -n "$LIPO"; then
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8908$as_echo "$LIPO" >&6; }
2abefe3d 8909else
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
2abefe3d
PB
8912fi
8913
5213506e 8914
2abefe3d
PB
8915 fi
8916 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8918set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8921if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8922 $as_echo_n "(cached) " >&6
2abefe3d
PB
8923else
8924 if test -n "$LIPO"; then
8925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8926else
1c710c3c
DJ
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
5213506e 8932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8934 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8936 break 2
8937 fi
8938done
5213506e
RW
8939 done
8940IFS=$as_save_IFS
1c710c3c 8941
2abefe3d
PB
8942fi
8943fi
1c710c3c 8944LIPO=$ac_cv_prog_LIPO
2abefe3d 8945if test -n "$LIPO"; then
5213506e
RW
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8947$as_echo "$LIPO" >&6; }
2abefe3d 8948else
5213506e
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950$as_echo "no" >&6; }
2abefe3d 8951fi
1c710c3c 8952
5213506e 8953
2abefe3d
PB
8954 fi
8955 test -n "$ac_cv_prog_LIPO" && break
8956done
8957
8958if test -z "$ac_cv_prog_LIPO" ; then
8959 set dummy lipo
8960 if test $build = $host ; then
8961 LIPO="$2"
8962 else
8963 LIPO="${ncn_tool_prefix}$2"
8964 fi
8965fi
8966
278a7a38
AO
8967
8968
8969if test -n "$NM"; then
8970 ac_cv_prog_NM=$NM
8971elif test -n "$ac_cv_prog_NM"; then
8972 NM=$ac_cv_prog_NM
8973fi
8974
8975if test -n "$ac_cv_prog_NM"; then
8976 for ncn_progname in nm; do
8977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8978set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8981if ${ac_cv_prog_NM+:} false; then :
5213506e 8982 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8983else
8984 if test -n "$NM"; then
8985 ac_cv_prog_NM="$NM" # Let the user override the test.
8986else
1c710c3c
DJ
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
5213506e 8992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8994 ac_cv_prog_NM="${ncn_progname}"
5213506e 8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8996 break 2
8997 fi
8998done
5213506e
RW
8999 done
9000IFS=$as_save_IFS
1c710c3c 9001
ca9f4b81
AO
9002fi
9003fi
1c710c3c 9004NM=$ac_cv_prog_NM
ca9f4b81 9005if test -n "$NM"; then
5213506e
RW
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9007$as_echo "$NM" >&6; }
ca9f4b81 9008else
5213506e
RW
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
ca9f4b81
AO
9011fi
9012
5213506e 9013
278a7a38
AO
9014 done
9015fi
9016
9017for ncn_progname in nm; do
9018 if test -n "$ncn_tool_prefix"; then
9019 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9023if ${ac_cv_prog_NM+:} false; then :
5213506e 9024 $as_echo_n "(cached) " >&6
ca9f4b81 9025else
2693c0b0
PB
9026 if test -n "$NM"; then
9027 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9028else
1c710c3c
DJ
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
5213506e 9034 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9036 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9038 break 2
9039 fi
9040done
5213506e
RW
9041 done
9042IFS=$as_save_IFS
1c710c3c 9043
ca9f4b81
AO
9044fi
9045fi
1c710c3c 9046NM=$ac_cv_prog_NM
2693c0b0 9047if test -n "$NM"; then
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9049$as_echo "$NM" >&6; }
ca9f4b81 9050else
5213506e
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
ca9f4b81 9053fi
1c710c3c 9054
5213506e 9055
2693c0b0 9056 fi
278a7a38
AO
9057 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9059set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9062if ${ac_cv_prog_NM+:} false; then :
5213506e 9063 $as_echo_n "(cached) " >&6
278a7a38
AO
9064else
9065 if test -n "$NM"; then
9066 ac_cv_prog_NM="$NM" # Let the user override the test.
9067else
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
5213506e 9073 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9075 ac_cv_prog_NM="${ncn_progname}"
5213506e 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9077 break 2
9078 fi
9079done
5213506e
RW
9080 done
9081IFS=$as_save_IFS
278a7a38
AO
9082
9083fi
9084fi
9085NM=$ac_cv_prog_NM
9086if test -n "$NM"; then
5213506e
RW
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9088$as_echo "$NM" >&6; }
278a7a38 9089else
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
278a7a38
AO
9092fi
9093
5213506e 9094
278a7a38
AO
9095 fi
9096 test -n "$ac_cv_prog_NM" && break
9097done
9098
9099if test -z "$ac_cv_prog_NM" ; then
9100 set dummy nm
9101 if test $build = $host ; then
9102 NM="$2"
9103 else
9104 NM="${ncn_tool_prefix}$2"
9105 fi
9106fi
9107
9108
9109
9110if test -n "$RANLIB"; then
9111 ac_cv_prog_RANLIB=$RANLIB
9112elif test -n "$ac_cv_prog_RANLIB"; then
9113 RANLIB=$ac_cv_prog_RANLIB
9114fi
9115
9116if test -n "$ac_cv_prog_RANLIB"; then
9117 for ncn_progname in ranlib; do
9118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9119set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9122if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9123 $as_echo_n "(cached) " >&6
278a7a38
AO
9124else
9125 if test -n "$RANLIB"; then
9126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
5213506e 9133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9135 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9137 break 2
9138 fi
9139done
5213506e
RW
9140 done
9141IFS=$as_save_IFS
278a7a38
AO
9142
9143fi
9144fi
9145RANLIB=$ac_cv_prog_RANLIB
9146if test -n "$RANLIB"; then
5213506e
RW
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9148$as_echo "$RANLIB" >&6; }
278a7a38 9149else
5213506e
RW
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
278a7a38
AO
9152fi
9153
5213506e 9154
278a7a38
AO
9155 done
9156fi
ca9f4b81 9157
278a7a38 9158for ncn_progname in ranlib; do
2693c0b0
PB
9159 if test -n "$ncn_tool_prefix"; then
9160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9164if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9165 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9166else
9167 if test -n "$RANLIB"; then
9168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9169else
1c710c3c
DJ
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
5213506e 9175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9177 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9179 break 2
9180 fi
9181done
5213506e
RW
9182 done
9183IFS=$as_save_IFS
1c710c3c 9184
ca9f4b81
AO
9185fi
9186fi
1c710c3c 9187RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9188if test -n "$RANLIB"; then
5213506e
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9190$as_echo "$RANLIB" >&6; }
ca9f4b81 9191else
5213506e
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
ca9f4b81
AO
9194fi
9195
5213506e 9196
2693c0b0
PB
9197 fi
9198 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9200set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9203if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9204 $as_echo_n "(cached) " >&6
ca9f4b81 9205else
2693c0b0
PB
9206 if test -n "$RANLIB"; then
9207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9208else
1c710c3c
DJ
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
5213506e 9214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9216 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9218 break 2
9219 fi
9220done
5213506e
RW
9221 done
9222IFS=$as_save_IFS
1c710c3c 9223
ca9f4b81
AO
9224fi
9225fi
1c710c3c 9226RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9227if test -n "$RANLIB"; then
5213506e
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9229$as_echo "$RANLIB" >&6; }
ca9f4b81 9230else
5213506e
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
ca9f4b81 9233fi
1c710c3c 9234
5213506e 9235
ca9f4b81 9236 fi
2693c0b0
PB
9237 test -n "$ac_cv_prog_RANLIB" && break
9238done
9239
9240if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9241 RANLIB="true"
ca9f4b81
AO
9242fi
9243
278a7a38
AO
9244
9245
9246if test -n "$STRIP"; then
9247 ac_cv_prog_STRIP=$STRIP
9248elif test -n "$ac_cv_prog_STRIP"; then
9249 STRIP=$ac_cv_prog_STRIP
9250fi
9251
9252if test -n "$ac_cv_prog_STRIP"; then
9253 for ncn_progname in strip; do
9254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9258if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9259 $as_echo_n "(cached) " >&6
278a7a38
AO
9260else
9261 if test -n "$STRIP"; then
9262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9263else
9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
5213506e 9269 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9271 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9273 break 2
9274 fi
9275done
5213506e
RW
9276 done
9277IFS=$as_save_IFS
278a7a38
AO
9278
9279fi
9280fi
9281STRIP=$ac_cv_prog_STRIP
9282if test -n "$STRIP"; then
5213506e
RW
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9284$as_echo "$STRIP" >&6; }
278a7a38 9285else
5213506e
RW
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287$as_echo "no" >&6; }
278a7a38
AO
9288fi
9289
5213506e 9290
278a7a38
AO
9291 done
9292fi
9293
9294for ncn_progname in strip; do
2abefe3d
PB
9295 if test -n "$ncn_tool_prefix"; then
9296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9300if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9301 $as_echo_n "(cached) " >&6
2abefe3d
PB
9302else
9303 if test -n "$STRIP"; then
9304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9305else
1c710c3c
DJ
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
5213506e 9311 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9313 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9315 break 2
9316 fi
9317done
5213506e
RW
9318 done
9319IFS=$as_save_IFS
1c710c3c 9320
2abefe3d
PB
9321fi
9322fi
1c710c3c 9323STRIP=$ac_cv_prog_STRIP
2abefe3d 9324if test -n "$STRIP"; then
5213506e
RW
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9326$as_echo "$STRIP" >&6; }
2abefe3d 9327else
5213506e
RW
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
2abefe3d
PB
9330fi
9331
5213506e 9332
2abefe3d
PB
9333 fi
9334 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9336set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9339if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9340 $as_echo_n "(cached) " >&6
2abefe3d
PB
9341else
9342 if test -n "$STRIP"; then
9343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9344else
1c710c3c
DJ
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
5213506e 9350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9352 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9354 break 2
9355 fi
9356done
5213506e
RW
9357 done
9358IFS=$as_save_IFS
1c710c3c 9359
2abefe3d
PB
9360fi
9361fi
1c710c3c 9362STRIP=$ac_cv_prog_STRIP
2abefe3d 9363if test -n "$STRIP"; then
5213506e
RW
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9365$as_echo "$STRIP" >&6; }
2abefe3d 9366else
5213506e
RW
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
2abefe3d 9369fi
1c710c3c 9370
5213506e 9371
2abefe3d
PB
9372 fi
9373 test -n "$ac_cv_prog_STRIP" && break
9374done
9375
9376if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9377 STRIP="true"
2abefe3d
PB
9378fi
9379
278a7a38
AO
9380
9381
9382if test -n "$WINDRES"; then
9383 ac_cv_prog_WINDRES=$WINDRES
9384elif test -n "$ac_cv_prog_WINDRES"; then
9385 WINDRES=$ac_cv_prog_WINDRES
9386fi
9387
9388if test -n "$ac_cv_prog_WINDRES"; then
9389 for ncn_progname in windres; do
9390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9391set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9394if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9395 $as_echo_n "(cached) " >&6
278a7a38
AO
9396else
9397 if test -n "$WINDRES"; then
9398 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9399else
9400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
5213506e 9405 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9407 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9409 break 2
9410 fi
9411done
5213506e
RW
9412 done
9413IFS=$as_save_IFS
278a7a38
AO
9414
9415fi
9416fi
9417WINDRES=$ac_cv_prog_WINDRES
9418if test -n "$WINDRES"; then
5213506e
RW
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9420$as_echo "$WINDRES" >&6; }
278a7a38 9421else
5213506e
RW
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423$as_echo "no" >&6; }
278a7a38
AO
9424fi
9425
5213506e 9426
278a7a38
AO
9427 done
9428fi
9429
9430for ncn_progname in windres; do
2693c0b0
PB
9431 if test -n "$ncn_tool_prefix"; then
9432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9436if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9437 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9438else
9439 if test -n "$WINDRES"; then
9440 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9441else
1c710c3c
DJ
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
5213506e 9447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9449 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9451 break 2
9452 fi
9453done
5213506e
RW
9454 done
9455IFS=$as_save_IFS
1c710c3c 9456
ca9f4b81
AO
9457fi
9458fi
1c710c3c 9459WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9460if test -n "$WINDRES"; then
5213506e
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9462$as_echo "$WINDRES" >&6; }
ca9f4b81 9463else
5213506e
RW
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
ca9f4b81
AO
9466fi
9467
5213506e 9468
2693c0b0
PB
9469 fi
9470 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9472set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9475if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9476 $as_echo_n "(cached) " >&6
ca9f4b81 9477else
2693c0b0
PB
9478 if test -n "$WINDRES"; then
9479 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9480else
1c710c3c
DJ
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
5213506e 9486 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9488 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9490 break 2
9491 fi
9492done
5213506e
RW
9493 done
9494IFS=$as_save_IFS
1c710c3c 9495
ca9f4b81
AO
9496fi
9497fi
1c710c3c 9498WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9499if test -n "$WINDRES"; then
5213506e
RW
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9501$as_echo "$WINDRES" >&6; }
ca9f4b81 9502else
5213506e
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
ca9f4b81 9505fi
1c710c3c 9506
5213506e 9507
2693c0b0
PB
9508 fi
9509 test -n "$ac_cv_prog_WINDRES" && break
9510done
9511
9512if test -z "$ac_cv_prog_WINDRES" ; then
9513 set dummy windres
9514 if test $build = $host ; then
9515 WINDRES="$2"
ca9f4b81 9516 else
2693c0b0 9517 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9518 fi
ca9f4b81
AO
9519fi
9520
278a7a38
AO
9521
9522
901119ae
KT
9523if test -n "$WINDMC"; then
9524 ac_cv_prog_WINDMC=$WINDMC
9525elif test -n "$ac_cv_prog_WINDMC"; then
9526 WINDMC=$ac_cv_prog_WINDMC
9527fi
9528
9529if test -n "$ac_cv_prog_WINDMC"; then
9530 for ncn_progname in windmc; do
9531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9532set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9535if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9536 $as_echo_n "(cached) " >&6
901119ae
KT
9537else
9538 if test -n "$WINDMC"; then
9539 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9540else
9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542for as_dir in $PATH
9543do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
5213506e 9546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9548 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9550 break 2
9551 fi
9552done
5213506e
RW
9553 done
9554IFS=$as_save_IFS
901119ae
KT
9555
9556fi
9557fi
9558WINDMC=$ac_cv_prog_WINDMC
9559if test -n "$WINDMC"; then
5213506e
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9561$as_echo "$WINDMC" >&6; }
901119ae 9562else
5213506e
RW
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
901119ae
KT
9565fi
9566
5213506e 9567
901119ae
KT
9568 done
9569fi
9570
9571for ncn_progname in windmc; do
9572 if test -n "$ncn_tool_prefix"; then
9573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9574set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9577if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9578 $as_echo_n "(cached) " >&6
901119ae
KT
9579else
9580 if test -n "$WINDMC"; then
9581 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9582else
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
5213506e 9588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9590 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9592 break 2
9593 fi
9594done
5213506e
RW
9595 done
9596IFS=$as_save_IFS
901119ae
KT
9597
9598fi
9599fi
9600WINDMC=$ac_cv_prog_WINDMC
9601if test -n "$WINDMC"; then
5213506e
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9603$as_echo "$WINDMC" >&6; }
901119ae 9604else
5213506e
RW
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606$as_echo "no" >&6; }
901119ae
KT
9607fi
9608
5213506e 9609
901119ae
KT
9610 fi
9611 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9613set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9616if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9617 $as_echo_n "(cached) " >&6
901119ae
KT
9618else
9619 if test -n "$WINDMC"; then
9620 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9621else
9622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
5213506e 9627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9629 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9631 break 2
9632 fi
9633done
5213506e
RW
9634 done
9635IFS=$as_save_IFS
901119ae
KT
9636
9637fi
9638fi
9639WINDMC=$ac_cv_prog_WINDMC
9640if test -n "$WINDMC"; then
5213506e
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9642$as_echo "$WINDMC" >&6; }
901119ae 9643else
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645$as_echo "no" >&6; }
901119ae
KT
9646fi
9647
5213506e 9648
901119ae
KT
9649 fi
9650 test -n "$ac_cv_prog_WINDMC" && break
9651done
9652
9653if test -z "$ac_cv_prog_WINDMC" ; then
9654 set dummy windmc
9655 if test $build = $host ; then
9656 WINDMC="$2"
9657 else
9658 WINDMC="${ncn_tool_prefix}$2"
9659 fi
9660fi
9661
9662
9663
278a7a38
AO
9664if test -n "$OBJCOPY"; then
9665 ac_cv_prog_OBJCOPY=$OBJCOPY
9666elif test -n "$ac_cv_prog_OBJCOPY"; then
9667 OBJCOPY=$ac_cv_prog_OBJCOPY
9668fi
9669
9670if test -n "$ac_cv_prog_OBJCOPY"; then
9671 for ncn_progname in objcopy; do
9672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9673set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9676if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9677 $as_echo_n "(cached) " >&6
278a7a38
AO
9678else
9679 if test -n "$OBJCOPY"; then
9680 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9681else
9682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683for as_dir in $PATH
9684do
9685 IFS=$as_save_IFS
9686 test -z "$as_dir" && as_dir=.
5213506e 9687 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9689 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9691 break 2
9692 fi
9693done
5213506e
RW
9694 done
9695IFS=$as_save_IFS
278a7a38
AO
9696
9697fi
9698fi
9699OBJCOPY=$ac_cv_prog_OBJCOPY
9700if test -n "$OBJCOPY"; then
5213506e
RW
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9702$as_echo "$OBJCOPY" >&6; }
278a7a38 9703else
5213506e
RW
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }
278a7a38
AO
9706fi
9707
5213506e 9708
278a7a38
AO
9709 done
9710fi
9711
9712for ncn_progname in objcopy; do
2693c0b0
PB
9713 if test -n "$ncn_tool_prefix"; then
9714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9718if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9719 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9720else
9721 if test -n "$OBJCOPY"; then
9722 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9723else
1c710c3c
DJ
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
5213506e 9729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9731 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9733 break 2
9734 fi
9735done
5213506e
RW
9736 done
9737IFS=$as_save_IFS
1c710c3c 9738
ca9f4b81
AO
9739fi
9740fi
1c710c3c 9741OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9742if test -n "$OBJCOPY"; then
5213506e
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9744$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9745else
5213506e
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
ca9f4b81
AO
9748fi
9749
5213506e 9750
2693c0b0
PB
9751 fi
9752 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9754set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9757if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9758 $as_echo_n "(cached) " >&6
ca9f4b81 9759else
2693c0b0
PB
9760 if test -n "$OBJCOPY"; then
9761 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9762else
1c710c3c
DJ
9763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
5213506e 9768 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9770 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9772 break 2
9773 fi
9774done
5213506e
RW
9775 done
9776IFS=$as_save_IFS
1c710c3c 9777
ca9f4b81
AO
9778fi
9779fi
1c710c3c 9780OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9781if test -n "$OBJCOPY"; then
5213506e
RW
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9783$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9784else
5213506e
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786$as_echo "no" >&6; }
ca9f4b81 9787fi
1c710c3c 9788
5213506e 9789
2693c0b0
PB
9790 fi
9791 test -n "$ac_cv_prog_OBJCOPY" && break
9792done
9793
9794if test -z "$ac_cv_prog_OBJCOPY" ; then
9795 set dummy objcopy
9796 if test $build = $host ; then
9797 OBJCOPY="$2"
ca9f4b81 9798 else
2693c0b0 9799 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9800 fi
ca9f4b81
AO
9801fi
9802
278a7a38
AO
9803
9804
9805if test -n "$OBJDUMP"; then
9806 ac_cv_prog_OBJDUMP=$OBJDUMP
9807elif test -n "$ac_cv_prog_OBJDUMP"; then
9808 OBJDUMP=$ac_cv_prog_OBJDUMP
9809fi
9810
9811if test -n "$ac_cv_prog_OBJDUMP"; then
9812 for ncn_progname in objdump; do
9813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9814set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9817if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9818 $as_echo_n "(cached) " >&6
278a7a38
AO
9819else
9820 if test -n "$OBJDUMP"; then
9821 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
5213506e 9828 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9830 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9832 break 2
9833 fi
9834done
5213506e
RW
9835 done
9836IFS=$as_save_IFS
278a7a38
AO
9837
9838fi
9839fi
9840OBJDUMP=$ac_cv_prog_OBJDUMP
9841if test -n "$OBJDUMP"; then
5213506e
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9843$as_echo "$OBJDUMP" >&6; }
278a7a38 9844else
5213506e
RW
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
278a7a38
AO
9847fi
9848
5213506e 9849
278a7a38
AO
9850 done
9851fi
9852
9853for ncn_progname in objdump; do
2693c0b0
PB
9854 if test -n "$ncn_tool_prefix"; then
9855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9856set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9859if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9860 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9861else
9862 if test -n "$OBJDUMP"; then
9863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9864else
1c710c3c
DJ
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
5213506e 9870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9872 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9874 break 2
9875 fi
9876done
5213506e
RW
9877 done
9878IFS=$as_save_IFS
1c710c3c 9879
ca9f4b81
AO
9880fi
9881fi
1c710c3c 9882OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9883if test -n "$OBJDUMP"; then
5213506e
RW
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9885$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9886else
5213506e
RW
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
ca9f4b81
AO
9889fi
9890
5213506e 9891
2693c0b0
PB
9892 fi
9893 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9895set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9898if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9899 $as_echo_n "(cached) " >&6
ca9f4b81 9900else
2693c0b0
PB
9901 if test -n "$OBJDUMP"; then
9902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9903else
1c710c3c
DJ
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
5213506e 9909 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9911 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9913 break 2
9914 fi
9915done
5213506e
RW
9916 done
9917IFS=$as_save_IFS
1c710c3c 9918
ca9f4b81
AO
9919fi
9920fi
1c710c3c 9921OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9922if test -n "$OBJDUMP"; then
5213506e
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9924$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9925else
5213506e
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
ca9f4b81 9928fi
1c710c3c 9929
5213506e 9930
2693c0b0
PB
9931 fi
9932 test -n "$ac_cv_prog_OBJDUMP" && break
9933done
9934
9935if test -z "$ac_cv_prog_OBJDUMP" ; then
9936 set dummy objdump
9937 if test $build = $host ; then
9938 OBJDUMP="$2"
ca9f4b81 9939 else
2693c0b0 9940 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9941 fi
ca9f4b81
AO
9942fi
9943
671aa708
NN
9944
9945
e4a9a572
IS
9946if test -n "$OTOOL"; then
9947 ac_cv_prog_OTOOL=$OTOOL
9948elif test -n "$ac_cv_prog_OTOOL"; then
9949 OTOOL=$ac_cv_prog_OTOOL
9950fi
9951
9952if test -n "$ac_cv_prog_OTOOL"; then
9953 for ncn_progname in otool; do
9954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_progname}; ac_word=$2
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957$as_echo_n "checking for $ac_word... " >&6; }
9958if ${ac_cv_prog_OTOOL+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960else
9961 if test -n "$OTOOL"; then
9962 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_OTOOL="${ncn_progname}"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976 done
9977IFS=$as_save_IFS
9978
9979fi
9980fi
9981OTOOL=$ac_cv_prog_OTOOL
9982if test -n "$OTOOL"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9984$as_echo "$OTOOL" >&6; }
9985else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987$as_echo "no" >&6; }
9988fi
9989
9990
9991 done
9992fi
9993
9994for ncn_progname in otool; do
9995 if test -n "$ncn_tool_prefix"; then
9996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9997set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if ${ac_cv_prog_OTOOL+:} false; then :
10001 $as_echo_n "(cached) " >&6
10002else
10003 if test -n "$OTOOL"; then
10004 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10005else
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017done
10018 done
10019IFS=$as_save_IFS
10020
10021fi
10022fi
10023OTOOL=$ac_cv_prog_OTOOL
10024if test -n "$OTOOL"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10026$as_echo "$OTOOL" >&6; }
10027else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
10030fi
10031
10032
10033 fi
10034 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10036set dummy ${ncn_progname}; ac_word=$2
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038$as_echo_n "checking for $ac_word... " >&6; }
10039if ${ac_cv_prog_OTOOL+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041else
10042 if test -n "$OTOOL"; then
10043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10044else
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052 ac_cv_prog_OTOOL="${ncn_progname}"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
10055 fi
10056done
10057 done
10058IFS=$as_save_IFS
10059
10060fi
10061fi
10062OTOOL=$ac_cv_prog_OTOOL
10063if test -n "$OTOOL"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10065$as_echo "$OTOOL" >&6; }
10066else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068$as_echo "no" >&6; }
10069fi
10070
10071
10072 fi
10073 test -n "$ac_cv_prog_OTOOL" && break
10074done
10075
10076if test -z "$ac_cv_prog_OTOOL" ; then
10077 set dummy otool
10078 if test $build = $host ; then
10079 OTOOL="$2"
10080 else
10081 OTOOL="${ncn_tool_prefix}$2"
10082 fi
10083fi
10084
10085
10086
e7a82751
RM
10087if test -n "$READELF"; then
10088 ac_cv_prog_READELF=$READELF
10089elif test -n "$ac_cv_prog_READELF"; then
10090 READELF=$ac_cv_prog_READELF
10091fi
10092
10093if test -n "$ac_cv_prog_READELF"; then
10094 for ncn_progname in readelf; do
10095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10096set dummy ${ncn_progname}; ac_word=$2
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10099if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10100 $as_echo_n "(cached) " >&6
10101else
10102 if test -n "$READELF"; then
10103 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10104else
10105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106for as_dir in $PATH
10107do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10112 ac_cv_prog_READELF="${ncn_progname}"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116done
10117 done
10118IFS=$as_save_IFS
10119
10120fi
10121fi
10122READELF=$ac_cv_prog_READELF
10123if test -n "$READELF"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10125$as_echo "$READELF" >&6; }
10126else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128$as_echo "no" >&6; }
10129fi
10130
10131
10132 done
10133fi
10134
10135for ncn_progname in readelf; do
10136 if test -n "$ncn_tool_prefix"; then
10137 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10141if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10142 $as_echo_n "(cached) " >&6
10143else
10144 if test -n "$READELF"; then
10145 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10154 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159 done
10160IFS=$as_save_IFS
10161
10162fi
10163fi
10164READELF=$ac_cv_prog_READELF
10165if test -n "$READELF"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10167$as_echo "$READELF" >&6; }
10168else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
10174 fi
10175 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10177set dummy ${ncn_progname}; ac_word=$2
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10180if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10181 $as_echo_n "(cached) " >&6
10182else
10183 if test -n "$READELF"; then
10184 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10193 ac_cv_prog_READELF="${ncn_progname}"
10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198 done
10199IFS=$as_save_IFS
10200
10201fi
10202fi
10203READELF=$ac_cv_prog_READELF
10204if test -n "$READELF"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10206$as_echo "$READELF" >&6; }
10207else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
10210fi
10211
10212
10213 fi
10214 test -n "$ac_cv_prog_READELF" && break
10215done
10216
10217if test -z "$ac_cv_prog_READELF" ; then
10218 set dummy readelf
10219 if test $build = $host ; then
10220 READELF="$2"
10221 else
10222 READELF="${ncn_tool_prefix}$2"
10223 fi
10224fi
10225
10226
10227
671aa708
NN
10228
10229
10230
2abefe3d 10231# Target tools.
1c710c3c 10232
5213506e
RW
10233# Check whether --with-build-time-tools was given.
10234if test "${with_build_time_tools+set}" = set; then :
10235 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10236 x/*) ;;
10237 *)
10238 with_build_time_tools=
5213506e
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10240$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10241 ;;
10242 esac
ca9f4b81 10243else
e8b05380 10244 with_build_time_tools=
5213506e
RW
10245fi
10246
ca9f4b81 10247
278a7a38
AO
10248
10249
10250if test -n "$CC_FOR_TARGET"; then
10251 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10252elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10253 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10254fi
10255
10256if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10257 for ncn_progname in cc gcc; do
10258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10259set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10262if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10263 $as_echo_n "(cached) " >&6
278a7a38
AO
10264else
10265 if test -n "$CC_FOR_TARGET"; then
10266 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
5213506e 10273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10275 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10277 break 2
10278 fi
10279done
5213506e
RW
10280 done
10281IFS=$as_save_IFS
278a7a38
AO
10282
10283fi
10284fi
10285CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10286if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10288$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10289else
5213506e
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
278a7a38
AO
10292fi
10293
5213506e 10294
278a7a38
AO
10295 done
10296fi
10297
10298if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10299 for ncn_progname in cc gcc; do
5213506e
RW
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10301$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10302 if test -x $with_build_time_tools/${ncn_progname}; then
10303 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305$as_echo "yes" >&6; }
72a7ab82 10306 break
e8b05380 10307 else
5213506e
RW
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309$as_echo "no" >&6; }
72a7ab82
AP
10310 fi
10311 done
4de997d1
PB
10312fi
10313
e8b05380
PB
10314if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10315 for ncn_progname in cc gcc; do
10316 if test -n "$ncn_target_tool_prefix"; then
10317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10321if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10322 $as_echo_n "(cached) " >&6
4de997d1
PB
10323else
10324 if test -n "$CC_FOR_TARGET"; then
10325 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10326else
1c710c3c
DJ
10327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
5213506e 10332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10334 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10336 break 2
10337 fi
10338done
5213506e
RW
10339 done
10340IFS=$as_save_IFS
1c710c3c 10341
4de997d1
PB
10342fi
10343fi
1c710c3c 10344CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10345if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10347$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10348else
5213506e
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
4de997d1
PB
10351fi
10352
5213506e 10353
e8b05380
PB
10354 fi
10355 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10357set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10360if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10361 $as_echo_n "(cached) " >&6
4de997d1 10362else
2693c0b0
PB
10363 if test -n "$CC_FOR_TARGET"; then
10364 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10365else
1c710c3c
DJ
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
5213506e 10371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10373 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10375 break 2
10376 fi
10377done
5213506e
RW
10378 done
10379IFS=$as_save_IFS
1c710c3c 10380
4de997d1
PB
10381fi
10382fi
1c710c3c 10383CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10384if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10386$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10387else
5213506e
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
4de997d1 10390fi
1c710c3c 10391
5213506e 10392
e8b05380
PB
10393 fi
10394 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10395 done
10396fi
1c710c3c 10397
2693c0b0
PB
10398if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10399 set dummy cc gcc
10400 if test $build = $target ; then
10401 CC_FOR_TARGET="$2"
4de997d1 10402 else
2693c0b0 10403 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10404 fi
1c00b503
PB
10405else
10406 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10407fi
10408
278a7a38
AO
10409
10410
10411if test -n "$CXX_FOR_TARGET"; then
10412 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10413elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10414 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10415fi
10416
10417if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10418 for ncn_progname in c++ g++ cxx gxx; do
10419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10420set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10423if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10424 $as_echo_n "(cached) " >&6
278a7a38
AO
10425else
10426 if test -n "$CXX_FOR_TARGET"; then
10427 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
5213506e 10434 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10436 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10438 break 2
10439 fi
10440done
5213506e
RW
10441 done
10442IFS=$as_save_IFS
278a7a38
AO
10443
10444fi
10445fi
10446CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10447if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10449$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10450else
5213506e
RW
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
278a7a38
AO
10453fi
10454
5213506e 10455
278a7a38
AO
10456 done
10457fi
10458
10459if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10460 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10462$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10463 if test -x $with_build_time_tools/${ncn_progname}; then
10464 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10466$as_echo "yes" >&6; }
e8b05380
PB
10467 break
10468 else
5213506e
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
e8b05380
PB
10471 fi
10472 done
10473fi
10474
10475if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10476 for ncn_progname in c++ g++ cxx gxx; do
10477 if test -n "$ncn_target_tool_prefix"; then
10478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10479set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10482if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10483 $as_echo_n "(cached) " >&6
4de997d1
PB
10484else
10485 if test -n "$CXX_FOR_TARGET"; then
10486 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10487else
1c710c3c
DJ
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
5213506e 10493 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10495 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10497 break 2
10498 fi
10499done
5213506e
RW
10500 done
10501IFS=$as_save_IFS
1c710c3c 10502
4de997d1
PB
10503fi
10504fi
1c710c3c 10505CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10506if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10508$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10509else
5213506e
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
4de997d1
PB
10512fi
10513
5213506e 10514
e8b05380
PB
10515 fi
10516 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10521if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10522 $as_echo_n "(cached) " >&6
4de997d1 10523else
2693c0b0
PB
10524 if test -n "$CXX_FOR_TARGET"; then
10525 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10526else
1c710c3c
DJ
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
5213506e 10532 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10534 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10536 break 2
10537 fi
10538done
5213506e
RW
10539 done
10540IFS=$as_save_IFS
1c710c3c 10541
4de997d1
PB
10542fi
10543fi
1c710c3c 10544CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10545if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10547$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10548else
5213506e
RW
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550$as_echo "no" >&6; }
4de997d1 10551fi
1c710c3c 10552
5213506e 10553
e8b05380
PB
10554 fi
10555 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10556 done
10557fi
1c710c3c 10558
2693c0b0
PB
10559if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10560 set dummy c++ g++ cxx gxx
10561 if test $build = $target ; then
10562 CXX_FOR_TARGET="$2"
4de997d1 10563 else
2693c0b0 10564 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10565 fi
1c00b503
PB
10566else
10567 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10568fi
10569
278a7a38
AO
10570
10571
10572if test -n "$GCC_FOR_TARGET"; then
10573 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10574elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10575 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10576fi
10577
10578if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10579 for ncn_progname in gcc; do
10580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10584if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10585 $as_echo_n "(cached) " >&6
278a7a38
AO
10586else
10587 if test -n "$GCC_FOR_TARGET"; then
10588 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
5213506e 10595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10597 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10599 break 2
10600 fi
10601done
5213506e
RW
10602 done
10603IFS=$as_save_IFS
278a7a38
AO
10604
10605fi
10606fi
10607GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10608if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10610$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10611else
5213506e
RW
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
278a7a38
AO
10614fi
10615
5213506e 10616
278a7a38
AO
10617 done
10618fi
10619
10620if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10621 for ncn_progname in gcc; do
5213506e
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10623$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10624 if test -x $with_build_time_tools/${ncn_progname}; then
10625 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627$as_echo "yes" >&6; }
e8b05380
PB
10628 break
10629 else
5213506e
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
e8b05380
PB
10632 fi
10633 done
10634fi
10635
10636if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10637 for ncn_progname in gcc; do
10638 if test -n "$ncn_target_tool_prefix"; then
10639 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10640set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10643if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10644 $as_echo_n "(cached) " >&6
ca9f4b81 10645else
e8b05380
PB
10646 if test -n "$GCC_FOR_TARGET"; then
10647 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10648else
1c710c3c
DJ
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
5213506e 10654 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10656 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10658 break 2
10659 fi
10660done
5213506e
RW
10661 done
10662IFS=$as_save_IFS
1c710c3c 10663
ca9f4b81
AO
10664fi
10665fi
1c710c3c 10666GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10667if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10669$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10670else
5213506e
RW
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672$as_echo "no" >&6; }
ca9f4b81
AO
10673fi
10674
5213506e 10675
e8b05380
PB
10676 fi
10677 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10679set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10682if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10683 $as_echo_n "(cached) " >&6
ca9f4b81 10684else
e8b05380
PB
10685 if test -n "$GCC_FOR_TARGET"; then
10686 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10687else
1c710c3c
DJ
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
5213506e 10693 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10695 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10697 break 2
10698 fi
10699done
5213506e
RW
10700 done
10701IFS=$as_save_IFS
1c710c3c 10702
ca9f4b81
AO
10703fi
10704fi
1c710c3c 10705GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10706if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10708$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10709else
5213506e
RW
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
ca9f4b81 10712fi
1c710c3c 10713
5213506e 10714
e8b05380
PB
10715 fi
10716 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10717 done
10718fi
1c710c3c 10719
e8b05380
PB
10720if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10721 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10722else
10723 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10724fi
10725
278a7a38
AO
10726
10727
278a7a38
AO
10728if test -n "$GFORTRAN_FOR_TARGET"; then
10729 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10730elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10731 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10732fi
10733
278a7a38
AO
10734if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10735 for ncn_progname in gfortran; do
10736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10737set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10740if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10741 $as_echo_n "(cached) " >&6
e8b05380 10742else
278a7a38
AO
10743 if test -n "$GFORTRAN_FOR_TARGET"; then
10744 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10745else
1c710c3c
DJ
10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747for as_dir in $PATH
10748do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
5213506e 10751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10753 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10755 break 2
10756 fi
10757done
5213506e
RW
10758 done
10759IFS=$as_save_IFS
1c710c3c 10760
e8b05380
PB
10761fi
10762fi
278a7a38
AO
10763GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10764if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10766$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10767else
5213506e
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
e8b05380 10770fi
1c710c3c 10771
5213506e 10772
e8b05380
PB
10773 done
10774fi
1c710c3c 10775
278a7a38 10776if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10777 for ncn_progname in gfortran; do
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10779$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10780 if test -x $with_build_time_tools/${ncn_progname}; then
10781 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783$as_echo "yes" >&6; }
e8b05380
PB
10784 break
10785 else
5213506e
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
e8b05380
PB
10788 fi
10789 done
10790fi
10791
10792if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10793 for ncn_progname in gfortran; do
10794 if test -n "$ncn_target_tool_prefix"; then
10795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10796set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10799if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10800 $as_echo_n "(cached) " >&6
e8b05380
PB
10801else
10802 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10803 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10804else
10805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806for as_dir in $PATH
10807do
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
5213506e 10810 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10812 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10814 break 2
10815 fi
10816done
5213506e
RW
10817 done
10818IFS=$as_save_IFS
1c710c3c 10819
e8b05380
PB
10820fi
10821fi
1c710c3c 10822GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10823if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10825$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10826else
5213506e
RW
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828$as_echo "no" >&6; }
e8b05380
PB
10829fi
10830
5213506e 10831
e8b05380
PB
10832 fi
10833 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10835set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10838if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10839 $as_echo_n "(cached) " >&6
e8b05380
PB
10840else
10841 if test -n "$GFORTRAN_FOR_TARGET"; then
10842 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10843else
1c710c3c
DJ
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
5213506e 10849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10851 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10853 break 2
10854 fi
10855done
5213506e
RW
10856 done
10857IFS=$as_save_IFS
1c710c3c 10858
e8b05380
PB
10859fi
10860fi
1c710c3c 10861GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10862if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10864$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10865else
5213506e
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
e8b05380 10868fi
1c710c3c 10869
5213506e 10870
e8b05380
PB
10871 fi
10872 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10873 done
10874fi
1c710c3c 10875
e8b05380
PB
10876if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10877 set dummy gfortran
2693c0b0 10878 if test $build = $target ; then
e8b05380 10879 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10880 else
e8b05380
PB
10881 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10882 fi
1c00b503
PB
10883else
10884 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10885fi
10886
10887
10888
632e2a07
ILT
10889if test -n "$GOC_FOR_TARGET"; then
10890 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10891elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10892 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10893fi
10894
10895if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10896 for ncn_progname in gccgo; do
10897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10898set dummy ${ncn_progname}; ac_word=$2
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10901if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10902 $as_echo_n "(cached) " >&6
10903else
10904 if test -n "$GOC_FOR_TARGET"; then
10905 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10906else
10907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908for as_dir in $PATH
10909do
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10914 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10917 fi
10918done
10919 done
10920IFS=$as_save_IFS
10921
10922fi
10923fi
10924GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10925if test -n "$GOC_FOR_TARGET"; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10927$as_echo "$GOC_FOR_TARGET" >&6; }
10928else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930$as_echo "no" >&6; }
10931fi
10932
10933
10934 done
10935fi
10936
10937if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10938 for ncn_progname in gccgo; do
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10940$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10941 if test -x $with_build_time_tools/${ncn_progname}; then
10942 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10944$as_echo "yes" >&6; }
10945 break
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948$as_echo "no" >&6; }
10949 fi
10950 done
10951fi
10952
10953if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10954 for ncn_progname in gccgo; do
10955 if test -n "$ncn_target_tool_prefix"; then
10956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10957set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10960if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10961 $as_echo_n "(cached) " >&6
10962else
10963 if test -n "$GOC_FOR_TARGET"; then
10964 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10965else
10966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10973 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977done
10978 done
10979IFS=$as_save_IFS
10980
10981fi
10982fi
10983GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10984if test -n "$GOC_FOR_TARGET"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10986$as_echo "$GOC_FOR_TARGET" >&6; }
10987else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
10990fi
10991
10992
10993 fi
10994 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10996set dummy ${ncn_progname}; ac_word=$2
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10998$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10999if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11000 $as_echo_n "(cached) " >&6
11001else
11002 if test -n "$GOC_FOR_TARGET"; then
11003 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11004else
11005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006for as_dir in $PATH
11007do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11012 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11015 fi
11016done
11017 done
11018IFS=$as_save_IFS
11019
11020fi
11021fi
11022GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11023if test -n "$GOC_FOR_TARGET"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11025$as_echo "$GOC_FOR_TARGET" >&6; }
11026else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028$as_echo "no" >&6; }
11029fi
11030
11031
11032 fi
11033 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11034 done
11035fi
11036
11037if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11038 set dummy gccgo
11039 if test $build = $target ; then
11040 GOC_FOR_TARGET="$2"
11041 else
11042 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11043 fi
11044else
11045 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11046fi
11047
11048
11049
b4c522fa
IB
11050if test -n "$GDC_FOR_TARGET"; then
11051 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11052elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11053 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11054fi
11055
11056if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11057 for ncn_progname in gdc; do
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059set dummy ${ncn_progname}; ac_word=$2
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11062if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11063 $as_echo_n "(cached) " >&6
11064else
11065 if test -n "$GDC_FOR_TARGET"; then
11066 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11067else
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11075 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11078 fi
11079done
11080 done
11081IFS=$as_save_IFS
11082
11083fi
11084fi
11085GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11086if test -n "$GDC_FOR_TARGET"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11088$as_echo "$GDC_FOR_TARGET" >&6; }
11089else
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091$as_echo "no" >&6; }
11092fi
11093
11094
11095 done
11096fi
11097
11098if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11099 for ncn_progname in gdc; do
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11102 if test -x $with_build_time_tools/${ncn_progname}; then
11103 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11105$as_echo "yes" >&6; }
11106 break
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
11110 fi
11111 done
11112fi
11113
11114if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11115 for ncn_progname in gdc; do
11116 if test -n "$ncn_target_tool_prefix"; then
11117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11121if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11122 $as_echo_n "(cached) " >&6
11123else
11124 if test -n "$GDC_FOR_TARGET"; then
11125 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11134 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138done
11139 done
11140IFS=$as_save_IFS
11141
11142fi
11143fi
11144GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11145if test -n "$GDC_FOR_TARGET"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11147$as_echo "$GDC_FOR_TARGET" >&6; }
11148else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150$as_echo "no" >&6; }
11151fi
11152
11153
11154 fi
11155 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11157set dummy ${ncn_progname}; ac_word=$2
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11160if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11161 $as_echo_n "(cached) " >&6
11162else
11163 if test -n "$GDC_FOR_TARGET"; then
11164 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11165else
11166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167for as_dir in $PATH
11168do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11173 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177done
11178 done
11179IFS=$as_save_IFS
11180
11181fi
11182fi
11183GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11184if test -n "$GDC_FOR_TARGET"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11186$as_echo "$GDC_FOR_TARGET" >&6; }
11187else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
11190fi
11191
11192
11193 fi
11194 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11195 done
11196fi
11197
11198if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11199 set dummy gdc
11200 if test $build = $target ; then
11201 GDC_FOR_TARGET="$2"
11202 else
11203 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11204 fi
11205else
11206 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11207fi
11208
11209
11210
e8b05380
PB
11211cat > conftest.c << \EOF
11212#ifdef __GNUC__
11213 gcc_yay;
11214#endif
11215EOF
11216if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11217 have_gcc_for_target=yes
11218else
11219 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11220 have_gcc_for_target=no
11221fi
11222rm conftest.c
11223
11224
11225
11226
11227if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11228 if test -n "$with_build_time_tools"; then
5213506e
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11230$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11231 if test -x $with_build_time_tools/ar; then
11232 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11233 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11235$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11236 else
5213506e
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
d1f8db0c 11239 fi
e8b05380
PB
11240 elif test $build != $host && test $have_gcc_for_target = yes; then
11241 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11242 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11243 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11244 fi
11245fi
3e19841a 11246if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11247 # Extract the first word of "ar", so it can be a program name with args.
11248set dummy ar; ac_word=$2
5213506e
RW
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11251if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11252 $as_echo_n "(cached) " >&6
e8b05380 11253else
1c710c3c
DJ
11254 case $AR_FOR_TARGET in
11255 [\\/]* | ?:[\\/]*)
e8b05380
PB
11256 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11257 ;;
e8b05380 11258 *)
1c710c3c
DJ
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $gcc_cv_tool_dirs
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
5213506e 11264 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11266 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11268 break 2
11269 fi
11270done
5213506e
RW
11271 done
11272IFS=$as_save_IFS
1c710c3c 11273
e8b05380
PB
11274 ;;
11275esac
11276fi
1c710c3c 11277AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11278if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11280$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11281else
5213506e
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
4de997d1
PB
11284fi
11285
5213506e 11286
e8b05380
PB
11287fi
11288if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11289
11290
11291if test -n "$AR_FOR_TARGET"; then
11292 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11293elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11294 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11295fi
11296
11297if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11298 for ncn_progname in ar; do
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11300set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11303if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11304 $as_echo_n "(cached) " >&6
278a7a38
AO
11305else
11306 if test -n "$AR_FOR_TARGET"; then
11307 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11308else
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
5213506e 11314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11316 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11318 break 2
11319 fi
11320done
5213506e
RW
11321 done
11322IFS=$as_save_IFS
278a7a38
AO
11323
11324fi
11325fi
11326AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11327if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11329$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11330else
5213506e
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332$as_echo "no" >&6; }
278a7a38
AO
11333fi
11334
5213506e 11335
278a7a38
AO
11336 done
11337fi
11338
11339if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11340 for ncn_progname in ar; do
5213506e
RW
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11342$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11343 if test -x $with_build_time_tools/${ncn_progname}; then
11344 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346$as_echo "yes" >&6; }
e8b05380
PB
11347 break
11348 else
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
e8b05380
PB
11351 fi
11352 done
11353fi
11354
11355if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11356 for ncn_progname in ar; do
11357 if test -n "$ncn_target_tool_prefix"; then
11358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11359set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11362if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11363 $as_echo_n "(cached) " >&6
4de997d1 11364else
e8b05380
PB
11365 if test -n "$AR_FOR_TARGET"; then
11366 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11367else
1c710c3c
DJ
11368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
5213506e 11373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11375 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11377 break 2
11378 fi
11379done
5213506e
RW
11380 done
11381IFS=$as_save_IFS
1c710c3c 11382
4de997d1
PB
11383fi
11384fi
1c710c3c 11385AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11386if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11388$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11389else
5213506e
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
4de997d1
PB
11392fi
11393
5213506e 11394
e8b05380
PB
11395 fi
11396 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11401if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11402 $as_echo_n "(cached) " >&6
e8b05380
PB
11403else
11404 if test -n "$AR_FOR_TARGET"; then
11405 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11406else
1c710c3c
DJ
11407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $PATH
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
5213506e 11412 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11414 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11416 break 2
11417 fi
11418done
5213506e
RW
11419 done
11420IFS=$as_save_IFS
1c710c3c 11421
e8b05380
PB
11422fi
11423fi
1c710c3c 11424AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11425if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11427$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11428else
5213506e
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
e8b05380 11431fi
1c710c3c 11432
5213506e 11433
e8b05380
PB
11434 fi
11435 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11436 done
11437fi
1c710c3c 11438
e8b05380
PB
11439if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11440 set dummy ar
11441 if test $build = $target ; then
11442 AR_FOR_TARGET="$2"
11443 else
11444 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11445 fi
1c00b503
PB
11446else
11447 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11448fi
11449
d1f8db0c
PB
11450else
11451 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11452fi
11453
11454
11455
11456
11457if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11458 if test -n "$with_build_time_tools"; then
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11460$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11461 if test -x $with_build_time_tools/as; then
11462 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11463 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11465$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11466 else
5213506e
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
d1f8db0c 11469 fi
e8b05380
PB
11470 elif test $build != $host && test $have_gcc_for_target = yes; then
11471 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11472 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11473 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11474 fi
11475fi
3e19841a 11476if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11477 # Extract the first word of "as", so it can be a program name with args.
11478set dummy as; ac_word=$2
5213506e
RW
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11481if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11482 $as_echo_n "(cached) " >&6
e8b05380 11483else
1c710c3c
DJ
11484 case $AS_FOR_TARGET in
11485 [\\/]* | ?:[\\/]*)
e8b05380
PB
11486 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11487 ;;
e8b05380 11488 *)
1c710c3c
DJ
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $gcc_cv_tool_dirs
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
5213506e 11494 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11496 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11498 break 2
11499 fi
11500done
5213506e
RW
11501 done
11502IFS=$as_save_IFS
1c710c3c 11503
e8b05380
PB
11504 ;;
11505esac
11506fi
1c710c3c 11507AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11508if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11510$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11511else
5213506e
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513$as_echo "no" >&6; }
e8b05380
PB
11514fi
11515
5213506e 11516
e8b05380
PB
11517fi
11518if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11519
11520
11521if test -n "$AS_FOR_TARGET"; then
11522 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11523elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11524 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11525fi
11526
11527if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11528 for ncn_progname in as; do
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11533if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11534 $as_echo_n "(cached) " >&6
278a7a38
AO
11535else
11536 if test -n "$AS_FOR_TARGET"; then
11537 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11538else
11539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
5213506e 11544 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11546 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11548 break 2
11549 fi
11550done
5213506e
RW
11551 done
11552IFS=$as_save_IFS
278a7a38
AO
11553
11554fi
11555fi
11556AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11557if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11559$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11560else
5213506e
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
278a7a38
AO
11563fi
11564
5213506e 11565
278a7a38
AO
11566 done
11567fi
11568
11569if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11570 for ncn_progname in as; do
5213506e
RW
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11572$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11573 if test -x $with_build_time_tools/${ncn_progname}; then
11574 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576$as_echo "yes" >&6; }
e8b05380
PB
11577 break
11578 else
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
e8b05380
PB
11581 fi
11582 done
11583fi
11584
11585if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11586 for ncn_progname in as; do
11587 if test -n "$ncn_target_tool_prefix"; then
11588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11592if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11593 $as_echo_n "(cached) " >&6
e8b05380
PB
11594else
11595 if test -n "$AS_FOR_TARGET"; then
11596 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11597else
1c710c3c
DJ
11598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599for as_dir in $PATH
11600do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
5213506e 11603 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11605 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11607 break 2
11608 fi
11609done
5213506e
RW
11610 done
11611IFS=$as_save_IFS
1c710c3c 11612
e8b05380
PB
11613fi
11614fi
1c710c3c 11615AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11616if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11618$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11619else
5213506e
RW
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
e8b05380
PB
11622fi
11623
5213506e 11624
e8b05380
PB
11625 fi
11626 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11628set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11631if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11632 $as_echo_n "(cached) " >&6
4de997d1 11633else
e8b05380
PB
11634 if test -n "$AS_FOR_TARGET"; then
11635 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11636else
1c710c3c
DJ
11637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
5213506e 11642 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11644 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11646 break 2
11647 fi
11648done
5213506e
RW
11649 done
11650IFS=$as_save_IFS
1c710c3c 11651
4de997d1
PB
11652fi
11653fi
1c710c3c 11654AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11655if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11657$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11658else
5213506e
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
4de997d1 11661fi
1c710c3c 11662
5213506e 11663
e8b05380
PB
11664 fi
11665 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11666 done
11667fi
1c710c3c 11668
e8b05380
PB
11669if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11670 set dummy as
11671 if test $build = $target ; then
11672 AS_FOR_TARGET="$2"
11673 else
11674 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11675 fi
1c00b503
PB
11676else
11677 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11678fi
2693c0b0 11679
d1f8db0c
PB
11680else
11681 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11682fi
11683
e8b05380
PB
11684
11685
11686
11687if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11688 if test -n "$with_build_time_tools"; then
5213506e
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11690$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11691 if test -x $with_build_time_tools/dlltool; then
11692 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11693 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11695$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11696 else
5213506e
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
d1f8db0c 11699 fi
e8b05380
PB
11700 elif test $build != $host && test $have_gcc_for_target = yes; then
11701 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11702 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11703 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11704 fi
11705fi
3e19841a 11706if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11707 # Extract the first word of "dlltool", so it can be a program name with args.
11708set dummy dlltool; ac_word=$2
5213506e
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11711if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11712 $as_echo_n "(cached) " >&6
4de997d1 11713else
1c710c3c
DJ
11714 case $DLLTOOL_FOR_TARGET in
11715 [\\/]* | ?:[\\/]*)
e8b05380
PB
11716 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11717 ;;
e8b05380 11718 *)
1c710c3c
DJ
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $gcc_cv_tool_dirs
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
5213506e 11724 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11726 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11728 break 2
11729 fi
11730done
5213506e
RW
11731 done
11732IFS=$as_save_IFS
1c710c3c 11733
e8b05380
PB
11734 ;;
11735esac
4de997d1 11736fi
1c710c3c 11737DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11738if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11740$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11741else
5213506e
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
4de997d1
PB
11744fi
11745
5213506e 11746
e8b05380
PB
11747fi
11748if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11749
11750
11751if test -n "$DLLTOOL_FOR_TARGET"; then
11752 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11753elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11754 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11755fi
11756
11757if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11758 for ncn_progname in dlltool; do
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11763if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11764 $as_echo_n "(cached) " >&6
278a7a38
AO
11765else
11766 if test -n "$DLLTOOL_FOR_TARGET"; then
11767 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11768else
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
5213506e 11774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11776 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11778 break 2
11779 fi
11780done
5213506e
RW
11781 done
11782IFS=$as_save_IFS
278a7a38
AO
11783
11784fi
11785fi
11786DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11787if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11789$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11790else
5213506e
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
278a7a38
AO
11793fi
11794
5213506e 11795
278a7a38
AO
11796 done
11797fi
11798
11799if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11800 for ncn_progname in dlltool; do
5213506e
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11802$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11803 if test -x $with_build_time_tools/${ncn_progname}; then
11804 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806$as_echo "yes" >&6; }
e8b05380
PB
11807 break
11808 else
5213506e
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
e8b05380
PB
11811 fi
11812 done
11813fi
11814
11815if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11816 for ncn_progname in dlltool; do
11817 if test -n "$ncn_target_tool_prefix"; then
11818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11819set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11822if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11823 $as_echo_n "(cached) " >&6
4de997d1 11824else
e8b05380
PB
11825 if test -n "$DLLTOOL_FOR_TARGET"; then
11826 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11827else
1c710c3c
DJ
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
5213506e 11833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11835 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11837 break 2
11838 fi
11839done
5213506e
RW
11840 done
11841IFS=$as_save_IFS
1c710c3c 11842
4de997d1
PB
11843fi
11844fi
1c710c3c 11845DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11846if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11848$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11849else
5213506e
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
4de997d1 11852fi
4de997d1 11853
5213506e 11854
e8b05380
PB
11855 fi
11856 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11858set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11861if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11862 $as_echo_n "(cached) " >&6
4de997d1 11863else
e8b05380
PB
11864 if test -n "$DLLTOOL_FOR_TARGET"; then
11865 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11866else
1c710c3c
DJ
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
5213506e 11872 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11874 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11876 break 2
11877 fi
11878done
5213506e
RW
11879 done
11880IFS=$as_save_IFS
1c710c3c 11881
4de997d1
PB
11882fi
11883fi
1c710c3c 11884DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11885if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11887$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11888else
5213506e
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
4de997d1 11891fi
1c710c3c 11892
5213506e 11893
e8b05380
PB
11894 fi
11895 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11896 done
11897fi
1c710c3c 11898
e8b05380
PB
11899if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11900 set dummy dlltool
11901 if test $build = $target ; then
11902 DLLTOOL_FOR_TARGET="$2"
11903 else
11904 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11905 fi
1c00b503
PB
11906else
11907 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11908fi
11909
d1f8db0c
PB
11910else
11911 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11912fi
11913
4de997d1 11914
e8b05380
PB
11915
11916
11917if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11918 if test -n "$with_build_time_tools"; then
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11920$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11921 if test -x $with_build_time_tools/ld; then
11922 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11923 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11925$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11926 else
5213506e
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
d1f8db0c 11929 fi
e8b05380
PB
11930 elif test $build != $host && test $have_gcc_for_target = yes; then
11931 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11932 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11933 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11934 fi
e8b05380 11935fi
3e19841a 11936if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11937 # Extract the first word of "ld", so it can be a program name with args.
11938set dummy ld; ac_word=$2
5213506e
RW
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11941if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11942 $as_echo_n "(cached) " >&6
4de997d1 11943else
1c710c3c
DJ
11944 case $LD_FOR_TARGET in
11945 [\\/]* | ?:[\\/]*)
e8b05380
PB
11946 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11947 ;;
e8b05380 11948 *)
1c710c3c
DJ
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $gcc_cv_tool_dirs
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
5213506e 11954 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11956 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11958 break 2
11959 fi
11960done
5213506e
RW
11961 done
11962IFS=$as_save_IFS
1c710c3c 11963
e8b05380
PB
11964 ;;
11965esac
4de997d1 11966fi
1c710c3c 11967LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11968if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11970$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11971else
5213506e
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
4de997d1 11974fi
2693c0b0 11975
5213506e 11976
e8b05380
PB
11977fi
11978if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11979
11980
11981if test -n "$LD_FOR_TARGET"; then
11982 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11983elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11984 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11985fi
11986
11987if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11988 for ncn_progname in ld; do
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11993if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11994 $as_echo_n "(cached) " >&6
278a7a38
AO
11995else
11996 if test -n "$LD_FOR_TARGET"; then
11997 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11998else
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
12001do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
5213506e 12004 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12006 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12008 break 2
12009 fi
12010done
5213506e
RW
12011 done
12012IFS=$as_save_IFS
278a7a38
AO
12013
12014fi
12015fi
12016LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12017if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12019$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 12020else
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
278a7a38
AO
12023fi
12024
5213506e 12025
278a7a38
AO
12026 done
12027fi
12028
12029if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12030 for ncn_progname in ld; do
5213506e
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12032$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12033 if test -x $with_build_time_tools/${ncn_progname}; then
12034 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036$as_echo "yes" >&6; }
e8b05380
PB
12037 break
12038 else
5213506e
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
e8b05380
PB
12041 fi
12042 done
ca9f4b81
AO
12043fi
12044
e8b05380
PB
12045if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12046 for ncn_progname in ld; do
12047 if test -n "$ncn_target_tool_prefix"; then
12048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12049set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12052if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12053 $as_echo_n "(cached) " >&6
ca9f4b81 12054else
4de997d1
PB
12055 if test -n "$LD_FOR_TARGET"; then
12056 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12057else
1c710c3c
DJ
12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059for as_dir in $PATH
12060do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
5213506e 12063 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12065 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12067 break 2
12068 fi
12069done
5213506e
RW
12070 done
12071IFS=$as_save_IFS
1c710c3c 12072
ca9f4b81
AO
12073fi
12074fi
1c710c3c 12075LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 12076if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12078$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12079else
5213506e
RW
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
ca9f4b81
AO
12082fi
12083
5213506e 12084
e8b05380
PB
12085 fi
12086 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12088set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12091if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12092 $as_echo_n "(cached) " >&6
ca9f4b81 12093else
2693c0b0
PB
12094 if test -n "$LD_FOR_TARGET"; then
12095 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12096else
1c710c3c
DJ
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
5213506e 12102 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12104 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12106 break 2
12107 fi
12108done
5213506e
RW
12109 done
12110IFS=$as_save_IFS
1c710c3c 12111
ca9f4b81
AO
12112fi
12113fi
1c710c3c 12114LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12115if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12117$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12118else
5213506e
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
ca9f4b81 12121fi
1c710c3c 12122
5213506e 12123
e8b05380
PB
12124 fi
12125 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12126 done
12127fi
1c710c3c 12128
2693c0b0
PB
12129if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12130 set dummy ld
12131 if test $build = $target ; then
12132 LD_FOR_TARGET="$2"
ca9f4b81 12133 else
2693c0b0 12134 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12135 fi
1c00b503
PB
12136else
12137 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12138fi
12139
d1f8db0c
PB
12140else
12141 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12142fi
12143
12144
12145
12146
12147if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12148 if test -n "$with_build_time_tools"; then
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12150$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12151 if test -x $with_build_time_tools/lipo; then
12152 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12153 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12155$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12156 else
5213506e
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
d1f8db0c 12159 fi
e8b05380
PB
12160 elif test $build != $host && test $have_gcc_for_target = yes; then
12161 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12162 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12163 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12164 fi
12165fi
278a7a38
AO
12166if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12167 # Extract the first word of "lipo", so it can be a program name with args.
12168set dummy lipo; ac_word=$2
5213506e
RW
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12171if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12172 $as_echo_n "(cached) " >&6
278a7a38
AO
12173else
12174 case $LIPO_FOR_TARGET in
12175 [\\/]* | ?:[\\/]*)
12176 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12177 ;;
12178 *)
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $gcc_cv_tool_dirs
12181do
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
5213506e 12184 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12186 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12188 break 2
12189 fi
12190done
5213506e
RW
12191 done
12192IFS=$as_save_IFS
278a7a38
AO
12193
12194 ;;
12195esac
12196fi
12197LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12198if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12200$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12201else
5213506e
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
278a7a38
AO
12204fi
12205
5213506e 12206
278a7a38
AO
12207fi
12208if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12209
12210
12211if test -n "$LIPO_FOR_TARGET"; then
12212 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12213elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12214 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12215fi
12216
12217if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12218 for ncn_progname in lipo; do
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12220set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12223if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12224 $as_echo_n "(cached) " >&6
e8b05380 12225else
278a7a38
AO
12226 if test -n "$LIPO_FOR_TARGET"; then
12227 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
1c710c3c
DJ
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
5213506e 12234 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12236 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12238 break 2
12239 fi
12240done
5213506e
RW
12241 done
12242IFS=$as_save_IFS
1c710c3c 12243
e8b05380 12244fi
278a7a38
AO
12245fi
12246LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12247if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12249$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12250else
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
e8b05380
PB
12253fi
12254
5213506e 12255
278a7a38 12256 done
e8b05380 12257fi
278a7a38
AO
12258
12259if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12260 for ncn_progname in lipo; do
5213506e
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12262$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12263 if test -x $with_build_time_tools/${ncn_progname}; then
12264 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266$as_echo "yes" >&6; }
e8b05380
PB
12267 break
12268 else
5213506e
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
e8b05380
PB
12271 fi
12272 done
12273fi
12274
12275if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12276 for ncn_progname in lipo; do
12277 if test -n "$ncn_target_tool_prefix"; then
12278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12279set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12282if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12283 $as_echo_n "(cached) " >&6
040b1c5a
GK
12284else
12285 if test -n "$LIPO_FOR_TARGET"; then
12286 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12287else
1c710c3c
DJ
12288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
5213506e 12293 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12295 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12297 break 2
12298 fi
12299done
5213506e
RW
12300 done
12301IFS=$as_save_IFS
1c710c3c 12302
040b1c5a
GK
12303fi
12304fi
1c710c3c 12305LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12306if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12308$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12309else
5213506e
RW
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
040b1c5a
GK
12312fi
12313
5213506e 12314
e8b05380
PB
12315 fi
12316 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12318set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12321if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12322 $as_echo_n "(cached) " >&6
040b1c5a
GK
12323else
12324 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12325 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12326else
1c710c3c
DJ
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
5213506e 12332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12334 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12336 break 2
12337 fi
12338done
5213506e
RW
12339 done
12340IFS=$as_save_IFS
1c710c3c 12341
040b1c5a
GK
12342fi
12343fi
1c710c3c 12344LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12345if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12347$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12348else
5213506e
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
040b1c5a 12351fi
1c710c3c 12352
5213506e 12353
e8b05380
PB
12354 fi
12355 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12356 done
12357fi
1c710c3c 12358
040b1c5a
GK
12359if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12360 set dummy lipo
12361 if test $build = $target ; then
12362 LIPO_FOR_TARGET="$2"
12363 else
12364 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12365 fi
1c00b503
PB
12366else
12367 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12368fi
12369
d1f8db0c
PB
12370else
12371 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12372fi
12373
12374
12375
12376
12377if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12378 if test -n "$with_build_time_tools"; then
5213506e
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12380$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12381 if test -x $with_build_time_tools/nm; then
12382 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12383 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12385$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12386 else
5213506e
RW
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
d1f8db0c 12389 fi
e8b05380
PB
12390 elif test $build != $host && test $have_gcc_for_target = yes; then
12391 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12392 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12393 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12394 fi
12395fi
3e19841a 12396if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12397 # Extract the first word of "nm", so it can be a program name with args.
12398set dummy nm; ac_word=$2
5213506e
RW
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12401if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12402 $as_echo_n "(cached) " >&6
e8b05380 12403else
1c710c3c
DJ
12404 case $NM_FOR_TARGET in
12405 [\\/]* | ?:[\\/]*)
e8b05380
PB
12406 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12407 ;;
e8b05380 12408 *)
1c710c3c
DJ
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $gcc_cv_tool_dirs
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
5213506e 12414 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12416 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12418 break 2
12419 fi
12420done
5213506e
RW
12421 done
12422IFS=$as_save_IFS
1c710c3c 12423
e8b05380
PB
12424 ;;
12425esac
12426fi
1c710c3c 12427NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12428if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12430$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12431else
5213506e
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
e8b05380
PB
12434fi
12435
5213506e 12436
e8b05380
PB
12437fi
12438if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12439
12440
12441if test -n "$NM_FOR_TARGET"; then
12442 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12443elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12444 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12445fi
12446
12447if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12448 for ncn_progname in nm; do
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12453if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12454 $as_echo_n "(cached) " >&6
278a7a38
AO
12455else
12456 if test -n "$NM_FOR_TARGET"; then
12457 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12458else
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
5213506e 12464 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12466 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12468 break 2
12469 fi
12470done
5213506e
RW
12471 done
12472IFS=$as_save_IFS
278a7a38
AO
12473
12474fi
12475fi
12476NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12477if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12479$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12480else
5213506e
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
278a7a38
AO
12483fi
12484
5213506e 12485
278a7a38
AO
12486 done
12487fi
12488
12489if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12490 for ncn_progname in nm; do
5213506e
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12492$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12493 if test -x $with_build_time_tools/${ncn_progname}; then
12494 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496$as_echo "yes" >&6; }
e8b05380
PB
12497 break
12498 else
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500$as_echo "no" >&6; }
e8b05380
PB
12501 fi
12502 done
12503fi
12504
12505if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12506 for ncn_progname in nm; do
12507 if test -n "$ncn_target_tool_prefix"; then
12508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12509set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12512if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12513 $as_echo_n "(cached) " >&6
ca9f4b81 12514else
4de997d1
PB
12515 if test -n "$NM_FOR_TARGET"; then
12516 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12517else
1c710c3c
DJ
12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519for as_dir in $PATH
12520do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
5213506e 12523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12525 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12527 break 2
12528 fi
12529done
5213506e
RW
12530 done
12531IFS=$as_save_IFS
1c710c3c 12532
ca9f4b81
AO
12533fi
12534fi
1c710c3c 12535NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12536if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12538$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12539else
5213506e
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
ca9f4b81
AO
12542fi
12543
5213506e 12544
e8b05380
PB
12545 fi
12546 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12548set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12551if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12552 $as_echo_n "(cached) " >&6
ca9f4b81 12553else
2693c0b0
PB
12554 if test -n "$NM_FOR_TARGET"; then
12555 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12556else
1c710c3c
DJ
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
5213506e 12562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12564 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12566 break 2
12567 fi
12568done
5213506e
RW
12569 done
12570IFS=$as_save_IFS
1c710c3c 12571
ca9f4b81
AO
12572fi
12573fi
1c710c3c 12574NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12575if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12577$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12578else
5213506e
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
ca9f4b81 12581fi
1c710c3c 12582
5213506e 12583
e8b05380
PB
12584 fi
12585 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12586 done
12587fi
1c710c3c 12588
2693c0b0
PB
12589if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12590 set dummy nm
12591 if test $build = $target ; then
12592 NM_FOR_TARGET="$2"
ca9f4b81 12593 else
2693c0b0 12594 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12595 fi
1c00b503
PB
12596else
12597 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12598fi
12599
d1f8db0c
PB
12600else
12601 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12602fi
12603
12604
12605
12606
9bccfdf5
AP
12607if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12608 if test -n "$with_build_time_tools"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12610$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12611 if test -x $with_build_time_tools/objcopy; then
12612 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12613 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12615$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619 fi
12620 elif test $build != $host && test $have_gcc_for_target = yes; then
12621 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12622 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12623 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12624 fi
12625fi
12626if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12627 # Extract the first word of "objcopy", so it can be a program name with args.
12628set dummy objcopy; ac_word=$2
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12631if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12632 $as_echo_n "(cached) " >&6
12633else
12634 case $OBJCOPY_FOR_TARGET in
12635 [\\/]* | ?:[\\/]*)
12636 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12637 ;;
12638 *)
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $gcc_cv_tool_dirs
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12646 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650done
12651 done
12652IFS=$as_save_IFS
12653
12654 ;;
12655esac
12656fi
12657OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12658if test -n "$OBJCOPY_FOR_TARGET"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12660$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12661else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664fi
12665
12666
12667fi
12668if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12669
12670
12671if test -n "$OBJCOPY_FOR_TARGET"; then
12672 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12673elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12674 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12675fi
12676
12677if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12678 for ncn_progname in objcopy; do
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12680set dummy ${ncn_progname}; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12683if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12684 $as_echo_n "(cached) " >&6
12685else
12686 if test -n "$OBJCOPY_FOR_TARGET"; then
12687 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12696 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700done
12701 done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12707if test -n "$OBJCOPY_FOR_TARGET"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12709$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715
12716 done
12717fi
12718
12719if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12720 for ncn_progname in objcopy; do
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12722$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12723 if test -x $with_build_time_tools/${ncn_progname}; then
12724 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12726$as_echo "yes" >&6; }
12727 break
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731 fi
12732 done
12733fi
12734
12735if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12736 for ncn_progname in objcopy; do
12737 if test -n "$ncn_target_tool_prefix"; then
12738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12739set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12742if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12743 $as_echo_n "(cached) " >&6
12744else
12745 if test -n "$OBJCOPY_FOR_TARGET"; then
12746 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12747else
12748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749for as_dir in $PATH
12750do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12755 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759done
12760 done
12761IFS=$as_save_IFS
12762
12763fi
12764fi
12765OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12766if test -n "$OBJCOPY_FOR_TARGET"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12768$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12769else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772fi
12773
12774
12775 fi
12776 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12778set dummy ${ncn_progname}; ac_word=$2
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12781if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12782 $as_echo_n "(cached) " >&6
12783else
12784 if test -n "$OBJCOPY_FOR_TARGET"; then
12785 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12794 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802fi
12803fi
12804OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12805if test -n "$OBJCOPY_FOR_TARGET"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12807$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12808else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813
12814 fi
12815 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12816 done
12817fi
12818
12819if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12820 set dummy objcopy
12821 if test $build = $target ; then
12822 OBJCOPY_FOR_TARGET="$2"
12823 else
12824 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12825 fi
12826else
12827 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12828fi
12829
12830else
12831 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12832fi
12833
12834
12835
12836
e8b05380
PB
12837if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12838 if test -n "$with_build_time_tools"; then
5213506e
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12840$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12841 if test -x $with_build_time_tools/objdump; then
12842 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12843 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12845$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12846 else
5213506e
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848$as_echo "no" >&6; }
d1f8db0c 12849 fi
e8b05380
PB
12850 elif test $build != $host && test $have_gcc_for_target = yes; then
12851 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12852 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12853 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12854 fi
12855fi
3e19841a 12856if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12857 # Extract the first word of "objdump", so it can be a program name with args.
12858set dummy objdump; ac_word=$2
5213506e
RW
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12861if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12862 $as_echo_n "(cached) " >&6
e8b05380 12863else
1c710c3c
DJ
12864 case $OBJDUMP_FOR_TARGET in
12865 [\\/]* | ?:[\\/]*)
e8b05380
PB
12866 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12867 ;;
e8b05380 12868 *)
1c710c3c
DJ
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $gcc_cv_tool_dirs
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
5213506e 12874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12876 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12878 break 2
12879 fi
12880done
5213506e
RW
12881 done
12882IFS=$as_save_IFS
1c710c3c 12883
e8b05380
PB
12884 ;;
12885esac
12886fi
1c710c3c 12887OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12888if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12890$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12891else
5213506e
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
e8b05380
PB
12894fi
12895
5213506e 12896
e8b05380
PB
12897fi
12898if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12899
12900
12901if test -n "$OBJDUMP_FOR_TARGET"; then
12902 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12903elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12904 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12905fi
12906
12907if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12908 for ncn_progname in objdump; do
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12913if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12914 $as_echo_n "(cached) " >&6
278a7a38
AO
12915else
12916 if test -n "$OBJDUMP_FOR_TARGET"; then
12917 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
5213506e 12924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12926 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12928 break 2
12929 fi
12930done
5213506e
RW
12931 done
12932IFS=$as_save_IFS
278a7a38
AO
12933
12934fi
12935fi
12936OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12937if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12939$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12940else
5213506e
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
278a7a38
AO
12943fi
12944
5213506e 12945
278a7a38
AO
12946 done
12947fi
12948
12949if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12950 for ncn_progname in objdump; do
5213506e
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12952$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12953 if test -x $with_build_time_tools/${ncn_progname}; then
12954 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956$as_echo "yes" >&6; }
e8b05380
PB
12957 break
12958 else
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
e8b05380
PB
12961 fi
12962 done
12963fi
12964
12965if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12966 for ncn_progname in objdump; do
12967 if test -n "$ncn_target_tool_prefix"; then
12968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12969set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12972if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12973 $as_echo_n "(cached) " >&6
d739199a
DJ
12974else
12975 if test -n "$OBJDUMP_FOR_TARGET"; then
12976 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12977else
1c710c3c
DJ
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
5213506e 12983 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12985 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12987 break 2
12988 fi
12989done
5213506e
RW
12990 done
12991IFS=$as_save_IFS
1c710c3c 12992
d739199a
DJ
12993fi
12994fi
1c710c3c 12995OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12996if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12998$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12999else
5213506e
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
d739199a
DJ
13002fi
13003
5213506e 13004
e8b05380
PB
13005 fi
13006 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 13008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13011if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13012 $as_echo_n "(cached) " >&6
d739199a
DJ
13013else
13014 if test -n "$OBJDUMP_FOR_TARGET"; then
13015 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13016else
1c710c3c
DJ
13017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $PATH
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
5213506e 13022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13024 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13026 break 2
13027 fi
13028done
5213506e
RW
13029 done
13030IFS=$as_save_IFS
1c710c3c 13031
d739199a
DJ
13032fi
13033fi
1c710c3c 13034OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13035if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13037$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13038else
5213506e
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
d739199a 13041fi
1c710c3c 13042
5213506e 13043
e8b05380
PB
13044 fi
13045 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13046 done
13047fi
1c710c3c 13048
d739199a
DJ
13049if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13050 set dummy objdump
13051 if test $build = $target ; then
13052 OBJDUMP_FOR_TARGET="$2"
13053 else
13054 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13055 fi
1c00b503
PB
13056else
13057 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
13058fi
13059
d1f8db0c
PB
13060else
13061 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
13062fi
13063
13064
13065
13066
e4a9a572
IS
13067if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13068 if test -n "$with_build_time_tools"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13070$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13071 if test -x $with_build_time_tools/otool; then
13072 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13073 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13075$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078$as_echo "no" >&6; }
13079 fi
13080 elif test $build != $host && test $have_gcc_for_target = yes; then
13081 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13082 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13083 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13084 fi
13085fi
13086if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13087 # Extract the first word of "otool", so it can be a program name with args.
13088set dummy otool; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
13091if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093else
13094 case $OTOOL_FOR_TARGET in
13095 [\\/]* | ?:[\\/]*)
13096 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13097 ;;
13098 *)
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $gcc_cv_tool_dirs
13101do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13109 fi
13110done
13111 done
13112IFS=$as_save_IFS
13113
13114 ;;
13115esac
13116fi
13117OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13118if test -n "$OTOOL_FOR_TARGET"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13120$as_echo "$OTOOL_FOR_TARGET" >&6; }
13121else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
13124fi
13125
13126
13127fi
13128if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13129
13130
13131if test -n "$OTOOL_FOR_TARGET"; then
13132 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13133elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13134 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13135fi
13136
13137if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13138 for ncn_progname in otool; do
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140set dummy ${ncn_progname}; ac_word=$2
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
13143if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145else
13146 if test -n "$OTOOL_FOR_TARGET"; then
13147 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13148else
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160done
13161 done
13162IFS=$as_save_IFS
13163
13164fi
13165fi
13166OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13167if test -n "$OTOOL_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13169$as_echo "$OTOOL_FOR_TARGET" >&6; }
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
13173fi
13174
13175
13176 done
13177fi
13178
13179if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13180 for ncn_progname in otool; do
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13182$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186$as_echo "yes" >&6; }
13187 break
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
13191 fi
13192 done
13193fi
13194
13195if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13196 for ncn_progname in otool; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13199set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204else
13205 if test -n "$OTOOL_FOR_TARGET"; then
13206 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220 done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13226if test -n "$OTOOL_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13228$as_echo "$OTOOL_FOR_TARGET" >&6; }
13229else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234
13235 fi
13236 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13238set dummy ${ncn_progname}; ac_word=$2
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240$as_echo_n "checking for $ac_word... " >&6; }
13241if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13242 $as_echo_n "(cached) " >&6
13243else
13244 if test -n "$OTOOL_FOR_TARGET"; then
13245 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13246else
13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13254 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13257 fi
13258done
13259 done
13260IFS=$as_save_IFS
13261
13262fi
13263fi
13264OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13265if test -n "$OTOOL_FOR_TARGET"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13267$as_echo "$OTOOL_FOR_TARGET" >&6; }
13268else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271fi
13272
13273
13274 fi
13275 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13276 done
13277fi
13278
13279if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13280 set dummy otool
13281 if test $build = $target ; then
13282 OTOOL_FOR_TARGET="$2"
13283 else
13284 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13285 fi
13286else
13287 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13288fi
13289
13290else
13291 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13292fi
13293
13294
13295
13296
e8b05380
PB
13297if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13298 if test -n "$with_build_time_tools"; then
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13300$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13301 if test -x $with_build_time_tools/ranlib; then
13302 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13303 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13305$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13306 else
5213506e
RW
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308$as_echo "no" >&6; }
d1f8db0c 13309 fi
e8b05380
PB
13310 elif test $build != $host && test $have_gcc_for_target = yes; then
13311 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13312 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13313 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13314 fi
13315fi
3e19841a 13316if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13317 # Extract the first word of "ranlib", so it can be a program name with args.
13318set dummy ranlib; ac_word=$2
5213506e
RW
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13321if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13322 $as_echo_n "(cached) " >&6
e8b05380 13323else
1c710c3c
DJ
13324 case $RANLIB_FOR_TARGET in
13325 [\\/]* | ?:[\\/]*)
e8b05380
PB
13326 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13327 ;;
e8b05380 13328 *)
1c710c3c
DJ
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $gcc_cv_tool_dirs
13331do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
5213506e 13334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13336 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13338 break 2
13339 fi
13340done
5213506e
RW
13341 done
13342IFS=$as_save_IFS
1c710c3c 13343
e8b05380
PB
13344 ;;
13345esac
13346fi
1c710c3c 13347RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13348if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13350$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13351else
5213506e
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353$as_echo "no" >&6; }
e8b05380
PB
13354fi
13355
5213506e 13356
e8b05380
PB
13357fi
13358if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13359
13360
13361if test -n "$RANLIB_FOR_TARGET"; then
13362 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13363elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13364 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13365fi
13366
13367if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13368 for ncn_progname in ranlib; do
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13370set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13373if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13374 $as_echo_n "(cached) " >&6
278a7a38
AO
13375else
13376 if test -n "$RANLIB_FOR_TARGET"; then
13377 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13378else
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
5213506e 13384 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13386 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13388 break 2
13389 fi
13390done
5213506e
RW
13391 done
13392IFS=$as_save_IFS
278a7a38
AO
13393
13394fi
13395fi
13396RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13397if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13399$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13400else
5213506e
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
278a7a38
AO
13403fi
13404
5213506e 13405
278a7a38
AO
13406 done
13407fi
13408
13409if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13410 for ncn_progname in ranlib; do
5213506e
RW
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13412$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13413 if test -x $with_build_time_tools/${ncn_progname}; then
13414 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416$as_echo "yes" >&6; }
e8b05380
PB
13417 break
13418 else
5213506e
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420$as_echo "no" >&6; }
e8b05380
PB
13421 fi
13422 done
13423fi
13424
13425if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13426 for ncn_progname in ranlib; do
13427 if test -n "$ncn_target_tool_prefix"; then
13428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13429set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13432if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13433 $as_echo_n "(cached) " >&6
ca9f4b81 13434else
4de997d1
PB
13435 if test -n "$RANLIB_FOR_TARGET"; then
13436 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13437else
1c710c3c
DJ
13438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439for as_dir in $PATH
13440do
13441 IFS=$as_save_IFS
13442 test -z "$as_dir" && as_dir=.
5213506e 13443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13445 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13447 break 2
13448 fi
13449done
5213506e
RW
13450 done
13451IFS=$as_save_IFS
1c710c3c 13452
ca9f4b81
AO
13453fi
13454fi
1c710c3c 13455RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13456if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13458$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13459else
5213506e
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
ca9f4b81
AO
13462fi
13463
5213506e 13464
e8b05380
PB
13465 fi
13466 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13468set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13471if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13472 $as_echo_n "(cached) " >&6
ca9f4b81 13473else
2693c0b0
PB
13474 if test -n "$RANLIB_FOR_TARGET"; then
13475 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13476else
1c710c3c
DJ
13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
5213506e 13482 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13484 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13486 break 2
13487 fi
13488done
5213506e
RW
13489 done
13490IFS=$as_save_IFS
1c710c3c 13491
ca9f4b81
AO
13492fi
13493fi
1c710c3c 13494RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13495if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13497$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13498else
5213506e
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
ca9f4b81 13501fi
1c710c3c 13502
5213506e 13503
e8b05380
PB
13504 fi
13505 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13506 done
13507fi
1c710c3c 13508
e8b05380
PB
13509if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13510 set dummy ranlib
13511 if test $build = $target ; then
13512 RANLIB_FOR_TARGET="$2"
13513 else
13514 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13515 fi
1c00b503
PB
13516else
13517 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13518fi
2693c0b0 13519
d1f8db0c
PB
13520else
13521 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13522fi
13523
e8b05380
PB
13524
13525
13526
e7a82751
RM
13527if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13528 if test -n "$with_build_time_tools"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13530$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13531 if test -x $with_build_time_tools/readelf; then
13532 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13533 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13535$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
13539 fi
13540 elif test $build != $host && test $have_gcc_for_target = yes; then
13541 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13542 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13543 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13544 fi
13545fi
13546if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13547 # Extract the first word of "readelf", so it can be a program name with args.
13548set dummy readelf; ac_word=$2
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13551if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13552 $as_echo_n "(cached) " >&6
13553else
13554 case $READELF_FOR_TARGET in
13555 [\\/]* | ?:[\\/]*)
13556 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13557 ;;
13558 *)
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560for as_dir in $gcc_cv_tool_dirs
13561do
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13566 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13569 fi
13570done
13571 done
13572IFS=$as_save_IFS
13573
13574 ;;
13575esac
13576fi
13577READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13578if test -n "$READELF_FOR_TARGET"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13580$as_echo "$READELF_FOR_TARGET" >&6; }
13581else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583$as_echo "no" >&6; }
13584fi
13585
13586
13587fi
13588if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13589
13590
13591if test -n "$READELF_FOR_TARGET"; then
13592 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13593elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13594 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13595fi
13596
13597if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13598 for ncn_progname in readelf; do
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600set dummy ${ncn_progname}; ac_word=$2
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13603if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13604 $as_echo_n "(cached) " >&6
13605else
13606 if test -n "$READELF_FOR_TARGET"; then
13607 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13616 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620done
13621 done
13622IFS=$as_save_IFS
13623
13624fi
13625fi
13626READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13627if test -n "$READELF_FOR_TARGET"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13629$as_echo "$READELF_FOR_TARGET" >&6; }
13630else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634
13635
13636 done
13637fi
13638
13639if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13640 for ncn_progname in readelf; do
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13642$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13643 if test -x $with_build_time_tools/${ncn_progname}; then
13644 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646$as_echo "yes" >&6; }
13647 break
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651 fi
13652 done
13653fi
13654
13655if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13656 for ncn_progname in readelf; do
13657 if test -n "$ncn_target_tool_prefix"; then
13658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13659set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13662if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13663 $as_echo_n "(cached) " >&6
13664else
13665 if test -n "$READELF_FOR_TARGET"; then
13666 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13675 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13686if test -n "$READELF_FOR_TARGET"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13688$as_echo "$READELF_FOR_TARGET" >&6; }
13689else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694
13695 fi
13696 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13698set dummy ${ncn_progname}; ac_word=$2
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13701if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13702 $as_echo_n "(cached) " >&6
13703else
13704 if test -n "$READELF_FOR_TARGET"; then
13705 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13706else
13707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708for as_dir in $PATH
13709do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13714 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13716 break 2
13717 fi
13718done
13719 done
13720IFS=$as_save_IFS
13721
13722fi
13723fi
13724READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13725if test -n "$READELF_FOR_TARGET"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13727$as_echo "$READELF_FOR_TARGET" >&6; }
13728else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730$as_echo "no" >&6; }
13731fi
13732
13733
13734 fi
13735 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13736 done
13737fi
13738
13739if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13740 set dummy readelf
13741 if test $build = $target ; then
13742 READELF_FOR_TARGET="$2"
13743 else
13744 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13745 fi
13746else
13747 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13748fi
13749
13750else
13751 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13752fi
13753
13754
13755
13756
e8b05380
PB
13757if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13758 if test -n "$with_build_time_tools"; then
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13760$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13761 if test -x $with_build_time_tools/strip; then
13762 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13763 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13765$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13766 else
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
d1f8db0c 13769 fi
e8b05380
PB
13770 elif test $build != $host && test $have_gcc_for_target = yes; then
13771 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13772 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13773 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13774 fi
13775fi
3e19841a 13776if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13777 # Extract the first word of "strip", so it can be a program name with args.
13778set dummy strip; ac_word=$2
5213506e
RW
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13781if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13782 $as_echo_n "(cached) " >&6
e8b05380 13783else
1c710c3c
DJ
13784 case $STRIP_FOR_TARGET in
13785 [\\/]* | ?:[\\/]*)
e8b05380
PB
13786 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13787 ;;
e8b05380 13788 *)
1c710c3c
DJ
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790for as_dir in $gcc_cv_tool_dirs
13791do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
5213506e 13794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13796 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13798 break 2
13799 fi
13800done
5213506e
RW
13801 done
13802IFS=$as_save_IFS
1c710c3c 13803
e8b05380
PB
13804 ;;
13805esac
13806fi
1c710c3c 13807STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13808if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13810$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13811else
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813$as_echo "no" >&6; }
e8b05380
PB
13814fi
13815
5213506e 13816
e8b05380
PB
13817fi
13818if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13819
13820
13821if test -n "$STRIP_FOR_TARGET"; then
13822 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13823elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13824 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13825fi
13826
13827if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13828 for ncn_progname in strip; do
13829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13833if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13834 $as_echo_n "(cached) " >&6
278a7a38
AO
13835else
13836 if test -n "$STRIP_FOR_TARGET"; then
13837 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13838else
13839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840for as_dir in $PATH
13841do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
5213506e 13844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13846 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13848 break 2
13849 fi
13850done
5213506e
RW
13851 done
13852IFS=$as_save_IFS
278a7a38
AO
13853
13854fi
13855fi
13856STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13857if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13859$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13860else
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862$as_echo "no" >&6; }
278a7a38
AO
13863fi
13864
5213506e 13865
278a7a38
AO
13866 done
13867fi
13868
13869if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13870 for ncn_progname in strip; do
5213506e
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13872$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13873 if test -x $with_build_time_tools/${ncn_progname}; then
13874 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13876$as_echo "yes" >&6; }
e8b05380
PB
13877 break
13878 else
5213506e
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880$as_echo "no" >&6; }
e8b05380
PB
13881 fi
13882 done
13883fi
13884
13885if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13886 for ncn_progname in strip; do
13887 if test -n "$ncn_target_tool_prefix"; then
13888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13889set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13892if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13893 $as_echo_n "(cached) " >&6
af71363e
AS
13894else
13895 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13896 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13897else
13898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899for as_dir in $PATH
13900do
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
5213506e 13903 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13905 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13907 break 2
13908 fi
13909done
5213506e
RW
13910 done
13911IFS=$as_save_IFS
1c710c3c 13912
040b1c5a
GK
13913fi
13914fi
1c710c3c 13915STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13916if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13918$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13919else
5213506e
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921$as_echo "no" >&6; }
040b1c5a
GK
13922fi
13923
5213506e 13924
e8b05380
PB
13925 fi
13926 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13928set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13930$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13931if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13932 $as_echo_n "(cached) " >&6
040b1c5a
GK
13933else
13934 if test -n "$STRIP_FOR_TARGET"; then
13935 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13936else
1c710c3c
DJ
13937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938for as_dir in $PATH
13939do
13940 IFS=$as_save_IFS
13941 test -z "$as_dir" && as_dir=.
5213506e 13942 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13944 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13946 break 2
13947 fi
13948done
5213506e
RW
13949 done
13950IFS=$as_save_IFS
1c710c3c 13951
040b1c5a
GK
13952fi
13953fi
1c710c3c 13954STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13955if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13957$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13958else
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960$as_echo "no" >&6; }
040b1c5a 13961fi
1c710c3c 13962
5213506e 13963
e8b05380
PB
13964 fi
13965 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13966 done
13967fi
1c710c3c 13968
040b1c5a
GK
13969if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13970 set dummy strip
13971 if test $build = $target ; then
13972 STRIP_FOR_TARGET="$2"
13973 else
13974 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13975 fi
1c00b503
PB
13976else
13977 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13978fi
13979
d1f8db0c
PB
13980else
13981 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13982fi
13983
13984
13985
13986
13987if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13988 if test -n "$with_build_time_tools"; then
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13990$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13991 if test -x $with_build_time_tools/windres; then
13992 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13993 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13995$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13996 else
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998$as_echo "no" >&6; }
d1f8db0c 13999 fi
e8b05380
PB
14000 elif test $build != $host && test $have_gcc_for_target = yes; then
14001 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
14002 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14003 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
14004 fi
14005fi
3e19841a 14006if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14007 # Extract the first word of "windres", so it can be a program name with args.
14008set dummy windres; ac_word=$2
5213506e
RW
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14011if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 14012 $as_echo_n "(cached) " >&6
e8b05380 14013else
1c710c3c
DJ
14014 case $WINDRES_FOR_TARGET in
14015 [\\/]* | ?:[\\/]*)
e8b05380
PB
14016 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14017 ;;
e8b05380 14018 *)
1c710c3c
DJ
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $gcc_cv_tool_dirs
14021do
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
5213506e 14024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14026 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14028 break 2
14029 fi
14030done
5213506e
RW
14031 done
14032IFS=$as_save_IFS
1c710c3c 14033
e8b05380
PB
14034 ;;
14035esac
14036fi
1c710c3c 14037WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 14038if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14040$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 14041else
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043$as_echo "no" >&6; }
e8b05380
PB
14044fi
14045
5213506e 14046
e8b05380
PB
14047fi
14048if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
14049
14050
14051if test -n "$WINDRES_FOR_TARGET"; then
14052 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14053elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14054 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14055fi
14056
14057if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14058 for ncn_progname in windres; do
14059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14060set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14063if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14064 $as_echo_n "(cached) " >&6
278a7a38
AO
14065else
14066 if test -n "$WINDRES_FOR_TARGET"; then
14067 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14068else
14069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070for as_dir in $PATH
14071do
14072 IFS=$as_save_IFS
14073 test -z "$as_dir" && as_dir=.
5213506e 14074 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14076 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14078 break 2
14079 fi
14080done
5213506e
RW
14081 done
14082IFS=$as_save_IFS
278a7a38
AO
14083
14084fi
14085fi
14086WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14087if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14089$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14090else
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092$as_echo "no" >&6; }
278a7a38
AO
14093fi
14094
5213506e 14095
278a7a38
AO
14096 done
14097fi
14098
14099if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14100 for ncn_progname in windres; do
5213506e
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14102$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14103 if test -x $with_build_time_tools/${ncn_progname}; then
14104 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106$as_echo "yes" >&6; }
e8b05380
PB
14107 break
14108 else
5213506e
RW
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
e8b05380
PB
14111 fi
14112 done
14113fi
14114
14115if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14116 for ncn_progname in windres; do
14117 if test -n "$ncn_target_tool_prefix"; then
14118 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14119set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14122if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14123 $as_echo_n "(cached) " >&6
ca9f4b81 14124else
4de997d1
PB
14125 if test -n "$WINDRES_FOR_TARGET"; then
14126 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14127else
1c710c3c
DJ
14128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129for as_dir in $PATH
14130do
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
5213506e 14133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14135 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14137 break 2
14138 fi
14139done
5213506e
RW
14140 done
14141IFS=$as_save_IFS
1c710c3c 14142
ca9f4b81
AO
14143fi
14144fi
1c710c3c 14145WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14146if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14148$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14149else
5213506e
RW
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151$as_echo "no" >&6; }
ca9f4b81
AO
14152fi
14153
5213506e 14154
e8b05380
PB
14155 fi
14156 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14158set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14161if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14162 $as_echo_n "(cached) " >&6
ca9f4b81 14163else
2693c0b0
PB
14164 if test -n "$WINDRES_FOR_TARGET"; then
14165 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14166else
1c710c3c
DJ
14167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168for as_dir in $PATH
14169do
14170 IFS=$as_save_IFS
14171 test -z "$as_dir" && as_dir=.
5213506e 14172 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14174 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14176 break 2
14177 fi
14178done
5213506e
RW
14179 done
14180IFS=$as_save_IFS
1c710c3c 14181
ca9f4b81
AO
14182fi
14183fi
1c710c3c 14184WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14185if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14187$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14188else
5213506e
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190$as_echo "no" >&6; }
ca9f4b81 14191fi
1c710c3c 14192
5213506e 14193
e8b05380
PB
14194 fi
14195 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14196 done
14197fi
1c710c3c 14198
2693c0b0
PB
14199if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14200 set dummy windres
14201 if test $build = $target ; then
14202 WINDRES_FOR_TARGET="$2"
ca9f4b81 14203 else
2693c0b0 14204 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14205 fi
1c00b503
PB
14206else
14207 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14208fi
14209
d1f8db0c
PB
14210else
14211 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14212fi
14213
4977bab6 14214
901119ae
KT
14215
14216
14217if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14218 if test -n "$with_build_time_tools"; then
5213506e
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14220$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14221 if test -x $with_build_time_tools/windmc; then
14222 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14223 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14225$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14226 else
5213506e
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228$as_echo "no" >&6; }
901119ae
KT
14229 fi
14230 elif test $build != $host && test $have_gcc_for_target = yes; then
14231 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14232 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14233 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14234 fi
14235fi
14236if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14237 # Extract the first word of "windmc", so it can be a program name with args.
14238set dummy windmc; ac_word=$2
5213506e
RW
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14241if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14242 $as_echo_n "(cached) " >&6
901119ae
KT
14243else
14244 case $WINDMC_FOR_TARGET in
14245 [\\/]* | ?:[\\/]*)
14246 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14247 ;;
14248 *)
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250for as_dir in $gcc_cv_tool_dirs
14251do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
5213506e 14254 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14256 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14258 break 2
14259 fi
14260done
5213506e
RW
14261 done
14262IFS=$as_save_IFS
901119ae
KT
14263
14264 ;;
14265esac
14266fi
14267WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14268if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14270$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14271else
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273$as_echo "no" >&6; }
901119ae
KT
14274fi
14275
5213506e 14276
901119ae
KT
14277fi
14278if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14279
14280
14281if test -n "$WINDMC_FOR_TARGET"; then
14282 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14283elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14284 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14285fi
14286
14287if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14288 for ncn_progname in windmc; do
14289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14293if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14294 $as_echo_n "(cached) " >&6
901119ae
KT
14295else
14296 if test -n "$WINDMC_FOR_TARGET"; then
14297 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14298else
14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
5213506e 14304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14306 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14308 break 2
14309 fi
14310done
5213506e
RW
14311 done
14312IFS=$as_save_IFS
901119ae
KT
14313
14314fi
14315fi
14316WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14317if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14319$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14320else
5213506e
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322$as_echo "no" >&6; }
901119ae
KT
14323fi
14324
5213506e 14325
901119ae
KT
14326 done
14327fi
14328
14329if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14330 for ncn_progname in windmc; do
5213506e
RW
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14333 if test -x $with_build_time_tools/${ncn_progname}; then
14334 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14336$as_echo "yes" >&6; }
901119ae
KT
14337 break
14338 else
5213506e
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340$as_echo "no" >&6; }
901119ae
KT
14341 fi
14342 done
14343fi
14344
14345if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14346 for ncn_progname in windmc; do
14347 if test -n "$ncn_target_tool_prefix"; then
14348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14352if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14353 $as_echo_n "(cached) " >&6
901119ae
KT
14354else
14355 if test -n "$WINDMC_FOR_TARGET"; then
14356 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14357else
14358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359for as_dir in $PATH
14360do
14361 IFS=$as_save_IFS
14362 test -z "$as_dir" && as_dir=.
5213506e 14363 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14365 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14367 break 2
14368 fi
14369done
5213506e
RW
14370 done
14371IFS=$as_save_IFS
901119ae
KT
14372
14373fi
14374fi
14375WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14376if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14378$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14379else
5213506e
RW
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381$as_echo "no" >&6; }
901119ae
KT
14382fi
14383
5213506e 14384
901119ae
KT
14385 fi
14386 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14391if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14392 $as_echo_n "(cached) " >&6
901119ae
KT
14393else
14394 if test -n "$WINDMC_FOR_TARGET"; then
14395 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14396else
14397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398for as_dir in $PATH
14399do
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
5213506e 14402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14404 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14406 break 2
14407 fi
14408done
5213506e
RW
14409 done
14410IFS=$as_save_IFS
901119ae
KT
14411
14412fi
14413fi
14414WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14415if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14417$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14418else
5213506e
RW
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420$as_echo "no" >&6; }
901119ae
KT
14421fi
14422
5213506e 14423
901119ae
KT
14424 fi
14425 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14426 done
14427fi
14428
14429if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14430 set dummy windmc
14431 if test $build = $target ; then
14432 WINDMC_FOR_TARGET="$2"
14433 else
14434 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14435 fi
1c00b503
PB
14436else
14437 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14438fi
14439
14440else
14441 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14442fi
14443
14444
2abefe3d
PB
14445RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14446
5213506e
RW
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14448$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14449if test "x${build}" != "x${host}" ; then
e8b05380
PB
14450 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14451 # We already found the complete path
172e41aa 14452 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14454$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14455 else
14456 # Canadian cross, just use what we found
5213506e
RW
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14458$as_echo "pre-installed" >&6; }
e8b05380 14459 fi
2abefe3d
PB
14460else
14461 ok=yes
14462 case " ${configdirs} " in
14463 *" binutils "*) ;;
14464 *) ok=no ;;
14465 esac
1c710c3c 14466
2abefe3d
PB
14467 if test $ok = yes; then
14468 # An in-tree tool is available and we can use it
14469 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14471$as_echo "just compiled" >&6; }
e8b05380
PB
14472 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14473 # We already found the complete path
172e41aa 14474 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14476$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14477 elif test "x$target" = "x$host"; then
14478 # We can use an host tool
14479 AR_FOR_TARGET='$(AR)'
5213506e
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14481$as_echo "host tool" >&6; }
2abefe3d
PB
14482 else
14483 # We need a cross tool
5213506e
RW
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14485$as_echo "pre-installed" >&6; }
2abefe3d
PB
14486 fi
14487fi
0b0dc272 14488
5213506e
RW
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14490$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14491if test "x${build}" != "x${host}" ; then
e8b05380
PB
14492 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14493 # We already found the complete path
172e41aa 14494 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
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; }
e8b05380
PB
14497 else
14498 # Canadian cross, just use what we found
5213506e
RW
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14500$as_echo "pre-installed" >&6; }
e8b05380 14501 fi
2abefe3d
PB
14502else
14503 ok=yes
14504 case " ${configdirs} " in
14505 *" gas "*) ;;
14506 *) ok=no ;;
14507 esac
1c710c3c 14508
2abefe3d
PB
14509 if test $ok = yes; then
14510 # An in-tree tool is available and we can use it
14511 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14513$as_echo "just compiled" >&6; }
e8b05380
PB
14514 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14515 # We already found the complete path
172e41aa 14516 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14518$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14519 elif test "x$target" = "x$host"; then
14520 # We can use an host tool
14521 AS_FOR_TARGET='$(AS)'
5213506e
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14523$as_echo "host tool" >&6; }
2abefe3d
PB
14524 else
14525 # We need a cross tool
5213506e
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14527$as_echo "pre-installed" >&6; }
2abefe3d
PB
14528 fi
14529fi
0b0dc272 14530
5213506e
RW
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14532$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14533if test "x${build}" != "x${host}" ; then
e8b05380
PB
14534 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14535 # We already found the complete path
172e41aa 14536 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14538$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14539 else
14540 # Canadian cross, just use what we found
5213506e
RW
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14542$as_echo "pre-installed" >&6; }
e8b05380 14543 fi
2abefe3d
PB
14544else
14545 ok=yes
14546 case " ${configdirs} " in
14547 *" gcc "*) ;;
14548 *) ok=no ;;
14549 esac
1c710c3c 14550
2abefe3d
PB
14551 if test $ok = yes; then
14552 # An in-tree tool is available and we can use it
14553 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14555$as_echo "just compiled" >&6; }
e8b05380
PB
14556 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14557 # We already found the complete path
172e41aa 14558 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14560$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14561 elif test "x$target" = "x$host"; then
14562 # We can use an host tool
14563 CC_FOR_TARGET='$(CC)'
5213506e
RW
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14565$as_echo "host tool" >&6; }
2abefe3d
PB
14566 else
14567 # We need a cross tool
5213506e
RW
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14569$as_echo "pre-installed" >&6; }
2abefe3d
PB
14570 fi
14571fi
0b0dc272 14572
5213506e
RW
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14574$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14575if test "x${build}" != "x${host}" ; then
e8b05380
PB
14576 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14577 # We already found the complete path
172e41aa 14578 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14580$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14581 else
14582 # Canadian cross, just use what we found
5213506e
RW
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14584$as_echo "pre-installed" >&6; }
e8b05380 14585 fi
2abefe3d
PB
14586else
14587 ok=yes
14588 case " ${configdirs} " in
14589 *" gcc "*) ;;
14590 *) ok=no ;;
14591 esac
14592 case ,${enable_languages}, in
14593 *,c++,*) ;;
14594 *) ok=no ;;
14595 esac
14596 if test $ok = yes; then
14597 # An in-tree tool is available and we can use it
2077db1b 14598 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'
5213506e
RW
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14600$as_echo "just compiled" >&6; }
e8b05380
PB
14601 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14602 # We already found the complete path
172e41aa 14603 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14605$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14606 elif test "x$target" = "x$host"; then
14607 # We can use an host tool
14608 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14610$as_echo "host tool" >&6; }
2abefe3d
PB
14611 else
14612 # We need a cross tool
5213506e
RW
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14614$as_echo "pre-installed" >&6; }
2abefe3d
PB
14615 fi
14616fi
0b0dc272 14617
5213506e
RW
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14619$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14620if test "x${build}" != "x${host}" ; then
e8b05380
PB
14621 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14622 # We already found the complete path
172e41aa 14623 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14626 else
14627 # Canadian cross, just use what we found
5213506e
RW
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14629$as_echo "pre-installed" >&6; }
e8b05380 14630 fi
2abefe3d
PB
14631else
14632 ok=yes
14633 case " ${configdirs} " in
14634 *" gcc "*) ;;
14635 *) ok=no ;;
14636 esac
14637 case ,${enable_languages}, in
14638 *,c++,*) ;;
14639 *) ok=no ;;
14640 esac
14641 if test $ok = yes; then
14642 # An in-tree tool is available and we can use it
2077db1b 14643 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'
5213506e
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14645$as_echo "just compiled" >&6; }
e8b05380
PB
14646 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
172e41aa 14648 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14651 elif test "x$target" = "x$host"; then
14652 # We can use an host tool
14653 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14655$as_echo "host tool" >&6; }
2abefe3d
PB
14656 else
14657 # We need a cross tool
5213506e
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659$as_echo "pre-installed" >&6; }
2abefe3d
PB
14660 fi
14661fi
0b0dc272 14662
5213506e
RW
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14664$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14665if test "x${build}" != "x${host}" ; then
e8b05380
PB
14666 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
172e41aa 14668 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14671 else
14672 # Canadian cross, just use what we found
5213506e
RW
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674$as_echo "pre-installed" >&6; }
e8b05380 14675 fi
2abefe3d
PB
14676else
14677 ok=yes
14678 case " ${configdirs} " in
14679 *" binutils "*) ;;
14680 *) ok=no ;;
14681 esac
1c710c3c 14682
2abefe3d
PB
14683 if test $ok = yes; then
14684 # An in-tree tool is available and we can use it
14685 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14687$as_echo "just compiled" >&6; }
e8b05380
PB
14688 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14689 # We already found the complete path
172e41aa 14690 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14692$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14693 elif test "x$target" = "x$host"; then
14694 # We can use an host tool
14695 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14697$as_echo "host tool" >&6; }
2abefe3d
PB
14698 else
14699 # We need a cross tool
5213506e
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14701$as_echo "pre-installed" >&6; }
2abefe3d
PB
14702 fi
14703fi
0b0dc272 14704
5213506e
RW
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14706$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14707if test "x${build}" != "x${host}" ; then
e8b05380
PB
14708 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
172e41aa 14710 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14713 else
14714 # Canadian cross, just use what we found
5213506e
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14716$as_echo "pre-installed" >&6; }
e8b05380 14717 fi
2abefe3d
PB
14718else
14719 ok=yes
14720 case " ${configdirs} " in
14721 *" gcc "*) ;;
14722 *) ok=no ;;
14723 esac
1c710c3c 14724
2abefe3d
PB
14725 if test $ok = yes; then
14726 # An in-tree tool is available and we can use it
14727 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14729$as_echo "just compiled" >&6; }
e8b05380
PB
14730 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
172e41aa 14732 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14735 elif test "x$target" = "x$host"; then
14736 # We can use an host tool
14737 GCC_FOR_TARGET='$()'
5213506e
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14739$as_echo "host tool" >&6; }
2abefe3d
PB
14740 else
14741 # We need a cross tool
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743$as_echo "pre-installed" >&6; }
2abefe3d
PB
14744 fi
14745fi
0b0dc272 14746
5213506e
RW
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14748$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14749if test "x${build}" != "x${host}" ; then
e8b05380
PB
14750 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14751 # We already found the complete path
172e41aa 14752 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14754$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14755 else
14756 # Canadian cross, just use what we found
5213506e
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14758$as_echo "pre-installed" >&6; }
e8b05380 14759 fi
2abefe3d
PB
14760else
14761 ok=yes
14762 case " ${configdirs} " in
14763 *" gcc "*) ;;
14764 *) ok=no ;;
14765 esac
14766 case ,${enable_languages}, in
14767 *,fortran,*) ;;
14768 *) ok=no ;;
14769 esac
14770 if test $ok = yes; then
14771 # An in-tree tool is available and we can use it
14772 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14774$as_echo "just compiled" >&6; }
e8b05380
PB
14775 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14776 # We already found the complete path
172e41aa 14777 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14780 elif test "x$target" = "x$host"; then
14781 # We can use an host tool
14782 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14784$as_echo "host tool" >&6; }
2abefe3d
PB
14785 else
14786 # We need a cross tool
5213506e
RW
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14788$as_echo "pre-installed" >&6; }
2abefe3d
PB
14789 fi
14790fi
0b0dc272 14791
632e2a07
ILT
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14793$as_echo_n "checking where to find the target gccgo... " >&6; }
14794if test "x${build}" != "x${host}" ; then
14795 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14796 # We already found the complete path
14797 ac_dir=`dirname $GOC_FOR_TARGET`
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14799$as_echo "pre-installed in $ac_dir" >&6; }
14800 else
14801 # Canadian cross, just use what we found
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14803$as_echo "pre-installed" >&6; }
14804 fi
14805else
14806 ok=yes
14807 case " ${configdirs} " in
14808 *" gcc "*) ;;
14809 *) ok=no ;;
14810 esac
14811 case ,${enable_languages}, in
14812 *,go,*) ;;
14813 *) ok=no ;;
14814 esac
14815 if test $ok = yes; then
14816 # An in-tree tool is available and we can use it
14817 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14819$as_echo "just compiled" >&6; }
14820 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14821 # We already found the complete path
14822 ac_dir=`dirname $GOC_FOR_TARGET`
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14824$as_echo "pre-installed in $ac_dir" >&6; }
14825 elif test "x$target" = "x$host"; then
14826 # We can use an host tool
14827 GOC_FOR_TARGET='$(GOC)'
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14829$as_echo "host tool" >&6; }
14830 else
14831 # We need a cross tool
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14833$as_echo "pre-installed" >&6; }
14834 fi
14835fi
14836
b4c522fa
IB
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14838$as_echo_n "checking where to find the target gdc... " >&6; }
14839if test "x${build}" != "x${host}" ; then
14840 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14841 # We already found the complete path
14842 ac_dir=`dirname $GDC_FOR_TARGET`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14844$as_echo "pre-installed in $ac_dir" >&6; }
14845 else
14846 # Canadian cross, just use what we found
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14848$as_echo "pre-installed" >&6; }
14849 fi
14850else
14851 ok=yes
14852 case " ${configdirs} " in
14853 *" gcc "*) ;;
14854 *) ok=no ;;
14855 esac
14856 case ,${enable_languages}, in
14857 *,d,*) ;;
14858 *) ok=no ;;
14859 esac
14860 if test $ok = yes; then
14861 # An in-tree tool is available and we can use it
14862 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14864$as_echo "just compiled" >&6; }
14865 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14866 # We already found the complete path
14867 ac_dir=`dirname $GDC_FOR_TARGET`
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14869$as_echo "pre-installed in $ac_dir" >&6; }
14870 elif test "x$target" = "x$host"; then
14871 # We can use an host tool
14872 GDC_FOR_TARGET='$(GDC)'
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14874$as_echo "host tool" >&6; }
14875 else
14876 # We need a cross tool
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14878$as_echo "pre-installed" >&6; }
14879 fi
14880fi
14881
5213506e
RW
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14883$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14884if test "x${build}" != "x${host}" ; then
e8b05380
PB
14885 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14886 # We already found the complete path
172e41aa 14887 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14889$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14890 else
14891 # Canadian cross, just use what we found
5213506e
RW
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14893$as_echo "pre-installed" >&6; }
e8b05380 14894 fi
2abefe3d
PB
14895else
14896 ok=yes
14897 case " ${configdirs} " in
14898 *" ld "*) ;;
14899 *) ok=no ;;
14900 esac
1c710c3c 14901
2abefe3d
PB
14902 if test $ok = yes; then
14903 # An in-tree tool is available and we can use it
14904 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14906$as_echo "just compiled" >&6; }
e8b05380
PB
14907 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14908 # We already found the complete path
172e41aa 14909 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14911$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14912 elif test "x$target" = "x$host"; then
14913 # We can use an host tool
14914 LD_FOR_TARGET='$(LD)'
5213506e
RW
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14916$as_echo "host tool" >&6; }
2abefe3d
PB
14917 else
14918 # We need a cross tool
5213506e
RW
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14920$as_echo "pre-installed" >&6; }
2abefe3d
PB
14921 fi
14922fi
0b0dc272 14923
5213506e
RW
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14925$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14926if test "x${build}" != "x${host}" ; then
e8b05380
PB
14927 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14928 # We already found the complete path
172e41aa 14929 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14931$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14932 else
14933 # Canadian cross, just use what we found
5213506e
RW
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14935$as_echo "pre-installed" >&6; }
e8b05380 14936 fi
2abefe3d 14937else
e8b05380
PB
14938 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14939 # We already found the complete path
172e41aa 14940 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14942$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14943 elif test "x$target" = "x$host"; then
2abefe3d
PB
14944 # We can use an host tool
14945 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14947$as_echo "host tool" >&6; }
2abefe3d
PB
14948 else
14949 # We need a cross tool
5213506e
RW
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14951$as_echo "pre-installed" >&6; }
2abefe3d
PB
14952 fi
14953fi
0b0dc272 14954
5213506e
RW
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14956$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14957if test "x${build}" != "x${host}" ; then
e8b05380
PB
14958 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14959 # We already found the complete path
172e41aa 14960 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14962$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14963 else
14964 # Canadian cross, just use what we found
5213506e
RW
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14966$as_echo "pre-installed" >&6; }
e8b05380 14967 fi
2abefe3d
PB
14968else
14969 ok=yes
14970 case " ${configdirs} " in
14971 *" binutils "*) ;;
14972 *) ok=no ;;
14973 esac
1c710c3c 14974
2abefe3d
PB
14975 if test $ok = yes; then
14976 # An in-tree tool is available and we can use it
14977 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14979$as_echo "just compiled" >&6; }
e8b05380
PB
14980 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14981 # We already found the complete path
172e41aa 14982 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14984$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14985 elif test "x$target" = "x$host"; then
14986 # We can use an host tool
14987 NM_FOR_TARGET='$(NM)'
5213506e
RW
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14989$as_echo "host tool" >&6; }
2abefe3d
PB
14990 else
14991 # We need a cross tool
5213506e
RW
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14993$as_echo "pre-installed" >&6; }
2abefe3d
PB
14994 fi
14995fi
0b0dc272 14996
9bccfdf5
AP
14997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14998$as_echo_n "checking where to find the target objcopy... " >&6; }
14999if test "x${build}" != "x${host}" ; then
15000 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15001 # We already found the complete path
15002 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15004$as_echo "pre-installed in $ac_dir" >&6; }
15005 else
15006 # Canadian cross, just use what we found
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15008$as_echo "pre-installed" >&6; }
15009 fi
15010else
15011 ok=yes
15012 case " ${configdirs} " in
15013 *" binutils "*) ;;
15014 *) ok=no ;;
15015 esac
15016
15017 if test $ok = yes; then
15018 # An in-tree tool is available and we can use it
15019 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15021$as_echo "just compiled" >&6; }
15022 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15023 # We already found the complete path
15024 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15026$as_echo "pre-installed in $ac_dir" >&6; }
15027 elif test "x$target" = "x$host"; then
15028 # We can use an host tool
ec8fd1c0 15029 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15031$as_echo "host tool" >&6; }
15032 else
15033 # We need a cross tool
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15035$as_echo "pre-installed" >&6; }
15036 fi
15037fi
15038
5213506e
RW
15039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15040$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 15041if test "x${build}" != "x${host}" ; then
e8b05380
PB
15042 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15043 # We already found the complete path
172e41aa 15044 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15046$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15047 else
15048 # Canadian cross, just use what we found
5213506e
RW
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15050$as_echo "pre-installed" >&6; }
e8b05380 15051 fi
2abefe3d
PB
15052else
15053 ok=yes
15054 case " ${configdirs} " in
15055 *" binutils "*) ;;
15056 *) ok=no ;;
15057 esac
1c710c3c 15058
2abefe3d
PB
15059 if test $ok = yes; then
15060 # An in-tree tool is available and we can use it
15061 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15063$as_echo "just compiled" >&6; }
e8b05380
PB
15064 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15065 # We already found the complete path
172e41aa 15066 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15068$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15069 elif test "x$target" = "x$host"; then
15070 # We can use an host tool
15071 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15073$as_echo "host tool" >&6; }
2abefe3d
PB
15074 else
15075 # We need a cross tool
5213506e
RW
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15077$as_echo "pre-installed" >&6; }
2abefe3d
PB
15078 fi
15079fi
0b0dc272 15080
e4a9a572
IS
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15082$as_echo_n "checking where to find the target otool... " >&6; }
15083if test "x${build}" != "x${host}" ; then
15084 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15085 # We already found the complete path
15086 ac_dir=`dirname $OTOOL_FOR_TARGET`
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15088$as_echo "pre-installed in $ac_dir" >&6; }
15089 else
15090 # Canadian cross, just use what we found
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15092$as_echo "pre-installed" >&6; }
15093 fi
15094else
15095 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15096 # We already found the complete path
15097 ac_dir=`dirname $OTOOL_FOR_TARGET`
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15099$as_echo "pre-installed in $ac_dir" >&6; }
15100 elif test "x$target" = "x$host"; then
15101 # We can use an host tool
15102 OTOOL_FOR_TARGET='$(OTOOL)'
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15104$as_echo "host tool" >&6; }
15105 else
15106 # We need a cross tool
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15108$as_echo "pre-installed" >&6; }
15109 fi
15110fi
15111
5213506e
RW
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15113$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15114if test "x${build}" != "x${host}" ; then
e8b05380
PB
15115 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15116 # We already found the complete path
172e41aa 15117 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15119$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15120 else
15121 # Canadian cross, just use what we found
5213506e
RW
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15123$as_echo "pre-installed" >&6; }
e8b05380 15124 fi
2abefe3d
PB
15125else
15126 ok=yes
15127 case " ${configdirs} " in
15128 *" binutils "*) ;;
15129 *) ok=no ;;
15130 esac
1c710c3c 15131
2abefe3d
PB
15132 if test $ok = yes; then
15133 # An in-tree tool is available and we can use it
15134 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15136$as_echo "just compiled" >&6; }
e8b05380
PB
15137 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15138 # We already found the complete path
172e41aa 15139 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15141$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15142 elif test "x$target" = "x$host"; then
15143 # We can use an host tool
15144 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15146$as_echo "host tool" >&6; }
2abefe3d
PB
15147 else
15148 # We need a cross tool
5213506e
RW
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15150$as_echo "pre-installed" >&6; }
2abefe3d
PB
15151 fi
15152fi
0b0dc272 15153
e7a82751
RM
15154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15155$as_echo_n "checking where to find the target readelf... " >&6; }
15156if test "x${build}" != "x${host}" ; then
15157 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15158 # We already found the complete path
15159 ac_dir=`dirname $READELF_FOR_TARGET`
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15161$as_echo "pre-installed in $ac_dir" >&6; }
15162 else
15163 # Canadian cross, just use what we found
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15165$as_echo "pre-installed" >&6; }
15166 fi
15167else
15168 ok=yes
15169 case " ${configdirs} " in
15170 *" binutils "*) ;;
15171 *) ok=no ;;
15172 esac
15173
15174 if test $ok = yes; then
15175 # An in-tree tool is available and we can use it
15176 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15178$as_echo "just compiled" >&6; }
15179 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15180 # We already found the complete path
15181 ac_dir=`dirname $READELF_FOR_TARGET`
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15183$as_echo "pre-installed in $ac_dir" >&6; }
15184 elif test "x$target" = "x$host"; then
15185 # We can use an host tool
15186 READELF_FOR_TARGET='$(READELF)'
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15188$as_echo "host tool" >&6; }
15189 else
15190 # We need a cross tool
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15192$as_echo "pre-installed" >&6; }
15193 fi
15194fi
15195
5213506e
RW
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15197$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15198if test "x${build}" != "x${host}" ; then
e8b05380
PB
15199 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15200 # We already found the complete path
172e41aa 15201 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15203$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15204 else
15205 # Canadian cross, just use what we found
5213506e
RW
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15207$as_echo "pre-installed" >&6; }
e8b05380 15208 fi
2abefe3d
PB
15209else
15210 ok=yes
15211 case " ${configdirs} " in
15212 *" binutils "*) ;;
15213 *) ok=no ;;
15214 esac
1c710c3c 15215
2abefe3d
PB
15216 if test $ok = yes; then
15217 # An in-tree tool is available and we can use it
455c8f48 15218 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15220$as_echo "just compiled" >&6; }
e8b05380
PB
15221 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15222 # We already found the complete path
172e41aa 15223 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15225$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15226 elif test "x$target" = "x$host"; then
15227 # We can use an host tool
15228 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15230$as_echo "host tool" >&6; }
2abefe3d
PB
15231 else
15232 # We need a cross tool
5213506e
RW
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15234$as_echo "pre-installed" >&6; }
2abefe3d
PB
15235 fi
15236fi
0b0dc272 15237
5213506e
RW
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15239$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15240if test "x${build}" != "x${host}" ; then
e8b05380
PB
15241 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15242 # We already found the complete path
172e41aa 15243 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15245$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15246 else
15247 # Canadian cross, just use what we found
5213506e
RW
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15249$as_echo "pre-installed" >&6; }
e8b05380 15250 fi
2abefe3d
PB
15251else
15252 ok=yes
15253 case " ${configdirs} " in
15254 *" binutils "*) ;;
15255 *) ok=no ;;
15256 esac
1c710c3c 15257
2abefe3d
PB
15258 if test $ok = yes; then
15259 # An in-tree tool is available and we can use it
15260 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15262$as_echo "just compiled" >&6; }
e8b05380
PB
15263 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15264 # We already found the complete path
172e41aa 15265 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15267$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15268 elif test "x$target" = "x$host"; then
15269 # We can use an host tool
15270 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15272$as_echo "host tool" >&6; }
2abefe3d
PB
15273 else
15274 # We need a cross tool
5213506e
RW
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15276$as_echo "pre-installed" >&6; }
2abefe3d 15277 fi
671aa708 15278fi
be912515 15279
5213506e
RW
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15281$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15282if test "x${build}" != "x${host}" ; then
15283 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15284 # We already found the complete path
15285 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15287$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15288 else
15289 # Canadian cross, just use what we found
5213506e
RW
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15291$as_echo "pre-installed" >&6; }
901119ae
KT
15292 fi
15293else
15294 ok=yes
15295 case " ${configdirs} " in
15296 *" binutils "*) ;;
15297 *) ok=no ;;
15298 esac
15299
15300 if test $ok = yes; then
15301 # An in-tree tool is available and we can use it
15302 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15304$as_echo "just compiled" >&6; }
901119ae
KT
15305 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15306 # We already found the complete path
15307 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15309$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15310 elif test "x$target" = "x$host"; then
15311 # We can use an host tool
15312 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15314$as_echo "host tool" >&6; }
901119ae
KT
15315 else
15316 # We need a cross tool
5213506e
RW
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15318$as_echo "pre-installed" >&6; }
901119ae
KT
15319 fi
15320fi
15321
be912515
NN
15322
15323
2abefe3d 15324
0b0dc272 15325
671aa708
NN
15326# Certain tools may need extra flags.
15327AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15328RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15329NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15330
2abefe3d
PB
15331# When building target libraries, except in a Canadian cross, we use
15332# the same toolchain as the compiler we just built.
15333COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15334COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15335COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15336if test $host = $build; then
15337 case " $configdirs " in
15338 *" gcc "*)
15339 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15340 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15341 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15342 ;;
15343 esac
15344fi
15345
15346
15347
15348
15349
5213506e
RW
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15351$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15352# Check whether --enable-maintainer-mode was given.
15353if test "${enable_maintainer_mode+set}" = set; then :
15354 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15355else
15356 USE_MAINTAINER_MODE=no
5213506e
RW
15357fi
15358
15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15360$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15361
15362
15363if test "$USE_MAINTAINER_MODE" = yes; then
15364 MAINTAINER_MODE_TRUE=
15365 MAINTAINER_MODE_FALSE='#'
15366else
15367 MAINTAINER_MODE_TRUE='#'
15368 MAINTAINER_MODE_FALSE=
1c710c3c 15369fi
ee03dc5e
AO
15370MAINT=$MAINTAINER_MODE_TRUE
15371
2805b53a
NN
15372# ---------------------
15373# GCC bootstrap support
15374# ---------------------
15375
15376# Stage specific cflags for build.
15377stage1_cflags="-g"
15378case $build in
15379 vax-*-*)
15380 case ${GCC} in
15381 yes) stage1_cflags="-g -Wa,-J" ;;
15382 *) stage1_cflags="-g -J" ;;
15383 esac ;;
2805b53a
NN
15384esac
15385
0b50988a 15386
2805b53a 15387
8efea775 15388# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15389# Check whether --enable-stage1-checking was given.
15390if test "${enable_stage1_checking+set}" = set; then :
15391 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15392else
e643dc23 15393 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15394 # For --disable-checking or implicit --enable-checking=release, avoid
15395 # setting --enable-checking=gc in the default stage1 checking for LTO
15396 # bootstraps. See PR62077.
c10b5ea0
JJ
15397 case $BUILD_CONFIG in
15398 *lto*)
7db11a5a
JJ
15399 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15400 *)
15401 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15402 esac
7db11a5a
JJ
15403 if test "x$enable_checking" = x && \
15404 test -d ${srcdir}/gcc && \
15405 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15406 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15407 fi
8efea775 15408else
e643dc23 15409 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15410fi
5213506e 15411fi
8efea775
PB
15412
15413
2aeb72e9 15414
5213506e
RW
15415# Enable -Werror in bootstrap stage2 and later.
15416# Check whether --enable-werror was given.
15417if test "${enable_werror+set}" = set; then :
15418 enableval=$enable_werror;
09a9c095
NN
15419case ${enable_werror} in
15420 yes) stage2_werror_flag="--enable-werror-always" ;;
15421 *) stage2_werror_flag="" ;;
2805b53a
NN
15422esac
15423
afd88efc
ML
15424else
15425
01c712cb
ML
15426if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15427 case $BUILD_CONFIG in
15428 bootstrap-debug)
15429 stage2_werror_flag="--enable-werror-always" ;;
15430 "")
15431 stage2_werror_flag="--enable-werror-always" ;;
15432 esac
15433fi
15434
afd88efc
ML
15435fi
15436
15437
01c712cb 15438
2805b53a 15439
f2689b09
SE
15440# Specify what files to not compare during bootstrap.
15441
15442compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15443case "$target" in
15444 hppa*64*-*-hpux*) ;;
510555e0 15445 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
d91491e5 15446 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
15447esac
15448
15449
5213506e
RW
15450ac_config_files="$ac_config_files Makefile"
15451
1c710c3c 15452cat >confcache <<\_ACEOF
671aa708
NN
15453# This file is a shell script that caches the results of configure
15454# tests run on this system so they can be shared between configure
1c710c3c
DJ
15455# scripts and configure runs, see configure's option --config-cache.
15456# It is not useful on other systems. If it contains results you don't
15457# want to keep, you may remove or edit it.
671aa708 15458#
1c710c3c
DJ
15459# config.status only pays attention to the cache file if you give it
15460# the --recheck option to rerun configure.
671aa708 15461#
1c710c3c
DJ
15462# `ac_cv_env_foo' variables (set or unset) will be overridden when
15463# loading this file, other *unset* `ac_cv_foo' will be assigned the
15464# following values.
15465
15466_ACEOF
15467
671aa708
NN
15468# The following way of writing the cache mishandles newlines in values,
15469# but we know of no workaround that is simple, portable, and efficient.
5213506e 15470# So, we kill variables containing newlines.
671aa708
NN
15471# Ultrix sh set writes to stderr and can't be redirected directly,
15472# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15473(
15474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15475 eval ac_val=\$$ac_var
15476 case $ac_val in #(
15477 *${as_nl}*)
15478 case $ac_var in #(
15479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15481 esac
15482 case $ac_var in #(
15483 _ | IFS | as_nl) ;; #(
15484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15485 *) { eval $ac_var=; unset $ac_var;} ;;
15486 esac ;;
15487 esac
15488 done
15489
1c710c3c 15490 (set) 2>&1 |
5213506e
RW
15491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15492 *${as_nl}ac_space=\ *)
15493 # `set' does not quote correctly, so add quotes: double-quote
15494 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15495 sed -n \
15496 "s/'/'\\\\''/g;
15497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15498 ;; #(
1c710c3c
DJ
15499 *)
15500 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15502 ;;
5213506e
RW
15503 esac |
15504 sort
15505) |
1c710c3c 15506 sed '
5213506e 15507 /^ac_cv_env_/b end
1c710c3c 15508 t clear
5213506e 15509 :clear
1c710c3c
DJ
15510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15511 t end
5213506e
RW
15512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15513 :end' >>confcache
15514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15515 if test -w "$cache_file"; then
22e05272 15516 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15518$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15519 if test ! -f "$cache_file" || test -h "$cache_file"; then
15520 cat confcache >"$cache_file"
15521 else
15522 case $cache_file in #(
15523 */* | ?:*)
15524 mv -f confcache "$cache_file"$$ &&
15525 mv -f "$cache_file"$$ "$cache_file" ;; #(
15526 *)
15527 mv -f confcache "$cache_file" ;;
15528 esac
15529 fi
15530 fi
671aa708 15531 else
5213506e
RW
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15534 fi
4977bab6 15535fi
671aa708 15536rm -f confcache
79c06341 15537
671aa708
NN
15538test "x$prefix" = xNONE && prefix=$ac_default_prefix
15539# Let make expand exec_prefix.
15540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15541
671aa708
NN
15542# Transform confdefs.h into DEFS.
15543# Protect against shell expansion while executing Makefile rules.
15544# Protect against Makefile macro expansion.
1c710c3c
DJ
15545#
15546# If the first sed substitution is executed (which looks for macros that
5213506e 15547# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15548# look for a macro that doesn't take arguments.
5213506e
RW
15549ac_script='
15550:mline
15551/\\$/{
15552 N
15553 s,\\\n,,
15554 b mline
15555}
1c710c3c 15556t clear
5213506e
RW
15557:clear
15558s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15559t quote
5213506e 15560s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15561t quote
5213506e
RW
15562b any
15563:quote
15564s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15565s/\[/\\&/g
15566s/\]/\\&/g
15567s/\$/$$/g
15568H
15569:any
15570${
15571 g
15572 s/^\n//
15573 s/\n/ /g
15574 p
15575}
15576'
15577DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15578
15579
15580ac_libobjs=
15581ac_ltlibobjs=
22e05272 15582U=
1c710c3c
DJ
15583for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15584 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15588 # will be set to the directory where LIBOBJS objects are built.
15589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15591done
15592LIBOBJS=$ac_libobjs
fb0103e5 15593
1c710c3c 15594LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15595
af71363e 15596
1c710c3c 15597
22e05272 15598: "${CONFIG_STATUS=./config.status}"
5213506e 15599ac_write_fail=0
1c710c3c
DJ
15600ac_clean_files_save=$ac_clean_files
15601ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15603$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15604as_write_fail=0
15605cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15606#! $SHELL
15607# Generated by $as_me.
671aa708 15608# Run this file to recreate the current configuration.
671aa708 15609# Compiler output produced by configure, useful for debugging
1c710c3c 15610# configure, is in config.log if it exists.
0b0dc272 15611
1c710c3c
DJ
15612debug=false
15613ac_cs_recheck=false
15614ac_cs_silent=false
1c710c3c 15615
5213506e
RW
15616SHELL=\${CONFIG_SHELL-$SHELL}
15617export SHELL
15618_ASEOF
15619cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15620## -------------------- ##
15621## M4sh Initialization. ##
15622## -------------------- ##
15623
15624# Be more Bourne compatible
15625DUALCASE=1; export DUALCASE # for MKS sh
15626if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15627 emulate sh
15628 NULLCMD=:
5213506e 15629 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15630 # is contrary to our usage. Disable this feature.
15631 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15632 setopt NO_GLOB_SUBST
15633else
15634 case `(set -o) 2>/dev/null` in #(
15635 *posix*) :
15636 set -o posix ;; #(
15637 *) :
15638 ;;
15639esac
1c710c3c 15640fi
1c710c3c 15641
5213506e
RW
15642
15643as_nl='
15644'
15645export as_nl
15646# Printing a long string crashes Solaris 7 /usr/bin/printf.
15647as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15649as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15650# Prefer a ksh shell builtin over an external printf program on Solaris,
15651# but without wasting forks for bash or zsh.
15652if test -z "$BASH_VERSION$ZSH_VERSION" \
15653 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15654 as_echo='print -r --'
15655 as_echo_n='print -rn --'
15656elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15657 as_echo='printf %s\n'
15658 as_echo_n='printf %s'
15659else
15660 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15661 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15662 as_echo_n='/usr/ucb/echo -n'
15663 else
15664 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15665 as_echo_n_body='eval
15666 arg=$1;
15667 case $arg in #(
15668 *"$as_nl"*)
15669 expr "X$arg" : "X\\(.*\\)$as_nl";
15670 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15671 esac;
15672 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15673 '
15674 export as_echo_n_body
15675 as_echo_n='sh -c $as_echo_n_body as_echo'
15676 fi
15677 export as_echo_body
15678 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15679fi
15680
5213506e
RW
15681# The user is always right.
15682if test "${PATH_SEPARATOR+set}" != set; then
15683 PATH_SEPARATOR=:
15684 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15685 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15686 PATH_SEPARATOR=';'
15687 }
15688fi
15689
15690
15691# IFS
15692# We need space, tab and new line, in precisely that order. Quoting is
15693# there to prevent editors from complaining about space-tab.
15694# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15695# splitting by setting IFS to empty value.)
15696IFS=" "" $as_nl"
15697
15698# Find who we are. Look in the path if we contain no directory separator.
22e05272 15699as_myself=
5213506e
RW
15700case $0 in #((
15701 *[\\/]* ) as_myself=$0 ;;
15702 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15703for as_dir in $PATH
15704do
15705 IFS=$as_save_IFS
15706 test -z "$as_dir" && as_dir=.
15707 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15708 done
15709IFS=$as_save_IFS
15710
15711 ;;
15712esac
15713# We did not find ourselves, most probably we were run as `sh COMMAND'
15714# in which case we are not to be found in the path.
15715if test "x$as_myself" = x; then
15716 as_myself=$0
15717fi
15718if test ! -f "$as_myself"; then
15719 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15720 exit 1
15721fi
1c710c3c 15722
5213506e
RW
15723# Unset variables that we do not need and which cause bugs (e.g. in
15724# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15725# suppresses any "Segmentation fault" message there. '((' could
15726# trigger a bug in pdksh 5.2.14.
15727for as_var in BASH_ENV ENV MAIL MAILPATH
15728do eval test x\${$as_var+set} = xset \
15729 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15730done
1c710c3c
DJ
15731PS1='$ '
15732PS2='> '
15733PS4='+ '
15734
15735# NLS nuisances.
5213506e
RW
15736LC_ALL=C
15737export LC_ALL
15738LANGUAGE=C
15739export LANGUAGE
15740
15741# CDPATH.
15742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15743
15744
22e05272
JM
15745# as_fn_error STATUS ERROR [LINENO LOG_FD]
15746# ----------------------------------------
5213506e
RW
15747# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15748# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15749# script with STATUS, using 1 if that was 0.
5213506e
RW
15750as_fn_error ()
15751{
22e05272
JM
15752 as_status=$1; test $as_status -eq 0 && as_status=1
15753 if test "$4"; then
15754 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15755 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15756 fi
22e05272 15757 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15758 as_fn_exit $as_status
15759} # as_fn_error
15760
15761
15762# as_fn_set_status STATUS
15763# -----------------------
15764# Set $? to STATUS, without forking.
15765as_fn_set_status ()
15766{
15767 return $1
15768} # as_fn_set_status
15769
15770# as_fn_exit STATUS
15771# -----------------
15772# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15773as_fn_exit ()
15774{
15775 set +e
15776 as_fn_set_status $1
15777 exit $1
15778} # as_fn_exit
15779
15780# as_fn_unset VAR
15781# ---------------
15782# Portably unset VAR.
15783as_fn_unset ()
15784{
15785 { eval $1=; unset $1;}
15786}
15787as_unset=as_fn_unset
15788# as_fn_append VAR VALUE
15789# ----------------------
15790# Append the text in VALUE to the end of the definition contained in VAR. Take
15791# advantage of any shell optimizations that allow amortized linear growth over
15792# repeated appends, instead of the typical quadratic growth present in naive
15793# implementations.
15794if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15795 eval 'as_fn_append ()
15796 {
15797 eval $1+=\$2
15798 }'
15799else
15800 as_fn_append ()
15801 {
15802 eval $1=\$$1\$2
15803 }
15804fi # as_fn_append
15805
15806# as_fn_arith ARG...
15807# ------------------
15808# Perform arithmetic evaluation on the ARGs, and store the result in the
15809# global $as_val. Take advantage of shells that can avoid forks. The arguments
15810# must be portable across $(()) and expr.
15811if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15812 eval 'as_fn_arith ()
15813 {
15814 as_val=$(( $* ))
15815 }'
15816else
15817 as_fn_arith ()
15818 {
15819 as_val=`expr "$@" || test $? -eq 1`
15820 }
15821fi # as_fn_arith
15822
1c710c3c 15823
5213506e
RW
15824if expr a : '\(a\)' >/dev/null 2>&1 &&
15825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15826 as_expr=expr
15827else
15828 as_expr=false
15829fi
15830
5213506e 15831if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15832 as_basename=basename
15833else
15834 as_basename=false
15835fi
15836
5213506e
RW
15837if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15838 as_dirname=dirname
15839else
15840 as_dirname=false
15841fi
1c710c3c 15842
5213506e 15843as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15844$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15845 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15846 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15847$as_echo X/"$0" |
15848 sed '/^.*\/\([^/][^/]*\)\/*$/{
15849 s//\1/
15850 q
15851 }
15852 /^X\/\(\/\/\)$/{
15853 s//\1/
15854 q
15855 }
15856 /^X\/\(\/\).*/{
15857 s//\1/
15858 q
15859 }
15860 s/.*/./; q'`
2aeb72e9 15861
2aeb72e9
DD
15862# Avoid depending upon Character Ranges.
15863as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15865as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15866as_cr_digits='0123456789'
15867as_cr_alnum=$as_cr_Letters$as_cr_digits
15868
5213506e
RW
15869ECHO_C= ECHO_N= ECHO_T=
15870case `echo -n x` in #(((((
15871-n*)
15872 case `echo 'xy\c'` in
15873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15874 xy) ECHO_C='\c';;
15875 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15876 ECHO_T=' ';;
15877 esac;;
15878*)
15879 ECHO_N='-n';;
1c710c3c
DJ
15880esac
15881
5213506e
RW
15882rm -f conf$$ conf$$.exe conf$$.file
15883if test -d conf$$.dir; then
15884 rm -f conf$$.dir/conf$$.file
1c710c3c 15885else
5213506e
RW
15886 rm -f conf$$.dir
15887 mkdir conf$$.dir 2>/dev/null
1c710c3c 15888fi
5213506e
RW
15889if (echo >conf$$.file) 2>/dev/null; then
15890 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15891 as_ln_s='ln -s'
5213506e
RW
15892 # ... but there are two gotchas:
15893 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15894 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15895 # In both cases, we have to default to `cp -pR'.
5213506e 15896 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15897 as_ln_s='cp -pR'
5213506e
RW
15898 elif ln conf$$.file conf$$ 2>/dev/null; then
15899 as_ln_s=ln
15900 else
22e05272 15901 as_ln_s='cp -pR'
2aeb72e9 15902 fi
1c710c3c 15903else
22e05272 15904 as_ln_s='cp -pR'
1c710c3c 15905fi
5213506e
RW
15906rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15907rmdir conf$$.dir 2>/dev/null
15908
15909
15910# as_fn_mkdir_p
15911# -------------
15912# Create "$as_dir" as a directory, including parents if necessary.
15913as_fn_mkdir_p ()
15914{
15915
15916 case $as_dir in #(
15917 -*) as_dir=./$as_dir;;
15918 esac
15919 test -d "$as_dir" || eval $as_mkdir_p || {
15920 as_dirs=
15921 while :; do
15922 case $as_dir in #(
15923 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15924 *) as_qdir=$as_dir;;
15925 esac
15926 as_dirs="'$as_qdir' $as_dirs"
15927 as_dir=`$as_dirname -- "$as_dir" ||
15928$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15929 X"$as_dir" : 'X\(//\)[^/]' \| \
15930 X"$as_dir" : 'X\(//\)$' \| \
15931 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15932$as_echo X"$as_dir" |
15933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15934 s//\1/
15935 q
15936 }
15937 /^X\(\/\/\)[^/].*/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)$/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\).*/{
15946 s//\1/
15947 q
15948 }
15949 s/.*/./; q'`
15950 test -d "$as_dir" && break
15951 done
15952 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15953 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15954
1c710c3c 15955
5213506e 15956} # as_fn_mkdir_p
1c710c3c 15957if mkdir -p . 2>/dev/null; then
5213506e 15958 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15959else
15960 test -d ./-p && rmdir ./-p
15961 as_mkdir_p=false
15962fi
15963
22e05272
JM
15964
15965# as_fn_executable_p FILE
15966# -----------------------
15967# Test if FILE is an executable regular file.
15968as_fn_executable_p ()
15969{
15970 test -f "$1" && test -x "$1"
15971} # as_fn_executable_p
15972as_test_x='test -x'
15973as_executable_p=as_fn_executable_p
1c710c3c
DJ
15974
15975# Sed expression to map a string onto a valid CPP name.
15976as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15977
15978# Sed expression to map a string onto a valid variable name.
15979as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15980
15981
1c710c3c 15982exec 6>&1
5213506e
RW
15983## ----------------------------------- ##
15984## Main body of $CONFIG_STATUS script. ##
15985## ----------------------------------- ##
15986_ASEOF
15987test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15988
15989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15991# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15992# values after options handling.
15993ac_log="
1c710c3c 15994This file was extended by $as_me, which was
22e05272 15995generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
15996
15997 CONFIG_FILES = $CONFIG_FILES
15998 CONFIG_HEADERS = $CONFIG_HEADERS
15999 CONFIG_LINKS = $CONFIG_LINKS
16000 CONFIG_COMMANDS = $CONFIG_COMMANDS
16001 $ $0 $@
16002
5213506e
RW
16003on `(hostname || uname -n) 2>/dev/null | sed 1q`
16004"
16005
1c710c3c
DJ
16006_ACEOF
16007
5213506e
RW
16008case $ac_config_files in *"
16009"*) set x $ac_config_files; shift; ac_config_files=$*;;
16010esac
1c710c3c 16011
2aeb72e9 16012
2aeb72e9 16013
5213506e
RW
16014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015# Files that config.status was made for.
16016config_files="$ac_config_files"
1c710c3c 16017
5213506e 16018_ACEOF
2aeb72e9 16019
5213506e 16020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 16021ac_cs_usage="\
5213506e
RW
16022\`$as_me' instantiates files and other configuration actions
16023from templates according to the current configuration. Unless the files
16024and actions are specified as TAGs, all are instantiated by default.
1c710c3c 16025
5213506e 16026Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
16027
16028 -h, --help print this help, then exit
5213506e 16029 -V, --version print version number and configuration settings, then exit
22e05272 16030 --config print configuration, then exit
5213506e
RW
16031 -q, --quiet, --silent
16032 do not print progress messages
1c710c3c
DJ
16033 -d, --debug don't remove temporary files
16034 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16035 --file=FILE[:TEMPLATE]
16036 instantiate the configuration file FILE
1c710c3c
DJ
16037
16038Configuration files:
16039$config_files
16040
5213506e 16041Report bugs to the package provider."
2aeb72e9 16042
5213506e
RW
16043_ACEOF
16044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16045ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
16046ac_cs_version="\\
16047config.status
22e05272
JM
16048configured by $0, generated by GNU Autoconf 2.69,
16049 with options \\"\$ac_cs_config\\"
1c710c3c 16050
22e05272 16051Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
16052This config.status script is free software; the Free Software Foundation
16053gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16054
16055ac_pwd='$ac_pwd'
16056srcdir='$srcdir'
16057INSTALL='$INSTALL'
87264276 16058AWK='$AWK'
5213506e 16059test -n "\$AWK" || AWK=awk
1c710c3c
DJ
16060_ACEOF
16061
5213506e
RW
16062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063# The default lists apply if the user does not specify any file.
1c710c3c
DJ
16064ac_need_defaults=:
16065while test $# != 0
a4b9e93e 16066do
1c710c3c 16067 case $1 in
22e05272 16068 --*=?*)
5213506e
RW
16069 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16070 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
16071 ac_shift=:
16072 ;;
22e05272
JM
16073 --*=)
16074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16075 ac_optarg=
16076 ac_shift=:
16077 ;;
5213506e 16078 *)
1c710c3c
DJ
16079 ac_option=$1
16080 ac_optarg=$2
16081 ac_shift=shift
16082 ;;
1c710c3c
DJ
16083 esac
16084
16085 case $ac_option in
16086 # Handling of the options.
671aa708 16087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16088 ac_cs_recheck=: ;;
5213506e
RW
16089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16090 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16091 --config | --confi | --conf | --con | --co | --c )
16092 $as_echo "$ac_cs_config"; exit ;;
5213506e 16093 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16094 debug=: ;;
16095 --file | --fil | --fi | --f )
16096 $ac_shift
5213506e
RW
16097 case $ac_optarg in
16098 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16099 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16100 esac
16101 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16102 ac_need_defaults=false;;
5213506e
RW
16103 --he | --h | --help | --hel | -h )
16104 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16107 ac_cs_silent=: ;;
16108
16109 # This is an error.
22e05272 16110 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16111Try \`$0 --help' for more information." ;;
1c710c3c 16112
5213506e
RW
16113 *) as_fn_append ac_config_targets " $1"
16114 ac_need_defaults=false ;;
1c710c3c 16115
0b0dc272 16116 esac
1c710c3c 16117 shift
0b0dc272
AM
16118done
16119
1c710c3c 16120ac_configure_extra_args=
0b0dc272 16121
1c710c3c
DJ
16122if $ac_cs_silent; then
16123 exec 6>/dev/null
16124 ac_configure_extra_args="$ac_configure_extra_args --silent"
16125fi
0b0dc272 16126
1c710c3c 16127_ACEOF
5213506e 16128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16129if \$ac_cs_recheck; then
22e05272 16130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16131 shift
16132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16133 CONFIG_SHELL='$SHELL'
16134 export CONFIG_SHELL
16135 exec "\$@"
1c710c3c
DJ
16136fi
16137
16138_ACEOF
5213506e
RW
16139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140exec 5>>config.log
16141{
16142 echo
16143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16144## Running $as_me. ##
16145_ASBOX
16146 $as_echo "$ac_log"
16147} >&5
1c710c3c 16148
5213506e
RW
16149_ACEOF
16150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16151#
16152# INIT-COMMANDS
16153#
16154extrasub_build="$extrasub_build"
16155 extrasub_host="$extrasub_host"
16156 extrasub_target="$extrasub_target"
16157
5213506e 16158_ACEOF
1c710c3c 16159
5213506e 16160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16161
5213506e 16162# Handling of arguments.
1c710c3c
DJ
16163for ac_config_target in $ac_config_targets
16164do
5213506e
RW
16165 case $ac_config_target in
16166 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16167
22e05272 16168 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16169 esac
16170done
16171
5213506e 16172
1c710c3c
DJ
16173# If the user did not use the arguments to specify the items to instantiate,
16174# then the envvar interface is used. Set only those that are not.
16175# We use the long form for the default assignment because of an extremely
16176# bizarre bug on SunOS 4.1.3.
16177if $ac_need_defaults; then
16178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16179fi
16180
16181# Have a temporary directory for convenience. Make it in the build tree
5213506e 16182# simply because there is no reason against having it here, and in addition,
1c710c3c 16183# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16184# Hook for its removal unless debugging.
16185# Note that there is a small window in which the directory will not be cleaned:
16186# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16187$debug ||
16188{
22e05272 16189 tmp= ac_tmp=
5213506e 16190 trap 'exit_status=$?
22e05272
JM
16191 : "${ac_tmp:=$tmp}"
16192 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16193' 0
16194 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16195}
1c710c3c
DJ
16196# Create a (secure) tmp directory for tmp files.
16197
16198{
5213506e 16199 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16200 test -d "$tmp"
1c710c3c
DJ
16201} ||
16202{
5213506e
RW
16203 tmp=./conf$$-$RANDOM
16204 (umask 077 && mkdir "$tmp")
22e05272
JM
16205} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16206ac_tmp=$tmp
5213506e
RW
16207
16208# Set up the scripts for CONFIG_FILES section.
16209# No need to generate them if there are no CONFIG_FILES.
16210# This happens for instance with `./config.status config.h'.
16211if test -n "$CONFIG_FILES"; then
16212
16213if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16214 ac_cs_awk_getline=:
16215 ac_cs_awk_pipe_init=
16216 ac_cs_awk_read_file='
16217 while ((getline aline < (F[key])) > 0)
16218 print(aline)
16219 close(F[key])'
16220 ac_cs_awk_pipe_fini=
16221else
16222 ac_cs_awk_getline=false
16223 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16224 ac_cs_awk_read_file='
16225 print "|#_!!_#|"
16226 print "cat " F[key] " &&"
16227 '$ac_cs_awk_pipe_init
16228 # The final `:' finishes the AND list.
16229 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16230fi
16231ac_cr=`echo X | tr X '\015'`
16232# On cygwin, bash can eat \r inside `` if the user requested igncr.
16233# But we know of no other shell where ac_cr would be empty at this
16234# point, so we can use a bashism as a fallback.
16235if test "x$ac_cr" = x; then
16236 eval ac_cr=\$\'\\r\'
16237fi
16238ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16239if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16240 ac_cs_awk_cr='\\r'
5213506e
RW
16241else
16242 ac_cs_awk_cr=$ac_cr
16243fi
16244
22e05272 16245echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16246_ACEOF
16247
16248# Create commands to substitute file output variables.
1c710c3c 16249{
5213506e 16250 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16251 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16252 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16253 echo "_ACAWK" &&
16254 echo "_ACEOF"
16255} >conf$$files.sh &&
16256. ./conf$$files.sh ||
22e05272 16257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16258rm -f conf$$files.sh
1c710c3c 16259
5213506e
RW
16260{
16261 echo "cat >conf$$subs.awk <<_ACEOF" &&
16262 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16263 echo "_ACEOF"
16264} >conf$$subs.sh ||
22e05272
JM
16265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16266ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16267ac_delim='%!_!# '
16268for ac_last_try in false false false false false :; do
16269 . ./conf$$subs.sh ||
22e05272 16270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16271
16272 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16273 if test $ac_delim_n = $ac_delim_num; then
16274 break
16275 elif $ac_last_try; then
22e05272 16276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16277 else
16278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16279 fi
16280done
16281rm -f conf$$subs.sh
16282
16283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16284cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16285_ACEOF
5213506e
RW
16286sed -n '
16287h
16288s/^/S["/; s/!.*/"]=/
16289p
16290g
16291s/^[^!]*!//
16292:repl
16293t repl
16294s/'"$ac_delim"'$//
16295t delim
16296:nl
16297h
22e05272 16298s/\(.\{148\}\)..*/\1/
5213506e
RW
16299t more1
16300s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16301p
16302n
16303b repl
16304:more1
16305s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16306p
16307g
16308s/.\{148\}//
16309t nl
16310:delim
16311h
22e05272 16312s/\(.\{148\}\)..*/\1/
5213506e
RW
16313t more2
16314s/["\\]/\\&/g; s/^/"/; s/$/"/
16315p
16316b
16317:more2
16318s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16319p
16320g
16321s/.\{148\}//
16322t delim
16323' <conf$$subs.awk | sed '
16324/^[^""]/{
16325 N
16326 s/\n//
16327}
16328' >>$CONFIG_STATUS || ac_write_fail=1
16329rm -f conf$$subs.awk
16330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331_ACAWK
22e05272 16332cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16333 for (key in S) S_is_set[key] = 1
16334 FS = "\a"
16335 \$ac_cs_awk_pipe_init
16336}
16337{
16338 line = $ 0
16339 nfields = split(line, field, "@")
16340 substed = 0
16341 len = length(field[1])
16342 for (i = 2; i < nfields; i++) {
16343 key = field[i]
16344 keylen = length(key)
16345 if (S_is_set[key]) {
16346 value = S[key]
16347 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16348 len += length(value) + length(field[++i])
16349 substed = 1
16350 } else
16351 len += 1 + keylen
16352 }
16353 if (nfields == 3 && !substed) {
16354 key = field[2]
16355 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16356 \$ac_cs_awk_read_file
16357 next
16358 }
16359 }
16360 print line
16361}
16362\$ac_cs_awk_pipe_fini
16363_ACAWK
16364_ACEOF
16365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16367 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16368else
16369 cat
22e05272
JM
16370fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16371 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16372_ACEOF
16373
22e05272
JM
16374# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16375# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16376# trailing colons and then remove the whole line if VPATH becomes empty
16377# (actually we leave an empty line to preserve line numbers).
16378if test "x$srcdir" = x.; then
22e05272
JM
16379 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16380h
16381s///
16382s/^/:/
16383s/[ ]*$/:/
16384s/:\$(srcdir):/:/g
16385s/:\${srcdir}:/:/g
16386s/:@srcdir@:/:/g
16387s/^:*//
5213506e 16388s/:*$//
22e05272
JM
16389x
16390s/\(=[ ]*\).*/\1/
16391G
16392s/\n//
5213506e
RW
16393s/^[^=]*=[ ]*$//
16394}'
16395fi
2aeb72e9 16396
5213506e
RW
16397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398fi # test -n "$CONFIG_FILES"
2aeb72e9 16399
1c710c3c 16400
5213506e
RW
16401eval set X " :F $CONFIG_FILES "
16402shift
16403for ac_tag
16404do
16405 case $ac_tag in
16406 :[FHLC]) ac_mode=$ac_tag; continue;;
16407 esac
16408 case $ac_mode$ac_tag in
16409 :[FHL]*:*);;
22e05272 16410 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16411 :[FH]-) ac_tag=-:-;;
16412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16413 esac
16414 ac_save_IFS=$IFS
16415 IFS=:
16416 set x $ac_tag
16417 IFS=$ac_save_IFS
16418 shift
16419 ac_file=$1
16420 shift
79c06341 16421
5213506e
RW
16422 case $ac_mode in
16423 :L) ac_source=$1;;
16424 :[FH])
16425 ac_file_inputs=
16426 for ac_f
16427 do
16428 case $ac_f in
22e05272 16429 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16430 *) # Look for the file first in the build tree, then in the source tree
16431 # (if the path is not absolute). The absolute path cannot be DOS-style,
16432 # because $ac_f cannot contain `:'.
16433 test -f "$ac_f" ||
16434 case $ac_f in
16435 [\\/$]*) false;;
16436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16437 esac ||
22e05272 16438 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16439 esac
16440 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16441 as_fn_append ac_file_inputs " '$ac_f'"
16442 done
1c710c3c 16443
5213506e
RW
16444 # Let's still pretend it is `configure' which instantiates (i.e., don't
16445 # use $as_me), people would be surprised to read:
16446 # /* config.h. Generated by config.status. */
16447 configure_input='Generated from '`
16448 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16449 `' by configure.'
16450 if test x"$ac_file" != x-; then
16451 configure_input="$ac_file. $configure_input"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16453$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16454 fi
5213506e
RW
16455 # Neutralize special characters interpreted by sed in replacement strings.
16456 case $configure_input in #(
16457 *\&* | *\|* | *\\* )
16458 ac_sed_conf_input=`$as_echo "$configure_input" |
16459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16460 *) ac_sed_conf_input=$configure_input;;
16461 esac
11a67599 16462
5213506e 16463 case $ac_tag in
22e05272
JM
16464 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16466 esac
16467 ;;
11a67599
ZW
16468 esac
16469
5213506e 16470 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16471$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16472 X"$ac_file" : 'X\(//\)[^/]' \| \
16473 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16475$as_echo X"$ac_file" |
16476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16477 s//\1/
16478 q
16479 }
16480 /^X\(\/\/\)[^/].*/{
16481 s//\1/
16482 q
16483 }
16484 /^X\(\/\/\)$/{
16485 s//\1/
16486 q
16487 }
16488 /^X\(\/\).*/{
16489 s//\1/
16490 q
16491 }
16492 s/.*/./; q'`
16493 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16494 ac_builddir=.
0b0dc272 16495
5213506e
RW
16496case "$ac_dir" in
16497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16498*)
16499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16500 # A ".." for each directory in $ac_dir_suffix.
16501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16502 case $ac_top_builddir_sub in
16503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16505 esac ;;
16506esac
16507ac_abs_top_builddir=$ac_pwd
16508ac_abs_builddir=$ac_pwd$ac_dir_suffix
16509# for backward compatibility:
16510ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16511
16512case $srcdir in
5213506e 16513 .) # We are building in place.
1c710c3c 16514 ac_srcdir=.
5213506e
RW
16515 ac_top_srcdir=$ac_top_builddir_sub
16516 ac_abs_top_srcdir=$ac_pwd ;;
16517 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16518 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16519 ac_top_srcdir=$srcdir
16520 ac_abs_top_srcdir=$srcdir ;;
16521 *) # Relative name.
16522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16523 ac_top_srcdir=$ac_top_build_prefix$srcdir
16524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16525esac
5213506e 16526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16527
0b0dc272 16528
5213506e
RW
16529 case $ac_mode in
16530 :F)
16531 #
16532 # CONFIG_FILE
16533 #
1c710c3c
DJ
16534
16535 case $INSTALL in
16536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16538 esac
5213506e 16539_ACEOF
11a67599 16540
5213506e
RW
16541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16542# If the template does not know about datarootdir, expand it.
16543# FIXME: This hack should be removed a few years after 2.60.
16544ac_datarootdir_hack=; ac_datarootdir_seen=
16545ac_sed_dataroot='
16546/datarootdir/ {
16547 p
16548 q
16549}
16550/@datadir@/p
16551/@docdir@/p
16552/@infodir@/p
16553/@localedir@/p
16554/@mandir@/p'
16555case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16556*datarootdir*) ac_datarootdir_seen=yes;;
16557*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16559$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16560_ACEOF
5213506e
RW
16561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562 ac_datarootdir_hack='
16563 s&@datadir@&$datadir&g
16564 s&@docdir@&$docdir&g
16565 s&@infodir@&$infodir&g
16566 s&@localedir@&$localedir&g
16567 s&@mandir@&$mandir&g
16568 s&\\\${datarootdir}&$datarootdir&g' ;;
16569esac
16570_ACEOF
16571
16572# Neutralize VPATH when `$srcdir' = `.'.
16573# Shell code in configure.ac might set extrasub.
16574# FIXME: do we really want to maintain this feature?
16575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16577$extrasub
16578_ACEOF
5213506e 16579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16580:t
16581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16582s|@configure_input@|$ac_sed_conf_input|;t t
16583s&@top_builddir@&$ac_top_builddir_sub&;t t
16584s&@top_build_prefix@&$ac_top_build_prefix&;t t
16585s&@srcdir@&$ac_srcdir&;t t
16586s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587s&@top_srcdir@&$ac_top_srcdir&;t t
16588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589s&@builddir@&$ac_builddir&;t t
16590s&@abs_builddir@&$ac_abs_builddir&;t t
16591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592s&@INSTALL@&$ac_INSTALL&;t t
16593$ac_datarootdir_hack
16594"
16595eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16596if $ac_cs_awk_getline; then
22e05272 16597 $AWK -f "$ac_tmp/subs.awk"
5213506e 16598else
22e05272
JM
16599 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16600fi \
16601 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16602
16603test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16604 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16606 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16608which seems to be undefined. Please make sure it is defined" >&5
5213506e 16609$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16610which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16611
22e05272 16612 rm -f "$ac_tmp/stdin"
5213506e 16613 case $ac_file in
22e05272
JM
16614 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16615 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16616 esac \
22e05272 16617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16618 ;;
11a67599 16619
11a67599 16620
79c06341 16621
5213506e
RW
16622 esac
16623
3e54529c
RW
16624
16625 case $ac_file$ac_mode in
16626 "Makefile":F) sed "$extrasub_build" Makefile |
16627 sed "$extrasub_host" |
16628 sed "$extrasub_target" > mf$$
16629 mv -f mf$$ Makefile ;;
16630
16631 esac
5213506e
RW
16632done # for ac_tag
16633
16634
16635as_fn_exit 0
1c710c3c 16636_ACEOF
1c710c3c
DJ
16637ac_clean_files=$ac_clean_files_save
16638
5213506e 16639test $ac_write_fail = 0 ||
22e05272 16640 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16641
1c710c3c
DJ
16642
16643# configure is writing to config.log, and then calls config.status.
16644# config.status does its own redirection, appending to config.log.
16645# Unfortunately, on DOS this fails, as config.log is still kept open
16646# by configure, so config.status won't be able to write to it; its
16647# output is simply discarded. So we exec the FD to /dev/null,
16648# effectively closing config.log, so it can be properly (re)opened and
16649# appended to by config.status. When coming back to configure, we
16650# need to make the FD available again.
16651if test "$no_create" != yes; then
16652 ac_cs_success=:
16653 ac_config_status_args=
16654 test "$silent" = yes &&
16655 ac_config_status_args="$ac_config_status_args --quiet"
16656 exec 5>/dev/null
16657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16658 exec 5>>config.log
16659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16660 # would make configure fail if this is the last instruction.
22e05272 16661 $ac_cs_success || as_fn_exit 1
5213506e
RW
16662fi
16663if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16665$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16666fi
79c06341 16667