]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
[gcn] Use 'radeon' for the environment variable 'ACC_DEVICE_TYPE'
[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".
f9d09df0 2796host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
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 ;;
29b1533a 3216 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 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
f9d09df0
TT
3580# Only allow gdbserver on some systems.
3581if test -d ${srcdir}/gdbserver; then
3582 if test x$enable_gdbserver = x; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3584$as_echo_n "checking for gdbserver support... " >&6; }
3585 if (srcdir=${srcdir}/gdbserver; \
3586 . ${srcdir}/configure.srv; \
3587 test -n "$UNSUPPORTED")
3588 then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591 noconfigdirs="$noconfigdirs gdbserver"
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594$as_echo "yes" >&6; }
3595 fi
3596 fi
3597fi
3598
cdbc9e92
ILT
3599# Disable libgo for some systems where it is known to not work.
3600# For testing, you can easily override this with --enable-libgo.
3601if test x$enable_libgo = x; then
3602 case "${target}" in
3603 *-*-darwin*)
3604 # PR 46986
3605 noconfigdirs="$noconfigdirs target-libgo"
3606 ;;
3607 *-*-cygwin* | *-*-mingw*)
3608 noconfigdirs="$noconfigdirs target-libgo"
3609 ;;
91dfef96
JM
3610 bpf-*-*)
3611 noconfigdirs="$noconfigdirs target-libgo"
3612 ;;
cdbc9e92
ILT
3613 esac
3614fi
3615
c03353e2
RIL
3616# Default libgloss CPU subdirectory.
3617libgloss_dir="$target_cpu"
6de9cd9a 3618
fbcf0dca
JM
3619case "${target}" in
3620 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3621 libgloss_dir=wince
3622 ;;
4dddfc74
YZ
3623 aarch64*-*-* )
3624 libgloss_dir=aarch64
3625 ;;
fbcf0dca
JM
3626 arm*-*-*)
3627 libgloss_dir=arm
3628 ;;
3629 cris-*-* | crisv32-*-*)
3630 libgloss_dir=cris
3631 ;;
3632 hppa*-*-*)
3633 libgloss_dir=pa
3634 ;;
3635 i[3456789]86-*-*)
3636 libgloss_dir=i386
3637 ;;
3638 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3639 libgloss_dir=m68hc11
3640 ;;
3641 m68*-*-* | fido-*-*)
3642 libgloss_dir=m68k
3643 ;;
3644 mips*-*-*)
3645 libgloss_dir=mips
3646 ;;
3647 powerpc*-*-*)
3648 libgloss_dir=rs6000
3649 ;;
8d2af3a2
DD
3650 pru-*-*)
3651 libgloss_dir=pru
3652 ;;
fbcf0dca
JM
3653 sparc*-*-*)
3654 libgloss_dir=sparc
3655 ;;
3656esac
3657
6a789d5e 3658# Disable newlib and libgloss for various target OSes.
671aa708 3659case "${target}" in
6a789d5e
JM
3660 alpha*-dec-osf*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 i[3456789]86-*-linux*)
3664 # This section makes it possible to build newlib natively on linux.
3665 # If we are using a cross compiler then don't configure newlib.
3666 if test x${is_cross_compiler} != xno ; then
3667 noconfigdirs="$noconfigdirs target-newlib"
3668 fi
3669 noconfigdirs="$noconfigdirs target-libgloss"
3670 # If we are not using a cross compiler, do configure newlib.
3671 # Note however, that newlib will only be configured in this situation
3672 # if the --with-newlib option has been given, because otherwise
3673 # 'target-newlib' will appear in skipdirs.
3674 ;;
3675 i[3456789]86-*-rdos*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 ;;
3678 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 sparc-*-sunos4*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
91dfef96
JM
3684 bpf-*-*)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
6a789d5e
JM
3687 *-*-aix*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 *-*-beos*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
671aa708 3693 *-*-chorusos)
0036370f 3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3695 ;;
6a789d5e
JM
3696 *-*-dragonfly*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 *-*-freebsd*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-lynxos*)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-mingw*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-netbsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-netware*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-tpf*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-uclinux*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-vxworks*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726esac
3727
3728case "${target}" in
3729 *-*-chorusos)
3730 ;;
3be96231
TG
3731 aarch64-*-darwin*)
3732 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3733 noconfigdirs="$noconfigdirs sim target-rda"
3734 ;;
7431c1a1
AS
3735 amdgcn*-*-*)
3736 ;;
3be96231
TG
3737 arm-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3740 ;;
75eeae1a 3741 powerpc-*-darwin*)
e1514c3f 3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3743 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3744 ;;
354ebf88
RW
3745 i[3456789]86-*-darwin*)
3746 noconfigdirs="$noconfigdirs ld gprof"
3747 noconfigdirs="$noconfigdirs sim target-rda"
3748 ;;
3749 x86_64-*-darwin[912]*)
0db3a858
TG
3750 noconfigdirs="$noconfigdirs ld gas gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
42c1cd8a
AT
3753 *-*-darwin*)
3754 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3756 ;;
8c6d158a 3757 *-*-dragonfly*)
8c6d158a 3758 ;;
c3f84f61 3759 *-*-freebsd*)
6de9cd9a
DN
3760 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3761 && test -f /usr/local/include/gmp.h; then
3762 with_gmp=/usr/local
3763 fi
6de9cd9a 3764 ;;
ef4e7569
US
3765 *-*-kaos*)
3766 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3767 noconfigdirs="$noconfigdirs target-libgloss"
3768 ;;
671aa708 3769 *-*-netbsd*)
671aa708 3770 ;;
61fec9ff 3771 *-*-netware*)
671aa708 3772 ;;
fd6487af
JS
3773 *-*-phoenix*)
3774 noconfigdirs="$noconfigdirs target-libgloss"
3775 ;;
671aa708 3776 *-*-rtems*)
2909494b 3777 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3778 ;;
a8ba31f2
EC
3779 # The tpf target doesn't support gdb yet.
3780 *-*-tpf*)
6a789d5e 3781 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3782 ;;
5785c0ed 3783 *-*-uclinux*)
6a789d5e 3784 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3785 ;;
671aa708 3786 *-*-vxworks*)
671aa708
NN
3787 ;;
3788 alpha*-dec-osf*)
3789 # ld works, but does not support shared libraries.
671aa708 3790 # gas doesn't generate exception information.
6a789d5e 3791 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3792 ;;
3793 alpha*-*-*vms*)
2909494b 3794 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3795 ;;
671aa708
NN
3796 alpha*-*-*)
3797 # newlib is not 64 bit ready
2909494b 3798 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3799 ;;
91dfef96
JM
3800 bpf-*-*)
3801 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3802 ;;
671aa708 3803 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3804 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3805 ;;
2fd88f4f
AK
3806 arc*-*-*)
3807 noconfigdirs="$noconfigdirs sim"
3808 ;;
671aa708 3809 arm-*-pe*)
2909494b 3810 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3811 ;;
671aa708 3812 arm-*-riscix*)
0036370f 3813 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3814 ;;
b588ae30
GJL
3815 avr-*-*)
3816 if test x${with_avrlibc} != xno; then
3817 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3818 fi
3819 ;;
671aa708 3820 c4x-*-* | tic4x-*-*)
0036370f 3821 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3822 ;;
0036370f
JM
3823 tic54x-*-*)
3824 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3825 ;;
671aa708 3826 d10v-*-*)
0036370f 3827 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3828 ;;
3829 d30v-*-*)
0036370f 3830 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3831 ;;
3832 fr30-*-elf*)
2909494b 3833 noconfigdirs="$noconfigdirs gdb"
671aa708 3834 ;;
a05c2c75
L
3835 ft32-*-*)
3836 noconfigdirs="$noconfigdirs target-rda gprof"
3837 ;;
55f2d967 3838 moxie-*-*)
a05c2c75 3839 noconfigdirs="$noconfigdirs"
55f2d967 3840 ;;
671aa708 3841 h8300*-*-*)
2909494b 3842 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3843 ;;
3844 h8500-*-*)
0036370f 3845 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3846 ;;
ee6a22df 3847 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3848 ;;
a05c2c75
L
3849 hppa*64*-*-hpux*)
3850 noconfigdirs="$noconfigdirs gdb"
3851 ;;
3852 hppa*-*-hpux11*)
3853 noconfigdirs="$noconfigdirs gdb ld"
3854 ;;
4569f85e 3855 hppa*64*-*-linux*)
671aa708 3856 ;;
56f8587a 3857 hppa*-*-linux*)
3e732ba0 3858 ;;
671aa708 3859 hppa*-*-*elf* | \
671aa708
NN
3860 hppa*-*-lites* | \
3861 hppa*-*-openbsd* | \
3862 hppa*64*-*-*)
671aa708 3863 ;;
c03353e2 3864 hppa*-*-pro*)
c03353e2 3865 ;;
671aa708 3866 hppa*-*-*)
2909494b 3867 noconfigdirs="$noconfigdirs ld"
671aa708 3868 ;;
fb87ad5d 3869 i960-*-*)
0036370f 3870 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3871 ;;
671aa708
NN
3872 ia64*-*-elf*)
3873 # No gdb support yet.
1bcce263 3874 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3875 ;;
3876 ia64*-**-hpux*)
5a2931d1 3877 # No ld support yet.
a05c2c75 3878 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3879 ;;
52535a64 3880 ia64*-*-*vms*)
091fe9ca
TG
3881 # No ld support yet.
3882 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3883 ;;
ef4c4300 3884 i[3456789]86-w64-mingw*)
ef4c4300
KT
3885 ;;
3886 i[3456789]86-*-mingw*)
b91f0a41 3887 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3888 ;;
671aa708
NN
3889 *-*-cygwin*)
3890 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3891 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3892 # always build newlib if winsup directory is present.
b91f0a41 3893 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3894 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3895 elif test -d "$srcdir/newlib"; then
b91f0a41 3896 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3897 fi
1c710c3c 3898 ;;
f2a0e225 3899 i[3456789]86-*-pe)
ebb9f8b0 3900 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3901 ;;
f2a0e225 3902 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3903 # The linker does not yet know about weak symbols in COFF,
3904 # and is not configured to handle mixed ELF and COFF.
0036370f 3905 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3906 ;;
f2a0e225 3907 i[3456789]86-*-sco*)
0036370f 3908 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3909 ;;
fbdd5d87 3910 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3911 noconfigdirs="$noconfigdirs target-libgloss"
3912 ;;
f2a0e225 3913 i[3456789]86-*-sysv4*)
0036370f 3914 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3915 ;;
f2a0e225 3916 i[3456789]86-*-beos*)
6a789d5e 3917 noconfigdirs="$noconfigdirs gdb"
3aa83176 3918 ;;
d1f8db0c 3919 i[3456789]86-*-rdos*)
6a789d5e 3920 noconfigdirs="$noconfigdirs gdb"
c03353e2 3921 ;;
671aa708 3922 mmix-*-*)
2909494b 3923 noconfigdirs="$noconfigdirs gdb"
671aa708 3924 ;;
ab34901f 3925 mt-*-*)
79dd769c
AH
3926 noconfigdirs="$noconfigdirs sim"
3927 ;;
58b40a67
FT
3928 nfp-*-*)
3929 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3930 noconfigdirs="$noconfigdirs $target_libraries"
3931 ;;
e6cbe965
SC
3932 pdp11-*-*)
3933 noconfigdirs="$noconfigdirs gdb gprof"
3934 ;;
671aa708
NN
3935 powerpc-*-aix*)
3936 # copied from rs6000-*-* entry
6a789d5e 3937 noconfigdirs="$noconfigdirs gprof"
671aa708 3938 ;;
4569f85e 3939 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3940 target_configdirs="$target_configdirs target-winsup"
0036370f 3941 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3942 # always build newlib.
3943 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3944 ;;
3945 # This is temporary until we can link against shared libraries
3946 powerpcle-*-solaris*)
0036370f 3947 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3948 ;;
3949 powerpc-*-beos*)
6a789d5e 3950 noconfigdirs="$noconfigdirs gdb"
671aa708 3951 ;;
671aa708 3952 rs6000-*-lynxos*)
6a789d5e 3953 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3954 ;;
3955 rs6000-*-aix*)
6a789d5e 3956 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3957 ;;
3958 rs6000-*-*)
2909494b 3959 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3960 ;;
3961 m68k-apollo-*)
0036370f 3962 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3963 ;;
ca9fe997 3964 microblaze*)
2909494b 3965 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3966 ;;
d896cc4d 3967 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3968 if test x$with_newlib = xyes; then
3969 noconfigdirs="$noconfigdirs gprof"
3970 fi
d9dced13 3971 ;;
671aa708 3972 mips*-*-irix5*)
0036370f 3973 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3974 ;;
3975 mips*-*-irix6*)
2909494b 3976 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3977 ;;
671aa708 3978 mips*-*-bsd*)
bc98bcc4 3979 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3980 ;;
671aa708 3981 mips*-*-linux*)
671aa708 3982 ;;
bc98bcc4
JBG
3983 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3984 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3985 noconfigdirs="$noconfigdirs ld gas gprof"
3986 ;;
671aa708 3987 mips*-*-*)
2909494b 3988 noconfigdirs="$noconfigdirs gprof"
671aa708 3989 ;;
738f2522 3990 nvptx*-*-*)
738f2522
BS
3991 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3992 ;;
bc6d9014 3993 sh-*-*)
ea2002ba
CB
3994 case "${target}" in
3995 sh*-*-elf)
2909494b 3996 ;;
ea2002ba 3997 *)
2909494b 3998 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3999 esac
671aa708 4000 ;;
671aa708 4001 sparc-*-sunos4*)
6a789d5e 4002 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4003 use_gnu_ld=no
4004 fi
4005 ;;
b42f0d7e 4006 tic6x-*-*)
0d557ff8 4007 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4008 ;;
341c653c 4009 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4010 noconfigdirs="$noconfigdirs sim"
4011 ;;
671aa708 4012 v810-*-*)
0036370f 4013 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4014 ;;
4015 vax-*-*)
2909494b 4016 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4017 ;;
1fc1d82e
MR
4018 wasm32-*-*)
4019 noconfigdirs="$noconfigdirs ld"
4020 ;;
671aa708 4021esac
79c06341 4022
671aa708
NN
4023# If we aren't building newlib, then don't build libgloss, since libgloss
4024# depends upon some newlib header files.
4025case "${noconfigdirs}" in
4026 *target-libgloss*) ;;
4027 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4028esac
4029
671aa708 4030# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4031host_makefile_frag=/dev/null
4032if test -d ${srcdir}/config ; then
4033case "${host}" in
f2a0e225 4034 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4035 host_makefile_frag="config/mh-djgpp"
4036 ;;
4037 *-cygwin*)
2a79c47f 4038
5213506e
RW
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4040$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4041echo a >cygwin-cat-check
e25a8c82 4042if test `cat cygwin-cat-check` = a ; then
2a79c47f 4043 rm cygwin-cat-check
5213506e
RW
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4045$as_echo "yes" >&6; }
2a79c47f
NC
4046else
4047 rm cygwin-cat-check
5213506e
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
22e05272 4050 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4051 Please either mount the build directory in binary mode or run the following
4052 commands before running any configure script:
4053set -o igncr
4054export SHELLOPTS
5213506e 4055 " "$LINENO" 5
2a79c47f
NC
4056fi
4057
671aa708
NN
4058 host_makefile_frag="config/mh-cygwin"
4059 ;;
c53a18d3 4060 *-mingw*)
1f5a6b84 4061 host_makefile_frag="config/mh-mingw"
95af8923 4062 ;;
cabb9d59 4063 alpha*-linux*)
13be44ed
UB
4064 host_makefile_frag="config/mh-alpha-linux"
4065 ;;
efd41714 4066 hppa*-hp-hpux10*)
efd41714 4067 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4068 ;;
111eeb6e 4069 hppa*-hp-hpux*)
efd41714
PB
4070 host_makefile_frag="config/mh-pa"
4071 ;;
4072 hppa*-*)
4073 host_makefile_frag="config/mh-pa"
4074 ;;
d8ed14ce
IS
4075 *-*-darwin*)
4076 host_makefile_frag="config/mh-darwin"
be8fff81 4077 ;;
d19bca38
PB
4078 powerpc-*-aix*)
4079 host_makefile_frag="config/mh-ppc-aix"
4080 ;;
4081 rs6000-*-aix*)
4082 host_makefile_frag="config/mh-ppc-aix"
4083 ;;
671aa708
NN
4084esac
4085fi
4086
55ffb5ed 4087if test "${build}" != "${host}" ; then
0999159b
PB
4088 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4089 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4090 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4091 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4092 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4093 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4094 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4095 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4096 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4097 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4098 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4099 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4100 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4101else
4102 AR_FOR_BUILD="\$(AR)"
4103 AS_FOR_BUILD="\$(AS)"
fb0103e5 4104 CC_FOR_BUILD="\$(CC)"
0999159b 4105 CXX_FOR_BUILD="\$(CXX)"
0999159b 4106 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4107 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4108 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4109 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4110 LD_FOR_BUILD="\$(LD)"
4111 NM_FOR_BUILD="\$(NM)"
4112 RANLIB_FOR_BUILD="\$(RANLIB)"
4113 WINDRES_FOR_BUILD="\$(WINDRES)"
4114 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4115fi
4116
4117ac_ext=c
1c710c3c
DJ
4118ac_cpp='$CPP $CPPFLAGS'
4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4127if ${ac_cv_prog_CC+:} false; then :
5213506e 4128 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4129else
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
5213506e 4138 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4142 break 2
4143 fi
4144done
5213506e
RW
4145 done
4146IFS=$as_save_IFS
1c710c3c
DJ
4147
4148fi
4149fi
4150CC=$ac_cv_prog_CC
4151if test -n "$CC"; then
5213506e
RW
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4153$as_echo "$CC" >&6; }
1c710c3c 4154else
5213506e
RW
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156$as_echo "no" >&6; }
1c710c3c
DJ
4157fi
4158
5213506e 4159
1c710c3c
DJ
4160fi
4161if test -z "$ac_cv_prog_CC"; then
4162 ac_ct_CC=$CC
fb0103e5
RG
4163 # Extract the first word of "gcc", so it can be a program name with args.
4164set dummy gcc; ac_word=$2
5213506e
RW
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4167if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4168 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4169else
4170 if test -n "$ac_ct_CC"; then
4171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
5213506e 4178 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4180 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4182 break 2
4183 fi
4184done
5213506e
RW
4185 done
4186IFS=$as_save_IFS
1c710c3c
DJ
4187
4188fi
4189fi
4190ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191if test -n "$ac_ct_CC"; then
5213506e
RW
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4193$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4194else
5213506e
RW
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
1c710c3c
DJ
4197fi
4198
5213506e
RW
4199 if test "x$ac_ct_CC" = x; then
4200 CC=""
4201 else
4202 case $cross_compiling:$ac_tool_warned in
4203yes:)
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4206ac_tool_warned=yes ;;
4207esac
4208 CC=$ac_ct_CC
4209 fi
1c710c3c
DJ
4210else
4211 CC="$ac_cv_prog_CC"
4212fi
4213
4214if test -z "$CC"; then
5213506e
RW
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4217set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4220if ${ac_cv_prog_CC+:} false; then :
5213506e 4221 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4222else
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
4225else
1c710c3c
DJ
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
5213506e 4231 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4233 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4235 break 2
4236 fi
4237done
5213506e
RW
4238 done
4239IFS=$as_save_IFS
1c710c3c 4240
0b0dc272 4241fi
0b0dc272 4242fi
1c710c3c 4243CC=$ac_cv_prog_CC
af71363e 4244if test -n "$CC"; then
5213506e
RW
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246$as_echo "$CC" >&6; }
2aeb72e9 4247else
5213506e
RW
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249$as_echo "no" >&6; }
2aeb72e9
DD
4250fi
4251
2aeb72e9 4252
5213506e 4253 fi
1c710c3c 4254fi
55ffb5ed
NN
4255if test -z "$CC"; then
4256 # Extract the first word of "cc", so it can be a program name with args.
4257set dummy cc; ac_word=$2
5213506e
RW
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4260if ${ac_cv_prog_CC+:} false; then :
5213506e 4261 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4262else
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4265else
0b0dc272 4266 ac_prog_rejected=no
1c710c3c
DJ
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
5213506e 4272 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4275 ac_prog_rejected=yes
4276 continue
4277 fi
4278 ac_cv_prog_CC="cc"
5213506e 4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4280 break 2
4281 fi
4282done
5213506e
RW
4283 done
4284IFS=$as_save_IFS
1c710c3c 4285
55ffb5ed
NN
4286if test $ac_prog_rejected = yes; then
4287 # We found a bogon in the path, so make sure we never use it.
4288 set dummy $ac_cv_prog_CC
4289 shift
1c710c3c 4290 if test $# != 0; then
55ffb5ed
NN
4291 # We chose a different compiler from the bogus one.
4292 # However, it has the same basename, so the bogon will be chosen
4293 # first if we set CC to just the basename; use the full file name.
4294 shift
1c710c3c 4295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4296 fi
4297fi
4298fi
4299fi
1c710c3c 4300CC=$ac_cv_prog_CC
55ffb5ed 4301if test -n "$CC"; then
5213506e
RW
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303$as_echo "$CC" >&6; }
55ffb5ed 4304else
5213506e
RW
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
55ffb5ed
NN
4307fi
4308
5213506e 4309
1c710c3c
DJ
4310fi
4311if test -z "$CC"; then
4312 if test -n "$ac_tool_prefix"; then
5213506e 4313 for ac_prog in cl.exe
1c710c3c
DJ
4314 do
4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4316set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4319if ${ac_cv_prog_CC+:} false; then :
5213506e 4320 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4321else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324else
1c710c3c
DJ
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
5213506e 4330 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4334 break 2
4335 fi
4336done
5213506e
RW
4337 done
4338IFS=$as_save_IFS
1c710c3c 4339
55ffb5ed
NN
4340fi
4341fi
1c710c3c 4342CC=$ac_cv_prog_CC
55ffb5ed 4343if test -n "$CC"; then
5213506e
RW
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345$as_echo "$CC" >&6; }
a4b9e93e 4346else
5213506e
RW
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
fb0103e5 4349fi
af71363e 4350
5213506e 4351
1c710c3c
DJ
4352 test -n "$CC" && break
4353 done
af71363e 4354fi
1c710c3c
DJ
4355if test -z "$CC"; then
4356 ac_ct_CC=$CC
5213506e 4357 for ac_prog in cl.exe
1c710c3c
DJ
4358do
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360set dummy $ac_prog; ac_word=$2
5213506e
RW
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4363if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4364 $as_echo_n "(cached) " >&6
0b0dc272 4365else
1c710c3c
DJ
4366 if test -n "$ac_ct_CC"; then
4367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4368else
1c710c3c
DJ
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
5213506e 4374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4376 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4378 break 2
4379 fi
4380done
5213506e
RW
4381 done
4382IFS=$as_save_IFS
1c710c3c 4383
af71363e
AS
4384fi
4385fi
1c710c3c
DJ
4386ac_ct_CC=$ac_cv_prog_ac_ct_CC
4387if test -n "$ac_ct_CC"; then
5213506e
RW
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4389$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4390else
5213506e
RW
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
af71363e 4393fi
0b0dc272 4394
5213506e 4395
1c710c3c
DJ
4396 test -n "$ac_ct_CC" && break
4397done
4398
5213506e
RW
4399 if test "x$ac_ct_CC" = x; then
4400 CC=""
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403yes:)
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406ac_tool_warned=yes ;;
4407esac
4408 CC=$ac_ct_CC
4409 fi
1c710c3c
DJ
4410fi
4411
4412fi
4413
4414
5213506e
RW
4415test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4417as_fn_error $? "no acceptable C compiler found in \$PATH
4418See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4419
4420# Provide some information about the compiler.
5213506e
RW
4421$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4422set X $ac_compile
4423ac_compiler=$2
4424for ac_option in --version -v -V -qversion; do
4425 { { ac_try="$ac_compiler $ac_option >&5"
4426case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429esac
4430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431$as_echo "$ac_try_echo"; } >&5
4432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4433 ac_status=$?
5213506e
RW
4434 if test -s conftest.err; then
4435 sed '10a\
4436... rest of stderr output deleted ...
4437 10q' conftest.err >conftest.er1
4438 cat conftest.er1 >&5
5213506e 4439 fi
22e05272 4440 rm -f conftest.er1 conftest.err
5213506e
RW
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }
4443done
1c710c3c 4444
5213506e 4445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4446/* end confdefs.h. */
4447
4448int
4449main ()
4450{
4451
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456ac_clean_files_save=$ac_clean_files
22e05272 4457ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4458# Try to create an executable without -o first, disregard a.out.
4459# It will help us diagnose broken compilers, and finding out an intuition
4460# of exeext.
22e05272
JM
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4462$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4463ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4464
4465# The possible output files:
4466ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4467
4468ac_rmfiles=
4469for ac_file in $ac_files
4470do
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4474 esac
4475done
4476rm -f $ac_rmfiles
4477
4478if { { ac_try="$ac_link_default"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484$as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_link_default") 2>&5
1c710c3c 4486 ac_status=$?
5213506e
RW
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4490# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4491# in a Makefile. We should not override ac_cv_exeext if it was cached,
4492# so that the user can short-circuit this test for compilers unknown to
4493# Autoconf.
4494for ac_file in $ac_files ''
1c710c3c
DJ
4495do
4496 test -f "$ac_file" || continue
4497 case $ac_file in
5213506e 4498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4499 ;;
4500 [ab].out )
4501 # We found the default executable, but exeext='' is most
4502 # certainly right.
4503 break;;
4504 *.* )
5213506e
RW
4505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4506 then :; else
4507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4508 fi
4509 # We set ac_cv_exeext here because the later test for it is not
4510 # safe: cross compilers may not add the suffix if given an `-o'
4511 # argument, so we may need to know it at that point already.
4512 # Even if this section looks crufty: it has the advantage of
4513 # actually working.
1c710c3c
DJ
4514 break;;
4515 * )
4516 break;;
4517 esac
4518done
5213506e
RW
4519test "$ac_cv_exeext" = no && ac_cv_exeext=
4520
1c710c3c 4521else
5213506e
RW
4522 ac_file=''
4523fi
5213506e 4524if test -z "$ac_file"; then :
22e05272
JM
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526$as_echo "no" >&6; }
4527$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
5213506e
RW
4530{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4532as_fn_error 77 "C compiler cannot create executables
4533See \`config.log' for more details" "$LINENO" 5; }
4534else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536$as_echo "yes" >&6; }
1c710c3c 4537fi
22e05272
JM
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4539$as_echo_n "checking for C compiler default output file name... " >&6; }
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4541$as_echo "$ac_file" >&6; }
1c710c3c 4542ac_exeext=$ac_cv_exeext
1c710c3c 4543
22e05272 4544rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4545ac_clean_files=$ac_clean_files_save
5213506e
RW
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4547$as_echo_n "checking for suffix of executables... " >&6; }
4548if { { ac_try="$ac_link"
4549case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552esac
4553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4554$as_echo "$ac_try_echo"; } >&5
4555 (eval "$ac_link") 2>&5
1c710c3c 4556 ac_status=$?
5213506e
RW
4557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4558 test $ac_status = 0; }; then :
1c710c3c
DJ
4559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4560# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4561# work properly (i.e., refer to `conftest.exe'), while it won't with
4562# `rm'.
4563for ac_file in conftest.exe conftest conftest.*; do
4564 test -f "$ac_file" || continue
4565 case $ac_file in
5213506e 4566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4568 break;;
4569 * ) break;;
4570 esac
4571done
af71363e 4572else
5213506e
RW
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4575as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4576See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4577fi
22e05272 4578rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4580$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4581
4582rm -f conftest.$ac_ext
4583EXEEXT=$ac_cv_exeext
4584ac_exeext=$EXEEXT
22e05272
JM
4585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587#include <stdio.h>
4588int
4589main ()
4590{
4591FILE *f = fopen ("conftest.out", "w");
4592 return ferror (f) || fclose (f) != 0;
4593
4594 ;
4595 return 0;
4596}
4597_ACEOF
4598ac_clean_files="$ac_clean_files conftest.out"
4599# Check that the compiler produces executables we can run. If not, either
4600# the compiler is broken, or we cross compile.
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4602$as_echo_n "checking whether we are cross compiling... " >&6; }
4603if test "$cross_compiling" != yes; then
4604 { { ac_try="$ac_link"
4605case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610$as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_link") 2>&5
4612 ac_status=$?
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }
4615 if { ac_try='./conftest$ac_cv_exeext'
4616 { { case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619esac
4620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621$as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_try") 2>&5
4623 ac_status=$?
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }; }; then
4626 cross_compiling=no
4627 else
4628 if test "$cross_compiling" = maybe; then
4629 cross_compiling=yes
4630 else
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633as_fn_error $? "cannot run C compiled programs.
4634If you meant to cross compile, use \`--host'.
4635See \`config.log' for more details" "$LINENO" 5; }
4636 fi
4637 fi
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4640$as_echo "$cross_compiling" >&6; }
4641
4642rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4643ac_clean_files=$ac_clean_files_save
5213506e
RW
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4645$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4646if ${ac_cv_objext+:} false; then :
5213506e 4647 $as_echo_n "(cached) " >&6
1c710c3c 4648else
5213506e 4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
4655
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660rm -f conftest.o conftest.obj
5213506e
RW
4661if { { ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
4666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667$as_echo "$ac_try_echo"; } >&5
4668 (eval "$ac_compile") 2>&5
1c710c3c 4669 ac_status=$?
5213506e
RW
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }; then :
4672 for ac_file in conftest.o conftest.obj conftest.*; do
4673 test -f "$ac_file" || continue;
1c710c3c 4674 case $ac_file in
5213506e 4675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4677 break;;
4678 esac
4679done
4680else
5213506e 4681 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
5213506e
RW
4684{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4686as_fn_error $? "cannot compute suffix of object files: cannot compile
4687See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4688fi
1c710c3c
DJ
4689rm -f conftest.$ac_cv_objext conftest.$ac_ext
4690fi
5213506e
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4692$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4693OBJEXT=$ac_cv_objext
4694ac_objext=$OBJEXT
5213506e
RW
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4696$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4697if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4698 $as_echo_n "(cached) " >&6
1c710c3c 4699else
5213506e 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4701/* end confdefs.h. */
4702
4703int
4704main ()
4705{
4706#ifndef __GNUC__
4707 choke me
4708#endif
4709
4710 ;
4711 return 0;
4712}
4713_ACEOF
5213506e 4714if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4715 ac_compiler_gnu=yes
4716else
5213506e 4717 ac_compiler_gnu=no
1c710c3c 4718fi
5213506e 4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4720ac_cv_c_compiler_gnu=$ac_compiler_gnu
4721
4722fi
5213506e
RW
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4724$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4725if test $ac_compiler_gnu = yes; then
4726 GCC=yes
4727else
4728 GCC=
4729fi
1c710c3c
DJ
4730ac_test_CFLAGS=${CFLAGS+set}
4731ac_save_CFLAGS=$CFLAGS
5213506e
RW
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4733$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4734if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4735 $as_echo_n "(cached) " >&6
4736else
4737 ac_save_c_werror_flag=$ac_c_werror_flag
4738 ac_c_werror_flag=yes
4739 ac_cv_prog_cc_g=no
4740 CFLAGS="-g"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4742/* end confdefs.h. */
4743
4744int
4745main ()
4746{
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
5213506e 4752if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4753 ac_cv_prog_cc_g=yes
4754else
5213506e
RW
4755 CFLAGS=""
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758
4759int
4760main ()
4761{
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
4767if ac_fn_c_try_compile "$LINENO"; then :
4768
4769else
4770 ac_c_werror_flag=$ac_save_c_werror_flag
4771 CFLAGS="-g"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
af71363e 4774
5213506e
RW
4775int
4776main ()
4777{
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783if ac_fn_c_try_compile "$LINENO"; then :
4784 ac_cv_prog_cc_g=yes
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4787fi
5213506e 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4789fi
5213506e
RW
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_c_werror_flag=$ac_save_c_werror_flag
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4794$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4795if test "$ac_test_CFLAGS" = set; then
1c710c3c 4796 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4797elif test $ac_cv_prog_cc_g = yes; then
4798 if test "$GCC" = yes; then
4799 CFLAGS="-g -O2"
4800 else
4801 CFLAGS="-g"
4802 fi
4803else
4804 if test "$GCC" = yes; then
4805 CFLAGS="-O2"
4806 else
4807 CFLAGS=
4808 fi
4809fi
5213506e
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4811$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4812if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4813 $as_echo_n "(cached) " >&6
1c710c3c 4814else
5213506e 4815 ac_cv_prog_cc_c89=no
1c710c3c 4816ac_save_CC=$CC
5213506e 4817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4818/* end confdefs.h. */
4819#include <stdarg.h>
4820#include <stdio.h>
22e05272 4821struct stat;
1c710c3c
DJ
4822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4823struct buf { int x; };
4824FILE * (*rcsopen) (struct buf *, struct stat *, int);
4825static char *e (p, i)
4826 char **p;
4827 int i;
4828{
4829 return p[i];
4830}
4831static char *f (char * (*g) (char **, int), char **p, ...)
4832{
4833 char *s;
4834 va_list v;
4835 va_start (v,p);
4836 s = g (p, va_arg (v,int));
4837 va_end (v);
4838 return s;
4839}
4840
4841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4842 function prototypes and stuff, but not '\xHH' hex character constants.
4843 These don't provoke an error unfortunately, instead are silently treated
5213506e 4844 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4846 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4847 that's true only with -std. */
1c710c3c
DJ
4848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4849
5213506e
RW
4850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4851 inside strings and character constants. */
4852#define FOO(x) 'x'
4853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4854
1c710c3c
DJ
4855int test (int i, double x);
4856struct s1 {int (*f) (int a);};
4857struct s2 {int (*f) (double a);};
4858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4859int argc;
4860char **argv;
4861int
4862main ()
4863{
4864return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4865 ;
4866 return 0;
4867}
4868_ACEOF
5213506e
RW
4869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4871do
4872 CC="$ac_save_CC $ac_arg"
5213506e
RW
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4875fi
5213506e
RW
4876rm -f core conftest.err conftest.$ac_objext
4877 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4878done
5213506e 4879rm -f conftest.$ac_ext
1c710c3c
DJ
4880CC=$ac_save_CC
4881
4882fi
5213506e
RW
4883# AC_CACHE_VAL
4884case "x$ac_cv_prog_cc_c89" in
4885 x)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4887$as_echo "none needed" >&6; } ;;
4888 xno)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4890$as_echo "unsupported" >&6; } ;;
1c710c3c 4891 *)
5213506e
RW
4892 CC="$CC $ac_cv_prog_cc_c89"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4894$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4895esac
5213506e 4896if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4897
2aeb72e9
DD
4898fi
4899
2aeb72e9
DD
4900ac_ext=c
4901ac_cpp='$CPP $CPPFLAGS'
4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905
5213506e 4906ac_ext=cpp
2aeb72e9
DD
4907ac_cpp='$CXXCPP $CPPFLAGS'
4908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4911if test -z "$CXX"; then
4912 if test -n "$CCC"; then
4913 CXX=$CCC
4914 else
4915 if test -n "$ac_tool_prefix"; then
4916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4917 do
4918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4922if ${ac_cv_prog_CXX+:} false; then :
5213506e 4923 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4924else
4925 if test -n "$CXX"; then
4926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
5213506e 4933 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4937 break 2
4938 fi
4939done
5213506e
RW
4940 done
4941IFS=$as_save_IFS
55ffb5ed 4942
c3a86da9
DJ
4943fi
4944fi
4945CXX=$ac_cv_prog_CXX
4946if test -n "$CXX"; then
5213506e
RW
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4948$as_echo "$CXX" >&6; }
c3a86da9 4949else
5213506e
RW
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
c3a86da9
DJ
4952fi
4953
5213506e 4954
c3a86da9
DJ
4955 test -n "$CXX" && break
4956 done
4957fi
4958if test -z "$CXX"; then
4959 ac_ct_CXX=$CXX
5213506e 4960 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4961do
4962 # Extract the first word of "$ac_prog", so it can be a program name with args.
4963set dummy $ac_prog; ac_word=$2
5213506e
RW
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4966if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4967 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4968else
4969 if test -n "$ac_ct_CXX"; then
4970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4971else
4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
5213506e 4977 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4979 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4981 break 2
4982 fi
4983done
5213506e
RW
4984 done
4985IFS=$as_save_IFS
c3a86da9
DJ
4986
4987fi
4988fi
4989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4990if test -n "$ac_ct_CXX"; then
5213506e
RW
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4992$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4993else
5213506e
RW
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995$as_echo "no" >&6; }
c3a86da9
DJ
4996fi
4997
5213506e 4998
c3a86da9
DJ
4999 test -n "$ac_ct_CXX" && break
5000done
c3a86da9 5001
5213506e
RW
5002 if test "x$ac_ct_CXX" = x; then
5003 CXX="g++"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006yes:)
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009ac_tool_warned=yes ;;
5010esac
5011 CXX=$ac_ct_CXX
5012 fi
c3a86da9
DJ
5013fi
5014
5213506e
RW
5015 fi
5016fi
c3a86da9 5017# Provide some information about the compiler.
5213506e
RW
5018$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5019set X $ac_compile
5020ac_compiler=$2
5021for ac_option in --version -v -V -qversion; do
5022 { { ac_try="$ac_compiler $ac_option >&5"
5023case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026esac
5027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5028$as_echo "$ac_try_echo"; } >&5
5029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5030 ac_status=$?
5213506e
RW
5031 if test -s conftest.err; then
5032 sed '10a\
5033... rest of stderr output deleted ...
5034 10q' conftest.err >conftest.er1
5035 cat conftest.er1 >&5
5213506e 5036 fi
22e05272 5037 rm -f conftest.er1 conftest.err
5213506e
RW
5038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039 test $ac_status = 0; }
5040done
c3a86da9 5041
5213506e
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5043$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5044if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5045 $as_echo_n "(cached) " >&6
c3a86da9 5046else
5213506e 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5048/* end confdefs.h. */
5049
5050int
5051main ()
5052{
5053#ifndef __GNUC__
5054 choke me
5055#endif
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
5213506e 5061if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5062 ac_compiler_gnu=yes
5063else
5213506e 5064 ac_compiler_gnu=no
c3a86da9 5065fi
5213506e 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5067ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5068
5069fi
5213506e
RW
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5071$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5072if test $ac_compiler_gnu = yes; then
5073 GXX=yes
5074else
5075 GXX=
5076fi
c3a86da9
DJ
5077ac_test_CXXFLAGS=${CXXFLAGS+set}
5078ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5080$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5081if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5082 $as_echo_n "(cached) " >&6
5083else
5084 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5085 ac_cxx_werror_flag=yes
5086 ac_cv_prog_cxx_g=no
5087 CXXFLAGS="-g"
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5213506e 5099if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5100 ac_cv_prog_cxx_g=yes
5101else
5213506e
RW
5102 CXXFLAGS=""
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5104/* end confdefs.h. */
5213506e 5105
c3a86da9
DJ
5106int
5107main ()
5108{
5213506e 5109
c3a86da9
DJ
5110 ;
5111 return 0;
5112}
5113_ACEOF
5213506e 5114if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5115
5213506e
RW
5116else
5117 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5118 CXXFLAGS="-g"
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5120/* end confdefs.h. */
5213506e 5121
c3a86da9
DJ
5122int
5123main ()
5124{
5213506e 5125
c3a86da9
DJ
5126 ;
5127 return 0;
5128}
5129_ACEOF
5213506e
RW
5130if ac_fn_cxx_try_compile "$LINENO"; then :
5131 ac_cv_prog_cxx_g=yes
11a67599 5132fi
5213506e
RW
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5141$as_echo "$ac_cv_prog_cxx_g" >&6; }
5142if test "$ac_test_CXXFLAGS" = set; then
5143 CXXFLAGS=$ac_save_CXXFLAGS
5144elif test $ac_cv_prog_cxx_g = yes; then
5145 if test "$GXX" = yes; then
5146 CXXFLAGS="-g -O2"
5147 else
5148 CXXFLAGS="-g"
5149 fi
5150else
5151 if test "$GXX" = yes; then
5152 CXXFLAGS="-O2"
5153 else
5154 CXXFLAGS=
5155 fi
c3a86da9 5156fi
c3a86da9
DJ
5157ac_ext=c
5158ac_cpp='$CPP $CPPFLAGS'
5159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163
5164# We must set the default linker to the linker used by gcc for the correct
5165# operation of libtool. If LD is not defined and we are using gcc, try to
5166# set the LD default to the ld used by gcc.
5167if test -z "$LD"; then
5168 if test "$GCC" = yes; then
5169 case $build in
5170 *-*-mingw*)
5171 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5172 *)
5173 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5174 esac
5175 case $gcc_prog_ld in
5176 # Accept absolute paths.
5177 [\\/]* | [A-Za-z]:[\\/]*)
5178 LD="$gcc_prog_ld" ;;
5179 esac
5180 fi
23f6b2f9
PB
5181fi
5182
0b21f5d3
EB
5183# Check whether -static-libstdc++ -static-libgcc is supported.
5184have_static_libs=no
5185if test "$GCC" = yes; then
5186 saved_LDFLAGS="$LDFLAGS"
5187
5188 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5190$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5191 ac_ext=cpp
5192ac_cpp='$CXXCPP $CPPFLAGS'
5193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196
5197
5198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h. */
0d6414b2
EB
5200
5201#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5202#error -static-libstdc++ not implemented
5203#endif
0b21f5d3
EB
5204int main() {}
5205_ACEOF
5206if ac_fn_cxx_try_link "$LINENO"; then :
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208$as_echo "yes" >&6; }; have_static_libs=yes
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 ac_ext=c
5216ac_cpp='$CPP $CPPFLAGS'
5217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221
5222 LDFLAGS="$saved_LDFLAGS"
5223fi
5224
23f6b2f9
PB
5225
5226
55ffb5ed 5227
1c710c3c
DJ
5228if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5230set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5233if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5234 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5235else
5236 if test -n "$GNATBIND"; then
5237 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5238else
1c710c3c
DJ
5239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5213506e 5244 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5246 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5248 break 2
5249 fi
5250done
5213506e
RW
5251 done
5252IFS=$as_save_IFS
1c710c3c 5253
55ffb5ed
NN
5254fi
5255fi
1c710c3c 5256GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5257if test -n "$GNATBIND"; then
5213506e
RW
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5259$as_echo "$GNATBIND" >&6; }
55ffb5ed 5260else
5213506e
RW
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
55ffb5ed
NN
5263fi
5264
5213506e 5265
1c710c3c 5266fi
55ffb5ed 5267if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5268 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5269 # Extract the first word of "gnatbind", so it can be a program name with args.
5270set dummy gnatbind; ac_word=$2
5213506e
RW
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5273if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5274 $as_echo_n "(cached) " >&6
55ffb5ed 5275else
1c710c3c
DJ
5276 if test -n "$ac_ct_GNATBIND"; then
5277 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5278else
1c710c3c
DJ
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5213506e 5284 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5286 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5288 break 2
5289 fi
5290done
5213506e
RW
5291 done
5292IFS=$as_save_IFS
1c710c3c 5293
55ffb5ed
NN
5294fi
5295fi
1c710c3c
DJ
5296ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5297if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5299$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5300else
5213506e
RW
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
55ffb5ed
NN
5303fi
5304
5213506e
RW
5305 if test "x$ac_ct_GNATBIND" = x; then
5306 GNATBIND="no"
5307 else
5308 case $cross_compiling:$ac_tool_warned in
5309yes:)
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312ac_tool_warned=yes ;;
5313esac
5314 GNATBIND=$ac_ct_GNATBIND
5315 fi
55ffb5ed 5316else
1c710c3c 5317 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5318fi
5319
1c710c3c
DJ
5320if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5322set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5325if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5326 $as_echo_n "(cached) " >&6
5305be7e
RG
5327else
5328 if test -n "$GNATMAKE"; then
5329 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5330else
1c710c3c
DJ
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5213506e 5336 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5338 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5340 break 2
5341 fi
5342done
5213506e
RW
5343 done
5344IFS=$as_save_IFS
1c710c3c 5345
5305be7e
RG
5346fi
5347fi
1c710c3c 5348GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5349if test -n "$GNATMAKE"; then
5213506e
RW
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5351$as_echo "$GNATMAKE" >&6; }
5305be7e 5352else
5213506e
RW
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5305be7e
RG
5355fi
5356
5213506e 5357
1c710c3c 5358fi
5305be7e 5359if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5360 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5361 # Extract the first word of "gnatmake", so it can be a program name with args.
5362set dummy gnatmake; ac_word=$2
5213506e
RW
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5365if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5366 $as_echo_n "(cached) " >&6
5305be7e 5367else
1c710c3c
DJ
5368 if test -n "$ac_ct_GNATMAKE"; then
5369 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5370else
1c710c3c
DJ
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5213506e 5376 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5378 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5380 break 2
5381 fi
5382done
5213506e
RW
5383 done
5384IFS=$as_save_IFS
1c710c3c 5385
5305be7e
RG
5386fi
5387fi
1c710c3c
DJ
5388ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5389if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5391$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5392else
5213506e
RW
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5305be7e
RG
5395fi
5396
5213506e
RW
5397 if test "x$ac_ct_GNATMAKE" = x; then
5398 GNATMAKE="no"
5399 else
5400 case $cross_compiling:$ac_tool_warned in
5401yes:)
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404ac_tool_warned=yes ;;
5405esac
5406 GNATMAKE=$ac_ct_GNATMAKE
5407 fi
5305be7e 5408else
1c710c3c 5409 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5410fi
5411
5213506e
RW
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5413$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5414if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5415 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5416else
5417 cat >conftest.adb <<EOF
5418procedure conftest is begin null; end conftest;
5419EOF
5420acx_cv_cc_gcc_supports_ada=no
5421# There is a bug in old released versions of GCC which causes the
5422# driver to exit successfully when the appropriate language module
5423# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5424# Therefore we must check for the error message as well as an
5425# unsuccessful exit.
1db673ca
RO
5426# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5427# given a .adb file, but produce no object file. So we must check
5428# if an object file was really produced to guard against this.
55ffb5ed 5429errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5430if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5431 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5432fi
5433rm -f conftest.*
5434fi
5213506e
RW
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5436$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5437
7cb62ef1 5438if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5439 have_gnat=yes
5440else
5441 have_gnat=no
5442fi
5443
5213506e
RW
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5445$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5446if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5447 $as_echo_n "(cached) " >&6
a76494aa
PB
5448else
5449 echo abfoo >t1
5450 echo cdfoo >t2
b55e6680 5451 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5452 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5453 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5454 :
5455 else
5456 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5457 fi
5458 fi
a76494aa
PB
5459 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5460 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5461 :
a76494aa
PB
5462 else
5463 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5464 fi
5465 fi
5466 rm t1 t2
5467
5468fi
5213506e
RW
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5470$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5471do_compare="$gcc_cv_prog_cmp_skip"
5472
5473
55ffb5ed 5474
ff3ac0f4
ILT
5475# Check whether --enable-bootstrap was given.
5476if test "${enable_bootstrap+set}" = set; then :
5477 enableval=$enable_bootstrap;
5478else
5479 enable_bootstrap=default
5480fi
5481
5482
5483# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5484if test -r $srcdir/gcc/configure; then
5485 have_compiler=yes
5486else
5487 have_compiler=no
5488fi
ff3ac0f4
ILT
5489
5490case "$have_compiler:$host:$target:$enable_bootstrap" in
5491 *:*:*:no) ;;
5492
5493 # Default behavior. Enable bootstrap if we have a compiler
5494 # and we are in a native configuration.
5495 yes:$build:$build:default)
5496 enable_bootstrap=yes ;;
5497
5498 *:*:*:default)
5499 enable_bootstrap=no ;;
5500
5501 # We have a compiler and we are in a native configuration, bootstrap is ok
5502 yes:$build:$build:yes)
5503 ;;
5504
5505 # Other configurations, but we have a compiler. Assume the user knows
5506 # what he's doing.
5507 yes:*:*:yes)
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5509$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5510 ;;
5511
5512 # No compiler: if they passed --enable-bootstrap explicitly, fail
5513 no:*:*:yes)
22e05272 5514 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5515
5516 # Fail if wrong command line
5517 *)
22e05272 5518 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5519 ;;
5520esac
5521
46070488
JM
5522# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5523# C++98 compiler can still start the bootstrap.
5524if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5525 CXX="$CXX -std=gnu++98"
46070488
JM
5526fi
5527
592c90ff
KG
5528# Used for setting $lt_cv_objdir
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5530$as_echo_n "checking for objdir... " >&6; }
22e05272 5531if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5532 $as_echo_n "(cached) " >&6
5533else
5534 rm -f .libs 2>/dev/null
5535mkdir .libs 2>/dev/null
5536if test -d .libs; then
5537 lt_cv_objdir=.libs
5538else
5539 # MS-DOS does not allow filenames that begin with a dot.
5540 lt_cv_objdir=_libs
5541fi
5542rmdir .libs 2>/dev/null
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5545$as_echo "$lt_cv_objdir" >&6; }
5546objdir=$lt_cv_objdir
5547
5548
5549
5550
5551
5552cat >>confdefs.h <<_ACEOF
5553#define LT_OBJDIR "$lt_cv_objdir/"
5554_ACEOF
5555
5556
5557
acd26225 5558# Check for GMP, MPFR and MPC
3a5729ea 5559gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5560gmpinc=
e69bf64b 5561have_gmp=no
acd26225
KG
5562
5563# Specify a location for mpc
5564# check for this first so it ends up on the link line before mpfr.
5565
5213506e
RW
5566# Check whether --with-mpc was given.
5567if test "${with_mpc+set}" = set; then :
5568 withval=$with_mpc;
5569fi
acd26225 5570
acd26225 5571
9965e3cd 5572# Check whether --with-mpc-include was given.
5213506e
RW
5573if test "${with_mpc_include+set}" = set; then :
5574 withval=$with_mpc_include;
5575fi
acd26225 5576
acd26225 5577
9965e3cd 5578# Check whether --with-mpc-lib was given.
5213506e
RW
5579if test "${with_mpc_lib+set}" = set; then :
5580 withval=$with_mpc_lib;
5581fi
acd26225 5582
acd26225
KG
5583
5584if test "x$with_mpc" != x; then
3a5729ea
KG
5585 gmplibs="-L$with_mpc/lib $gmplibs"
5586 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5587fi
5588if test "x$with_mpc_include" != x; then
3a5729ea 5589 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5590fi
5591if test "x$with_mpc_lib" != x; then
3a5729ea 5592 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5593fi
5594if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5595 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5596 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5597 # Do not test the mpc version. Assume that it is sufficient, since
5598 # it is in the source tree, and the library has not been built yet
5599 # but it would be included on the link line in the version check below
5600 # hence making the test fail.
3a5729ea 5601 have_gmp=yes
acd26225 5602fi
e69bf64b 5603
bebf829d
PB
5604# Specify a location for mpfr
5605# check for this first so it ends up on the link line before gmp.
1c710c3c 5606
5213506e
RW
5607# Check whether --with-mpfr-dir was given.
5608if test "${with_mpfr_dir+set}" = set; then :
22e05272 5609 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5610Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5611fi
5612
bebf829d
PB
5613
5614
5213506e
RW
5615# Check whether --with-mpfr was given.
5616if test "${with_mpfr+set}" = set; then :
5617 withval=$with_mpfr;
5618fi
1c710c3c 5619
bebf829d 5620
9965e3cd 5621# Check whether --with-mpfr-include was given.
5213506e
RW
5622if test "${with_mpfr_include+set}" = set; then :
5623 withval=$with_mpfr_include;
5624fi
1c710c3c 5625
8a877c9c 5626
9965e3cd 5627# Check whether --with-mpfr-lib was given.
5213506e
RW
5628if test "${with_mpfr_lib+set}" = set; then :
5629 withval=$with_mpfr_lib;
5630fi
8a877c9c 5631
bebf829d
PB
5632
5633if test "x$with_mpfr" != x; then
5634 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5635 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5636fi
8a877c9c 5637if test "x$with_mpfr_include" != x; then
3a5729ea 5638 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5639fi
5640if test "x$with_mpfr_lib" != x; then
5641 gmplibs="-L$with_mpfr_lib $gmplibs"
5642fi
e69bf64b 5643if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5644 # MPFR v3.1.0 moved the sources into a src sub-directory.
5645 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5646 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5647 fi
00f35794
BE
5648 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5649 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5650 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5651 # Do not test the mpfr version. Assume that it is sufficient, since
5652 # it is in the source tree, and the library has not been built yet
5653 # but it would be included on the link line in the version check below
5654 # hence making the test fail.
5655 have_gmp=yes
5656fi
bebf829d 5657
6de9cd9a 5658# Specify a location for gmp
1c710c3c 5659
5213506e
RW
5660# Check whether --with-gmp-dir was given.
5661if test "${with_gmp_dir+set}" = set; then :
22e05272 5662 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5663Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5664fi
5665
6de9cd9a 5666
6de9cd9a 5667
5213506e
RW
5668# Check whether --with-gmp was given.
5669if test "${with_gmp+set}" = set; then :
5670 withval=$with_gmp;
5671fi
1c710c3c 5672
6de9cd9a 5673
9965e3cd 5674# Check whether --with-gmp-include was given.
5213506e
RW
5675if test "${with_gmp_include+set}" = set; then :
5676 withval=$with_gmp_include;
5677fi
1c710c3c 5678
8a877c9c 5679
9965e3cd 5680# Check whether --with-gmp-lib was given.
5213506e
RW
5681if test "${with_gmp_lib+set}" = set; then :
5682 withval=$with_gmp_lib;
5683fi
8a877c9c
KG
5684
5685
6de9cd9a 5686
bebf829d
PB
5687if test "x$with_gmp" != x; then
5688 gmplibs="-L$with_gmp/lib $gmplibs"
5689 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5690fi
8a877c9c
KG
5691if test "x$with_gmp_include" != x; then
5692 gmpinc="-I$with_gmp_include $gmpinc"
5693fi
5694if test "x$with_gmp_lib" != x; then
5695 gmplibs="-L$with_gmp_lib $gmplibs"
5696fi
e69bf64b 5697if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5698 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5699 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5700 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5701 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5702 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5703 # Do not test the gmp version. Assume that it is sufficient, since
5704 # it is in the source tree, and the library has not been built yet
5705 # but it would be included on the link line in the version check below
5706 # hence making the test fail.
5707 have_gmp=yes
5708fi
6de9cd9a 5709
d943d7c4 5710if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5711 have_gmp=yes
5712 saved_CFLAGS="$CFLAGS"
5713 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5714 # Check for the recommended and required versions of GMP.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5716$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5717
5718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5719/* end confdefs.h. */
5720#include "gmp.h"
5721int
5722main ()
5723{
5724
5725 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5726 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5727 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5728 choke me
5729 #endif
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5737/* end confdefs.h. */
362c6d2f 5738#include <gmp.h>
1c710c3c
DJ
5739int
5740main ()
5741{
6de9cd9a 5742
362c6d2f
KG
5743 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5744 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5745 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5746 choke me
5747 #endif
1c710c3c
DJ
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
5213506e
RW
5753if ac_fn_c_try_compile "$LINENO"; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755$as_echo "yes" >&6; }
362c6d2f
KG
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758$as_echo "buggy but acceptable" >&6; }
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5761else
5213506e
RW
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5764fi
5213506e 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5766
acd26225 5767 # If we have GMP, check the MPFR version.
e69bf64b 5768 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5769 # Check for the recommended and required versions of MPFR.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5771$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5773/* end confdefs.h. */
70ec446f 5774#include <gmp.h>
e69bf64b 5775 #include <mpfr.h>
1c710c3c
DJ
5776int
5777main ()
5778{
e48d66a9 5779
8be34204 5780 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
5781 choke me
5782 #endif
1c710c3c
DJ
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
5213506e
RW
5788if ac_fn_c_try_compile "$LINENO"; then :
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5790/* end confdefs.h. */
a3993f33 5791#include <gmp.h>
e69bf64b 5792 #include <mpfr.h>
1c710c3c
DJ
5793int
5794main ()
5795{
a3993f33 5796
8be34204 5797 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
5798 choke me
5799 #endif
acd26225
KG
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5213506e
RW
5805if ac_fn_c_try_compile "$LINENO"; then :
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807$as_echo "yes" >&6; }
acd26225 5808else
5213506e
RW
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5810$as_echo "buggy but acceptable" >&6; }
acd26225 5811fi
5213506e 5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5813else
5213506e
RW
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }; have_gmp=no
acd26225 5816fi
5213506e 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5818 fi
5819
5820 # Check for the MPC header version.
3a5729ea 5821 if test x"$have_gmp" = xyes ; then
362c6d2f 5822 # Check for the recommended and required versions of MPC.
5213506e
RW
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5824$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5826/* end confdefs.h. */
5827#include <mpc.h>
5828int
5829main ()
5830{
5831
362c6d2f
KG
5832 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5833 choke me
5834 #endif
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"; then :
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
5843#include <mpc.h>
5844int
5845main ()
5846{
5847
5848 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5849 choke me
5850 #endif
5851
5852 ;
5853 return 0;
5854}
5855_ACEOF
5213506e
RW
5856if ac_fn_c_try_compile "$LINENO"; then :
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5858$as_echo "yes" >&6; }
362c6d2f
KG
5859else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5861$as_echo "buggy but acceptable" >&6; }
5862fi
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5864else
5213506e 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5866$as_echo "no" >&6; }; have_gmp=no
acd26225 5867fi
5213506e 5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5869 fi
5870
5871 # Now check the MPFR library.
5872 if test x"$have_gmp" = xyes; then
5873 saved_LIBS="$LIBS"
5874 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5876$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5878/* end confdefs.h. */
3a5729ea 5879#include <mpc.h>
acd26225
KG
5880int
5881main ()
5882{
5883
5884 mpfr_t n;
5885 mpfr_t x;
3a5729ea 5886 mpc_t c;
acd26225
KG
5887 int t;
5888 mpfr_init (n);
5889 mpfr_init (x);
90ca6847
TB
5890 mpfr_atan2 (n, n, x, MPFR_RNDN);
5891 mpfr_erfc (n, x, MPFR_RNDN);
5892 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
5893 mpfr_clear(n);
5894 mpfr_clear(x);
5895 mpc_init2 (c, 53);
5896 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5897 mpc_cosh (c, c, MPC_RNDNN);
5898 mpc_pow (c, c, c, MPC_RNDNN);
5899 mpc_acosh (c, c, MPC_RNDNN);
5900 mpc_clear (c);
1c710c3c
DJ
5901
5902 ;
5903 return 0;
5904}
5905_ACEOF
5213506e
RW
5906if ac_fn_c_try_link "$LINENO"; then :
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5908$as_echo "yes" >&6; }
1c710c3c 5909else
5213506e
RW
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5912fi
5213506e
RW
5913rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5915 LIBS="$saved_LIBS"
5916 fi
5917
e69bf64b 5918 CFLAGS="$saved_CFLAGS"
6de9cd9a 5919
362c6d2f
KG
5920# The library versions listed in the error message below should match
5921# the HARD-minimums enforced above.
e69bf64b 5922 if test x$have_gmp != xyes; then
8be34204 5923 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
5924Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5925their locations. Source code for these libraries can be found at
5926their respective hosting sites as well as at
aeebd94c 5927https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
5928http://gcc.gnu.org/install/prerequisites.html for additional info. If
5929you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5930make sure that you have installed both the libraries and the header
5931files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5932 fi
70ec446f
KG
5933fi
5934
acd26225
KG
5935# Flags needed for both GMP, MPFR and/or MPC.
5936
5937
6de9cd9a
DN
5938
5939
5940
9e3eba15 5941
0ff2d841 5942
0b21f5d3 5943# Libraries to use for stage1 or when not bootstrapping.
00020c16 5944
0b21f5d3
EB
5945# Check whether --with-stage1-libs was given.
5946if test "${with_stage1_libs+set}" = set; then :
5947 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5948 stage1_libs=
00020c16 5949 else
0b21f5d3 5950 stage1_libs=$withval
00020c16
ILT
5951 fi
5952else
5dc85f7e 5953 stage1_libs=
5213506e
RW
5954fi
5955
00020c16
ILT
5956
5957
aac9103b
TT
5958# Whether or not to use -static-libstdc++ and -static-libgcc. The
5959# default is yes if gcc is being built; no otherwise. The reason for
5960# this default is that gdb is sometimes linked against GNU Source
5961# Highlight, which is a shared library that uses C++ exceptions. In
5962# this case, -static-libstdc++ will cause crashes.
5963
5964# Check whether --with-static-standard-libraries was given.
5965if test "${with_static_standard_libraries+set}" = set; then :
5966 withval=$with_static_standard_libraries;
5967else
5968 with_static_standard_libraries=auto
5969fi
5970
5971if test "$with_static_standard_libraries" = auto; then
5972 with_static_standard_libraries=$have_compiler
5973fi
5974
0b21f5d3 5975# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5976
0b21f5d3
EB
5977# Check whether --with-stage1-ldflags was given.
5978if test "${with_stage1_ldflags+set}" = set; then :
5979 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5980 stage1_ldflags=
00020c16 5981 else
0b21f5d3 5982 stage1_ldflags=$withval
00020c16
ILT
5983 fi
5984else
0b21f5d3
EB
5985 stage1_ldflags=
5986 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5987 # if supported. But if the user explicitly specified the libraries to use,
5988 # trust that they are doing what they want.
aac9103b
TT
5989 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5990 -a "$have_static_libs" = yes; then
0b21f5d3
EB
5991 stage1_ldflags="-static-libstdc++ -static-libgcc"
5992 fi
5213506e
RW
5993fi
5994
00020c16
ILT
5995
5996
5dc85f7e 5997# Libraries to use for stage2 and later builds.
00020c16 5998
5213506e
RW
5999# Check whether --with-boot-libs was given.
6000if test "${with_boot_libs+set}" = set; then :
6001 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
6002 poststage1_libs=
6003 else
6004 poststage1_libs=$withval
6005 fi
6006else
5dc85f7e 6007 poststage1_libs=
5213506e
RW
6008fi
6009
00020c16
ILT
6010
6011
ed2eaa9f
ILT
6012# Linker flags to use for stage2 and later builds.
6013
6014# Check whether --with-boot-ldflags was given.
6015if test "${with_boot_ldflags+set}" = set; then :
6016 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6017 poststage1_ldflags=
6018 else
6019 poststage1_ldflags=$withval
6020 fi
6021else
6022 poststage1_ldflags=
bec93d73
ILT
6023 # In stages 2 and 3, default to linking libstdc++ and libgcc
6024 # statically. But if the user explicitly specified the libraries to
6025 # use, trust that they are doing what they want.
6026 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
6027 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6028 fi
6029fi
6030
6031
6032
e357a5e0 6033# GCC GRAPHITE dependency isl.
4a9bb2aa 6034# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
6035
6036
33ad93b9
RG
6037# Check whether --with-isl was given.
6038if test "${with_isl+set}" = set; then :
6039 withval=$with_isl;
5213506e 6040fi
f8bf9252 6041
f8bf9252 6042
eae1a5d4 6043# Treat --without-isl as a request to disable
625afa23 6044# GRAPHITE support and skip all following checks.
eae1a5d4 6045if test "x$with_isl" != "xno"; then
e357a5e0 6046 # Check for isl
625afa23
RG
6047
6048
33ad93b9
RG
6049# Check whether --with-isl-include was given.
6050if test "${with_isl_include+set}" = set; then :
6051 withval=$with_isl_include;
5213506e
RW
6052fi
6053
f8bf9252 6054
33ad93b9
RG
6055# Check whether --with-isl-lib was given.
6056if test "${with_isl_lib+set}" = set; then :
6057 withval=$with_isl_lib;
5213506e 6058fi
f8bf9252 6059
f8bf9252 6060
33ad93b9
RG
6061 # Check whether --enable-isl-version-check was given.
6062if test "${enable_isl_version_check+set}" = set; then :
6063 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6064else
6065 ENABLE_ISL_CHECK=yes
7d32a440
SP
6066fi
6067
6068
33ad93b9
RG
6069 # Initialize isllibs and islinc.
6070 case $with_isl in
6071 no)
6072 isllibs=
6073 islinc=
6074 ;;
6075 "" | yes)
6076 ;;
6077 *)
6078 isllibs="-L$with_isl/lib"
6079 islinc="-I$with_isl/include"
6080 ;;
6081 esac
6082 if test "x${with_isl_include}" != x ; then
6083 islinc="-I$with_isl_include"
6084 fi
6085 if test "x${with_isl_lib}" != x; then
6086 isllibs="-L$with_isl_lib"
6087 fi
6088 if test "x${islinc}" = x && test "x${isllibs}" = x \
6089 && test -d ${srcdir}/isl; then
6090 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6091 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6092 ENABLE_ISL_CHECK=no
560d18d3
AK
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6094$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6095 fi
7d32a440 6096
eae1a5d4
RG
6097 isllibs="${isllibs} -lisl"
6098
7d32a440 6099
7d32a440 6100
9847828b
RB
6101 if test "${ENABLE_ISL_CHECK}" = yes ; then
6102 _isl_saved_CFLAGS=$CFLAGS
6103 _isl_saved_LDFLAGS=$LDFLAGS
6104 _isl_saved_LIBS=$LIBS
6105
6106 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6107 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6108 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6109
f877b3ad
RB
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6111$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6113/* end confdefs.h. */
f877b3ad 6114#include <isl/schedule.h>
622dbadf
BC
6115int
6116main ()
6117{
f877b3ad 6118isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6119 ;
6120 return 0;
6121}
6122_ACEOF
6123if ac_fn_c_try_link "$LINENO"; then :
9847828b 6124 gcc_cv_isl=yes
622dbadf
BC
6125else
6126 gcc_cv_isl=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6131$as_echo "$gcc_cv_isl" >&6; }
6132
560d18d3 6133 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6135$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6136 fi
6137
9847828b
RB
6138 CFLAGS=$_isl_saved_CFLAGS
6139 LDFLAGS=$_isl_saved_LDFLAGS
6140 LIBS=$_isl_saved_LIBS
6141 fi
6142
6143
f8bf9252 6144
f8bf9252 6145
33ad93b9
RG
6146
6147
33ad93b9
RG
6148 if test "x${with_isl}" = xno; then
6149 graphite_requested=no
6150 elif test "x${with_isl}" != x \
6151 || test "x${with_isl_include}" != x \
6152 || test "x${with_isl_lib}" != x ; then
6153 graphite_requested=yes
6154 else
6155 graphite_requested=no
7d32a440 6156 fi
d789184e 6157
d789184e
SP
6158
6159
33ad93b9
RG
6160 if test "${gcc_cv_isl}" = no ; then
6161 isllibs=
6162 islinc=
6163 fi
6164
6165 if test "${graphite_requested}" = yes \
6166 && test "x${isllibs}" = x \
6167 && test "x${islinc}" = x ; then
f8bf9252 6168
22e05272 6169 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6170 fi
f8bf9252 6171
d32ef397 6172
d32ef397
AS
6173fi
6174
e357a5e0 6175# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6176if test "x$with_isl" = xno ||
625afa23 6177 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6178 noconfigdirs="$noconfigdirs isl"
625afa23 6179 islinc=
32d024bf
RG
6180fi
6181
625afa23
RG
6182
6183
6184
d7f09764
DN
6185# Check for LTO support.
6186# Check whether --enable-lto was given.
6187if test "${enable_lto+set}" = set; then :
6188 enableval=$enable_lto; enable_lto=$enableval
6189else
6190 enable_lto=yes; default_enable_lto=yes
6191fi
6192
6193
7413962d 6194
9a02962b
DK
6195
6196
6197target_elf=no
6198case $target in
6199 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6200 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6201 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6202 nvptx-*-none)
9a02962b
DK
6203 target_elf=no
6204 ;;
6205 *)
6206 target_elf=yes
6207 ;;
6208esac
6209
6210if test $target_elf = yes; then :
48215350
DK
6211 # ELF platforms build the lto-plugin always.
6212 build_lto_plugin=yes
9a02962b 6213
9a02962b
DK
6214else
6215 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6216 case $target in
deeba76a 6217 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6218 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6219 *) enable_lto=no ;;
6220 esac
9a02962b 6221 else
db50fe7d
IS
6222 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6223 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6224 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6225 # warn during gcc/ subconfigure; unless you're bootstrapping with
6226 # -flto it won't be needed until after installation anyway.
6227 case $target in
9e530bcd 6228 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6229 *) if test x"$enable_lto" = x"yes"; then
22e05272 6230 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6231 fi
6232 ;;
6233 esac
6234 fi
1cd0b716 6235 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6236 # Build it unless LTO was explicitly disabled.
1cd0b716 6237 case $target in
48215350 6238 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6239 *) ;;
6240 esac
48215350 6241
9a02962b
DK
6242fi
6243
d7f09764 6244
45b3824d
TS
6245# Check whether --enable-linker-plugin-configure-flags was given.
6246if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6247 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6248else
6249 extra_linker_plugin_configure_flags=
6250fi
6251
6252
6253# Check whether --enable-linker-plugin-flags was given.
6254if test "${enable_linker_plugin_flags+set}" = set; then :
6255 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6256else
6257 extra_linker_plugin_flags=
6258fi
6259
6260
6261
cdfee50a
NS
6262# Enable --enable-host-shared.
6263# Checked early to determine whether jit is an 'all' language
6264# Check whether --enable-host-shared was given.
6265if test "${enable_host_shared+set}" = set; then :
6266 enableval=$enable_host_shared; host_shared=$enableval
6267else
6268 host_shared=no
6269fi
6270
6271
f8bf9252 6272
0823efed 6273# By default, C and C++ are the only stage 1 languages.
e1888513 6274stage1_languages=,c,
2805b53a 6275
00020c16 6276# Target libraries that we bootstrap.
ad1e5170 6277bootstrap_target_libs=,target-libgcc,
00020c16 6278
55ffb5ed
NN
6279# Figure out what language subdirectories are present.
6280# Look if the user specified --enable-languages="..."; if not, use
6281# the environment variable $LANGUAGES if defined. $LANGUAGES might
6282# go away some day.
6283# NB: embedded tabs in this IF block -- do not untabify
6284if test -d ${srcdir}/gcc; then
6285 if test x"${enable_languages+set}" != xset; then
6286 if test x"${LANGUAGES+set}" = xset; then
6287 enable_languages="${LANGUAGES}"
6b1786aa 6288 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6289 else
cdfee50a 6290 enable_languages=default
55ffb5ed
NN
6291 fi
6292 else
6293 if test x"${enable_languages}" = x ||
6294 test x"${enable_languages}" = xyes;
6295 then
6b1786aa 6296 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6297 exit 1
6298 fi
6299 fi
6300 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6301
7f26dfa3
FXC
6302 # 'f95' is the old name for the 'fortran' language. We issue a warning
6303 # and make the substitution.
6304 case ,${enable_languages}, in
6305 *,f95,*)
6b1786aa 6306 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6307 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6308 ;;
6309 esac
6310
0823efed
DN
6311 # If bootstrapping, C++ must be enabled.
6312 case ",$enable_languages,:$enable_bootstrap" in
6313 *,c++,*:*) ;;
6314 *:yes)
ff3ac0f4
ILT
6315 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6316 enable_languages="${enable_languages},c++"
6317 else
22e05272 6318 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6319 fi
6320 ;;
6321 esac
6322
55ffb5ed
NN
6323 # First scan to see if an enabled language requires some other language.
6324 # We assume that a given config-lang.in will list all the language
6325 # front ends it requires, even if some are required indirectly.
6326 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6327 case ${lang_frag} in
6328 ..) ;;
6329 # The odd quoting in the next line works around
6330 # an apparent bug in bash 1.12 on linux.
6331 ${srcdir}/gcc/[*]/config-lang.in) ;;
6332 *)
69ecd18f
ILT
6333 # From the config-lang.in, get $language, $lang_requires, and
6334 # $lang_requires_boot_languages.
55ffb5ed
NN
6335 language=
6336 lang_requires=
69ecd18f 6337 lang_requires_boot_languages=
d4360477
NS
6338 # set srcdir during sourcing lang_frag to the gcc dir.
6339 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6340 # polutes this shell
6341 saved_srcdir=${srcdir}
6342 srcdir=${srcdir}/gcc . ${lang_frag}
6343 srcdir=${saved_srcdir}
69ecd18f 6344 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6345 case ,${enable_languages}, in
6346 *,$other,*) ;;
cdfee50a 6347 *,default,*) ;;
55ffb5ed
NN
6348 *,all,*) ;;
6349 *,$language,*)
6350 echo " \`$other' language required by \`$language'; enabling" 1>&2
6351 enable_languages="${enable_languages},${other}"
6352 ;;
6353 esac
6354 done
69ecd18f
ILT
6355 for other in ${lang_requires_boot_languages} ; do
6356 if test "$other" != "c"; then
6357 case ,${enable_stage1_languages}, in
6358 *,$other,*) ;;
cdfee50a 6359 *,default,*) ;;
69ecd18f
ILT
6360 *,all,*) ;;
6361 *)
6362 case ,${enable_languages}, in
6363 *,$language,*)
6364 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6365 enable_stage1_languages="$enable_stage1_languages,${other}"
6366 ;;
6367 esac
6368 ;;
6369 esac
6370 fi
6371 done
55ffb5ed
NN
6372 ;;
6373 esac
6374 done
6375
e1888513 6376 new_enable_languages=,c,
d7f09764
DN
6377
6378 # If LTO is enabled, add the LTO front end.
d7f09764 6379 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6380 case ,${enable_languages}, in
6381 *,lto,*) ;;
6382 *) enable_languages="${enable_languages},lto" ;;
6383 esac
1cd0b716 6384 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6385 configdirs="$configdirs lto-plugin"
d7f09764
DN
6386 fi
6387 fi
6388
426c1eb0
TS
6389 # If we're building an offloading compiler, add the LTO front end.
6390 if test x"$enable_as_accelerator_for" != x ; then
6391 case ,${enable_languages}, in
6392 *,lto,*) ;;
6393 *) enable_languages="${enable_languages},lto" ;;
6394 esac
6395 fi
6396
cdfee50a 6397 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6398 potential_languages=,c,
55ffb5ed 6399
4da3b0f8
ILT
6400 enabled_target_libs=
6401 disabled_target_libs=
6402
55ffb5ed
NN
6403 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6404 case ${lang_frag} in
6405 ..) ;;
6406 # The odd quoting in the next line works around
6407 # an apparent bug in bash 1.12 on linux.
6408 ${srcdir}/gcc/[*]/config-lang.in) ;;
6409 *)
1c710c3c 6410 # From the config-lang.in, get $language, $target_libs,
2805b53a 6411 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6412 language=
6413 target_libs=
6414 lang_dirs=
1546bb64 6415 subdir_requires=
e1888513
PB
6416 boot_language=no
6417 build_by_default=yes
d4360477
NS
6418 # set srcdir during sourcing. See above about save & restore
6419 saved_srcdir=${srcdir}
6420 srcdir=${srcdir}/gcc . ${lang_frag}
6421 srcdir=${saved_srcdir}
e1888513
PB
6422 if test x${language} = x; then
6423 echo "${lang_frag} doesn't set \$language." 1>&2
6424 exit 1
6425 fi
6426
78767fd9 6427 if test "$language" = "c++"; then
0823efed 6428 boot_language=yes
00020c16
ILT
6429 fi
6430
178f875a 6431 add_this_lang=no
cdfee50a
NS
6432 # C is always enabled, so no need to add it again
6433 if test "$language" != "c"; then
6434 case ,${enable_languages}, in
6435 *,${language},*)
6436 # Language was explicitly selected; include it
d4a10d0a 6437 add_this_lang=yes
cdfee50a
NS
6438 ;;
6439 *,all,*)
6440 # All languages are enabled
6441 add_this_lang=all
6442 ;;
6443 *,default,*)
6444 # 'default' was selected, select it if it is a default language
178f875a 6445 add_this_lang=${build_by_default}
cdfee50a
NS
6446 ;;
6447 esac
6448 fi
6de9cd9a 6449
1546bb64 6450 # Disable languages that need other directories if these aren't available.
95695ad3 6451 for i in $subdir_requires; do
b6348cb3 6452 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6453 case ${add_this_lang} in
6454 yes)
1546bb64 6455 # Specifically requested language; tell them.
22e05272 6456 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6457 ;;
cdfee50a
NS
6458 all)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6460$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6461 add_this_lang=unsupported
6462 ;;
1546bb64
PB
6463 *)
6464 # Silently disable.
e1888513 6465 add_this_lang=unsupported
1546bb64
PB
6466 ;;
6467 esac
6468 done
6469
e1888513 6470 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6471 case ${add_this_lang}:${language}:${have_gnat} in
6472 yes:ada:no)
e1888513 6473 # Specifically requested language; tell them.
22e05272 6474 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6475 ;;
cdfee50a
NS
6476 all:ada:no)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6478$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6479 add_this_lang=unsupported
6480 ;;
e1888513
PB
6481 *:ada:no)
6482 # Silently disable.
6483 add_this_lang=unsupported
6484 ;;
6485 esac
6486
cdfee50a
NS
6487 # Disable jit if -enable-host-shared not specified
6488 case ${add_this_lang}:${language}:${host_shared} in
6489 yes:jit:no)
6490 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6491 as_fn_error $? "
cdfee50a
NS
6492Enabling language \"jit\" requires --enable-host-shared.
6493
6494--enable-host-shared typically slows the rest of the compiler down by
6495a few %, so you must explicitly enable it.
6496
6497If you want to build both the jit and the regular compiler, it is often
6498best to do this via two separate configure/builds, in separate
6499directories, to avoid imposing the performance cost of
6500--enable-host-shared on the regular compiler." "$LINENO" 5
6501 ;;
6502 all:jit:no)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6504$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6505 add_this_lang=unsupported
6506 ;;
6507 *:jit:no)
6508 # Silently disable.
6509 add_this_lang=unsupported
6510 ;;
6511 esac
6512
6513 # Disable a language that is unsupported by the target.
6514 case "${add_this_lang}: $unsupported_languages " in
6515 no:*) ;;
6516 unsupported:*) ;;
6517 *:*" $language "*)
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6519$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6520 add_this_lang=unsupported
4fab7234
HPN
6521 ;;
6522 esac
6523
6de9cd9a 6524 case $add_this_lang in
e1888513 6525 unsupported)
55ffb5ed 6526 # Remove language-dependent dirs.
4da3b0f8
ILT
6527 disabled_target_libs="$disabled_target_libs $target_libs"
6528 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6529 ;;
e1888513
PB
6530 no)
6531 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6532 disabled_target_libs="$disabled_target_libs $target_libs"
6533 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6534 potential_languages="${potential_languages}${language},"
6535 ;;
cdfee50a 6536 all|yes)
e1888513
PB
6537 new_enable_languages="${new_enable_languages}${language},"
6538 potential_languages="${potential_languages}${language},"
2805b53a 6539 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6540 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6541 case "${boot_language}:,$enable_stage1_languages," in
6542 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6543 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6544 case ",$stage1_languages," in
6545 *,$language,* | ,yes, | ,all,) ;;
6546 *) stage1_languages="${stage1_languages}${language}," ;;
6547 esac
00020c16
ILT
6548 # We need to bootstrap any supporting libraries.
6549 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6550 ;;
6551 esac
6552 ;;
55ffb5ed
NN
6553 esac
6554 ;;
6555 esac
6556 done
6557
4da3b0f8
ILT
6558 # Add target libraries which are only needed for disabled languages
6559 # to noconfigdirs.
6560 if test -n "$disabled_target_libs"; then
6561 for dir in $disabled_target_libs; do
6562 case " $enabled_target_libs " in
6563 *" ${dir} "*) ;;
6564 *) noconfigdirs="$noconfigdirs $dir" ;;
6565 esac
6566 done
6567 fi
6568
5213506e
RW
6569 # Check whether --enable-stage1-languages was given.
6570if test "${enable_stage1_languages+set}" = set; then :
6571 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6572 ,no,|,,)
6573 # Set it to something that will have no effect in the loop below
6574 enable_stage1_languages=c ;;
6575 ,yes,)
6576 enable_stage1_languages=`echo $new_enable_languages | \
6577 sed -e "s/^,//" -e "s/,$//" ` ;;
6578 *,all,*)
6579 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6580 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6581 esac
6582
6583 # Add "good" languages from enable_stage1_languages to stage1_languages,
6584 # while "bad" languages go in missing_languages. Leave no duplicates.
6585 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6586 case $potential_languages in
6587 *,$i,*)
6588 case $stage1_languages in
6589 *,$i,*) ;;
6590 *) stage1_languages="$stage1_languages$i," ;;
6591 esac ;;
6592 *)
6593 case $missing_languages in
6594 *,$i,*) ;;
6595 *) missing_languages="$missing_languages$i," ;;
6596 esac ;;
6597 esac
6598 done
5213506e
RW
6599fi
6600
e1888513
PB
6601
6602 # Remove leading/trailing commas that were added for simplicity
6603 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6604 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6605 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6606 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6607
55ffb5ed 6608 if test "x$missing_languages" != x; then
22e05272 6609 as_fn_error $? "
0cf085e4 6610The following requested languages could not be built: ${missing_languages}
5213506e 6611Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6612 fi
55ffb5ed
NN
6613 if test "x$new_enable_languages" != "x$enable_languages"; then
6614 echo The following languages will be built: ${new_enable_languages}
e1888513 6615 enable_languages="$new_enable_languages"
55ffb5ed 6616 fi
e1888513 6617
1c710c3c 6618
b2eaac4a 6619 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6620fi
6621
27079765
AH
6622# Handle --disable-<component> generically.
6623for dir in $configdirs $build_configdirs $target_configdirs ; do
6624 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6625 varname=`echo $dirname | sed -e s/+/_/g`
6626 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6627 noconfigdirs="$noconfigdirs $dir"
6628 fi
6629done
6630
43c40f3e
RO
6631# Check for Boehm's garbage collector
6632# Check whether --enable-objc-gc was given.
6633if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6634 enableval=$enable_objc_gc;
6635fi
6636
6637
6638# Check whether --with-target-bdw-gc was given.
6639if test "${with_target_bdw_gc+set}" = set; then :
6640 withval=$with_target_bdw_gc;
6641fi
6642
6643
6644# Check whether --with-target-bdw-gc-include was given.
6645if test "${with_target_bdw_gc_include+set}" = set; then :
6646 withval=$with_target_bdw_gc_include;
6647fi
6648
6649
6650# Check whether --with-target-bdw-gc-lib was given.
6651if test "${with_target_bdw_gc_lib+set}" = set; then :
6652 withval=$with_target_bdw_gc_lib;
6653fi
6654
6655
6656case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6658$as_echo_n "checking for bdw garbage collector... " >&6; }
6659 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6661$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6662 else
6663 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6664 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6665 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6666 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6669$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6670 fi
6671 fi
43c40f3e
RO
6672esac
6673
5e9d6aa4 6674# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6675case ,${enable_languages}, in
1007a55c 6676 *,c++,*)
5e9d6aa4 6677 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6678 case "${noconfigdirs}" in
6679 *target-libstdc++-v3*)
5e9d6aa4 6680 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6681 ;;
6682 *) ;;
6683 esac
6684 ;;
99776ebd 6685 *)
5e9d6aa4 6686 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6687 ;;
6688esac
6689
ee6a22df
L
6690# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6691# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6692# If we have the source for $noconfigdirs entries, add them to $notsupp.
6693
6694notsupp=""
6695for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6696 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6697 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6698 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6699 if test -r $srcdir/$dirname/configure ; then
6700 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6701 true
6702 else
6703 notsupp="$notsupp $dir"
6704 fi
6705 fi
6706 fi
ee6a22df
L
6707 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6708 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6709 if test -r $srcdir/$dirname/configure ; then
6710 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6711 true
6712 else
6713 notsupp="$notsupp $dir"
6714 fi
6715 fi
6716 fi
55ffb5ed
NN
6717 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6718 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6719 if test -r $srcdir/$dirname/configure ; then
6720 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6721 true
6722 else
6723 notsupp="$notsupp $dir"
6724 fi
6725 fi
6726 fi
6727done
6728
55ffb5ed
NN
6729# Quietly strip out all directories which aren't configurable in this tree.
6730# This relies on all configurable subdirectories being autoconfiscated, which
6731# is now the case.
23f6b2f9
PB
6732build_configdirs_all="$build_configdirs"
6733build_configdirs=
6734for i in ${build_configdirs_all} ; do
1c710c3c 6735 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6736 if test -f ${srcdir}/$j/configure ; then
6737 build_configdirs="${build_configdirs} $i"
6738 fi
6739done
6740
55ffb5ed
NN
6741configdirs_all="$configdirs"
6742configdirs=
6743for i in ${configdirs_all} ; do
6744 if test -f ${srcdir}/$i/configure ; then
6745 configdirs="${configdirs} $i"
6746 fi
6747done
23f6b2f9 6748
55ffb5ed
NN
6749target_configdirs_all="$target_configdirs"
6750target_configdirs=
6751for i in ${target_configdirs_all} ; do
1c710c3c 6752 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6753 if test -f ${srcdir}/$j/configure ; then
6754 target_configdirs="${target_configdirs} $i"
6755 fi
6756done
6757
45b3824d
TS
6758# libiberty-linker-plugin is special: it doesn't have its own source directory,
6759# so we have to add it after the preceding checks.
6760if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6761then
6762 case " $configdirs " in
6763 *" libiberty "*)
6764 # If we can build libiberty, we can also build libiberty-linker-plugin.
6765 configdirs="$configdirs libiberty-linker-plugin"
6766 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6767 --with-libiberty=../libiberty-linker-plugin";;
6768 *)
22e05272 6769 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6770 esac
6771fi
6772
fca38047
TS
6773# Sometimes we have special requirements for the host libiberty.
6774extra_host_libiberty_configure_flags=
1c01ebf6 6775extra_host_zlib_configure_flags=
fca38047
TS
6776case " $configdirs " in
6777 *" lto-plugin "* | *" libcc1 "*)
6778 # When these are to be built as shared libraries, the same applies to
6779 # libiberty.
6780 extra_host_libiberty_configure_flags=--enable-shared
6781 ;;
1c01ebf6
L
6782 *" bfd "*)
6783 # When bfd is to be built as a shared library, the same applies to
6784 # zlib.
6785 if test "$enable_shared" = "yes"; then
6786 extra_host_zlib_configure_flags=--enable-host-shared
6787 fi
6788 ;;
fca38047
TS
6789esac
6790
6791
1c01ebf6 6792
55ffb5ed
NN
6793# Produce a warning message for the subdirs we can't configure.
6794# This isn't especially interesting in the Cygnus tree, but in the individual
6795# FSF releases, it's important to let people know when their machine isn't
6796# supported by the one or two programs in a package.
6797
6798if test -n "${notsupp}" && test -z "${norecursion}" ; then
6799 # If $appdirs is non-empty, at least one of those directories must still
6800 # be configured, or we error out. (E.g., if the gas release supports a
6801 # specified target in some subdirs but not the gas subdir, we shouldn't
6802 # pretend that all is well.)
6803 if test -n "$appdirs" ; then
6804 for dir in $appdirs ; do
6805 if test -r $dir/Makefile.in ; then
6806 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6807 appdirs=""
6808 break
6809 fi
23f6b2f9 6810 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6811 appdirs=""
6812 break
6813 fi
6814 fi
6815 done
6816 if test -n "$appdirs" ; then
6817 echo "*** This configuration is not supported by this package." 1>&2
6818 exit 1
6819 fi
6820 fi
6821 # Okay, some application will build, or we don't care to check. Still
6822 # notify of subdirs not getting built.
6823 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6824 echo " ${notsupp}" 1>&2
6825 echo " (Any other directories should still work fine.)" 1>&2
6826fi
6827
6828case "$host" in
6829 *msdosdjgpp*)
6830 enable_gdbtk=no ;;
6831esac
6832
c3a86da9
DJ
6833# To find our prefix, in gcc_cv_tool_prefix.
6834
6835# The user is always right.
6836if test "${PATH_SEPARATOR+set}" != set; then
6837 echo "#! /bin/sh" >conf$$.sh
6838 echo "exit 0" >>conf$$.sh
6839 chmod +x conf$$.sh
6840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6841 PATH_SEPARATOR=';'
6842 else
6843 PATH_SEPARATOR=:
6844 fi
6845 rm -f conf$$.sh
6846fi
6847
6848
3c36aa6b
JJ
6849 get_gcc_base_ver="cat"
6850
6851# Check whether --with-gcc-major-version-only was given.
6852if test "${with_gcc_major_version_only+set}" = set; then :
6853 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6854 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6855 fi
6856
6857fi
6858
6859
6860
6861
6862
c3a86da9
DJ
6863
6864if test "x$exec_prefix" = xNONE; then
6865 if test "x$prefix" = xNONE; then
6866 gcc_cv_tool_prefix=$ac_default_prefix
6867 else
6868 gcc_cv_tool_prefix=$prefix
6869 fi
6870else
6871 gcc_cv_tool_prefix=$exec_prefix
6872fi
6873
6874# If there is no compiler in the tree, use the PATH only. In any
6875# case, if there is no compiler in the tree nobody should use
6876# AS_FOR_TARGET and LD_FOR_TARGET.
6877if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6878 if test x$with_gcc_major_version_only = xyes ; then
6879 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6880 else
6881 gcc_version=`cat $srcdir/gcc/BASE-VER`
6882 fi
c3a86da9
DJ
6883 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6884 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6885 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6886 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6887 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6888 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6889else
6890 gcc_cv_tool_dirs=
6891fi
6892
6893if test x$build = x$target && test -n "$md_exec_prefix"; then
6894 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6895fi
6896
6897
6898
55ffb5ed
NN
6899copy_dirs=
6900
1c710c3c 6901
5213506e
RW
6902# Check whether --with-build-sysroot was given.
6903if test "${with_build_sysroot+set}" = set; then :
6904 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6905 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6906 fi
6907else
6908 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6909fi
526635cb
MM
6910
6911
c8aea42c 6912
5213506e
RW
6913
6914# Check whether --with-debug-prefix-map was given.
6915if test "${with_debug_prefix_map+set}" = set; then :
6916 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6917 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6918 for debug_map in $withval; do
6919 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6920 done
6921 fi
6922else
6923 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6924fi
6925
c8aea42c
PB
6926
6927
1c8bd6a3
PB
6928# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6929# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6930# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6931# We want to ensure that TARGET libraries (which we know are built with
6932# gcc) are built with "-O2 -g", so include those options when setting
6933# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6934if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6935 if test "x${is_cross_compiler}" = xyes; then
6936 CFLAGS_FOR_TARGET="-g -O2"
6937 else
6938 CFLAGS_FOR_TARGET=$CFLAGS
6939 case " $CFLAGS " in
6940 *" -O2 "*) ;;
6941 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6942 esac
6943 case " $CFLAGS " in
6944 *" -g "* | *" -g3 "*) ;;
6945 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6946 esac
6947 fi
1c8bd6a3
PB
6948fi
6949
6950
6951if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6952 if test "x${is_cross_compiler}" = xyes; then
6953 CXXFLAGS_FOR_TARGET="-g -O2"
6954 else
6955 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6956 case " $CXXFLAGS " in
6957 *" -O2 "*) ;;
6958 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6959 esac
6960 case " $CXXFLAGS " in
6961 *" -g "* | *" -g3 "*) ;;
6962 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6963 esac
6964 fi
1c8bd6a3
PB
6965fi
6966
6967
6f57bdf6
DK
6968
6969
55ffb5ed
NN
6970# Handle --with-headers=XXX. If the value is not "yes", the contents of
6971# the named directory are copied to $(tooldir)/sys-include.
6972if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6973 if test x${is_cross_compiler} = xno ; then
6974 echo 1>&2 '***' --with-headers is only supported when cross compiling
6975 exit 1
6976 fi
6977 if test x"${with_headers}" != xyes ; then
c3a86da9 6978 x=${gcc_cv_tool_prefix}
1c710c3c 6979 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6980 fi
6981fi
6982
6983# Handle --with-libs=XXX. If the value is not "yes", the contents of
6984# the name directories are copied to $(tooldir)/lib. Multiple directories
6985# are permitted.
6986if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6987 if test x${is_cross_compiler} = xno ; then
6988 echo 1>&2 '***' --with-libs is only supported when cross compiling
6989 exit 1
6990 fi
6991 if test x"${with_libs}" != xyes ; then
6992 # Copy the libraries in reverse order, so that files in the first named
6993 # library override files in subsequent libraries.
c3a86da9 6994 x=${gcc_cv_tool_prefix}
55ffb5ed 6995 for l in ${with_libs}; do
1c710c3c 6996 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6997 done
6998 fi
6999fi
7000
d7f09764 7001# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7002#
7003# This is done by determining whether or not the appropriate directory
7004# is available, and by checking whether or not specific configurations
7005# have requested that this magic not happen.
1c710c3c
DJ
7006#
7007# The command line options always override the explicit settings in
6b1786aa 7008# configure.ac, and the settings in configure.ac override this magic.
e8b05380 7009#
1c710c3c 7010# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7011# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7012# --without-gnu-ld options for the configure script. Similarly, if
7013# the default is to use the included zlib and you don't want to do that,
7014# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7015
7016if test x${use_gnu_as} = x &&
7017 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7018 with_gnu_as=yes
7019 extra_host_args="$extra_host_args --with-gnu-as"
7020fi
7021
7022if test x${use_gnu_ld} = x &&
5afab7ad 7023 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7024 with_gnu_ld=yes
7025 extra_host_args="$extra_host_args --with-gnu-ld"
7026fi
7027
d7f09764
DN
7028if test x${use_included_zlib} = x &&
7029 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7030 :
7031else
7032 with_system_zlib=yes
7033 extra_host_args="$extra_host_args --with-system-zlib"
7034fi
7035
e8b05380
PB
7036# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7037# can detect this case.
7038
7039if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7040 with_newlib=yes
7041 extra_host_args="$extra_host_args --with-newlib"
7042fi
7043
55ffb5ed
NN
7044# Handle ${copy_dirs}
7045set fnord ${copy_dirs}
7046shift
7047while test $# != 0 ; do
7048 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7049 :
7050 else
7051 echo Copying $1 to $2
7052
7053 # Use the install script to create the directory and all required
7054 # parent directories.
7055 if test -d $2 ; then
7056 :
7057 else
7058 echo >config.temp
7059 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7060 fi
7061
7062 # Copy the directory, assuming we have tar.
7063 # FIXME: Should we use B in the second tar? Not all systems support it.
7064 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7065
7066 # It is the responsibility of the user to correctly adjust all
7067 # symlinks. If somebody can figure out how to handle them correctly
7068 # here, feel free to add the code.
7069
7070 echo $1 > $2/COPIED
7071 fi
7072 shift; shift
7073done
7074
e8b05380
PB
7075# Determine a target-dependent exec_prefix that the installed
7076# gcc will search in. Keep this list sorted by triplet, with
7077# the *-*-osname triplets last.
7078md_exec_prefix=
7079case "${target}" in
30b74385 7080 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7081 md_exec_prefix=/dev/env/DJDIR/bin
7082 ;;
e8b05380 7083 *-*-hpux* | \
e8b05380 7084 *-*-nto-qnx* | \
6de66370 7085 *-*-solaris2*)
e8b05380
PB
7086 md_exec_prefix=/usr/ccs/bin
7087 ;;
7088esac
7089
671aa708
NN
7090extra_arflags_for_target=
7091extra_nmflags_for_target=
7092extra_ranlibflags_for_target=
7093target_makefile_frag=/dev/null
7094case "${target}" in
58e24147
AM
7095 spu-*-*)
7096 target_makefile_frag="config/mt-spu"
7097 ;;
d896cc4d 7098 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
7099 target_makefile_frag="config/mt-sde"
7100 ;;
1ec3b87b
RS
7101 mipsisa*-*-elfoabi*)
7102 target_makefile_frag="config/mt-mips-elfoabi"
7103 ;;
08d0963a
RS
7104 mips*-*-*linux* | mips*-*-gnu*)
7105 target_makefile_frag="config/mt-mips-gnu"
7106 ;;
707f1839
SL
7107 nios2-*-elf*)
7108 target_makefile_frag="config/mt-nios2-elf"
7109 ;;
76052545
EB
7110 *-*-linux-android*)
7111 target_makefile_frag="config/mt-android"
7112 ;;
416ac4d4 7113 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7114 target_makefile_frag="config/mt-gnu"
671aa708
NN
7115 ;;
7116 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7117 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7118 # commands to handle both 32-bit and 64-bit objects. These flags are
7119 # harmless if we're using GNU nm or ar.
7120 extra_arflags_for_target=" -X32_64"
7121 extra_nmflags_for_target=" -B -X32_64"
7122 ;;
671aa708
NN
7123esac
7124
7125alphaieee_frag=/dev/null
7126case $target in
7127 alpha*-*-*)
7128 # This just makes sure to use the -mieee option to build target libs.
7129 # This should probably be set individually by each library.
7130 alphaieee_frag="config/mt-alphaieee"
7131 ;;
7132esac
7133
7134# If --enable-target-optspace always use -Os instead of -O2 to build
7135# the target libraries, similarly if it is not specified, use -Os
7136# on selected platforms.
7137ospace_frag=/dev/null
7138case "${enable_target_optspace}:${target}" in
7139 yes:*)
7140 ospace_frag="config/mt-ospace"
7141 ;;
7142 :d30v-*)
7143 ospace_frag="config/mt-d30v"
7144 ;;
d9063947 7145 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7146 ospace_frag="config/mt-ospace"
7147 ;;
7148 no:* | :*)
7149 ;;
7150 *)
7151 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7152 ;;
7153esac
7154
671aa708
NN
7155# Some systems (e.g., one of the i386-aix systems the gas testers are
7156# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7157tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7158build_tooldir=${tooldir}
7159
671aa708
NN
7160# Create a .gdbinit file which runs the one in srcdir
7161# and tells GDB to look there for source files.
7162
7163if test -r ${srcdir}/.gdbinit ; then
7164 case ${srcdir} in
7165 .) ;;
7166 *) cat > ./.gdbinit <<EOF
7167# ${NO_EDIT}
7168dir ${srcdir}
7169dir .
7170source ${srcdir}/.gdbinit
7171EOF
7172 ;;
7173 esac
7174fi
7175
671aa708
NN
7176# Make sure that the compiler is able to generate an executable. If it
7177# can't, we are probably in trouble. We don't care whether we can run the
7178# executable--we might be using a cross compiler--we only care whether it
7179# can be created. At this point the main configure script has set CC.
7180we_are_ok=no
7181echo "int main () { return 0; }" > conftest.c
7182${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7183if test $? = 0 ; then
7184 if test -s conftest || test -s conftest.exe ; then
7185 we_are_ok=yes
7186 fi
1c710c3c 7187fi
671aa708
NN
7188case $we_are_ok in
7189 no)
7190 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7191 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7192 rm -f conftest*
7193 exit 1
7194 ;;
7195esac
7196rm -f conftest*
7197
d89f0ad6 7198# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7199case "${host}" in
7200 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7201 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7202 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7203 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7204esac
7205
d89f0ad6
AL
7206# On systems where the dynamic library environment variable is PATH,
7207# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7208# built executables to PATH.
7209if test "$RPATH_ENVVAR" = PATH; then
7210 GCC_SHLIB_SUBDIR=/shlib
7211else
7212 GCC_SHLIB_SUBDIR=
7213fi
7214
beeda1d9
JJ
7215# Adjust the toplevel makefile according to whether bootstrap was selected.
7216case $enable_bootstrap in
7217 yes)
7218 bootstrap_suffix=bootstrap
7219 BUILD_CONFIG=bootstrap-debug
7220 ;;
7221 no)
7222 bootstrap_suffix=no-bootstrap
7223 BUILD_CONFIG=
7224 ;;
7225esac
7226
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7228$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7229
7230
7231# Check whether --with-build-config was given.
7232if test "${with_build_config+set}" = set; then :
7233 withval=$with_build_config; case $with_build_config in
7234 yes) with_build_config= ;;
7235 no) with_build_config= BUILD_CONFIG= ;;
7236 esac
7237fi
7238
7239
7240if test "x${with_build_config}" != x; then
7241 BUILD_CONFIG=$with_build_config
7242else
7243 case $BUILD_CONFIG in
7244 bootstrap-debug)
7245 if echo "int f (void) { return 0; }" > conftest.c &&
7246 ${CC} -c conftest.c &&
7247 mv conftest.o conftest.o.g0 &&
7248 ${CC} -c -g conftest.c &&
7249 mv conftest.o conftest.o.g &&
7250 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7251 :
7252 else
7253 BUILD_CONFIG=
7254 fi
7255 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7256 ;;
7257 esac
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7260$as_echo "$BUILD_CONFIG" >&6; }
7261
7262
7263# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7265$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7266# Check whether --enable-vtable-verify was given.
7267if test "${enable_vtable_verify+set}" = set; then :
7268 enableval=$enable_vtable_verify; case "$enableval" in
7269 yes) enable_vtable_verify=yes ;;
7270 no) enable_vtable_verify=no ;;
7271 *) enable_vtable_verify=no;;
7272 esac
7273else
7274 enable_vtable_verify=no
7275fi
7276
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7278$as_echo "$enable_vtable_verify" >&6; }
7279
671aa708
NN
7280# Record target_configdirs and the configure arguments for target and
7281# build configuration in Makefile.
7282target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7283build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7284bootstrap_fixincludes=no
671aa708 7285
ad1e5170
JR
7286# If we are building libgomp, bootstrap it.
7287if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7288 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7289fi
7290
beeda1d9
JJ
7291# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7292# or bootstrap-ubsan, bootstrap it.
7293if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7294 case "$BUILD_CONFIG" in
7295 *bootstrap-asan* | *bootstrap-ubsan* )
7296 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7297 bootstrap_fixincludes=yes
beeda1d9
JJ
7298 ;;
7299 esac
ac8701fe
L
7300fi
7301
beeda1d9
JJ
7302# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7303if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7304 test "$enable_vtable_verify" != no; then
2077db1b
CT
7305 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7306fi
7307
671aa708
NN
7308# Determine whether gdb needs tk/tcl or not.
7309# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7310# and in that case we want gdb to be built without tk. Ugh!
7311# In fact I believe gdb is the *only* package directly dependent on tk,
7312# so we should be able to put the 'maybe's in unconditionally and
7313# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7314# 100% sure that that's safe though.
e914a571 7315
b4f96efe 7316gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7317case "$enable_gdbtk" in
7318 no)
7319 GDB_TK="" ;;
e914a571
AC
7320 yes)
7321 GDB_TK="${gdb_tk}" ;;
671aa708 7322 *)
e914a571
AC
7323 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7324 # distro. Eventually someone will fix this and move Insight, nee
7325 # gdbtk to a separate directory.
7326 if test -d ${srcdir}/gdb/gdbtk ; then
7327 GDB_TK="${gdb_tk}"
7328 else
7329 GDB_TK=""
7330 fi
7331 ;;
671aa708 7332esac
ef9db8d5
DJ
7333CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7334INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7335
f9d09df0
TT
7336# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7337# else does, only include them if one of these is built. The Makefile
7338# provides the ordering, so it's enough here to add to the list.
7339case " ${configdirs} " in
7340 *\ gdb\ *)
7341 configdirs="${configdirs} gnulib gdbsupport"
7342 ;;
7343 *\ gdbserver\ *)
7344 configdirs="${configdirs} gnulib gdbsupport"
7345 ;;
7346esac
98e5be21 7347
60975492 7348# Strip out unwanted targets.
8b87bb96
NN
7349
7350# While at that, we remove Makefiles if we were started for recursive
7351# configuration, so that the top-level Makefile reconfigures them,
7352# like we used to do when configure itself was recursive.
8b87bb96 7353
3e54529c
RW
7354# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7355# but now we're fixing up the Makefile ourselves with the additional
7356# commands passed to AC_CONFIG_FILES. Use separate variables
7357# extrasub-{build,host,target} not because there is any reason to split
7358# the substitutions up that way, but only to remain below the limit of
7359# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7360
7361# Do not nest @if/@endif or @unless/@endunless pairs, because
7362# configure will not warn you at all.
8b87bb96 7363
79cd2b23
RW
7364case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7365 yes:yes:*\ gold\ *:*,c++,*) ;;
7366 yes:yes:*\ gold\ *:*)
22e05272 7367 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7368 ;;
7369esac
7370
3e54529c 7371extrasub_build=
23f6b2f9 7372for module in ${build_configdirs} ; do
5607edfd
PB
7373 if test -z "${no_recursion}" \
7374 && test -f ${build_subdir}/${module}/Makefile; then
7375 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7376 rm -f ${build_subdir}/${module}/Makefile
7377 fi
3e54529c 7378 extrasub_build="$extrasub_build
5607edfd
PB
7379/^@if build-$module\$/d
7380/^@endif build-$module\$/d
da34ca3f 7381/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7382/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7383/^@endif build-$module-$bootstrap_suffix\$/d
7384/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7385done
3e54529c 7386extrasub_host=
5607edfd 7387for module in ${configdirs} ; do
a6fbc1e2 7388 if test -z "${no_recursion}"; then
f063a9ed 7389 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7390 if test -f ${file}; then
7391 echo 1>&2 "*** removing ${file} to force reconfigure"
7392 rm -f ${file}
7393 fi
7394 done
5607edfd 7395 fi
9e1c8fc1
JJ
7396 case ${module},${bootstrap_fixincludes} in
7397 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7398 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7399 esac
3e54529c 7400 extrasub_host="$extrasub_host
5607edfd
PB
7401/^@if $module\$/d
7402/^@endif $module\$/d
da34ca3f 7403/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7404/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7405/^@endif $module-$host_bootstrap_suffix\$/d
7406/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7407done
3e54529c 7408extrasub_target=
5607edfd
PB
7409for module in ${target_configdirs} ; do
7410 if test -z "${no_recursion}" \
7411 && test -f ${target_subdir}/${module}/Makefile; then
7412 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7413 rm -f ${target_subdir}/${module}/Makefile
7414 fi
00020c16
ILT
7415
7416 # We only bootstrap target libraries listed in bootstrap_target_libs.
7417 case $bootstrap_target_libs in
7418 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7419 *) target_bootstrap_suffix=no-bootstrap ;;
7420 esac
7421
3e54529c 7422 extrasub_target="$extrasub_target
5607edfd
PB
7423/^@if target-$module\$/d
7424/^@endif target-$module\$/d
da34ca3f 7425/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7426/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7427/^@endif target-$module-$target_bootstrap_suffix\$/d
7428/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7429done
7430
3e54529c
RW
7431# Do the final fixup along with target modules.
7432extrasub_target="$extrasub_target
da34ca3f
AO
7433/^@if /,/^@endif /d
7434/^@unless /d
7435/^@endunless /d"
671aa708
NN
7436
7437# Create the serialization dependencies. This uses a temporary file.
7438
5213506e
RW
7439# Check whether --enable-serial-configure was given.
7440if test "${enable_serial_configure+set}" = set; then :
7441 enableval=$enable_serial_configure;
7442fi
ade82b16
AO
7443
7444
bf1d3e81
NN
7445case ${enable_serial_configure} in
7446 yes)
7447 enable_serial_build_configure=yes
7448 enable_serial_host_configure=yes
7449 enable_serial_target_configure=yes
7450 ;;
7451esac
7452
671aa708
NN
7453# These force 'configure's to be done one at a time, to avoid problems
7454# with contention over a shared config.cache.
7455rm -f serdep.tmp
ade82b16 7456echo '# serdep.tmp' > serdep.tmp
671aa708 7457olditem=
bf1d3e81 7458test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7459for item in ${build_configdirs} ; do
7460 case ${olditem} in
7461 "") ;;
ade82b16 7462 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7463 esac
7464 olditem=${item}
7465done
7466olditem=
bf1d3e81 7467test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7468for item in ${configdirs} ; do
7469 case ${olditem} in
7470 "") ;;
ade82b16 7471 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7472 esac
7473 olditem=${item}
7474done
7475olditem=
bf1d3e81 7476test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7477for item in ${target_configdirs} ; do
7478 case ${olditem} in
7479 "") ;;
ade82b16 7480 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7481 esac
7482 olditem=${item}
7483done
7484serialization_dependencies=serdep.tmp
7485
7486
ade82b16 7487# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7488# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7489# might not want to pass down to subconfigures. The exception being
7490# --cache-file=/dev/null, which is used to turn off the use of cache
7491# files altogether, and which should be passed on to subconfigures.
7492# Also strip program-prefix, program-suffix, and program-transform-name,
7493# so that we can pass down a consistent program-transform-name.
1c710c3c 7494baseargs=
29a63921 7495tbaseargs=
1c710c3c
DJ
7496keep_next=no
7497skip_next=no
7498eval "set -- $ac_configure_args"
44bfc3ac
DJ
7499for ac_arg
7500do
1c710c3c
DJ
7501 if test X"$skip_next" = X"yes"; then
7502 skip_next=no
7503 continue
7504 fi
7505 if test X"$keep_next" = X"yes"; then
7506 case $ac_arg in
7507 *\'*)
7508 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7509 esac
7510 baseargs="$baseargs '$ac_arg'"
29a63921 7511 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7512 keep_next=no
7513 continue
7514 fi
7515
7516 # Handle separated arguments. Based on the logic generated by
7517 # autoconf 2.59.
7518 case $ac_arg in
7519 *=* | --config-cache | -C | -disable-* | --disable-* \
7520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7522 | -with-* | --with-* | -without-* | --without-* | --x)
7523 separate_arg=no
7524 ;;
7525 -*)
7526 separate_arg=yes
7527 ;;
7528 *)
7529 separate_arg=no
7530 ;;
7531 esac
7532
29a63921
AO
7533 skip_targ=no
7534 case $ac_arg in
7535
7536 --with-* | --without-*)
7537 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7538
7539 case $libopt in
7540 *[-_]include)
7541 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7542 ;;
7543 *[-_]lib)
7544 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7545 ;;
7546 *)
7547 lib=$libopt
7548 ;;
7549 esac
7550
7551
7552 case $lib in
4a9bb2aa 7553 mpc | mpfr | gmp | isl)
29a63921
AO
7554 # If we're processing --with-$lib, --with-$lib-include or
7555 # --with-$lib-lib, for one of the libs above, and target is
7556 # different from host, don't pass the current argument to any
7557 # target library's configure.
7558 if test x$is_cross_compiler = xyes; then
7559 skip_targ=yes
7560 fi
7561 ;;
7562 esac
7563 ;;
7564 esac
7565
1c710c3c 7566 case "$ac_arg" in
f1a036e4
NC
7567 --cache-file=/dev/null | \
7568 -cache-file=/dev/null )
7569 # Handled here to avoid the test to skip args below.
7570 baseargs="$baseargs '$ac_arg'"
29a63921 7571 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7572 # Assert: $separate_arg should always be no.
7573 keep_next=$separate_arg
7574 ;;
1c710c3c
DJ
7575 --no*)
7576 continue
7577 ;;
7578 --c* | \
7579 --sr* | \
7580 --ho* | \
7581 --bu* | \
7582 --t* | \
7583 --program-* | \
7584 -cache_file* | \
7585 -srcdir* | \
7586 -host* | \
7587 -build* | \
7588 -target* | \
7589 -program-prefix* | \
7590 -program-suffix* | \
7591 -program-transform-name* )
7592 skip_next=$separate_arg
7593 continue
7594 ;;
7595 -*)
7596 # An option. Add it.
7597 case $ac_arg in
7598 *\'*)
7599 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7600 esac
7601 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7602 if test X"$skip_targ" = Xno; then
7603 tbaseargs="$tbaseargs '$ac_arg'"
7604 fi
1c710c3c
DJ
7605 keep_next=$separate_arg
7606 ;;
7607 *)
7608 # Either a variable assignment, or a nonopt (triplet). Don't
7609 # pass it down; let the Makefile handle this.
7610 continue
7611 ;;
7612 esac
7613done
7614# Remove the initial space we just introduced and, as these will be
7615# expanded by make, quote '$'.
7616baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7617
43bb47c2
DJ
7618# Add in --program-transform-name, after --program-prefix and
7619# --program-suffix have been applied to it. Autoconf has already
7620# doubled dollar signs and backslashes in program_transform_name; we want
7621# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7622# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7623# Also, because we want to override the logic in subdir configure scripts to
7624# choose program_transform_name, replace any s,x,x, with s,y,y,.
7625sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7626${program_transform_name}
7627EOF_SED
7628gcc_transform_name=`cat conftestsed.out`
7629rm -f conftestsed.out
7630baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7631tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7632if test "$silent" = yes; then
7633 baseargs="$baseargs --silent"
29a63921 7634 tbaseargs="$tbaseargs --silent"
d9acb717 7635fi
0115d4a3 7636baseargs="$baseargs --disable-option-checking"
29a63921 7637tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7638
ffedf511
RW
7639# Record and document user additions to sub configure arguments.
7640
7641
7642
7643
671aa708
NN
7644# For the build-side libraries, we just need to pretend we're native,
7645# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7646# desired. We can't even use the same cache file for all build-side
7647# libraries, as they're compiled differently; some with C, some with
7648# C++ or with different feature-enabling options.
7649build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7650
7651# For host modules, accept cache file option, or specification as blank.
7652case "${cache_file}" in
7653"") # empty
7654 cache_file_option="" ;;
7655/* | [A-Za-z]:[\\/]* ) # absolute path
7656 cache_file_option="--cache-file=${cache_file}" ;;
7657*) # relative path
7658 cache_file_option="--cache-file=../${cache_file}" ;;
7659esac
7660
09438bde
NN
7661# Host dirs don't like to share a cache file either, horribly enough.
7662# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7663host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7664
29a63921 7665target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7666
7667# Passing a --with-cross-host argument lets the target libraries know
7668# whether they are being built with a cross-compiler or being built
7669# native. However, it would be better to use other mechanisms to make the
7670# sorts of decisions they want to make on this basis. Please consider
7671# this option to be deprecated. FIXME.
7672if test x${is_cross_compiler} = xyes ; then
1c710c3c 7673 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7674fi
7675
79e0604d
FXC
7676# Special user-friendly check for native x86_64-linux build, if
7677# multilib is not explicitly enabled.
7678case "$target:$have_compiler:$host:$target:$enable_multilib" in
7679 x86_64-*linux*:yes:$build:$build:)
e640447c 7680 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7681 dev64=no
7682 echo "int main () { return 0; }" > conftest.c
7683 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7684 if test $? = 0 ; then
7685 if test -s conftest || test -s conftest.exe ; then
7686 dev64=yes
7687 fi
7688 fi
7689 rm -f conftest*
7690 if test x${dev64} != xyes ; then
22e05272 7691 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
7692 fi
7693 ;;
7694esac
7695
dc683a3f
RW
7696# Default to --enable-multilib.
7697if test x${enable_multilib} = x ; then
671aa708 7698 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7699fi
671aa708
NN
7700
7701# Pass --with-newlib if appropriate. Note that target_configdirs has
7702# changed from the earlier setting of with_newlib.
7703if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7704 target_configargs="--with-newlib ${target_configargs}"
7705fi
7706
6b9eb62c
NN
7707# Different target subdirs use different values of certain variables
7708# (notably CXX). Worse, multilibs use *lots* of different values.
7709# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7710# it doesn't automatically accept command-line overrides of them.
7711# This means it's not safe for target subdirs to share a cache file,
7712# which is disgusting, but there you have it. Hopefully this can be
7713# fixed in future. It's still worthwhile to use a cache file for each
7714# directory. I think.
7715
bebcd931
MS
7716# Pass the appropriate --build, --host, --target and --cache-file arguments.
7717# We need to pass --target, as newer autoconf's requires consistency
7718# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7719target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7720
671aa708
NN
7721FLAGS_FOR_TARGET=
7722case " $target_configdirs " in
7723 *" newlib "*)
7724 case " $target_configargs " in
7725 *" --with-newlib "*)
7726 case "$target" in
5d571eaa 7727 *-cygwin*)
443e6238 7728 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7729 ;;
671aa708
NN
7730 esac
7731
7732 # If we're not building GCC, don't discard standard headers.
7733 if test -d ${srcdir}/gcc; then
7734 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7735
7736 if test "${build}" != "${host}"; then
7737 # On Canadian crosses, CC_FOR_TARGET will have already been set
7738 # by `configure', so we won't have an opportunity to add -Bgcc/
7739 # to it. This is right: we don't want to search that directory
7740 # for binaries, but we want the header files in there, so add
7741 # them explicitly.
0463992b 7742 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7743
7744 # Someone might think of using the pre-installed headers on
7745 # Canadian crosses, in case the installed compiler is not fully
7746 # compatible with the compiler being built. In this case, it
7747 # would be better to flag an error than risking having
7748 # incompatible object files being constructed. We can't
7749 # guarantee that an error will be flagged, but let's hope the
7750 # compiler will do it, when presented with incompatible header
7751 # files.
7752 fi
7753 fi
7754
7755 case "${target}-${is_cross_compiler}" in
f2a0e225 7756 i[3456789]86-*-linux*-no)
671aa708
NN
7757 # Here host == target, so we don't need to build gcc,
7758 # so we don't want to discard standard headers.
7759 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7760 ;;
7761 *)
7762 # If we're building newlib, use its generic headers last, but search
7763 # for any libc-related directories first (so make it the last -B
7764 # switch).
7765 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
7766
7767 # If we're building libgloss, find the startup file, simulator library
7768 # and linker script.
7769 case " $target_configdirs " in
7770 *" libgloss "*)
7771 # Look for startup file, simulator library and maybe linker script.
7772 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7773 # Look for libnosys.a in case the target needs it.
7774 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7775 # Most targets have the linker script in the source directory.
7776 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7777 ;;
7778 esac
671aa708
NN
7779 ;;
7780 esac
7781 ;;
7782 esac
7783 ;;
7784esac
5d571eaa 7785
b91f0a41 7786case "$target" in
5d571eaa
OS
7787 x86_64-*mingw* | *-w64-mingw*)
7788 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7789 # however, use a symlink named 'mingw' in ${prefix} .
7790 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7791 ;;
7792 *-mingw*)
7793 # MinGW can't be handled as Cygwin above since it does not use newlib.
7794 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'
7795 ;;
b91f0a41 7796esac
671aa708 7797
6691a79e
ME
7798# Allow the user to override the flags for
7799# our build compiler if desired.
f019adc1
MF
7800if test x"${build}" = x"${host}" ; then
7801 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7802 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7803 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7804fi
6691a79e 7805
671aa708
NN
7806# On Canadian crosses, we'll be searching the right directories for
7807# the previously-installed cross compiler, so don't bother to add
7808# flags for directories within the install tree of the compiler
7809# being built; programs in there won't even run.
7810if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7811 # Search for pre-installed headers if nothing else fits.
9124bc53 7812 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
7813fi
7814
7815if test "x${use_gnu_ld}" = x &&
7816 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7817 # Arrange for us to find uninstalled linker scripts.
215c351a 7818 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7819fi
7820
e88a2c09
DD
7821# Search for other target-specific linker scripts and such.
7822case "${target}" in
3e19841a
PB
7823 mep*)
7824 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7825 ;;
e88a2c09
DD
7826esac
7827
671aa708 7828# Makefile fragments.
7b61653a
PE
7829for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7830do
7831 eval fragval=\$$frag
7832 if test $fragval != /dev/null; then
7833 eval $frag=${srcdir}/$fragval
7834 fi
7835done
671aa708
NN
7836
7837
7838
7839
7840
7841# Miscellanea: directories, flags, etc.
7842
7843
7844
7845
7846
7847
7848
d89f0ad6 7849
23f6b2f9 7850# Build module lists & subconfigure args.
671aa708
NN
7851
7852
7853
2abefe3d
PB
7854# Host module lists & subconfigure args.
7855
7856
7857
aae29963 7858
2abefe3d
PB
7859# Target module lists & subconfigure args.
7860
7861
7862
7863# Build tools.
7864
7865
7866
0999159b
PB
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
b4c522fa 7880
2abefe3d
PB
7881# Generate default definitions for YACC, M4, LEX and other programs that run
7882# on the build machine. These are used if the Makefile can't locate these
7883# programs in objdir.
7884MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7885
7886for ac_prog in 'bison -y' byacc yacc
7887do
1c710c3c 7888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7889set dummy $ac_prog; ac_word=$2
5213506e
RW
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7892if ${ac_cv_prog_YACC+:} false; then :
5213506e 7893 $as_echo_n "(cached) " >&6
2abefe3d
PB
7894else
7895 if test -n "$YACC"; then
7896 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7897else
1c710c3c
DJ
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
5213506e 7903 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7905 ac_cv_prog_YACC="$ac_prog"
5213506e 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7907 break 2
7908 fi
7909done
5213506e
RW
7910 done
7911IFS=$as_save_IFS
1c710c3c 7912
2abefe3d
PB
7913fi
7914fi
1c710c3c 7915YACC=$ac_cv_prog_YACC
2abefe3d 7916if test -n "$YACC"; then
5213506e
RW
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7918$as_echo "$YACC" >&6; }
2abefe3d 7919else
5213506e
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
2abefe3d
PB
7922fi
7923
5213506e 7924
1c710c3c 7925 test -n "$YACC" && break
2abefe3d
PB
7926done
7927test -n "$YACC" || YACC="$MISSING bison -y"
7928
7929case " $build_configdirs " in
7930 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7931esac
7932
7933for ac_prog in bison
7934do
1c710c3c 7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7936set dummy $ac_prog; ac_word=$2
5213506e
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7939if ${ac_cv_prog_BISON+:} false; then :
5213506e 7940 $as_echo_n "(cached) " >&6
2abefe3d
PB
7941else
7942 if test -n "$BISON"; then
7943 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7944else
1c710c3c
DJ
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
5213506e 7950 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7952 ac_cv_prog_BISON="$ac_prog"
5213506e 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7954 break 2
7955 fi
7956done
5213506e
RW
7957 done
7958IFS=$as_save_IFS
1c710c3c 7959
2abefe3d
PB
7960fi
7961fi
1c710c3c 7962BISON=$ac_cv_prog_BISON
2abefe3d 7963if test -n "$BISON"; then
5213506e
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7965$as_echo "$BISON" >&6; }
2abefe3d 7966else
5213506e
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
2abefe3d
PB
7969fi
7970
5213506e 7971
1c710c3c 7972 test -n "$BISON" && break
2abefe3d
PB
7973done
7974test -n "$BISON" || BISON="$MISSING bison"
7975
7976case " $build_configdirs " in
7977 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7978esac
7979
7980for ac_prog in gm4 gnum4 m4
7981do
1c710c3c 7982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7983set dummy $ac_prog; ac_word=$2
5213506e
RW
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7986if ${ac_cv_prog_M4+:} false; then :
5213506e 7987 $as_echo_n "(cached) " >&6
2abefe3d
PB
7988else
7989 if test -n "$M4"; then
7990 ac_cv_prog_M4="$M4" # Let the user override the test.
7991else
1c710c3c
DJ
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
5213506e 7997 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7999 ac_cv_prog_M4="$ac_prog"
5213506e 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8001 break 2
8002 fi
8003done
5213506e
RW
8004 done
8005IFS=$as_save_IFS
1c710c3c 8006
2abefe3d
PB
8007fi
8008fi
1c710c3c 8009M4=$ac_cv_prog_M4
2abefe3d 8010if test -n "$M4"; then
5213506e
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8012$as_echo "$M4" >&6; }
2abefe3d 8013else
5213506e
RW
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
2abefe3d
PB
8016fi
8017
5213506e 8018
1c710c3c 8019 test -n "$M4" && break
2abefe3d
PB
8020done
8021test -n "$M4" || M4="$MISSING m4"
8022
8023case " $build_configdirs " in
8024 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8025esac
8026
8027for ac_prog in flex lex
8028do
1c710c3c 8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8030set dummy $ac_prog; ac_word=$2
5213506e
RW
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8033if ${ac_cv_prog_LEX+:} false; then :
5213506e 8034 $as_echo_n "(cached) " >&6
2abefe3d
PB
8035else
8036 if test -n "$LEX"; then
8037 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8038else
1c710c3c
DJ
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
5213506e 8044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8046 ac_cv_prog_LEX="$ac_prog"
5213506e 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8048 break 2
8049 fi
8050done
5213506e
RW
8051 done
8052IFS=$as_save_IFS
1c710c3c 8053
2abefe3d
PB
8054fi
8055fi
1c710c3c 8056LEX=$ac_cv_prog_LEX
2abefe3d 8057if test -n "$LEX"; then
5213506e
RW
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8059$as_echo "$LEX" >&6; }
2abefe3d 8060else
5213506e
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
2abefe3d
PB
8063fi
8064
5213506e 8065
1c710c3c 8066 test -n "$LEX" && break
2abefe3d
PB
8067done
8068test -n "$LEX" || LEX="$MISSING flex"
8069
8070case " $build_configdirs " in
8071 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8072 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8073esac
8074
8075for ac_prog in flex
8076do
1c710c3c 8077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8078set dummy $ac_prog; ac_word=$2
5213506e
RW
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8081if ${ac_cv_prog_FLEX+:} false; then :
5213506e 8082 $as_echo_n "(cached) " >&6
2abefe3d
PB
8083else
8084 if test -n "$FLEX"; then
8085 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8086else
1c710c3c
DJ
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
5213506e 8092 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8094 ac_cv_prog_FLEX="$ac_prog"
5213506e 8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8096 break 2
8097 fi
8098done
5213506e
RW
8099 done
8100IFS=$as_save_IFS
1c710c3c 8101
2abefe3d
PB
8102fi
8103fi
1c710c3c 8104FLEX=$ac_cv_prog_FLEX
2abefe3d 8105if test -n "$FLEX"; then
5213506e
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8107$as_echo "$FLEX" >&6; }
2abefe3d 8108else
5213506e
RW
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
2abefe3d
PB
8111fi
8112
5213506e 8113
1c710c3c 8114 test -n "$FLEX" && break
2abefe3d
PB
8115done
8116test -n "$FLEX" || FLEX="$MISSING flex"
8117
8118case " $build_configdirs " in
8119 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8120esac
8121
8122for ac_prog in makeinfo
8123do
1c710c3c 8124 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8125set dummy $ac_prog; ac_word=$2
5213506e
RW
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8128if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8129 $as_echo_n "(cached) " >&6
2abefe3d
PB
8130else
8131 if test -n "$MAKEINFO"; then
8132 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8133else
1c710c3c
DJ
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
5213506e 8139 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8141 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8143 break 2
8144 fi
8145done
5213506e
RW
8146 done
8147IFS=$as_save_IFS
1c710c3c 8148
2abefe3d
PB
8149fi
8150fi
1c710c3c 8151MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8152if test -n "$MAKEINFO"; then
5213506e
RW
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8154$as_echo "$MAKEINFO" >&6; }
2abefe3d 8155else
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157$as_echo "no" >&6; }
2abefe3d
PB
8158fi
8159
5213506e 8160
1c710c3c 8161 test -n "$MAKEINFO" && break
2abefe3d
PB
8162done
8163test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8164
8165case " $build_configdirs " in
8166 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8167 *)
8168
d18ff35a 8169 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8170 # higher, else we use the "missing" dummy.
8171 if ${MAKEINFO} --version \
d18ff35a 8172 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8173 :
8174 else
8175 MAKEINFO="$MISSING makeinfo"
8176 fi
8177 ;;
8178
8179esac
671aa708 8180
2abefe3d 8181# FIXME: expect and dejagnu may become build tools?
671aa708 8182
2abefe3d
PB
8183for ac_prog in expect
8184do
1c710c3c 8185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8186set dummy $ac_prog; ac_word=$2
5213506e
RW
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8189if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8190 $as_echo_n "(cached) " >&6
2abefe3d
PB
8191else
8192 if test -n "$EXPECT"; then
8193 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8194else
1c710c3c
DJ
8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
5213506e 8200 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8202 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8204 break 2
8205 fi
8206done
5213506e
RW
8207 done
8208IFS=$as_save_IFS
1c710c3c 8209
2abefe3d
PB
8210fi
8211fi
1c710c3c 8212EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8213if test -n "$EXPECT"; then
5213506e
RW
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8215$as_echo "$EXPECT" >&6; }
2abefe3d 8216else
5213506e
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218$as_echo "no" >&6; }
2abefe3d 8219fi
671aa708 8220
5213506e 8221
1c710c3c 8222 test -n "$EXPECT" && break
2abefe3d
PB
8223done
8224test -n "$EXPECT" || EXPECT="expect"
671aa708 8225
2abefe3d
PB
8226case " $configdirs " in
8227 *" expect "*)
8228 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8229 ;;
8230esac
671aa708 8231
2abefe3d
PB
8232for ac_prog in runtest
8233do
1c710c3c 8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8235set dummy $ac_prog; ac_word=$2
5213506e
RW
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8238if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8239 $as_echo_n "(cached) " >&6
2abefe3d
PB
8240else
8241 if test -n "$RUNTEST"; then
8242 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8243else
1c710c3c
DJ
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
5213506e 8249 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8251 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8253 break 2
8254 fi
8255done
5213506e
RW
8256 done
8257IFS=$as_save_IFS
1c710c3c 8258
2abefe3d
PB
8259fi
8260fi
1c710c3c 8261RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8262if test -n "$RUNTEST"; then
5213506e
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8264$as_echo "$RUNTEST" >&6; }
2abefe3d 8265else
5213506e
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
2abefe3d 8268fi
671aa708 8269
5213506e 8270
1c710c3c 8271 test -n "$RUNTEST" && break
2abefe3d
PB
8272done
8273test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8274
2abefe3d
PB
8275case " $configdirs " in
8276 *" dejagnu "*)
c394e891 8277 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8278 ;;
8279esac
671aa708
NN
8280
8281
671aa708 8282# Host tools.
ca9f4b81
AO
8283ncn_tool_prefix=
8284test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8285ncn_target_tool_prefix=
8286test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8287
278a7a38
AO
8288
8289
8290if test -n "$AR"; then
8291 ac_cv_prog_AR=$AR
8292elif test -n "$ac_cv_prog_AR"; then
8293 AR=$ac_cv_prog_AR
8294fi
8295
8296if test -n "$ac_cv_prog_AR"; then
8297 for ncn_progname in ar; do
8298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8299set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8302if ${ac_cv_prog_AR+:} false; then :
5213506e 8303 $as_echo_n "(cached) " >&6
278a7a38
AO
8304else
8305 if test -n "$AR"; then
8306 ac_cv_prog_AR="$AR" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
5213506e 8313 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8315 ac_cv_prog_AR="${ncn_progname}"
5213506e 8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8317 break 2
8318 fi
8319done
5213506e
RW
8320 done
8321IFS=$as_save_IFS
278a7a38
AO
8322
8323fi
8324fi
8325AR=$ac_cv_prog_AR
8326if test -n "$AR"; then
5213506e
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8328$as_echo "$AR" >&6; }
278a7a38 8329else
5213506e
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
278a7a38
AO
8332fi
8333
5213506e 8334
278a7a38
AO
8335 done
8336fi
8337
8338for ncn_progname in ar; do
2693c0b0
PB
8339 if test -n "$ncn_tool_prefix"; then
8340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8344if ${ac_cv_prog_AR+:} false; then :
5213506e 8345 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8346else
8347 if test -n "$AR"; then
8348 ac_cv_prog_AR="$AR" # Let the user override the test.
8349else
1c710c3c
DJ
8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
5213506e 8355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8357 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8359 break 2
8360 fi
8361done
5213506e
RW
8362 done
8363IFS=$as_save_IFS
1c710c3c 8364
ca9f4b81
AO
8365fi
8366fi
1c710c3c 8367AR=$ac_cv_prog_AR
ca9f4b81 8368if test -n "$AR"; then
5213506e
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8370$as_echo "$AR" >&6; }
ca9f4b81 8371else
5213506e
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
ca9f4b81
AO
8374fi
8375
5213506e 8376
2693c0b0
PB
8377 fi
8378 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8383if ${ac_cv_prog_AR+:} false; then :
5213506e 8384 $as_echo_n "(cached) " >&6
ca9f4b81 8385else
2693c0b0 8386 if test -n "$AR"; then
af71363e
AS
8387 ac_cv_prog_AR="$AR" # Let the user override the test.
8388else
1c710c3c
DJ
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
5213506e 8394 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8396 ac_cv_prog_AR="${ncn_progname}"
5213506e 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8398 break 2
8399 fi
8400done
5213506e
RW
8401 done
8402IFS=$as_save_IFS
1c710c3c 8403
ca9f4b81
AO
8404fi
8405fi
1c710c3c 8406AR=$ac_cv_prog_AR
2693c0b0 8407if test -n "$AR"; then
5213506e
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8409$as_echo "$AR" >&6; }
ca9f4b81 8410else
5213506e
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
ca9f4b81 8413fi
1c710c3c 8414
5213506e 8415
2693c0b0
PB
8416 fi
8417 test -n "$ac_cv_prog_AR" && break
8418done
8419
8420if test -z "$ac_cv_prog_AR" ; then
8421 set dummy ar
8422 if test $build = $host ; then
8423 AR="$2"
ca9f4b81 8424 else
2693c0b0 8425 AR="${ncn_tool_prefix}$2"
ca9f4b81 8426 fi
ca9f4b81
AO
8427fi
8428
278a7a38
AO
8429
8430
8431if test -n "$AS"; then
8432 ac_cv_prog_AS=$AS
8433elif test -n "$ac_cv_prog_AS"; then
8434 AS=$ac_cv_prog_AS
8435fi
8436
8437if test -n "$ac_cv_prog_AS"; then
8438 for ncn_progname in as; do
8439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8443if ${ac_cv_prog_AS+:} false; then :
5213506e 8444 $as_echo_n "(cached) " >&6
278a7a38
AO
8445else
8446 if test -n "$AS"; then
8447 ac_cv_prog_AS="$AS" # Let the user override the test.
8448else
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
5213506e 8454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8456 ac_cv_prog_AS="${ncn_progname}"
5213506e 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8458 break 2
8459 fi
8460done
5213506e
RW
8461 done
8462IFS=$as_save_IFS
278a7a38
AO
8463
8464fi
8465fi
8466AS=$ac_cv_prog_AS
8467if test -n "$AS"; then
5213506e
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8469$as_echo "$AS" >&6; }
278a7a38 8470else
5213506e
RW
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
278a7a38
AO
8473fi
8474
5213506e 8475
278a7a38
AO
8476 done
8477fi
8478
8479for ncn_progname in as; do
2693c0b0
PB
8480 if test -n "$ncn_tool_prefix"; then
8481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8485if ${ac_cv_prog_AS+:} false; then :
5213506e 8486 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8487else
8488 if test -n "$AS"; then
8489 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8490else
1c710c3c
DJ
8491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
5213506e 8496 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8498 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8500 break 2
8501 fi
8502done
5213506e
RW
8503 done
8504IFS=$as_save_IFS
1c710c3c 8505
ca9f4b81
AO
8506fi
8507fi
1c710c3c 8508AS=$ac_cv_prog_AS
ca9f4b81 8509if test -n "$AS"; then
5213506e
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8511$as_echo "$AS" >&6; }
ca9f4b81 8512else
5213506e
RW
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514$as_echo "no" >&6; }
ca9f4b81
AO
8515fi
8516
5213506e 8517
2693c0b0
PB
8518 fi
8519 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8524if ${ac_cv_prog_AS+:} false; then :
5213506e 8525 $as_echo_n "(cached) " >&6
ca9f4b81 8526else
2693c0b0
PB
8527 if test -n "$AS"; then
8528 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8529else
1c710c3c
DJ
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
5213506e 8535 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8537 ac_cv_prog_AS="${ncn_progname}"
5213506e 8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8539 break 2
8540 fi
8541done
5213506e
RW
8542 done
8543IFS=$as_save_IFS
1c710c3c 8544
ca9f4b81
AO
8545fi
8546fi
1c710c3c 8547AS=$ac_cv_prog_AS
2693c0b0 8548if test -n "$AS"; then
5213506e
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8550$as_echo "$AS" >&6; }
ca9f4b81 8551else
5213506e
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
ca9f4b81 8554fi
1c710c3c 8555
5213506e 8556
2693c0b0
PB
8557 fi
8558 test -n "$ac_cv_prog_AS" && break
8559done
8560
8561if test -z "$ac_cv_prog_AS" ; then
8562 set dummy as
8563 if test $build = $host ; then
8564 AS="$2"
ca9f4b81 8565 else
2693c0b0 8566 AS="${ncn_tool_prefix}$2"
ca9f4b81 8567 fi
ca9f4b81
AO
8568fi
8569
278a7a38
AO
8570
8571
8572if test -n "$DLLTOOL"; then
8573 ac_cv_prog_DLLTOOL=$DLLTOOL
8574elif test -n "$ac_cv_prog_DLLTOOL"; then
8575 DLLTOOL=$ac_cv_prog_DLLTOOL
8576fi
8577
8578if test -n "$ac_cv_prog_DLLTOOL"; then
8579 for ncn_progname in dlltool; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8584if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8585 $as_echo_n "(cached) " >&6
278a7a38
AO
8586else
8587 if test -n "$DLLTOOL"; then
8588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
5213506e 8595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8597 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8599 break 2
8600 fi
8601done
5213506e
RW
8602 done
8603IFS=$as_save_IFS
278a7a38
AO
8604
8605fi
8606fi
8607DLLTOOL=$ac_cv_prog_DLLTOOL
8608if test -n "$DLLTOOL"; then
5213506e
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8610$as_echo "$DLLTOOL" >&6; }
278a7a38 8611else
5213506e
RW
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
278a7a38
AO
8614fi
8615
5213506e 8616
278a7a38
AO
8617 done
8618fi
8619
8620for ncn_progname in dlltool; do
2693c0b0
PB
8621 if test -n "$ncn_tool_prefix"; then
8622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8626if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8627 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8628else
8629 if test -n "$DLLTOOL"; then
8630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8631else
1c710c3c
DJ
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
5213506e 8637 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8639 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8641 break 2
8642 fi
8643done
5213506e
RW
8644 done
8645IFS=$as_save_IFS
1c710c3c 8646
ca9f4b81
AO
8647fi
8648fi
1c710c3c 8649DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8650if test -n "$DLLTOOL"; then
5213506e
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8652$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8653else
5213506e
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655$as_echo "no" >&6; }
ca9f4b81
AO
8656fi
8657
5213506e 8658
2693c0b0
PB
8659 fi
8660 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8665if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8666 $as_echo_n "(cached) " >&6
ca9f4b81 8667else
2693c0b0
PB
8668 if test -n "$DLLTOOL"; then
8669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8670else
1c710c3c
DJ
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
5213506e 8676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8678 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8680 break 2
8681 fi
8682done
5213506e
RW
8683 done
8684IFS=$as_save_IFS
1c710c3c 8685
ca9f4b81
AO
8686fi
8687fi
1c710c3c 8688DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8689if test -n "$DLLTOOL"; then
5213506e
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8691$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8692else
5213506e
RW
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
ca9f4b81 8695fi
1c710c3c 8696
5213506e 8697
2693c0b0
PB
8698 fi
8699 test -n "$ac_cv_prog_DLLTOOL" && break
8700done
8701
8702if test -z "$ac_cv_prog_DLLTOOL" ; then
8703 set dummy dlltool
8704 if test $build = $host ; then
8705 DLLTOOL="$2"
ca9f4b81 8706 else
2693c0b0 8707 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8708 fi
ca9f4b81
AO
8709fi
8710
278a7a38
AO
8711
8712
8713if test -n "$LD"; then
8714 ac_cv_prog_LD=$LD
8715elif test -n "$ac_cv_prog_LD"; then
8716 LD=$ac_cv_prog_LD
8717fi
8718
8719if test -n "$ac_cv_prog_LD"; then
8720 for ncn_progname in ld; do
8721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8722set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8725if ${ac_cv_prog_LD+:} false; then :
5213506e 8726 $as_echo_n "(cached) " >&6
278a7a38
AO
8727else
8728 if test -n "$LD"; then
8729 ac_cv_prog_LD="$LD" # Let the user override the test.
8730else
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
5213506e 8736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8738 ac_cv_prog_LD="${ncn_progname}"
5213506e 8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8740 break 2
8741 fi
8742done
5213506e
RW
8743 done
8744IFS=$as_save_IFS
278a7a38
AO
8745
8746fi
8747fi
8748LD=$ac_cv_prog_LD
8749if test -n "$LD"; then
5213506e
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8751$as_echo "$LD" >&6; }
278a7a38 8752else
5213506e
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
278a7a38
AO
8755fi
8756
5213506e 8757
278a7a38
AO
8758 done
8759fi
8760
8761for ncn_progname in ld; do
2693c0b0
PB
8762 if test -n "$ncn_tool_prefix"; then
8763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8767if ${ac_cv_prog_LD+:} false; then :
5213506e 8768 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8769else
8770 if test -n "$LD"; then
8771 ac_cv_prog_LD="$LD" # Let the user override the test.
8772else
1c710c3c
DJ
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
5213506e 8778 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8780 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8782 break 2
8783 fi
8784done
5213506e
RW
8785 done
8786IFS=$as_save_IFS
1c710c3c 8787
ca9f4b81
AO
8788fi
8789fi
1c710c3c 8790LD=$ac_cv_prog_LD
ca9f4b81 8791if test -n "$LD"; then
5213506e
RW
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8793$as_echo "$LD" >&6; }
ca9f4b81 8794else
5213506e
RW
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
ca9f4b81
AO
8797fi
8798
5213506e 8799
2693c0b0
PB
8800 fi
8801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8806if ${ac_cv_prog_LD+:} false; then :
5213506e 8807 $as_echo_n "(cached) " >&6
ca9f4b81 8808else
2693c0b0
PB
8809 if test -n "$LD"; then
8810 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8811else
1c710c3c
DJ
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
5213506e 8817 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8819 ac_cv_prog_LD="${ncn_progname}"
5213506e 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8821 break 2
8822 fi
8823done
5213506e
RW
8824 done
8825IFS=$as_save_IFS
1c710c3c 8826
ca9f4b81
AO
8827fi
8828fi
1c710c3c 8829LD=$ac_cv_prog_LD
2693c0b0 8830if test -n "$LD"; then
5213506e
RW
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8832$as_echo "$LD" >&6; }
ca9f4b81 8833else
5213506e
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
ca9f4b81 8836fi
1c710c3c 8837
5213506e 8838
2693c0b0
PB
8839 fi
8840 test -n "$ac_cv_prog_LD" && break
8841done
8842
8843if test -z "$ac_cv_prog_LD" ; then
8844 set dummy ld
8845 if test $build = $host ; then
8846 LD="$2"
ca9f4b81 8847 else
2693c0b0 8848 LD="${ncn_tool_prefix}$2"
ca9f4b81 8849 fi
ca9f4b81
AO
8850fi
8851
278a7a38
AO
8852
8853
8854if test -n "$LIPO"; then
8855 ac_cv_prog_LIPO=$LIPO
8856elif test -n "$ac_cv_prog_LIPO"; then
8857 LIPO=$ac_cv_prog_LIPO
8858fi
8859
8860if test -n "$ac_cv_prog_LIPO"; then
8861 for ncn_progname in lipo; do
8862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8863set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8866if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8867 $as_echo_n "(cached) " >&6
278a7a38
AO
8868else
8869 if test -n "$LIPO"; then
8870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
5213506e 8877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8879 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8881 break 2
8882 fi
8883done
5213506e
RW
8884 done
8885IFS=$as_save_IFS
278a7a38
AO
8886
8887fi
8888fi
8889LIPO=$ac_cv_prog_LIPO
8890if test -n "$LIPO"; then
5213506e
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8892$as_echo "$LIPO" >&6; }
278a7a38 8893else
5213506e
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
278a7a38
AO
8896fi
8897
5213506e 8898
278a7a38
AO
8899 done
8900fi
8901
8902for ncn_progname in lipo; do
2abefe3d
PB
8903 if test -n "$ncn_tool_prefix"; then
8904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8908if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8909 $as_echo_n "(cached) " >&6
2abefe3d
PB
8910else
8911 if test -n "$LIPO"; then
8912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8913else
1c710c3c
DJ
8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $PATH
8916do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
5213506e 8919 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8921 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8923 break 2
8924 fi
8925done
5213506e
RW
8926 done
8927IFS=$as_save_IFS
1c710c3c 8928
2abefe3d
PB
8929fi
8930fi
1c710c3c 8931LIPO=$ac_cv_prog_LIPO
2abefe3d 8932if test -n "$LIPO"; then
5213506e
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8934$as_echo "$LIPO" >&6; }
2abefe3d 8935else
5213506e
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
2abefe3d
PB
8938fi
8939
5213506e 8940
2abefe3d
PB
8941 fi
8942 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8947if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8948 $as_echo_n "(cached) " >&6
2abefe3d
PB
8949else
8950 if test -n "$LIPO"; then
8951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8952else
1c710c3c
DJ
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
5213506e 8958 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8960 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8962 break 2
8963 fi
8964done
5213506e
RW
8965 done
8966IFS=$as_save_IFS
1c710c3c 8967
2abefe3d
PB
8968fi
8969fi
1c710c3c 8970LIPO=$ac_cv_prog_LIPO
2abefe3d 8971if test -n "$LIPO"; then
5213506e
RW
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8973$as_echo "$LIPO" >&6; }
2abefe3d 8974else
5213506e
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976$as_echo "no" >&6; }
2abefe3d 8977fi
1c710c3c 8978
5213506e 8979
2abefe3d
PB
8980 fi
8981 test -n "$ac_cv_prog_LIPO" && break
8982done
8983
8984if test -z "$ac_cv_prog_LIPO" ; then
8985 set dummy lipo
8986 if test $build = $host ; then
8987 LIPO="$2"
8988 else
8989 LIPO="${ncn_tool_prefix}$2"
8990 fi
8991fi
8992
278a7a38
AO
8993
8994
8995if test -n "$NM"; then
8996 ac_cv_prog_NM=$NM
8997elif test -n "$ac_cv_prog_NM"; then
8998 NM=$ac_cv_prog_NM
8999fi
9000
9001if test -n "$ac_cv_prog_NM"; then
9002 for ncn_progname in nm; do
9003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9004set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9007if ${ac_cv_prog_NM+:} false; then :
5213506e 9008 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9009else
9010 if test -n "$NM"; then
9011 ac_cv_prog_NM="$NM" # Let the user override the test.
9012else
1c710c3c
DJ
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
5213506e 9018 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9020 ac_cv_prog_NM="${ncn_progname}"
5213506e 9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9022 break 2
9023 fi
9024done
5213506e
RW
9025 done
9026IFS=$as_save_IFS
1c710c3c 9027
ca9f4b81
AO
9028fi
9029fi
1c710c3c 9030NM=$ac_cv_prog_NM
ca9f4b81 9031if test -n "$NM"; then
5213506e
RW
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9033$as_echo "$NM" >&6; }
ca9f4b81 9034else
5213506e
RW
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036$as_echo "no" >&6; }
ca9f4b81
AO
9037fi
9038
5213506e 9039
278a7a38
AO
9040 done
9041fi
9042
9043for ncn_progname in nm; do
9044 if test -n "$ncn_tool_prefix"; then
9045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9046set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9049if ${ac_cv_prog_NM+:} false; then :
5213506e 9050 $as_echo_n "(cached) " >&6
ca9f4b81 9051else
2693c0b0
PB
9052 if test -n "$NM"; then
9053 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9054else
1c710c3c
DJ
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
5213506e 9060 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9062 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9064 break 2
9065 fi
9066done
5213506e
RW
9067 done
9068IFS=$as_save_IFS
1c710c3c 9069
ca9f4b81
AO
9070fi
9071fi
1c710c3c 9072NM=$ac_cv_prog_NM
2693c0b0 9073if test -n "$NM"; then
5213506e
RW
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9075$as_echo "$NM" >&6; }
ca9f4b81 9076else
5213506e
RW
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078$as_echo "no" >&6; }
ca9f4b81 9079fi
1c710c3c 9080
5213506e 9081
2693c0b0 9082 fi
278a7a38
AO
9083 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9088if ${ac_cv_prog_NM+:} false; then :
5213506e 9089 $as_echo_n "(cached) " >&6
278a7a38
AO
9090else
9091 if test -n "$NM"; then
9092 ac_cv_prog_NM="$NM" # Let the user override the test.
9093else
9094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095for as_dir in $PATH
9096do
9097 IFS=$as_save_IFS
9098 test -z "$as_dir" && as_dir=.
5213506e 9099 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9101 ac_cv_prog_NM="${ncn_progname}"
5213506e 9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9103 break 2
9104 fi
9105done
5213506e
RW
9106 done
9107IFS=$as_save_IFS
278a7a38
AO
9108
9109fi
9110fi
9111NM=$ac_cv_prog_NM
9112if test -n "$NM"; then
5213506e
RW
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9114$as_echo "$NM" >&6; }
278a7a38 9115else
5213506e
RW
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
278a7a38
AO
9118fi
9119
5213506e 9120
278a7a38
AO
9121 fi
9122 test -n "$ac_cv_prog_NM" && break
9123done
9124
9125if test -z "$ac_cv_prog_NM" ; then
9126 set dummy nm
9127 if test $build = $host ; then
9128 NM="$2"
9129 else
9130 NM="${ncn_tool_prefix}$2"
9131 fi
9132fi
9133
9134
9135
9136if test -n "$RANLIB"; then
9137 ac_cv_prog_RANLIB=$RANLIB
9138elif test -n "$ac_cv_prog_RANLIB"; then
9139 RANLIB=$ac_cv_prog_RANLIB
9140fi
9141
9142if test -n "$ac_cv_prog_RANLIB"; then
9143 for ncn_progname in ranlib; do
9144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9148if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9149 $as_echo_n "(cached) " >&6
278a7a38
AO
9150else
9151 if test -n "$RANLIB"; then
9152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9153else
9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
5213506e 9159 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9161 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9163 break 2
9164 fi
9165done
5213506e
RW
9166 done
9167IFS=$as_save_IFS
278a7a38
AO
9168
9169fi
9170fi
9171RANLIB=$ac_cv_prog_RANLIB
9172if test -n "$RANLIB"; then
5213506e
RW
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9174$as_echo "$RANLIB" >&6; }
278a7a38 9175else
5213506e
RW
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177$as_echo "no" >&6; }
278a7a38
AO
9178fi
9179
5213506e 9180
278a7a38
AO
9181 done
9182fi
ca9f4b81 9183
278a7a38 9184for ncn_progname in ranlib; do
2693c0b0
PB
9185 if test -n "$ncn_tool_prefix"; then
9186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9187set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9190if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9191 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9192else
9193 if test -n "$RANLIB"; then
9194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9195else
1c710c3c
DJ
9196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197for as_dir in $PATH
9198do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
5213506e 9201 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9203 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9205 break 2
9206 fi
9207done
5213506e
RW
9208 done
9209IFS=$as_save_IFS
1c710c3c 9210
ca9f4b81
AO
9211fi
9212fi
1c710c3c 9213RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9214if test -n "$RANLIB"; then
5213506e
RW
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9216$as_echo "$RANLIB" >&6; }
ca9f4b81 9217else
5213506e
RW
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219$as_echo "no" >&6; }
ca9f4b81
AO
9220fi
9221
5213506e 9222
2693c0b0
PB
9223 fi
9224 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9226set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9229if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9230 $as_echo_n "(cached) " >&6
ca9f4b81 9231else
2693c0b0
PB
9232 if test -n "$RANLIB"; then
9233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9234else
1c710c3c
DJ
9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
5213506e 9240 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9242 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9244 break 2
9245 fi
9246done
5213506e
RW
9247 done
9248IFS=$as_save_IFS
1c710c3c 9249
ca9f4b81
AO
9250fi
9251fi
1c710c3c 9252RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9253if test -n "$RANLIB"; then
5213506e
RW
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9255$as_echo "$RANLIB" >&6; }
ca9f4b81 9256else
5213506e
RW
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
ca9f4b81 9259fi
1c710c3c 9260
5213506e 9261
ca9f4b81 9262 fi
2693c0b0
PB
9263 test -n "$ac_cv_prog_RANLIB" && break
9264done
9265
9266if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9267 RANLIB="true"
ca9f4b81
AO
9268fi
9269
278a7a38
AO
9270
9271
9272if test -n "$STRIP"; then
9273 ac_cv_prog_STRIP=$STRIP
9274elif test -n "$ac_cv_prog_STRIP"; then
9275 STRIP=$ac_cv_prog_STRIP
9276fi
9277
9278if test -n "$ac_cv_prog_STRIP"; then
9279 for ncn_progname in strip; do
9280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9284if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9285 $as_echo_n "(cached) " >&6
278a7a38
AO
9286else
9287 if test -n "$STRIP"; then
9288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9289else
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
5213506e 9295 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9297 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9299 break 2
9300 fi
9301done
5213506e
RW
9302 done
9303IFS=$as_save_IFS
278a7a38
AO
9304
9305fi
9306fi
9307STRIP=$ac_cv_prog_STRIP
9308if test -n "$STRIP"; then
5213506e
RW
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9310$as_echo "$STRIP" >&6; }
278a7a38 9311else
5213506e
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
278a7a38
AO
9314fi
9315
5213506e 9316
278a7a38
AO
9317 done
9318fi
9319
9320for ncn_progname in strip; do
2abefe3d
PB
9321 if test -n "$ncn_tool_prefix"; then
9322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9323set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9326if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9327 $as_echo_n "(cached) " >&6
2abefe3d
PB
9328else
9329 if test -n "$STRIP"; then
9330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9331else
1c710c3c
DJ
9332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333for as_dir in $PATH
9334do
9335 IFS=$as_save_IFS
9336 test -z "$as_dir" && as_dir=.
5213506e 9337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9339 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9341 break 2
9342 fi
9343done
5213506e
RW
9344 done
9345IFS=$as_save_IFS
1c710c3c 9346
2abefe3d
PB
9347fi
9348fi
1c710c3c 9349STRIP=$ac_cv_prog_STRIP
2abefe3d 9350if test -n "$STRIP"; then
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9352$as_echo "$STRIP" >&6; }
2abefe3d 9353else
5213506e
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355$as_echo "no" >&6; }
2abefe3d
PB
9356fi
9357
5213506e 9358
2abefe3d
PB
9359 fi
9360 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9362set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9365if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9366 $as_echo_n "(cached) " >&6
2abefe3d
PB
9367else
9368 if test -n "$STRIP"; then
9369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9370else
1c710c3c
DJ
9371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $PATH
9373do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
5213506e 9376 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9378 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9380 break 2
9381 fi
9382done
5213506e
RW
9383 done
9384IFS=$as_save_IFS
1c710c3c 9385
2abefe3d
PB
9386fi
9387fi
1c710c3c 9388STRIP=$ac_cv_prog_STRIP
2abefe3d 9389if test -n "$STRIP"; then
5213506e
RW
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9391$as_echo "$STRIP" >&6; }
2abefe3d 9392else
5213506e
RW
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394$as_echo "no" >&6; }
2abefe3d 9395fi
1c710c3c 9396
5213506e 9397
2abefe3d
PB
9398 fi
9399 test -n "$ac_cv_prog_STRIP" && break
9400done
9401
9402if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9403 STRIP="true"
2abefe3d
PB
9404fi
9405
278a7a38
AO
9406
9407
9408if test -n "$WINDRES"; then
9409 ac_cv_prog_WINDRES=$WINDRES
9410elif test -n "$ac_cv_prog_WINDRES"; then
9411 WINDRES=$ac_cv_prog_WINDRES
9412fi
9413
9414if test -n "$ac_cv_prog_WINDRES"; then
9415 for ncn_progname in windres; do
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9420if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9421 $as_echo_n "(cached) " >&6
278a7a38
AO
9422else
9423 if test -n "$WINDRES"; then
9424 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9425else
9426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427for as_dir in $PATH
9428do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
5213506e 9431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9433 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9435 break 2
9436 fi
9437done
5213506e
RW
9438 done
9439IFS=$as_save_IFS
278a7a38
AO
9440
9441fi
9442fi
9443WINDRES=$ac_cv_prog_WINDRES
9444if test -n "$WINDRES"; then
5213506e
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9446$as_echo "$WINDRES" >&6; }
278a7a38 9447else
5213506e
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
278a7a38
AO
9450fi
9451
5213506e 9452
278a7a38
AO
9453 done
9454fi
9455
9456for ncn_progname in windres; do
2693c0b0
PB
9457 if test -n "$ncn_tool_prefix"; then
9458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9462if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9463 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9464else
9465 if test -n "$WINDRES"; then
9466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9467else
1c710c3c
DJ
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $PATH
9470do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
5213506e 9473 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9475 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9477 break 2
9478 fi
9479done
5213506e
RW
9480 done
9481IFS=$as_save_IFS
1c710c3c 9482
ca9f4b81
AO
9483fi
9484fi
1c710c3c 9485WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9486if test -n "$WINDRES"; then
5213506e
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9488$as_echo "$WINDRES" >&6; }
ca9f4b81 9489else
5213506e
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491$as_echo "no" >&6; }
ca9f4b81
AO
9492fi
9493
5213506e 9494
2693c0b0
PB
9495 fi
9496 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9501if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9502 $as_echo_n "(cached) " >&6
ca9f4b81 9503else
2693c0b0
PB
9504 if test -n "$WINDRES"; then
9505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9506else
1c710c3c
DJ
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
5213506e 9512 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9514 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9516 break 2
9517 fi
9518done
5213506e
RW
9519 done
9520IFS=$as_save_IFS
1c710c3c 9521
ca9f4b81
AO
9522fi
9523fi
1c710c3c 9524WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9525if test -n "$WINDRES"; then
5213506e
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9527$as_echo "$WINDRES" >&6; }
ca9f4b81 9528else
5213506e
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
ca9f4b81 9531fi
1c710c3c 9532
5213506e 9533
2693c0b0
PB
9534 fi
9535 test -n "$ac_cv_prog_WINDRES" && break
9536done
9537
9538if test -z "$ac_cv_prog_WINDRES" ; then
9539 set dummy windres
9540 if test $build = $host ; then
9541 WINDRES="$2"
ca9f4b81 9542 else
2693c0b0 9543 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9544 fi
ca9f4b81
AO
9545fi
9546
278a7a38
AO
9547
9548
901119ae
KT
9549if test -n "$WINDMC"; then
9550 ac_cv_prog_WINDMC=$WINDMC
9551elif test -n "$ac_cv_prog_WINDMC"; then
9552 WINDMC=$ac_cv_prog_WINDMC
9553fi
9554
9555if test -n "$ac_cv_prog_WINDMC"; then
9556 for ncn_progname in windmc; do
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9561if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9562 $as_echo_n "(cached) " >&6
901119ae
KT
9563else
9564 if test -n "$WINDMC"; then
9565 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
5213506e 9572 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9574 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9576 break 2
9577 fi
9578done
5213506e
RW
9579 done
9580IFS=$as_save_IFS
901119ae
KT
9581
9582fi
9583fi
9584WINDMC=$ac_cv_prog_WINDMC
9585if test -n "$WINDMC"; then
5213506e
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9587$as_echo "$WINDMC" >&6; }
901119ae 9588else
5213506e
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
901119ae
KT
9591fi
9592
5213506e 9593
901119ae
KT
9594 done
9595fi
9596
9597for ncn_progname in windmc; do
9598 if test -n "$ncn_tool_prefix"; then
9599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9600set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9603if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9604 $as_echo_n "(cached) " >&6
901119ae
KT
9605else
9606 if test -n "$WINDMC"; then
9607 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
5213506e 9614 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9616 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9618 break 2
9619 fi
9620done
5213506e
RW
9621 done
9622IFS=$as_save_IFS
901119ae
KT
9623
9624fi
9625fi
9626WINDMC=$ac_cv_prog_WINDMC
9627if test -n "$WINDMC"; then
5213506e
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9629$as_echo "$WINDMC" >&6; }
901119ae 9630else
5213506e
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
901119ae
KT
9633fi
9634
5213506e 9635
901119ae
KT
9636 fi
9637 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9639set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9642if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9643 $as_echo_n "(cached) " >&6
901119ae
KT
9644else
9645 if test -n "$WINDMC"; then
9646 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9647else
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
5213506e 9653 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9655 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9657 break 2
9658 fi
9659done
5213506e
RW
9660 done
9661IFS=$as_save_IFS
901119ae
KT
9662
9663fi
9664fi
9665WINDMC=$ac_cv_prog_WINDMC
9666if test -n "$WINDMC"; then
5213506e
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9668$as_echo "$WINDMC" >&6; }
901119ae 9669else
5213506e
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
901119ae
KT
9672fi
9673
5213506e 9674
901119ae
KT
9675 fi
9676 test -n "$ac_cv_prog_WINDMC" && break
9677done
9678
9679if test -z "$ac_cv_prog_WINDMC" ; then
9680 set dummy windmc
9681 if test $build = $host ; then
9682 WINDMC="$2"
9683 else
9684 WINDMC="${ncn_tool_prefix}$2"
9685 fi
9686fi
9687
9688
9689
278a7a38
AO
9690if test -n "$OBJCOPY"; then
9691 ac_cv_prog_OBJCOPY=$OBJCOPY
9692elif test -n "$ac_cv_prog_OBJCOPY"; then
9693 OBJCOPY=$ac_cv_prog_OBJCOPY
9694fi
9695
9696if test -n "$ac_cv_prog_OBJCOPY"; then
9697 for ncn_progname in objcopy; do
9698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9699set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9702if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9703 $as_echo_n "(cached) " >&6
278a7a38
AO
9704else
9705 if test -n "$OBJCOPY"; then
9706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9707else
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
5213506e 9713 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9715 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9717 break 2
9718 fi
9719done
5213506e
RW
9720 done
9721IFS=$as_save_IFS
278a7a38
AO
9722
9723fi
9724fi
9725OBJCOPY=$ac_cv_prog_OBJCOPY
9726if test -n "$OBJCOPY"; then
5213506e
RW
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9728$as_echo "$OBJCOPY" >&6; }
278a7a38 9729else
5213506e
RW
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731$as_echo "no" >&6; }
278a7a38
AO
9732fi
9733
5213506e 9734
278a7a38
AO
9735 done
9736fi
9737
9738for ncn_progname in objcopy; do
2693c0b0
PB
9739 if test -n "$ncn_tool_prefix"; then
9740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9744if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9745 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9746else
9747 if test -n "$OBJCOPY"; then
9748 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9749else
1c710c3c
DJ
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
5213506e 9755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9757 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9759 break 2
9760 fi
9761done
5213506e
RW
9762 done
9763IFS=$as_save_IFS
1c710c3c 9764
ca9f4b81
AO
9765fi
9766fi
1c710c3c 9767OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9768if test -n "$OBJCOPY"; then
5213506e
RW
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9770$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9771else
5213506e
RW
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773$as_echo "no" >&6; }
ca9f4b81
AO
9774fi
9775
5213506e 9776
2693c0b0
PB
9777 fi
9778 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9780set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9783if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9784 $as_echo_n "(cached) " >&6
ca9f4b81 9785else
2693c0b0
PB
9786 if test -n "$OBJCOPY"; then
9787 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9788else
1c710c3c
DJ
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
5213506e 9794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9796 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9798 break 2
9799 fi
9800done
5213506e
RW
9801 done
9802IFS=$as_save_IFS
1c710c3c 9803
ca9f4b81
AO
9804fi
9805fi
1c710c3c 9806OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9807if test -n "$OBJCOPY"; then
5213506e
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9809$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9810else
5213506e
RW
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
ca9f4b81 9813fi
1c710c3c 9814
5213506e 9815
2693c0b0
PB
9816 fi
9817 test -n "$ac_cv_prog_OBJCOPY" && break
9818done
9819
9820if test -z "$ac_cv_prog_OBJCOPY" ; then
9821 set dummy objcopy
9822 if test $build = $host ; then
9823 OBJCOPY="$2"
ca9f4b81 9824 else
2693c0b0 9825 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9826 fi
ca9f4b81
AO
9827fi
9828
278a7a38
AO
9829
9830
9831if test -n "$OBJDUMP"; then
9832 ac_cv_prog_OBJDUMP=$OBJDUMP
9833elif test -n "$ac_cv_prog_OBJDUMP"; then
9834 OBJDUMP=$ac_cv_prog_OBJDUMP
9835fi
9836
9837if test -n "$ac_cv_prog_OBJDUMP"; then
9838 for ncn_progname in objdump; do
9839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9840set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9843if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9844 $as_echo_n "(cached) " >&6
278a7a38
AO
9845else
9846 if test -n "$OBJDUMP"; then
9847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9848else
9849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850for as_dir in $PATH
9851do
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
5213506e 9854 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9856 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9858 break 2
9859 fi
9860done
5213506e
RW
9861 done
9862IFS=$as_save_IFS
278a7a38
AO
9863
9864fi
9865fi
9866OBJDUMP=$ac_cv_prog_OBJDUMP
9867if test -n "$OBJDUMP"; then
5213506e
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9869$as_echo "$OBJDUMP" >&6; }
278a7a38 9870else
5213506e
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
278a7a38
AO
9873fi
9874
5213506e 9875
278a7a38
AO
9876 done
9877fi
9878
9879for ncn_progname in objdump; do
2693c0b0
PB
9880 if test -n "$ncn_tool_prefix"; then
9881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9882set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9885if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9886 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9887else
9888 if test -n "$OBJDUMP"; then
9889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9890else
1c710c3c
DJ
9891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892for as_dir in $PATH
9893do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
5213506e 9896 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9898 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9900 break 2
9901 fi
9902done
5213506e
RW
9903 done
9904IFS=$as_save_IFS
1c710c3c 9905
ca9f4b81
AO
9906fi
9907fi
1c710c3c 9908OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9909if test -n "$OBJDUMP"; then
5213506e
RW
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9911$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9912else
5213506e
RW
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914$as_echo "no" >&6; }
ca9f4b81
AO
9915fi
9916
5213506e 9917
2693c0b0
PB
9918 fi
9919 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9921set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9924if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9925 $as_echo_n "(cached) " >&6
ca9f4b81 9926else
2693c0b0
PB
9927 if test -n "$OBJDUMP"; then
9928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9929else
1c710c3c
DJ
9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931for as_dir in $PATH
9932do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
5213506e 9935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9937 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9939 break 2
9940 fi
9941done
5213506e
RW
9942 done
9943IFS=$as_save_IFS
1c710c3c 9944
ca9f4b81
AO
9945fi
9946fi
1c710c3c 9947OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9948if test -n "$OBJDUMP"; then
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9950$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9951else
5213506e
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953$as_echo "no" >&6; }
ca9f4b81 9954fi
1c710c3c 9955
5213506e 9956
2693c0b0
PB
9957 fi
9958 test -n "$ac_cv_prog_OBJDUMP" && break
9959done
9960
9961if test -z "$ac_cv_prog_OBJDUMP" ; then
9962 set dummy objdump
9963 if test $build = $host ; then
9964 OBJDUMP="$2"
ca9f4b81 9965 else
2693c0b0 9966 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9967 fi
ca9f4b81
AO
9968fi
9969
671aa708
NN
9970
9971
e4a9a572
IS
9972if test -n "$OTOOL"; then
9973 ac_cv_prog_OTOOL=$OTOOL
9974elif test -n "$ac_cv_prog_OTOOL"; then
9975 OTOOL=$ac_cv_prog_OTOOL
9976fi
9977
9978if test -n "$ac_cv_prog_OTOOL"; then
9979 for ncn_progname in otool; do
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981set dummy ${ncn_progname}; ac_word=$2
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if ${ac_cv_prog_OTOOL+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986else
9987 if test -n "$OTOOL"; then
9988 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9989else
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997 ac_cv_prog_OTOOL="${ncn_progname}"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10000 fi
10001done
10002 done
10003IFS=$as_save_IFS
10004
10005fi
10006fi
10007OTOOL=$ac_cv_prog_OTOOL
10008if test -n "$OTOOL"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10010$as_echo "$OTOOL" >&6; }
10011else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
10014fi
10015
10016
10017 done
10018fi
10019
10020for ncn_progname in otool; do
10021 if test -n "$ncn_tool_prefix"; then
10022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10023set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if ${ac_cv_prog_OTOOL+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028else
10029 if test -n "$OTOOL"; then
10030 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044 done
10045IFS=$as_save_IFS
10046
10047fi
10048fi
10049OTOOL=$ac_cv_prog_OTOOL
10050if test -n "$OTOOL"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10052$as_echo "$OTOOL" >&6; }
10053else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
10056fi
10057
10058
10059 fi
10060 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10062set dummy ${ncn_progname}; ac_word=$2
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064$as_echo_n "checking for $ac_word... " >&6; }
10065if ${ac_cv_prog_OTOOL+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067else
10068 if test -n "$OTOOL"; then
10069 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10070else
10071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072for as_dir in $PATH
10073do
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_prog_OTOOL="${ncn_progname}"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10081 fi
10082done
10083 done
10084IFS=$as_save_IFS
10085
10086fi
10087fi
10088OTOOL=$ac_cv_prog_OTOOL
10089if test -n "$OTOOL"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10091$as_echo "$OTOOL" >&6; }
10092else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
10095fi
10096
10097
10098 fi
10099 test -n "$ac_cv_prog_OTOOL" && break
10100done
10101
10102if test -z "$ac_cv_prog_OTOOL" ; then
10103 set dummy otool
10104 if test $build = $host ; then
10105 OTOOL="$2"
10106 else
10107 OTOOL="${ncn_tool_prefix}$2"
10108 fi
10109fi
10110
10111
10112
e7a82751
RM
10113if test -n "$READELF"; then
10114 ac_cv_prog_READELF=$READELF
10115elif test -n "$ac_cv_prog_READELF"; then
10116 READELF=$ac_cv_prog_READELF
10117fi
10118
10119if test -n "$ac_cv_prog_READELF"; then
10120 for ncn_progname in readelf; do
10121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10122set dummy ${ncn_progname}; ac_word=$2
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10125if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10126 $as_echo_n "(cached) " >&6
10127else
10128 if test -n "$READELF"; then
10129 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10130else
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10138 ac_cv_prog_READELF="${ncn_progname}"
10139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143 done
10144IFS=$as_save_IFS
10145
10146fi
10147fi
10148READELF=$ac_cv_prog_READELF
10149if test -n "$READELF"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10151$as_echo "$READELF" >&6; }
10152else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154$as_echo "no" >&6; }
10155fi
10156
10157
10158 done
10159fi
10160
10161for ncn_progname in readelf; do
10162 if test -n "$ncn_tool_prefix"; then
10163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10164set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10167if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10168 $as_echo_n "(cached) " >&6
10169else
10170 if test -n "$READELF"; then
10171 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10172else
10173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10180 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182 break 2
10183 fi
10184done
10185 done
10186IFS=$as_save_IFS
10187
10188fi
10189fi
10190READELF=$ac_cv_prog_READELF
10191if test -n "$READELF"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10193$as_echo "$READELF" >&6; }
10194else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196$as_echo "no" >&6; }
10197fi
10198
10199
10200 fi
10201 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10203set dummy ${ncn_progname}; ac_word=$2
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10206if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10207 $as_echo_n "(cached) " >&6
10208else
10209 if test -n "$READELF"; then
10210 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10211else
10212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213for as_dir in $PATH
10214do
10215 IFS=$as_save_IFS
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10219 ac_cv_prog_READELF="${ncn_progname}"
10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 break 2
10222 fi
10223done
10224 done
10225IFS=$as_save_IFS
10226
10227fi
10228fi
10229READELF=$ac_cv_prog_READELF
10230if test -n "$READELF"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10232$as_echo "$READELF" >&6; }
10233else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235$as_echo "no" >&6; }
10236fi
10237
10238
10239 fi
10240 test -n "$ac_cv_prog_READELF" && break
10241done
10242
10243if test -z "$ac_cv_prog_READELF" ; then
10244 set dummy readelf
10245 if test $build = $host ; then
10246 READELF="$2"
10247 else
10248 READELF="${ncn_tool_prefix}$2"
10249 fi
10250fi
10251
10252
10253
671aa708
NN
10254
10255
10256
2abefe3d 10257# Target tools.
1c710c3c 10258
5213506e
RW
10259# Check whether --with-build-time-tools was given.
10260if test "${with_build_time_tools+set}" = set; then :
10261 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10262 x/*) ;;
10263 *)
10264 with_build_time_tools=
5213506e
RW
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10266$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10267 ;;
10268 esac
ca9f4b81 10269else
e8b05380 10270 with_build_time_tools=
5213506e
RW
10271fi
10272
ca9f4b81 10273
278a7a38
AO
10274
10275
10276if test -n "$CC_FOR_TARGET"; then
10277 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10278elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10279 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10280fi
10281
10282if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10283 for ncn_progname in cc gcc; do
10284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10285set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10288if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10289 $as_echo_n "(cached) " >&6
278a7a38
AO
10290else
10291 if test -n "$CC_FOR_TARGET"; then
10292 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10293else
10294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295for as_dir in $PATH
10296do
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
5213506e 10299 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10301 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10303 break 2
10304 fi
10305done
5213506e
RW
10306 done
10307IFS=$as_save_IFS
278a7a38
AO
10308
10309fi
10310fi
10311CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10312if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10314$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10315else
5213506e
RW
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317$as_echo "no" >&6; }
278a7a38
AO
10318fi
10319
5213506e 10320
278a7a38
AO
10321 done
10322fi
10323
10324if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10325 for ncn_progname in cc gcc; do
5213506e
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10327$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10328 if test -x $with_build_time_tools/${ncn_progname}; then
10329 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331$as_echo "yes" >&6; }
72a7ab82 10332 break
e8b05380 10333 else
5213506e
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
72a7ab82
AP
10336 fi
10337 done
4de997d1
PB
10338fi
10339
e8b05380
PB
10340if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10341 for ncn_progname in cc gcc; do
10342 if test -n "$ncn_target_tool_prefix"; then
10343 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10344set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10347if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10348 $as_echo_n "(cached) " >&6
4de997d1
PB
10349else
10350 if test -n "$CC_FOR_TARGET"; then
10351 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10352else
1c710c3c
DJ
10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354for as_dir in $PATH
10355do
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
5213506e 10358 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10360 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10362 break 2
10363 fi
10364done
5213506e
RW
10365 done
10366IFS=$as_save_IFS
1c710c3c 10367
4de997d1
PB
10368fi
10369fi
1c710c3c 10370CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10371if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10373$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10374else
5213506e
RW
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376$as_echo "no" >&6; }
4de997d1
PB
10377fi
10378
5213506e 10379
e8b05380
PB
10380 fi
10381 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10386if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10387 $as_echo_n "(cached) " >&6
4de997d1 10388else
2693c0b0
PB
10389 if test -n "$CC_FOR_TARGET"; then
10390 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10391else
1c710c3c
DJ
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
5213506e 10397 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10399 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10401 break 2
10402 fi
10403done
5213506e
RW
10404 done
10405IFS=$as_save_IFS
1c710c3c 10406
4de997d1
PB
10407fi
10408fi
1c710c3c 10409CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10410if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10412$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10413else
5213506e
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415$as_echo "no" >&6; }
4de997d1 10416fi
1c710c3c 10417
5213506e 10418
e8b05380
PB
10419 fi
10420 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10421 done
10422fi
1c710c3c 10423
2693c0b0
PB
10424if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10425 set dummy cc gcc
10426 if test $build = $target ; then
10427 CC_FOR_TARGET="$2"
4de997d1 10428 else
2693c0b0 10429 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10430 fi
1c00b503
PB
10431else
10432 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10433fi
10434
278a7a38
AO
10435
10436
10437if test -n "$CXX_FOR_TARGET"; then
10438 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10439elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10440 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10441fi
10442
10443if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10444 for ncn_progname in c++ g++ cxx gxx; do
10445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10446set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10449if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10450 $as_echo_n "(cached) " >&6
278a7a38
AO
10451else
10452 if test -n "$CXX_FOR_TARGET"; then
10453 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
5213506e 10460 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10462 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10464 break 2
10465 fi
10466done
5213506e
RW
10467 done
10468IFS=$as_save_IFS
278a7a38
AO
10469
10470fi
10471fi
10472CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10473if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10475$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10476else
5213506e
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
278a7a38
AO
10479fi
10480
5213506e 10481
278a7a38
AO
10482 done
10483fi
10484
10485if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10486 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10488$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10489 if test -x $with_build_time_tools/${ncn_progname}; then
10490 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10492$as_echo "yes" >&6; }
e8b05380
PB
10493 break
10494 else
5213506e
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
e8b05380
PB
10497 fi
10498 done
10499fi
10500
10501if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10502 for ncn_progname in c++ g++ cxx gxx; do
10503 if test -n "$ncn_target_tool_prefix"; then
10504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10507$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10508if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10509 $as_echo_n "(cached) " >&6
4de997d1
PB
10510else
10511 if test -n "$CXX_FOR_TARGET"; then
10512 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10513else
1c710c3c
DJ
10514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515for as_dir in $PATH
10516do
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
5213506e 10519 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10521 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10523 break 2
10524 fi
10525done
5213506e
RW
10526 done
10527IFS=$as_save_IFS
1c710c3c 10528
4de997d1
PB
10529fi
10530fi
1c710c3c 10531CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10532if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10534$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10535else
5213506e
RW
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
4de997d1
PB
10538fi
10539
5213506e 10540
e8b05380
PB
10541 fi
10542 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10544set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10547if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10548 $as_echo_n "(cached) " >&6
4de997d1 10549else
2693c0b0
PB
10550 if test -n "$CXX_FOR_TARGET"; then
10551 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10552else
1c710c3c
DJ
10553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554for as_dir in $PATH
10555do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
5213506e 10558 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10560 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10562 break 2
10563 fi
10564done
5213506e
RW
10565 done
10566IFS=$as_save_IFS
1c710c3c 10567
4de997d1
PB
10568fi
10569fi
1c710c3c 10570CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10571if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10573$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10574else
5213506e
RW
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576$as_echo "no" >&6; }
4de997d1 10577fi
1c710c3c 10578
5213506e 10579
e8b05380
PB
10580 fi
10581 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10582 done
10583fi
1c710c3c 10584
2693c0b0
PB
10585if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10586 set dummy c++ g++ cxx gxx
10587 if test $build = $target ; then
10588 CXX_FOR_TARGET="$2"
4de997d1 10589 else
2693c0b0 10590 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10591 fi
1c00b503
PB
10592else
10593 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10594fi
10595
278a7a38
AO
10596
10597
10598if test -n "$GCC_FOR_TARGET"; then
10599 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10600elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10601 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10602fi
10603
10604if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10605 for ncn_progname in gcc; do
10606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10607set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10610if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10611 $as_echo_n "(cached) " >&6
278a7a38
AO
10612else
10613 if test -n "$GCC_FOR_TARGET"; then
10614 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10615else
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
5213506e 10621 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10623 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10625 break 2
10626 fi
10627done
5213506e
RW
10628 done
10629IFS=$as_save_IFS
278a7a38
AO
10630
10631fi
10632fi
10633GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10634if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10636$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10637else
5213506e
RW
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
278a7a38
AO
10640fi
10641
5213506e 10642
278a7a38
AO
10643 done
10644fi
10645
10646if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10647 for ncn_progname in gcc; do
5213506e
RW
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10649$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10650 if test -x $with_build_time_tools/${ncn_progname}; then
10651 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10653$as_echo "yes" >&6; }
e8b05380
PB
10654 break
10655 else
5213506e
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
e8b05380
PB
10658 fi
10659 done
10660fi
10661
10662if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10663 for ncn_progname in gcc; do
10664 if test -n "$ncn_target_tool_prefix"; then
10665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10666set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10669if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10670 $as_echo_n "(cached) " >&6
ca9f4b81 10671else
e8b05380
PB
10672 if test -n "$GCC_FOR_TARGET"; then
10673 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10674else
1c710c3c
DJ
10675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676for as_dir in $PATH
10677do
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
5213506e 10680 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10682 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10684 break 2
10685 fi
10686done
5213506e
RW
10687 done
10688IFS=$as_save_IFS
1c710c3c 10689
ca9f4b81
AO
10690fi
10691fi
1c710c3c 10692GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10693if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10695$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10696else
5213506e
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
ca9f4b81
AO
10699fi
10700
5213506e 10701
e8b05380
PB
10702 fi
10703 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10705set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10708if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10709 $as_echo_n "(cached) " >&6
ca9f4b81 10710else
e8b05380
PB
10711 if test -n "$GCC_FOR_TARGET"; then
10712 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10713else
1c710c3c
DJ
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
5213506e 10719 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10721 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10723 break 2
10724 fi
10725done
5213506e
RW
10726 done
10727IFS=$as_save_IFS
1c710c3c 10728
ca9f4b81
AO
10729fi
10730fi
1c710c3c 10731GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10732if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10734$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10735else
5213506e
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }
ca9f4b81 10738fi
1c710c3c 10739
5213506e 10740
e8b05380
PB
10741 fi
10742 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10743 done
10744fi
1c710c3c 10745
e8b05380
PB
10746if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10747 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10748else
10749 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10750fi
10751
278a7a38
AO
10752
10753
278a7a38
AO
10754if test -n "$GFORTRAN_FOR_TARGET"; then
10755 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10756elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10757 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10758fi
10759
278a7a38
AO
10760if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10761 for ncn_progname in gfortran; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10763set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10766if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10767 $as_echo_n "(cached) " >&6
e8b05380 10768else
278a7a38
AO
10769 if test -n "$GFORTRAN_FOR_TARGET"; then
10770 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10771else
1c710c3c
DJ
10772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
5213506e 10777 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10779 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10781 break 2
10782 fi
10783done
5213506e
RW
10784 done
10785IFS=$as_save_IFS
1c710c3c 10786
e8b05380
PB
10787fi
10788fi
278a7a38
AO
10789GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10790if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10792$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10793else
5213506e
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
e8b05380 10796fi
1c710c3c 10797
5213506e 10798
e8b05380
PB
10799 done
10800fi
1c710c3c 10801
278a7a38 10802if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10803 for ncn_progname in gfortran; do
5213506e
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
e8b05380
PB
10810 break
10811 else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
e8b05380
PB
10814 fi
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10819 for ncn_progname in gfortran; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10822set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10825if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10826 $as_echo_n "(cached) " >&6
e8b05380
PB
10827else
10828 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10829 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
5213506e 10836 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10838 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10840 break 2
10841 fi
10842done
5213506e
RW
10843 done
10844IFS=$as_save_IFS
1c710c3c 10845
e8b05380
PB
10846fi
10847fi
1c710c3c 10848GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10849if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10851$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10852else
5213506e
RW
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
e8b05380
PB
10855fi
10856
5213506e 10857
e8b05380
PB
10858 fi
10859 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10864if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10865 $as_echo_n "(cached) " >&6
e8b05380
PB
10866else
10867 if test -n "$GFORTRAN_FOR_TARGET"; then
10868 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10869else
1c710c3c
DJ
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
5213506e 10875 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10877 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10879 break 2
10880 fi
10881done
5213506e
RW
10882 done
10883IFS=$as_save_IFS
1c710c3c 10884
e8b05380
PB
10885fi
10886fi
1c710c3c 10887GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10888if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10890$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10891else
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
e8b05380 10894fi
1c710c3c 10895
5213506e 10896
e8b05380
PB
10897 fi
10898 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10899 done
10900fi
1c710c3c 10901
e8b05380
PB
10902if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10903 set dummy gfortran
2693c0b0 10904 if test $build = $target ; then
e8b05380 10905 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10906 else
e8b05380
PB
10907 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10908 fi
1c00b503
PB
10909else
10910 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10911fi
10912
10913
10914
632e2a07
ILT
10915if test -n "$GOC_FOR_TARGET"; then
10916 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10917elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10918 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10919fi
10920
10921if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10922 for ncn_progname in gccgo; do
10923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10924set dummy ${ncn_progname}; ac_word=$2
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10927if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10928 $as_echo_n "(cached) " >&6
10929else
10930 if test -n "$GOC_FOR_TARGET"; then
10931 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10932else
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10940 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944done
10945 done
10946IFS=$as_save_IFS
10947
10948fi
10949fi
10950GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10951if test -n "$GOC_FOR_TARGET"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10953$as_echo "$GOC_FOR_TARGET" >&6; }
10954else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956$as_echo "no" >&6; }
10957fi
10958
10959
10960 done
10961fi
10962
10963if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10964 for ncn_progname in gccgo; do
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10966$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10967 if test -x $with_build_time_tools/${ncn_progname}; then
10968 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10970$as_echo "yes" >&6; }
10971 break
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974$as_echo "no" >&6; }
10975 fi
10976 done
10977fi
10978
10979if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10980 for ncn_progname in gccgo; do
10981 if test -n "$ncn_target_tool_prefix"; then
10982 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10983set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10986if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10987 $as_echo_n "(cached) " >&6
10988else
10989 if test -n "$GOC_FOR_TARGET"; then
10990 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10991else
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10999 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003done
11004 done
11005IFS=$as_save_IFS
11006
11007fi
11008fi
11009GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11010if test -n "$GOC_FOR_TARGET"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11012$as_echo "$GOC_FOR_TARGET" >&6; }
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016fi
11017
11018
11019 fi
11020 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_progname}; ac_word=$2
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11025if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11026 $as_echo_n "(cached) " >&6
11027else
11028 if test -n "$GOC_FOR_TARGET"; then
11029 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11038 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043 done
11044IFS=$as_save_IFS
11045
11046fi
11047fi
11048GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11049if test -n "$GOC_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11051$as_echo "$GOC_FOR_TARGET" >&6; }
11052else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
11055fi
11056
11057
11058 fi
11059 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11060 done
11061fi
11062
11063if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11064 set dummy gccgo
11065 if test $build = $target ; then
11066 GOC_FOR_TARGET="$2"
11067 else
11068 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11069 fi
11070else
11071 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11072fi
11073
11074
11075
b4c522fa
IB
11076if test -n "$GDC_FOR_TARGET"; then
11077 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11078elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11079 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11080fi
11081
11082if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11083 for ncn_progname in gdc; do
11084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11085set dummy ${ncn_progname}; ac_word=$2
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11088if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11089 $as_echo_n "(cached) " >&6
11090else
11091 if test -n "$GDC_FOR_TARGET"; then
11092 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11093else
11094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095for as_dir in $PATH
11096do
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11101 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11104 fi
11105done
11106 done
11107IFS=$as_save_IFS
11108
11109fi
11110fi
11111GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11112if test -n "$GDC_FOR_TARGET"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11114$as_echo "$GDC_FOR_TARGET" >&6; }
11115else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117$as_echo "no" >&6; }
11118fi
11119
11120
11121 done
11122fi
11123
11124if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11125 for ncn_progname in gdc; do
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11127$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11128 if test -x $with_build_time_tools/${ncn_progname}; then
11129 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131$as_echo "yes" >&6; }
11132 break
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
11136 fi
11137 done
11138fi
11139
11140if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11141 for ncn_progname in gdc; do
11142 if test -n "$ncn_target_tool_prefix"; then
11143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11144set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11147if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11148 $as_echo_n "(cached) " >&6
11149else
11150 if test -n "$GDC_FOR_TARGET"; then
11151 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11152else
11153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $PATH
11155do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11160 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11163 fi
11164done
11165 done
11166IFS=$as_save_IFS
11167
11168fi
11169fi
11170GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11171if test -n "$GDC_FOR_TARGET"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11173$as_echo "$GDC_FOR_TARGET" >&6; }
11174else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
11177fi
11178
11179
11180 fi
11181 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11183set dummy ${ncn_progname}; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11186if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11187 $as_echo_n "(cached) " >&6
11188else
11189 if test -n "$GDC_FOR_TARGET"; then
11190 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11199 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204 done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11210if test -n "$GDC_FOR_TARGET"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11212$as_echo "$GDC_FOR_TARGET" >&6; }
11213else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218
11219 fi
11220 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11221 done
11222fi
11223
11224if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11225 set dummy gdc
11226 if test $build = $target ; then
11227 GDC_FOR_TARGET="$2"
11228 else
11229 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11230 fi
11231else
11232 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11233fi
11234
11235
11236
e8b05380
PB
11237cat > conftest.c << \EOF
11238#ifdef __GNUC__
11239 gcc_yay;
11240#endif
11241EOF
11242if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11243 have_gcc_for_target=yes
11244else
11245 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11246 have_gcc_for_target=no
11247fi
11248rm conftest.c
11249
11250
11251
11252
11253if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11254 if test -n "$with_build_time_tools"; then
5213506e
RW
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11256$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11257 if test -x $with_build_time_tools/ar; then
11258 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11259 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11261$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11262 else
5213506e
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
d1f8db0c 11265 fi
e8b05380
PB
11266 elif test $build != $host && test $have_gcc_for_target = yes; then
11267 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11268 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11269 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11270 fi
11271fi
3e19841a 11272if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11273 # Extract the first word of "ar", so it can be a program name with args.
11274set dummy ar; ac_word=$2
5213506e
RW
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11277if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11278 $as_echo_n "(cached) " >&6
e8b05380 11279else
1c710c3c
DJ
11280 case $AR_FOR_TARGET in
11281 [\\/]* | ?:[\\/]*)
e8b05380
PB
11282 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11283 ;;
e8b05380 11284 *)
1c710c3c
DJ
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $gcc_cv_tool_dirs
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
5213506e 11290 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11292 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11294 break 2
11295 fi
11296done
5213506e
RW
11297 done
11298IFS=$as_save_IFS
1c710c3c 11299
e8b05380
PB
11300 ;;
11301esac
11302fi
1c710c3c 11303AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11304if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11306$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11307else
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
4de997d1
PB
11310fi
11311
5213506e 11312
e8b05380
PB
11313fi
11314if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11315
11316
11317if test -n "$AR_FOR_TARGET"; then
11318 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11319elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11320 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11321fi
11322
11323if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11324 for ncn_progname in ar; do
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11329if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11330 $as_echo_n "(cached) " >&6
278a7a38
AO
11331else
11332 if test -n "$AR_FOR_TARGET"; then
11333 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11334else
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
5213506e 11340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11342 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11344 break 2
11345 fi
11346done
5213506e
RW
11347 done
11348IFS=$as_save_IFS
278a7a38
AO
11349
11350fi
11351fi
11352AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11353if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11355$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11356else
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
278a7a38
AO
11359fi
11360
5213506e 11361
278a7a38
AO
11362 done
11363fi
11364
11365if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11366 for ncn_progname in ar; do
5213506e
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11368$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11369 if test -x $with_build_time_tools/${ncn_progname}; then
11370 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372$as_echo "yes" >&6; }
e8b05380
PB
11373 break
11374 else
5213506e
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
e8b05380
PB
11377 fi
11378 done
11379fi
11380
11381if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11382 for ncn_progname in ar; do
11383 if test -n "$ncn_target_tool_prefix"; then
11384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11385set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11388if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11389 $as_echo_n "(cached) " >&6
4de997d1 11390else
e8b05380
PB
11391 if test -n "$AR_FOR_TARGET"; then
11392 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11393else
1c710c3c
DJ
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
5213506e 11399 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11401 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11403 break 2
11404 fi
11405done
5213506e
RW
11406 done
11407IFS=$as_save_IFS
1c710c3c 11408
4de997d1
PB
11409fi
11410fi
1c710c3c 11411AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11412if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11414$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11415else
5213506e
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
4de997d1
PB
11418fi
11419
5213506e 11420
e8b05380
PB
11421 fi
11422 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11427if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11428 $as_echo_n "(cached) " >&6
e8b05380
PB
11429else
11430 if test -n "$AR_FOR_TARGET"; then
11431 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11432else
1c710c3c
DJ
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
5213506e 11438 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11440 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11442 break 2
11443 fi
11444done
5213506e
RW
11445 done
11446IFS=$as_save_IFS
1c710c3c 11447
e8b05380
PB
11448fi
11449fi
1c710c3c 11450AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11451if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11453$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11454else
5213506e
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
e8b05380 11457fi
1c710c3c 11458
5213506e 11459
e8b05380
PB
11460 fi
11461 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11462 done
11463fi
1c710c3c 11464
e8b05380
PB
11465if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11466 set dummy ar
11467 if test $build = $target ; then
11468 AR_FOR_TARGET="$2"
11469 else
11470 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11471 fi
1c00b503
PB
11472else
11473 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11474fi
11475
d1f8db0c
PB
11476else
11477 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11478fi
11479
11480
11481
11482
11483if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11484 if test -n "$with_build_time_tools"; then
5213506e
RW
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11486$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11487 if test -x $with_build_time_tools/as; then
11488 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11489 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11491$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11492 else
5213506e
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
d1f8db0c 11495 fi
e8b05380
PB
11496 elif test $build != $host && test $have_gcc_for_target = yes; then
11497 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11498 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11499 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11500 fi
11501fi
3e19841a 11502if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11503 # Extract the first word of "as", so it can be a program name with args.
11504set dummy as; ac_word=$2
5213506e
RW
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11507if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11508 $as_echo_n "(cached) " >&6
e8b05380 11509else
1c710c3c
DJ
11510 case $AS_FOR_TARGET in
11511 [\\/]* | ?:[\\/]*)
e8b05380
PB
11512 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11513 ;;
e8b05380 11514 *)
1c710c3c
DJ
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $gcc_cv_tool_dirs
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
5213506e 11520 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11522 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11524 break 2
11525 fi
11526done
5213506e
RW
11527 done
11528IFS=$as_save_IFS
1c710c3c 11529
e8b05380
PB
11530 ;;
11531esac
11532fi
1c710c3c 11533AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11534if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11536$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11537else
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
e8b05380
PB
11540fi
11541
5213506e 11542
e8b05380
PB
11543fi
11544if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11545
11546
11547if test -n "$AS_FOR_TARGET"; then
11548 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11549elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11550 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11551fi
11552
11553if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11554 for ncn_progname in as; do
11555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11556set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11559if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11560 $as_echo_n "(cached) " >&6
278a7a38
AO
11561else
11562 if test -n "$AS_FOR_TARGET"; then
11563 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11564else
11565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
5213506e 11570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11572 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11574 break 2
11575 fi
11576done
5213506e
RW
11577 done
11578IFS=$as_save_IFS
278a7a38
AO
11579
11580fi
11581fi
11582AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11583if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11585$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11586else
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588$as_echo "no" >&6; }
278a7a38
AO
11589fi
11590
5213506e 11591
278a7a38
AO
11592 done
11593fi
11594
11595if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11596 for ncn_progname in as; do
5213506e
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11598$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11599 if test -x $with_build_time_tools/${ncn_progname}; then
11600 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602$as_echo "yes" >&6; }
e8b05380
PB
11603 break
11604 else
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
e8b05380
PB
11607 fi
11608 done
11609fi
11610
11611if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11612 for ncn_progname in as; do
11613 if test -n "$ncn_target_tool_prefix"; then
11614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11618if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11619 $as_echo_n "(cached) " >&6
e8b05380
PB
11620else
11621 if test -n "$AS_FOR_TARGET"; then
11622 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11623else
1c710c3c
DJ
11624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
5213506e 11629 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11631 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11633 break 2
11634 fi
11635done
5213506e
RW
11636 done
11637IFS=$as_save_IFS
1c710c3c 11638
e8b05380
PB
11639fi
11640fi
1c710c3c 11641AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11642if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11644$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11645else
5213506e
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
e8b05380
PB
11648fi
11649
5213506e 11650
e8b05380
PB
11651 fi
11652 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11654set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11657if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11658 $as_echo_n "(cached) " >&6
4de997d1 11659else
e8b05380
PB
11660 if test -n "$AS_FOR_TARGET"; then
11661 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11662else
1c710c3c
DJ
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
5213506e 11668 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11670 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11672 break 2
11673 fi
11674done
5213506e
RW
11675 done
11676IFS=$as_save_IFS
1c710c3c 11677
4de997d1
PB
11678fi
11679fi
1c710c3c 11680AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11681if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11683$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11684else
5213506e
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
4de997d1 11687fi
1c710c3c 11688
5213506e 11689
e8b05380
PB
11690 fi
11691 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11692 done
11693fi
1c710c3c 11694
e8b05380
PB
11695if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11696 set dummy as
11697 if test $build = $target ; then
11698 AS_FOR_TARGET="$2"
11699 else
11700 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11701 fi
1c00b503
PB
11702else
11703 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11704fi
2693c0b0 11705
d1f8db0c
PB
11706else
11707 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11708fi
11709
e8b05380
PB
11710
11711
11712
11713if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11714 if test -n "$with_build_time_tools"; then
5213506e
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11716$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11717 if test -x $with_build_time_tools/dlltool; then
11718 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11719 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11721$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11722 else
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
d1f8db0c 11725 fi
e8b05380
PB
11726 elif test $build != $host && test $have_gcc_for_target = yes; then
11727 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11728 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11729 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11730 fi
11731fi
3e19841a 11732if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11733 # Extract the first word of "dlltool", so it can be a program name with args.
11734set dummy dlltool; ac_word=$2
5213506e
RW
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11737if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11738 $as_echo_n "(cached) " >&6
4de997d1 11739else
1c710c3c
DJ
11740 case $DLLTOOL_FOR_TARGET in
11741 [\\/]* | ?:[\\/]*)
e8b05380
PB
11742 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11743 ;;
e8b05380 11744 *)
1c710c3c
DJ
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746for as_dir in $gcc_cv_tool_dirs
11747do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
5213506e 11750 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11752 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11754 break 2
11755 fi
11756done
5213506e
RW
11757 done
11758IFS=$as_save_IFS
1c710c3c 11759
e8b05380
PB
11760 ;;
11761esac
4de997d1 11762fi
1c710c3c 11763DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11764if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11766$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11767else
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
4de997d1
PB
11770fi
11771
5213506e 11772
e8b05380
PB
11773fi
11774if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11775
11776
11777if test -n "$DLLTOOL_FOR_TARGET"; then
11778 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11779elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11780 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11781fi
11782
11783if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11784 for ncn_progname in dlltool; do
11785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11786set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11789if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11790 $as_echo_n "(cached) " >&6
278a7a38
AO
11791else
11792 if test -n "$DLLTOOL_FOR_TARGET"; then
11793 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
5213506e 11800 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11802 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11804 break 2
11805 fi
11806done
5213506e
RW
11807 done
11808IFS=$as_save_IFS
278a7a38
AO
11809
11810fi
11811fi
11812DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11813if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11815$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11816else
5213506e
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
278a7a38
AO
11819fi
11820
5213506e 11821
278a7a38
AO
11822 done
11823fi
11824
11825if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11826 for ncn_progname in dlltool; do
5213506e
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11828$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11829 if test -x $with_build_time_tools/${ncn_progname}; then
11830 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832$as_echo "yes" >&6; }
e8b05380
PB
11833 break
11834 else
5213506e
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
e8b05380
PB
11837 fi
11838 done
11839fi
11840
11841if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11842 for ncn_progname in dlltool; do
11843 if test -n "$ncn_target_tool_prefix"; then
11844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11845set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11848if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11849 $as_echo_n "(cached) " >&6
4de997d1 11850else
e8b05380
PB
11851 if test -n "$DLLTOOL_FOR_TARGET"; then
11852 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11853else
1c710c3c
DJ
11854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855for as_dir in $PATH
11856do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
5213506e 11859 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11861 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11863 break 2
11864 fi
11865done
5213506e
RW
11866 done
11867IFS=$as_save_IFS
1c710c3c 11868
4de997d1
PB
11869fi
11870fi
1c710c3c 11871DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11872if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11874$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11875else
5213506e
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
4de997d1 11878fi
4de997d1 11879
5213506e 11880
e8b05380
PB
11881 fi
11882 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11884set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11887if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11888 $as_echo_n "(cached) " >&6
4de997d1 11889else
e8b05380
PB
11890 if test -n "$DLLTOOL_FOR_TARGET"; then
11891 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11892else
1c710c3c
DJ
11893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
5213506e 11898 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11900 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11902 break 2
11903 fi
11904done
5213506e
RW
11905 done
11906IFS=$as_save_IFS
1c710c3c 11907
4de997d1
PB
11908fi
11909fi
1c710c3c 11910DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11911if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11913$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11914else
5213506e
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
4de997d1 11917fi
1c710c3c 11918
5213506e 11919
e8b05380
PB
11920 fi
11921 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11922 done
11923fi
1c710c3c 11924
e8b05380
PB
11925if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11926 set dummy dlltool
11927 if test $build = $target ; then
11928 DLLTOOL_FOR_TARGET="$2"
11929 else
11930 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11931 fi
1c00b503
PB
11932else
11933 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11934fi
11935
d1f8db0c
PB
11936else
11937 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11938fi
11939
4de997d1 11940
e8b05380
PB
11941
11942
11943if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11944 if test -n "$with_build_time_tools"; then
5213506e
RW
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11946$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11947 if test -x $with_build_time_tools/ld; then
11948 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11949 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11951$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11952 else
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
d1f8db0c 11955 fi
e8b05380
PB
11956 elif test $build != $host && test $have_gcc_for_target = yes; then
11957 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11958 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11959 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11960 fi
e8b05380 11961fi
3e19841a 11962if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11963 # Extract the first word of "ld", so it can be a program name with args.
11964set dummy ld; ac_word=$2
5213506e
RW
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11967if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11968 $as_echo_n "(cached) " >&6
4de997d1 11969else
1c710c3c
DJ
11970 case $LD_FOR_TARGET in
11971 [\\/]* | ?:[\\/]*)
e8b05380
PB
11972 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11973 ;;
e8b05380 11974 *)
1c710c3c
DJ
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $gcc_cv_tool_dirs
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
5213506e 11980 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11982 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11984 break 2
11985 fi
11986done
5213506e
RW
11987 done
11988IFS=$as_save_IFS
1c710c3c 11989
e8b05380
PB
11990 ;;
11991esac
4de997d1 11992fi
1c710c3c 11993LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11994if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11996$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11997else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
4de997d1 12000fi
2693c0b0 12001
5213506e 12002
e8b05380
PB
12003fi
12004if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
12005
12006
12007if test -n "$LD_FOR_TARGET"; then
12008 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12009elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12010 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12011fi
12012
12013if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12014 for ncn_progname in ld; do
12015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12019if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12020 $as_echo_n "(cached) " >&6
278a7a38
AO
12021else
12022 if test -n "$LD_FOR_TARGET"; then
12023 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
5213506e 12030 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12032 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12034 break 2
12035 fi
12036done
5213506e
RW
12037 done
12038IFS=$as_save_IFS
278a7a38
AO
12039
12040fi
12041fi
12042LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12043if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12045$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 12046else
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
278a7a38
AO
12049fi
12050
5213506e 12051
278a7a38
AO
12052 done
12053fi
12054
12055if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12056 for ncn_progname in ld; do
5213506e
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12058$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12059 if test -x $with_build_time_tools/${ncn_progname}; then
12060 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062$as_echo "yes" >&6; }
e8b05380
PB
12063 break
12064 else
5213506e
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
e8b05380
PB
12067 fi
12068 done
ca9f4b81
AO
12069fi
12070
e8b05380
PB
12071if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12072 for ncn_progname in ld; do
12073 if test -n "$ncn_target_tool_prefix"; then
12074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12075set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12078if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12079 $as_echo_n "(cached) " >&6
ca9f4b81 12080else
4de997d1
PB
12081 if test -n "$LD_FOR_TARGET"; then
12082 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12083else
1c710c3c
DJ
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
5213506e 12089 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12091 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12093 break 2
12094 fi
12095done
5213506e
RW
12096 done
12097IFS=$as_save_IFS
1c710c3c 12098
ca9f4b81
AO
12099fi
12100fi
1c710c3c 12101LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 12102if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12104$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12105else
5213506e
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
ca9f4b81
AO
12108fi
12109
5213506e 12110
e8b05380
PB
12111 fi
12112 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12117if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12118 $as_echo_n "(cached) " >&6
ca9f4b81 12119else
2693c0b0
PB
12120 if test -n "$LD_FOR_TARGET"; then
12121 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12122else
1c710c3c
DJ
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
5213506e 12128 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12130 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12132 break 2
12133 fi
12134done
5213506e
RW
12135 done
12136IFS=$as_save_IFS
1c710c3c 12137
ca9f4b81
AO
12138fi
12139fi
1c710c3c 12140LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12141if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12143$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12144else
5213506e
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
ca9f4b81 12147fi
1c710c3c 12148
5213506e 12149
e8b05380
PB
12150 fi
12151 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12152 done
12153fi
1c710c3c 12154
2693c0b0
PB
12155if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12156 set dummy ld
12157 if test $build = $target ; then
12158 LD_FOR_TARGET="$2"
ca9f4b81 12159 else
2693c0b0 12160 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12161 fi
1c00b503
PB
12162else
12163 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12164fi
12165
d1f8db0c
PB
12166else
12167 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12168fi
12169
12170
12171
12172
12173if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12174 if test -n "$with_build_time_tools"; then
5213506e
RW
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12176$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12177 if test -x $with_build_time_tools/lipo; then
12178 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12179 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12181$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12182 else
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
d1f8db0c 12185 fi
e8b05380
PB
12186 elif test $build != $host && test $have_gcc_for_target = yes; then
12187 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12188 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12189 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12190 fi
12191fi
278a7a38
AO
12192if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12193 # Extract the first word of "lipo", so it can be a program name with args.
12194set dummy lipo; ac_word=$2
5213506e
RW
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12197if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12198 $as_echo_n "(cached) " >&6
278a7a38
AO
12199else
12200 case $LIPO_FOR_TARGET in
12201 [\\/]* | ?:[\\/]*)
12202 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12203 ;;
12204 *)
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $gcc_cv_tool_dirs
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
5213506e 12210 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12212 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12214 break 2
12215 fi
12216done
5213506e
RW
12217 done
12218IFS=$as_save_IFS
278a7a38
AO
12219
12220 ;;
12221esac
12222fi
12223LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12224if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12226$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12227else
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
278a7a38
AO
12230fi
12231
5213506e 12232
278a7a38
AO
12233fi
12234if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12235
12236
12237if test -n "$LIPO_FOR_TARGET"; then
12238 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12239elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12240 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12241fi
12242
12243if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12244 for ncn_progname in lipo; do
12245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12246set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12249if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12250 $as_echo_n "(cached) " >&6
e8b05380 12251else
278a7a38
AO
12252 if test -n "$LIPO_FOR_TARGET"; then
12253 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12254else
12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
1c710c3c
DJ
12257do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
5213506e 12260 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12262 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12264 break 2
12265 fi
12266done
5213506e
RW
12267 done
12268IFS=$as_save_IFS
1c710c3c 12269
e8b05380 12270fi
278a7a38
AO
12271fi
12272LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12273if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12275$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12276else
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278$as_echo "no" >&6; }
e8b05380
PB
12279fi
12280
5213506e 12281
278a7a38 12282 done
e8b05380 12283fi
278a7a38
AO
12284
12285if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12286 for ncn_progname in lipo; do
5213506e
RW
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12288$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12289 if test -x $with_build_time_tools/${ncn_progname}; then
12290 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292$as_echo "yes" >&6; }
e8b05380
PB
12293 break
12294 else
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
e8b05380
PB
12297 fi
12298 done
12299fi
12300
12301if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12302 for ncn_progname in lipo; do
12303 if test -n "$ncn_target_tool_prefix"; then
12304 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12305set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12308if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12309 $as_echo_n "(cached) " >&6
040b1c5a
GK
12310else
12311 if test -n "$LIPO_FOR_TARGET"; then
12312 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12313else
1c710c3c
DJ
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
5213506e 12319 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12321 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12323 break 2
12324 fi
12325done
5213506e
RW
12326 done
12327IFS=$as_save_IFS
1c710c3c 12328
040b1c5a
GK
12329fi
12330fi
1c710c3c 12331LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12332if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12334$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12335else
5213506e
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
040b1c5a
GK
12338fi
12339
5213506e 12340
e8b05380
PB
12341 fi
12342 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12344set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12347if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12348 $as_echo_n "(cached) " >&6
040b1c5a
GK
12349else
12350 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12351 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12352else
1c710c3c
DJ
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
5213506e 12358 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12360 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12362 break 2
12363 fi
12364done
5213506e
RW
12365 done
12366IFS=$as_save_IFS
1c710c3c 12367
040b1c5a
GK
12368fi
12369fi
1c710c3c 12370LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12371if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12373$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12374else
5213506e
RW
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
040b1c5a 12377fi
1c710c3c 12378
5213506e 12379
e8b05380
PB
12380 fi
12381 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12382 done
12383fi
1c710c3c 12384
040b1c5a
GK
12385if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12386 set dummy lipo
12387 if test $build = $target ; then
12388 LIPO_FOR_TARGET="$2"
12389 else
12390 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12391 fi
1c00b503
PB
12392else
12393 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12394fi
12395
d1f8db0c
PB
12396else
12397 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12398fi
12399
12400
12401
12402
12403if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12404 if test -n "$with_build_time_tools"; then
5213506e
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12406$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12407 if test -x $with_build_time_tools/nm; then
12408 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12409 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12411$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12412 else
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414$as_echo "no" >&6; }
d1f8db0c 12415 fi
e8b05380
PB
12416 elif test $build != $host && test $have_gcc_for_target = yes; then
12417 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12418 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12419 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12420 fi
12421fi
3e19841a 12422if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12423 # Extract the first word of "nm", so it can be a program name with args.
12424set dummy nm; ac_word=$2
5213506e
RW
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12427if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12428 $as_echo_n "(cached) " >&6
e8b05380 12429else
1c710c3c
DJ
12430 case $NM_FOR_TARGET in
12431 [\\/]* | ?:[\\/]*)
e8b05380
PB
12432 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12433 ;;
e8b05380 12434 *)
1c710c3c
DJ
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436for as_dir in $gcc_cv_tool_dirs
12437do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
5213506e 12440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12442 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12444 break 2
12445 fi
12446done
5213506e
RW
12447 done
12448IFS=$as_save_IFS
1c710c3c 12449
e8b05380
PB
12450 ;;
12451esac
12452fi
1c710c3c 12453NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12454if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12456$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12457else
5213506e
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
e8b05380
PB
12460fi
12461
5213506e 12462
e8b05380
PB
12463fi
12464if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12465
12466
12467if test -n "$NM_FOR_TARGET"; then
12468 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12469elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12470 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12471fi
12472
12473if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12474 for ncn_progname in nm; do
12475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12476set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12479if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12480 $as_echo_n "(cached) " >&6
278a7a38
AO
12481else
12482 if test -n "$NM_FOR_TARGET"; then
12483 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12484else
12485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486for as_dir in $PATH
12487do
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
5213506e 12490 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12492 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12494 break 2
12495 fi
12496done
5213506e
RW
12497 done
12498IFS=$as_save_IFS
278a7a38
AO
12499
12500fi
12501fi
12502NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12503if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12505$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12506else
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508$as_echo "no" >&6; }
278a7a38
AO
12509fi
12510
5213506e 12511
278a7a38
AO
12512 done
12513fi
12514
12515if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12516 for ncn_progname in nm; do
5213506e
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12518$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12519 if test -x $with_build_time_tools/${ncn_progname}; then
12520 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522$as_echo "yes" >&6; }
e8b05380
PB
12523 break
12524 else
5213506e
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
e8b05380
PB
12527 fi
12528 done
12529fi
12530
12531if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12532 for ncn_progname in nm; do
12533 if test -n "$ncn_target_tool_prefix"; then
12534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12535set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12538if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12539 $as_echo_n "(cached) " >&6
ca9f4b81 12540else
4de997d1
PB
12541 if test -n "$NM_FOR_TARGET"; then
12542 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12543else
1c710c3c
DJ
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
5213506e 12549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12551 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12553 break 2
12554 fi
12555done
5213506e
RW
12556 done
12557IFS=$as_save_IFS
1c710c3c 12558
ca9f4b81
AO
12559fi
12560fi
1c710c3c 12561NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12562if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12564$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12565else
5213506e
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
ca9f4b81
AO
12568fi
12569
5213506e 12570
e8b05380
PB
12571 fi
12572 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12574set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12577if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12578 $as_echo_n "(cached) " >&6
ca9f4b81 12579else
2693c0b0
PB
12580 if test -n "$NM_FOR_TARGET"; then
12581 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12582else
1c710c3c
DJ
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
5213506e 12588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12590 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12592 break 2
12593 fi
12594done
5213506e
RW
12595 done
12596IFS=$as_save_IFS
1c710c3c 12597
ca9f4b81
AO
12598fi
12599fi
1c710c3c 12600NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12601if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12603$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12604else
5213506e
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
ca9f4b81 12607fi
1c710c3c 12608
5213506e 12609
e8b05380
PB
12610 fi
12611 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12612 done
12613fi
1c710c3c 12614
2693c0b0
PB
12615if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12616 set dummy nm
12617 if test $build = $target ; then
12618 NM_FOR_TARGET="$2"
ca9f4b81 12619 else
2693c0b0 12620 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12621 fi
1c00b503
PB
12622else
12623 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12624fi
12625
d1f8db0c
PB
12626else
12627 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12628fi
12629
12630
12631
12632
9bccfdf5
AP
12633if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12634 if test -n "$with_build_time_tools"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12636$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12637 if test -x $with_build_time_tools/objcopy; then
12638 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12639 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12641$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
12645 fi
12646 elif test $build != $host && test $have_gcc_for_target = yes; then
12647 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12648 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12649 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12650 fi
12651fi
12652if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12653 # Extract the first word of "objcopy", so it can be a program name with args.
12654set dummy objcopy; ac_word=$2
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12657if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12658 $as_echo_n "(cached) " >&6
12659else
12660 case $OBJCOPY_FOR_TARGET in
12661 [\\/]* | ?:[\\/]*)
12662 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12663 ;;
12664 *)
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $gcc_cv_tool_dirs
12667do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12672 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676done
12677 done
12678IFS=$as_save_IFS
12679
12680 ;;
12681esac
12682fi
12683OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12684if test -n "$OBJCOPY_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12686$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12687else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693fi
12694if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12695
12696
12697if test -n "$OBJCOPY_FOR_TARGET"; then
12698 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12699elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12700 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12701fi
12702
12703if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12704 for ncn_progname in objcopy; do
12705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12706set dummy ${ncn_progname}; ac_word=$2
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12709if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12710 $as_echo_n "(cached) " >&6
12711else
12712 if test -n "$OBJCOPY_FOR_TARGET"; then
12713 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12714else
12715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716for as_dir in $PATH
12717do
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12722 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12725 fi
12726done
12727 done
12728IFS=$as_save_IFS
12729
12730fi
12731fi
12732OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12733if test -n "$OBJCOPY_FOR_TARGET"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12735$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12736else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738$as_echo "no" >&6; }
12739fi
12740
12741
12742 done
12743fi
12744
12745if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12746 for ncn_progname in objcopy; do
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12748$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12749 if test -x $with_build_time_tools/${ncn_progname}; then
12750 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12752$as_echo "yes" >&6; }
12753 break
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
12757 fi
12758 done
12759fi
12760
12761if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12762 for ncn_progname in objcopy; do
12763 if test -n "$ncn_target_tool_prefix"; then
12764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12765set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12768if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12769 $as_echo_n "(cached) " >&6
12770else
12771 if test -n "$OBJCOPY_FOR_TARGET"; then
12772 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12781 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786 done
12787IFS=$as_save_IFS
12788
12789fi
12790fi
12791OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12792if test -n "$OBJCOPY_FOR_TARGET"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12794$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12795else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798fi
12799
12800
12801 fi
12802 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804set dummy ${ncn_progname}; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12807if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$OBJCOPY_FOR_TARGET"; then
12811 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12820 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12831if test -n "$OBJCOPY_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12833$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840 fi
12841 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12842 done
12843fi
12844
12845if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12846 set dummy objcopy
12847 if test $build = $target ; then
12848 OBJCOPY_FOR_TARGET="$2"
12849 else
12850 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12851 fi
12852else
12853 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12854fi
12855
12856else
12857 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12858fi
12859
12860
12861
12862
e8b05380
PB
12863if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12864 if test -n "$with_build_time_tools"; then
5213506e
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12866$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12867 if test -x $with_build_time_tools/objdump; then
12868 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12869 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12871$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12872 else
5213506e
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
d1f8db0c 12875 fi
e8b05380
PB
12876 elif test $build != $host && test $have_gcc_for_target = yes; then
12877 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12878 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12879 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12880 fi
12881fi
3e19841a 12882if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12883 # Extract the first word of "objdump", so it can be a program name with args.
12884set dummy objdump; ac_word=$2
5213506e
RW
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12887if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12888 $as_echo_n "(cached) " >&6
e8b05380 12889else
1c710c3c
DJ
12890 case $OBJDUMP_FOR_TARGET in
12891 [\\/]* | ?:[\\/]*)
e8b05380
PB
12892 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12893 ;;
e8b05380 12894 *)
1c710c3c
DJ
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $gcc_cv_tool_dirs
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
5213506e 12900 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12902 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12904 break 2
12905 fi
12906done
5213506e
RW
12907 done
12908IFS=$as_save_IFS
1c710c3c 12909
e8b05380
PB
12910 ;;
12911esac
12912fi
1c710c3c 12913OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12914if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12916$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12917else
5213506e
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
e8b05380
PB
12920fi
12921
5213506e 12922
e8b05380
PB
12923fi
12924if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12925
12926
12927if test -n "$OBJDUMP_FOR_TARGET"; then
12928 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12929elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12930 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12931fi
12932
12933if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12934 for ncn_progname in objdump; do
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12939if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12940 $as_echo_n "(cached) " >&6
278a7a38
AO
12941else
12942 if test -n "$OBJDUMP_FOR_TARGET"; then
12943 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12944else
12945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946for as_dir in $PATH
12947do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
5213506e 12950 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12952 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12954 break 2
12955 fi
12956done
5213506e
RW
12957 done
12958IFS=$as_save_IFS
278a7a38
AO
12959
12960fi
12961fi
12962OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12963if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12965$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12966else
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968$as_echo "no" >&6; }
278a7a38
AO
12969fi
12970
5213506e 12971
278a7a38
AO
12972 done
12973fi
12974
12975if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12976 for ncn_progname in objdump; do
5213506e
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12978$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12979 if test -x $with_build_time_tools/${ncn_progname}; then
12980 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982$as_echo "yes" >&6; }
e8b05380
PB
12983 break
12984 else
5213506e
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
e8b05380
PB
12987 fi
12988 done
12989fi
12990
12991if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12992 for ncn_progname in objdump; do
12993 if test -n "$ncn_target_tool_prefix"; then
12994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12995set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12998if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12999 $as_echo_n "(cached) " >&6
d739199a
DJ
13000else
13001 if test -n "$OBJDUMP_FOR_TARGET"; then
13002 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13003else
1c710c3c
DJ
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
5213506e 13009 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13011 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13013 break 2
13014 fi
13015done
5213506e
RW
13016 done
13017IFS=$as_save_IFS
1c710c3c 13018
d739199a
DJ
13019fi
13020fi
1c710c3c 13021OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13022if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13024$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13025else
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
d739199a
DJ
13028fi
13029
5213506e 13030
e8b05380
PB
13031 fi
13032 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 13034set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13037if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13038 $as_echo_n "(cached) " >&6
d739199a
DJ
13039else
13040 if test -n "$OBJDUMP_FOR_TARGET"; then
13041 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13042else
1c710c3c
DJ
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
5213506e 13048 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13050 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13052 break 2
13053 fi
13054done
5213506e
RW
13055 done
13056IFS=$as_save_IFS
1c710c3c 13057
d739199a
DJ
13058fi
13059fi
1c710c3c 13060OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13061if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13063$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13064else
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
d739199a 13067fi
1c710c3c 13068
5213506e 13069
e8b05380
PB
13070 fi
13071 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13072 done
13073fi
1c710c3c 13074
d739199a
DJ
13075if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13076 set dummy objdump
13077 if test $build = $target ; then
13078 OBJDUMP_FOR_TARGET="$2"
13079 else
13080 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13081 fi
1c00b503
PB
13082else
13083 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
13084fi
13085
d1f8db0c
PB
13086else
13087 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
13088fi
13089
13090
13091
13092
e4a9a572
IS
13093if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13094 if test -n "$with_build_time_tools"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13096$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13097 if test -x $with_build_time_tools/otool; then
13098 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13099 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13101$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13102 else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
13105 fi
13106 elif test $build != $host && test $have_gcc_for_target = yes; then
13107 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13108 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13109 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13110 fi
13111fi
13112if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13113 # Extract the first word of "otool", so it can be a program name with args.
13114set dummy otool; ac_word=$2
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116$as_echo_n "checking for $ac_word... " >&6; }
13117if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119else
13120 case $OTOOL_FOR_TARGET in
13121 [\\/]* | ?:[\\/]*)
13122 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13123 ;;
13124 *)
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126for as_dir in $gcc_cv_tool_dirs
13127do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13132 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13135 fi
13136done
13137 done
13138IFS=$as_save_IFS
13139
13140 ;;
13141esac
13142fi
13143OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13144if test -n "$OTOOL_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13146$as_echo "$OTOOL_FOR_TARGET" >&6; }
13147else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150fi
13151
13152
13153fi
13154if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13155
13156
13157if test -n "$OTOOL_FOR_TARGET"; then
13158 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13159elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13160 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13161fi
13162
13163if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13164 for ncn_progname in otool; do
13165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13166set dummy ${ncn_progname}; ac_word=$2
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168$as_echo_n "checking for $ac_word... " >&6; }
13169if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171else
13172 if test -n "$OTOOL_FOR_TARGET"; then
13173 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13174else
13175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176for as_dir in $PATH
13177do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 break 2
13185 fi
13186done
13187 done
13188IFS=$as_save_IFS
13189
13190fi
13191fi
13192OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13193if test -n "$OTOOL_FOR_TARGET"; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13195$as_echo "$OTOOL_FOR_TARGET" >&6; }
13196else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199fi
13200
13201
13202 done
13203fi
13204
13205if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13206 for ncn_progname in otool; do
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13208$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13209 if test -x $with_build_time_tools/${ncn_progname}; then
13210 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212$as_echo "yes" >&6; }
13213 break
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
13217 fi
13218 done
13219fi
13220
13221if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13222 for ncn_progname in otool; do
13223 if test -n "$ncn_target_tool_prefix"; then
13224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13225set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227$as_echo_n "checking for $ac_word... " >&6; }
13228if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230else
13231 if test -n "$OTOOL_FOR_TARGET"; then
13232 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13233else
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245done
13246 done
13247IFS=$as_save_IFS
13248
13249fi
13250fi
13251OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13252if test -n "$OTOOL_FOR_TARGET"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13254$as_echo "$OTOOL_FOR_TARGET" >&6; }
13255else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
13258fi
13259
13260
13261 fi
13262 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264set dummy ${ncn_progname}; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
13267if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269else
13270 if test -n "$OTOOL_FOR_TARGET"; then
13271 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285 done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13291if test -n "$OTOOL_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13293$as_echo "$OTOOL_FOR_TARGET" >&6; }
13294else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300 fi
13301 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13302 done
13303fi
13304
13305if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13306 set dummy otool
13307 if test $build = $target ; then
13308 OTOOL_FOR_TARGET="$2"
13309 else
13310 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13311 fi
13312else
13313 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13314fi
13315
13316else
13317 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13318fi
13319
13320
13321
13322
e8b05380
PB
13323if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13324 if test -n "$with_build_time_tools"; then
5213506e
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13326$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13327 if test -x $with_build_time_tools/ranlib; then
13328 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13329 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13331$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13332 else
5213506e
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
d1f8db0c 13335 fi
e8b05380
PB
13336 elif test $build != $host && test $have_gcc_for_target = yes; then
13337 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13338 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13339 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13340 fi
13341fi
3e19841a 13342if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13343 # Extract the first word of "ranlib", so it can be a program name with args.
13344set dummy ranlib; ac_word=$2
5213506e
RW
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13347if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13348 $as_echo_n "(cached) " >&6
e8b05380 13349else
1c710c3c
DJ
13350 case $RANLIB_FOR_TARGET in
13351 [\\/]* | ?:[\\/]*)
e8b05380
PB
13352 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13353 ;;
e8b05380 13354 *)
1c710c3c
DJ
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356for as_dir in $gcc_cv_tool_dirs
13357do
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
5213506e 13360 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13362 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13364 break 2
13365 fi
13366done
5213506e
RW
13367 done
13368IFS=$as_save_IFS
1c710c3c 13369
e8b05380
PB
13370 ;;
13371esac
13372fi
1c710c3c 13373RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13374if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13376$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13377else
5213506e
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379$as_echo "no" >&6; }
e8b05380
PB
13380fi
13381
5213506e 13382
e8b05380
PB
13383fi
13384if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13385
13386
13387if test -n "$RANLIB_FOR_TARGET"; then
13388 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13389elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13390 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13391fi
13392
13393if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13394 for ncn_progname in ranlib; do
13395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13399if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13400 $as_echo_n "(cached) " >&6
278a7a38
AO
13401else
13402 if test -n "$RANLIB_FOR_TARGET"; then
13403 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
5213506e 13410 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13412 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13414 break 2
13415 fi
13416done
5213506e
RW
13417 done
13418IFS=$as_save_IFS
278a7a38
AO
13419
13420fi
13421fi
13422RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13423if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13425$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13426else
5213506e
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
278a7a38
AO
13429fi
13430
5213506e 13431
278a7a38
AO
13432 done
13433fi
13434
13435if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13436 for ncn_progname in ranlib; do
5213506e
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13439 if test -x $with_build_time_tools/${ncn_progname}; then
13440 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442$as_echo "yes" >&6; }
e8b05380
PB
13443 break
13444 else
5213506e
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
e8b05380
PB
13447 fi
13448 done
13449fi
13450
13451if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13452 for ncn_progname in ranlib; do
13453 if test -n "$ncn_target_tool_prefix"; then
13454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13458if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13459 $as_echo_n "(cached) " >&6
ca9f4b81 13460else
4de997d1
PB
13461 if test -n "$RANLIB_FOR_TARGET"; then
13462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13463else
1c710c3c
DJ
13464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465for as_dir in $PATH
13466do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
5213506e 13469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13473 break 2
13474 fi
13475done
5213506e
RW
13476 done
13477IFS=$as_save_IFS
1c710c3c 13478
ca9f4b81
AO
13479fi
13480fi
1c710c3c 13481RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13482if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13484$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13485else
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487$as_echo "no" >&6; }
ca9f4b81
AO
13488fi
13489
5213506e 13490
e8b05380
PB
13491 fi
13492 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13497if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13498 $as_echo_n "(cached) " >&6
ca9f4b81 13499else
2693c0b0
PB
13500 if test -n "$RANLIB_FOR_TARGET"; then
13501 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13502else
1c710c3c
DJ
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
5213506e 13508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13510 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13512 break 2
13513 fi
13514done
5213506e
RW
13515 done
13516IFS=$as_save_IFS
1c710c3c 13517
ca9f4b81
AO
13518fi
13519fi
1c710c3c 13520RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13521if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13523$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13524else
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
ca9f4b81 13527fi
1c710c3c 13528
5213506e 13529
e8b05380
PB
13530 fi
13531 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13532 done
13533fi
1c710c3c 13534
e8b05380
PB
13535if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13536 set dummy ranlib
13537 if test $build = $target ; then
13538 RANLIB_FOR_TARGET="$2"
13539 else
13540 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13541 fi
1c00b503
PB
13542else
13543 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13544fi
2693c0b0 13545
d1f8db0c
PB
13546else
13547 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13548fi
13549
e8b05380
PB
13550
13551
13552
e7a82751
RM
13553if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13554 if test -n "$with_build_time_tools"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13556$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13557 if test -x $with_build_time_tools/readelf; then
13558 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13559 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13561$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564$as_echo "no" >&6; }
13565 fi
13566 elif test $build != $host && test $have_gcc_for_target = yes; then
13567 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13568 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13569 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13570 fi
13571fi
13572if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13573 # Extract the first word of "readelf", so it can be a program name with args.
13574set dummy readelf; ac_word=$2
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13577if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13578 $as_echo_n "(cached) " >&6
13579else
13580 case $READELF_FOR_TARGET in
13581 [\\/]* | ?:[\\/]*)
13582 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13583 ;;
13584 *)
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586for as_dir in $gcc_cv_tool_dirs
13587do
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13592 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13595 fi
13596done
13597 done
13598IFS=$as_save_IFS
13599
13600 ;;
13601esac
13602fi
13603READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13604if test -n "$READELF_FOR_TARGET"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13606$as_echo "$READELF_FOR_TARGET" >&6; }
13607else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609$as_echo "no" >&6; }
13610fi
13611
13612
13613fi
13614if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13615
13616
13617if test -n "$READELF_FOR_TARGET"; then
13618 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13619elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13620 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13621fi
13622
13623if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13624 for ncn_progname in readelf; do
13625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13626set dummy ${ncn_progname}; ac_word=$2
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13629if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13630 $as_echo_n "(cached) " >&6
13631else
13632 if test -n "$READELF_FOR_TARGET"; then
13633 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13634else
13635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636for as_dir in $PATH
13637do
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13642 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 break 2
13645 fi
13646done
13647 done
13648IFS=$as_save_IFS
13649
13650fi
13651fi
13652READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13653if test -n "$READELF_FOR_TARGET"; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13655$as_echo "$READELF_FOR_TARGET" >&6; }
13656else
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658$as_echo "no" >&6; }
13659fi
13660
13661
13662 done
13663fi
13664
13665if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13666 for ncn_progname in readelf; do
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13668$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13669 if test -x $with_build_time_tools/${ncn_progname}; then
13670 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672$as_echo "yes" >&6; }
13673 break
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
13677 fi
13678 done
13679fi
13680
13681if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13682 for ncn_progname in readelf; do
13683 if test -n "$ncn_target_tool_prefix"; then
13684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13688if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13689 $as_echo_n "(cached) " >&6
13690else
13691 if test -n "$READELF_FOR_TARGET"; then
13692 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13693else
13694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695for as_dir in $PATH
13696do
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13701 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13704 fi
13705done
13706 done
13707IFS=$as_save_IFS
13708
13709fi
13710fi
13711READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13712if test -n "$READELF_FOR_TARGET"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13714$as_echo "$READELF_FOR_TARGET" >&6; }
13715else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717$as_echo "no" >&6; }
13718fi
13719
13720
13721 fi
13722 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724set dummy ${ncn_progname}; ac_word=$2
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13727if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13728 $as_echo_n "(cached) " >&6
13729else
13730 if test -n "$READELF_FOR_TARGET"; then
13731 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13732else
13733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734for as_dir in $PATH
13735do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13740 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744done
13745 done
13746IFS=$as_save_IFS
13747
13748fi
13749fi
13750READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13751if test -n "$READELF_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13753$as_echo "$READELF_FOR_TARGET" >&6; }
13754else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
13757fi
13758
13759
13760 fi
13761 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13762 done
13763fi
13764
13765if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13766 set dummy readelf
13767 if test $build = $target ; then
13768 READELF_FOR_TARGET="$2"
13769 else
13770 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13771 fi
13772else
13773 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13774fi
13775
13776else
13777 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13778fi
13779
13780
13781
13782
e8b05380
PB
13783if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13784 if test -n "$with_build_time_tools"; then
5213506e
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13786$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13787 if test -x $with_build_time_tools/strip; then
13788 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13789 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13791$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13792 else
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794$as_echo "no" >&6; }
d1f8db0c 13795 fi
e8b05380
PB
13796 elif test $build != $host && test $have_gcc_for_target = yes; then
13797 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13798 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13799 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13800 fi
13801fi
3e19841a 13802if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13803 # Extract the first word of "strip", so it can be a program name with args.
13804set dummy strip; ac_word=$2
5213506e
RW
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13807if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13808 $as_echo_n "(cached) " >&6
e8b05380 13809else
1c710c3c
DJ
13810 case $STRIP_FOR_TARGET in
13811 [\\/]* | ?:[\\/]*)
e8b05380
PB
13812 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13813 ;;
e8b05380 13814 *)
1c710c3c
DJ
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816for as_dir in $gcc_cv_tool_dirs
13817do
13818 IFS=$as_save_IFS
13819 test -z "$as_dir" && as_dir=.
5213506e 13820 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13822 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13824 break 2
13825 fi
13826done
5213506e
RW
13827 done
13828IFS=$as_save_IFS
1c710c3c 13829
e8b05380
PB
13830 ;;
13831esac
13832fi
1c710c3c 13833STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13834if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13836$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13837else
5213506e
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839$as_echo "no" >&6; }
e8b05380
PB
13840fi
13841
5213506e 13842
e8b05380
PB
13843fi
13844if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13845
13846
13847if test -n "$STRIP_FOR_TARGET"; then
13848 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13849elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13850 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13851fi
13852
13853if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13854 for ncn_progname in strip; do
13855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13856set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13859if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13860 $as_echo_n "(cached) " >&6
278a7a38
AO
13861else
13862 if test -n "$STRIP_FOR_TARGET"; then
13863 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13864else
13865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866for as_dir in $PATH
13867do
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
5213506e 13870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13872 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13874 break 2
13875 fi
13876done
5213506e
RW
13877 done
13878IFS=$as_save_IFS
278a7a38
AO
13879
13880fi
13881fi
13882STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13883if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13885$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13886else
5213506e
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888$as_echo "no" >&6; }
278a7a38
AO
13889fi
13890
5213506e 13891
278a7a38
AO
13892 done
13893fi
13894
13895if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13896 for ncn_progname in strip; do
5213506e
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13898$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13899 if test -x $with_build_time_tools/${ncn_progname}; then
13900 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902$as_echo "yes" >&6; }
e8b05380
PB
13903 break
13904 else
5213506e
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
e8b05380
PB
13907 fi
13908 done
13909fi
13910
13911if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13912 for ncn_progname in strip; do
13913 if test -n "$ncn_target_tool_prefix"; then
13914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13915set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13918if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13919 $as_echo_n "(cached) " >&6
af71363e
AS
13920else
13921 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13922 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13923else
13924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925for as_dir in $PATH
13926do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
5213506e 13929 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13931 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13933 break 2
13934 fi
13935done
5213506e
RW
13936 done
13937IFS=$as_save_IFS
1c710c3c 13938
040b1c5a
GK
13939fi
13940fi
1c710c3c 13941STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13942if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13944$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13945else
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
040b1c5a
GK
13948fi
13949
5213506e 13950
e8b05380
PB
13951 fi
13952 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13954set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13957if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13958 $as_echo_n "(cached) " >&6
040b1c5a
GK
13959else
13960 if test -n "$STRIP_FOR_TARGET"; then
13961 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13962else
1c710c3c
DJ
13963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964for as_dir in $PATH
13965do
13966 IFS=$as_save_IFS
13967 test -z "$as_dir" && as_dir=.
5213506e 13968 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13970 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13972 break 2
13973 fi
13974done
5213506e
RW
13975 done
13976IFS=$as_save_IFS
1c710c3c 13977
040b1c5a
GK
13978fi
13979fi
1c710c3c 13980STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13981if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13983$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13984else
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986$as_echo "no" >&6; }
040b1c5a 13987fi
1c710c3c 13988
5213506e 13989
e8b05380
PB
13990 fi
13991 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13992 done
13993fi
1c710c3c 13994
040b1c5a
GK
13995if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13996 set dummy strip
13997 if test $build = $target ; then
13998 STRIP_FOR_TARGET="$2"
13999 else
14000 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14001 fi
1c00b503
PB
14002else
14003 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
14004fi
14005
d1f8db0c
PB
14006else
14007 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
14008fi
14009
14010
14011
14012
14013if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14014 if test -n "$with_build_time_tools"; then
5213506e
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14016$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14017 if test -x $with_build_time_tools/windres; then
14018 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14019 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14021$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 14022 else
5213506e
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024$as_echo "no" >&6; }
d1f8db0c 14025 fi
e8b05380
PB
14026 elif test $build != $host && test $have_gcc_for_target = yes; then
14027 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
14028 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14029 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
14030 fi
14031fi
3e19841a 14032if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14033 # Extract the first word of "windres", so it can be a program name with args.
14034set dummy windres; ac_word=$2
5213506e
RW
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14037if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 14038 $as_echo_n "(cached) " >&6
e8b05380 14039else
1c710c3c
DJ
14040 case $WINDRES_FOR_TARGET in
14041 [\\/]* | ?:[\\/]*)
e8b05380
PB
14042 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14043 ;;
e8b05380 14044 *)
1c710c3c
DJ
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046for as_dir in $gcc_cv_tool_dirs
14047do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
5213506e 14050 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14052 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14054 break 2
14055 fi
14056done
5213506e
RW
14057 done
14058IFS=$as_save_IFS
1c710c3c 14059
e8b05380
PB
14060 ;;
14061esac
14062fi
1c710c3c 14063WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 14064if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14066$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 14067else
5213506e
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
e8b05380
PB
14070fi
14071
5213506e 14072
e8b05380
PB
14073fi
14074if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
14075
14076
14077if test -n "$WINDRES_FOR_TARGET"; then
14078 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14079elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14080 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14081fi
14082
14083if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14084 for ncn_progname in windres; do
14085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14089if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14090 $as_echo_n "(cached) " >&6
278a7a38
AO
14091else
14092 if test -n "$WINDRES_FOR_TARGET"; then
14093 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14094else
14095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096for as_dir in $PATH
14097do
14098 IFS=$as_save_IFS
14099 test -z "$as_dir" && as_dir=.
5213506e 14100 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14102 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14104 break 2
14105 fi
14106done
5213506e
RW
14107 done
14108IFS=$as_save_IFS
278a7a38
AO
14109
14110fi
14111fi
14112WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14113if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14115$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14116else
5213506e
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118$as_echo "no" >&6; }
278a7a38
AO
14119fi
14120
5213506e 14121
278a7a38
AO
14122 done
14123fi
14124
14125if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14126 for ncn_progname in windres; do
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14128$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14129 if test -x $with_build_time_tools/${ncn_progname}; then
14130 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132$as_echo "yes" >&6; }
e8b05380
PB
14133 break
14134 else
5213506e
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136$as_echo "no" >&6; }
e8b05380
PB
14137 fi
14138 done
14139fi
14140
14141if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14142 for ncn_progname in windres; do
14143 if test -n "$ncn_target_tool_prefix"; then
14144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14148if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14149 $as_echo_n "(cached) " >&6
ca9f4b81 14150else
4de997d1
PB
14151 if test -n "$WINDRES_FOR_TARGET"; then
14152 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14153else
1c710c3c
DJ
14154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155for as_dir in $PATH
14156do
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
5213506e 14159 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14161 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14163 break 2
14164 fi
14165done
5213506e
RW
14166 done
14167IFS=$as_save_IFS
1c710c3c 14168
ca9f4b81
AO
14169fi
14170fi
1c710c3c 14171WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14172if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14174$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14175else
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
ca9f4b81
AO
14178fi
14179
5213506e 14180
e8b05380
PB
14181 fi
14182 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14184set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14187if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14188 $as_echo_n "(cached) " >&6
ca9f4b81 14189else
2693c0b0
PB
14190 if test -n "$WINDRES_FOR_TARGET"; then
14191 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14192else
1c710c3c
DJ
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
5213506e 14198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14200 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14202 break 2
14203 fi
14204done
5213506e
RW
14205 done
14206IFS=$as_save_IFS
1c710c3c 14207
ca9f4b81
AO
14208fi
14209fi
1c710c3c 14210WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14211if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14213$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14214else
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
ca9f4b81 14217fi
1c710c3c 14218
5213506e 14219
e8b05380
PB
14220 fi
14221 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14222 done
14223fi
1c710c3c 14224
2693c0b0
PB
14225if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14226 set dummy windres
14227 if test $build = $target ; then
14228 WINDRES_FOR_TARGET="$2"
ca9f4b81 14229 else
2693c0b0 14230 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14231 fi
1c00b503
PB
14232else
14233 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14234fi
14235
d1f8db0c
PB
14236else
14237 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14238fi
14239
4977bab6 14240
901119ae
KT
14241
14242
14243if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14244 if test -n "$with_build_time_tools"; then
5213506e
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14246$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14247 if test -x $with_build_time_tools/windmc; then
14248 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14249 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14251$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14252 else
5213506e
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254$as_echo "no" >&6; }
901119ae
KT
14255 fi
14256 elif test $build != $host && test $have_gcc_for_target = yes; then
14257 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14258 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14259 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14260 fi
14261fi
14262if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14263 # Extract the first word of "windmc", so it can be a program name with args.
14264set dummy windmc; ac_word=$2
5213506e
RW
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14267if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14268 $as_echo_n "(cached) " >&6
901119ae
KT
14269else
14270 case $WINDMC_FOR_TARGET in
14271 [\\/]* | ?:[\\/]*)
14272 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14273 ;;
14274 *)
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276for as_dir in $gcc_cv_tool_dirs
14277do
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
5213506e 14280 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14282 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14284 break 2
14285 fi
14286done
5213506e
RW
14287 done
14288IFS=$as_save_IFS
901119ae
KT
14289
14290 ;;
14291esac
14292fi
14293WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14294if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14296$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14297else
5213506e
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299$as_echo "no" >&6; }
901119ae
KT
14300fi
14301
5213506e 14302
901119ae
KT
14303fi
14304if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14305
14306
14307if test -n "$WINDMC_FOR_TARGET"; then
14308 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14309elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14310 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14311fi
14312
14313if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14314 for ncn_progname in windmc; do
14315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14316set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14319if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14320 $as_echo_n "(cached) " >&6
901119ae
KT
14321else
14322 if test -n "$WINDMC_FOR_TARGET"; then
14323 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14324else
14325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326for as_dir in $PATH
14327do
14328 IFS=$as_save_IFS
14329 test -z "$as_dir" && as_dir=.
5213506e 14330 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14332 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14334 break 2
14335 fi
14336done
5213506e
RW
14337 done
14338IFS=$as_save_IFS
901119ae
KT
14339
14340fi
14341fi
14342WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14343if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14345$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14346else
5213506e
RW
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348$as_echo "no" >&6; }
901119ae
KT
14349fi
14350
5213506e 14351
901119ae
KT
14352 done
14353fi
14354
14355if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14356 for ncn_progname in windmc; do
5213506e
RW
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14358$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14359 if test -x $with_build_time_tools/${ncn_progname}; then
14360 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362$as_echo "yes" >&6; }
901119ae
KT
14363 break
14364 else
5213506e
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366$as_echo "no" >&6; }
901119ae
KT
14367 fi
14368 done
14369fi
14370
14371if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14372 for ncn_progname in windmc; do
14373 if test -n "$ncn_target_tool_prefix"; then
14374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14375set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14378if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14379 $as_echo_n "(cached) " >&6
901119ae
KT
14380else
14381 if test -n "$WINDMC_FOR_TARGET"; then
14382 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14383else
14384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385for as_dir in $PATH
14386do
14387 IFS=$as_save_IFS
14388 test -z "$as_dir" && as_dir=.
5213506e 14389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14391 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14393 break 2
14394 fi
14395done
5213506e
RW
14396 done
14397IFS=$as_save_IFS
901119ae
KT
14398
14399fi
14400fi
14401WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14402if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14404$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14405else
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407$as_echo "no" >&6; }
901119ae
KT
14408fi
14409
5213506e 14410
901119ae
KT
14411 fi
14412 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14414set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14417if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14418 $as_echo_n "(cached) " >&6
901119ae
KT
14419else
14420 if test -n "$WINDMC_FOR_TARGET"; then
14421 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14422else
14423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424for as_dir in $PATH
14425do
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
5213506e 14428 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14430 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14432 break 2
14433 fi
14434done
5213506e
RW
14435 done
14436IFS=$as_save_IFS
901119ae
KT
14437
14438fi
14439fi
14440WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14441if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14443$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14444else
5213506e
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446$as_echo "no" >&6; }
901119ae
KT
14447fi
14448
5213506e 14449
901119ae
KT
14450 fi
14451 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14452 done
14453fi
14454
14455if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14456 set dummy windmc
14457 if test $build = $target ; then
14458 WINDMC_FOR_TARGET="$2"
14459 else
14460 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14461 fi
1c00b503
PB
14462else
14463 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14464fi
14465
14466else
14467 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14468fi
14469
14470
2abefe3d
PB
14471RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14472
5213506e
RW
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14474$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14475if test "x${build}" != "x${host}" ; then
e8b05380
PB
14476 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14477 # We already found the complete path
172e41aa 14478 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14481 else
14482 # Canadian cross, just use what we found
5213506e
RW
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484$as_echo "pre-installed" >&6; }
e8b05380 14485 fi
2abefe3d
PB
14486else
14487 ok=yes
14488 case " ${configdirs} " in
14489 *" binutils "*) ;;
14490 *) ok=no ;;
14491 esac
1c710c3c 14492
2abefe3d
PB
14493 if test $ok = yes; then
14494 # An in-tree tool is available and we can use it
14495 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497$as_echo "just compiled" >&6; }
e8b05380
PB
14498 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
172e41aa 14500 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14503 elif test "x$target" = "x$host"; then
14504 # We can use an host tool
14505 AR_FOR_TARGET='$(AR)'
5213506e
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507$as_echo "host tool" >&6; }
2abefe3d
PB
14508 else
14509 # We need a cross tool
5213506e
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511$as_echo "pre-installed" >&6; }
2abefe3d
PB
14512 fi
14513fi
0b0dc272 14514
5213506e
RW
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14516$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14517if test "x${build}" != "x${host}" ; then
e8b05380
PB
14518 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14519 # We already found the complete path
172e41aa 14520 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14522$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14523 else
14524 # Canadian cross, just use what we found
5213506e
RW
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526$as_echo "pre-installed" >&6; }
e8b05380 14527 fi
2abefe3d
PB
14528else
14529 ok=yes
14530 case " ${configdirs} " in
14531 *" gas "*) ;;
14532 *) ok=no ;;
14533 esac
1c710c3c 14534
2abefe3d
PB
14535 if test $ok = yes; then
14536 # An in-tree tool is available and we can use it
14537 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14539$as_echo "just compiled" >&6; }
e8b05380
PB
14540 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
172e41aa 14542 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14545 elif test "x$target" = "x$host"; then
14546 # We can use an host tool
14547 AS_FOR_TARGET='$(AS)'
5213506e
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14549$as_echo "host tool" >&6; }
2abefe3d
PB
14550 else
14551 # We need a cross tool
5213506e
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14553$as_echo "pre-installed" >&6; }
2abefe3d
PB
14554 fi
14555fi
0b0dc272 14556
5213506e
RW
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14558$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14559if test "x${build}" != "x${host}" ; then
e8b05380
PB
14560 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14561 # We already found the complete path
172e41aa 14562 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14564$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14565 else
14566 # Canadian cross, just use what we found
5213506e
RW
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568$as_echo "pre-installed" >&6; }
e8b05380 14569 fi
2abefe3d
PB
14570else
14571 ok=yes
14572 case " ${configdirs} " in
14573 *" gcc "*) ;;
14574 *) ok=no ;;
14575 esac
1c710c3c 14576
2abefe3d
PB
14577 if test $ok = yes; then
14578 # An in-tree tool is available and we can use it
14579 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14581$as_echo "just compiled" >&6; }
e8b05380
PB
14582 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
172e41aa 14584 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14587 elif test "x$target" = "x$host"; then
14588 # We can use an host tool
14589 CC_FOR_TARGET='$(CC)'
5213506e
RW
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14591$as_echo "host tool" >&6; }
2abefe3d
PB
14592 else
14593 # We need a cross tool
5213506e
RW
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595$as_echo "pre-installed" >&6; }
2abefe3d
PB
14596 fi
14597fi
0b0dc272 14598
5213506e
RW
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14600$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14601if test "x${build}" != "x${host}" ; then
e8b05380
PB
14602 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14603 # We already found the complete path
172e41aa 14604 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14606$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14607 else
14608 # Canadian cross, just use what we found
5213506e
RW
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610$as_echo "pre-installed" >&6; }
e8b05380 14611 fi
2abefe3d
PB
14612else
14613 ok=yes
14614 case " ${configdirs} " in
14615 *" gcc "*) ;;
14616 *) ok=no ;;
14617 esac
14618 case ,${enable_languages}, in
14619 *,c++,*) ;;
14620 *) ok=no ;;
14621 esac
14622 if test $ok = yes; then
14623 # An in-tree tool is available and we can use it
2077db1b 14624 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
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14626$as_echo "just compiled" >&6; }
e8b05380
PB
14627 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14628 # We already found the complete path
172e41aa 14629 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14631$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14632 elif test "x$target" = "x$host"; then
14633 # We can use an host tool
14634 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14636$as_echo "host tool" >&6; }
2abefe3d
PB
14637 else
14638 # We need a cross tool
5213506e
RW
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14640$as_echo "pre-installed" >&6; }
2abefe3d
PB
14641 fi
14642fi
0b0dc272 14643
5213506e
RW
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14645$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14646if test "x${build}" != "x${host}" ; then
e8b05380
PB
14647 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14648 # We already found the complete path
172e41aa 14649 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14651$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14652 else
14653 # Canadian cross, just use what we found
5213506e
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655$as_echo "pre-installed" >&6; }
e8b05380 14656 fi
2abefe3d
PB
14657else
14658 ok=yes
14659 case " ${configdirs} " in
14660 *" gcc "*) ;;
14661 *) ok=no ;;
14662 esac
14663 case ,${enable_languages}, in
14664 *,c++,*) ;;
14665 *) ok=no ;;
14666 esac
14667 if test $ok = yes; then
14668 # An in-tree tool is available and we can use it
2077db1b 14669 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
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14671$as_echo "just compiled" >&6; }
e8b05380
PB
14672 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14673 # We already found the complete path
172e41aa 14674 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14676$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14677 elif test "x$target" = "x$host"; then
14678 # We can use an host tool
14679 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14681$as_echo "host tool" >&6; }
2abefe3d
PB
14682 else
14683 # We need a cross tool
5213506e
RW
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14685$as_echo "pre-installed" >&6; }
2abefe3d
PB
14686 fi
14687fi
0b0dc272 14688
5213506e
RW
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14690$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14691if test "x${build}" != "x${host}" ; then
e8b05380
PB
14692 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14693 # We already found the complete path
172e41aa 14694 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14696$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14697 else
14698 # Canadian cross, just use what we found
5213506e
RW
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14700$as_echo "pre-installed" >&6; }
e8b05380 14701 fi
2abefe3d
PB
14702else
14703 ok=yes
14704 case " ${configdirs} " in
14705 *" binutils "*) ;;
14706 *) ok=no ;;
14707 esac
1c710c3c 14708
2abefe3d
PB
14709 if test $ok = yes; then
14710 # An in-tree tool is available and we can use it
14711 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14713$as_echo "just compiled" >&6; }
e8b05380
PB
14714 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14715 # We already found the complete path
172e41aa 14716 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14718$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14719 elif test "x$target" = "x$host"; then
14720 # We can use an host tool
14721 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14723$as_echo "host tool" >&6; }
2abefe3d
PB
14724 else
14725 # We need a cross tool
5213506e
RW
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14727$as_echo "pre-installed" >&6; }
2abefe3d
PB
14728 fi
14729fi
0b0dc272 14730
5213506e
RW
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14732$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14733if test "x${build}" != "x${host}" ; then
e8b05380
PB
14734 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14735 # We already found the complete path
172e41aa 14736 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14738$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14739 else
14740 # Canadian cross, just use what we found
5213506e
RW
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14742$as_echo "pre-installed" >&6; }
e8b05380 14743 fi
2abefe3d
PB
14744else
14745 ok=yes
14746 case " ${configdirs} " in
14747 *" gcc "*) ;;
14748 *) ok=no ;;
14749 esac
1c710c3c 14750
2abefe3d
PB
14751 if test $ok = yes; then
14752 # An in-tree tool is available and we can use it
14753 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14755$as_echo "just compiled" >&6; }
e8b05380
PB
14756 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14757 # We already found the complete path
172e41aa 14758 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14760$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14761 elif test "x$target" = "x$host"; then
14762 # We can use an host tool
14763 GCC_FOR_TARGET='$()'
5213506e
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14765$as_echo "host tool" >&6; }
2abefe3d
PB
14766 else
14767 # We need a cross tool
5213506e
RW
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14769$as_echo "pre-installed" >&6; }
2abefe3d
PB
14770 fi
14771fi
0b0dc272 14772
5213506e
RW
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14774$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14775if test "x${build}" != "x${host}" ; then
e8b05380
PB
14776 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14777 # We already found the complete path
172e41aa 14778 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14781 else
14782 # Canadian cross, just use what we found
5213506e
RW
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14784$as_echo "pre-installed" >&6; }
e8b05380 14785 fi
2abefe3d
PB
14786else
14787 ok=yes
14788 case " ${configdirs} " in
14789 *" gcc "*) ;;
14790 *) ok=no ;;
14791 esac
14792 case ,${enable_languages}, in
14793 *,fortran,*) ;;
14794 *) ok=no ;;
14795 esac
14796 if test $ok = yes; then
14797 # An in-tree tool is available and we can use it
14798 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14800$as_echo "just compiled" >&6; }
e8b05380
PB
14801 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14802 # We already found the complete path
172e41aa 14803 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14805$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14806 elif test "x$target" = "x$host"; then
14807 # We can use an host tool
14808 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14810$as_echo "host tool" >&6; }
2abefe3d
PB
14811 else
14812 # We need a cross tool
5213506e
RW
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14814$as_echo "pre-installed" >&6; }
2abefe3d
PB
14815 fi
14816fi
0b0dc272 14817
632e2a07
ILT
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14819$as_echo_n "checking where to find the target gccgo... " >&6; }
14820if test "x${build}" != "x${host}" ; then
14821 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14822 # We already found the complete path
14823 ac_dir=`dirname $GOC_FOR_TARGET`
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14825$as_echo "pre-installed in $ac_dir" >&6; }
14826 else
14827 # Canadian cross, just use what we found
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14829$as_echo "pre-installed" >&6; }
14830 fi
14831else
14832 ok=yes
14833 case " ${configdirs} " in
14834 *" gcc "*) ;;
14835 *) ok=no ;;
14836 esac
14837 case ,${enable_languages}, in
14838 *,go,*) ;;
14839 *) ok=no ;;
14840 esac
14841 if test $ok = yes; then
14842 # An in-tree tool is available and we can use it
14843 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14845$as_echo "just compiled" >&6; }
14846 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14847 # We already found the complete path
14848 ac_dir=`dirname $GOC_FOR_TARGET`
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14850$as_echo "pre-installed in $ac_dir" >&6; }
14851 elif test "x$target" = "x$host"; then
14852 # We can use an host tool
14853 GOC_FOR_TARGET='$(GOC)'
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14855$as_echo "host tool" >&6; }
14856 else
14857 # We need a cross tool
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14859$as_echo "pre-installed" >&6; }
14860 fi
14861fi
14862
b4c522fa
IB
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14864$as_echo_n "checking where to find the target gdc... " >&6; }
14865if test "x${build}" != "x${host}" ; then
14866 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14867 # We already found the complete path
14868 ac_dir=`dirname $GDC_FOR_TARGET`
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14870$as_echo "pre-installed in $ac_dir" >&6; }
14871 else
14872 # Canadian cross, just use what we found
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14874$as_echo "pre-installed" >&6; }
14875 fi
14876else
14877 ok=yes
14878 case " ${configdirs} " in
14879 *" gcc "*) ;;
14880 *) ok=no ;;
14881 esac
14882 case ,${enable_languages}, in
14883 *,d,*) ;;
14884 *) ok=no ;;
14885 esac
14886 if test $ok = yes; then
14887 # An in-tree tool is available and we can use it
14888 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14890$as_echo "just compiled" >&6; }
14891 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14892 # We already found the complete path
14893 ac_dir=`dirname $GDC_FOR_TARGET`
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14895$as_echo "pre-installed in $ac_dir" >&6; }
14896 elif test "x$target" = "x$host"; then
14897 # We can use an host tool
14898 GDC_FOR_TARGET='$(GDC)'
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14900$as_echo "host tool" >&6; }
14901 else
14902 # We need a cross tool
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14904$as_echo "pre-installed" >&6; }
14905 fi
14906fi
14907
5213506e
RW
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14909$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14910if test "x${build}" != "x${host}" ; then
e8b05380
PB
14911 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14912 # We already found the complete path
172e41aa 14913 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14915$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14916 else
14917 # Canadian cross, just use what we found
5213506e
RW
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14919$as_echo "pre-installed" >&6; }
e8b05380 14920 fi
2abefe3d
PB
14921else
14922 ok=yes
14923 case " ${configdirs} " in
14924 *" ld "*) ;;
14925 *) ok=no ;;
14926 esac
1c710c3c 14927
2abefe3d
PB
14928 if test $ok = yes; then
14929 # An in-tree tool is available and we can use it
14930 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14932$as_echo "just compiled" >&6; }
e8b05380
PB
14933 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14934 # We already found the complete path
172e41aa 14935 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14937$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14938 elif test "x$target" = "x$host"; then
14939 # We can use an host tool
14940 LD_FOR_TARGET='$(LD)'
5213506e
RW
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14942$as_echo "host tool" >&6; }
2abefe3d
PB
14943 else
14944 # We need a cross tool
5213506e
RW
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14946$as_echo "pre-installed" >&6; }
2abefe3d
PB
14947 fi
14948fi
0b0dc272 14949
5213506e
RW
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14951$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14952if test "x${build}" != "x${host}" ; then
e8b05380
PB
14953 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14954 # We already found the complete path
172e41aa 14955 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14957$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14958 else
14959 # Canadian cross, just use what we found
5213506e
RW
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14961$as_echo "pre-installed" >&6; }
e8b05380 14962 fi
2abefe3d 14963else
e8b05380
PB
14964 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14965 # We already found the complete path
172e41aa 14966 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14968$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14969 elif test "x$target" = "x$host"; then
2abefe3d
PB
14970 # We can use an host tool
14971 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14973$as_echo "host tool" >&6; }
2abefe3d
PB
14974 else
14975 # We need a cross tool
5213506e
RW
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14977$as_echo "pre-installed" >&6; }
2abefe3d
PB
14978 fi
14979fi
0b0dc272 14980
5213506e
RW
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14982$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14983if test "x${build}" != "x${host}" ; then
e8b05380
PB
14984 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14985 # We already found the complete path
172e41aa 14986 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14988$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14989 else
14990 # Canadian cross, just use what we found
5213506e
RW
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14992$as_echo "pre-installed" >&6; }
e8b05380 14993 fi
2abefe3d
PB
14994else
14995 ok=yes
14996 case " ${configdirs} " in
14997 *" binutils "*) ;;
14998 *) ok=no ;;
14999 esac
1c710c3c 15000
2abefe3d
PB
15001 if test $ok = yes; then
15002 # An in-tree tool is available and we can use it
15003 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15005$as_echo "just compiled" >&6; }
e8b05380
PB
15006 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15007 # We already found the complete path
172e41aa 15008 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15010$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15011 elif test "x$target" = "x$host"; then
15012 # We can use an host tool
15013 NM_FOR_TARGET='$(NM)'
5213506e
RW
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15015$as_echo "host tool" >&6; }
2abefe3d
PB
15016 else
15017 # We need a cross tool
5213506e
RW
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15019$as_echo "pre-installed" >&6; }
2abefe3d
PB
15020 fi
15021fi
0b0dc272 15022
9bccfdf5
AP
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15024$as_echo_n "checking where to find the target objcopy... " >&6; }
15025if test "x${build}" != "x${host}" ; then
15026 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15027 # We already found the complete path
15028 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15030$as_echo "pre-installed in $ac_dir" >&6; }
15031 else
15032 # Canadian cross, just use what we found
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15034$as_echo "pre-installed" >&6; }
15035 fi
15036else
15037 ok=yes
15038 case " ${configdirs} " in
15039 *" binutils "*) ;;
15040 *) ok=no ;;
15041 esac
15042
15043 if test $ok = yes; then
15044 # An in-tree tool is available and we can use it
15045 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15047$as_echo "just compiled" >&6; }
15048 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15049 # We already found the complete path
15050 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15052$as_echo "pre-installed in $ac_dir" >&6; }
15053 elif test "x$target" = "x$host"; then
15054 # We can use an host tool
ec8fd1c0 15055 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15057$as_echo "host tool" >&6; }
15058 else
15059 # We need a cross tool
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15061$as_echo "pre-installed" >&6; }
15062 fi
15063fi
15064
5213506e
RW
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15066$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 15067if test "x${build}" != "x${host}" ; then
e8b05380
PB
15068 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15069 # We already found the complete path
172e41aa 15070 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15072$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15073 else
15074 # Canadian cross, just use what we found
5213506e
RW
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15076$as_echo "pre-installed" >&6; }
e8b05380 15077 fi
2abefe3d
PB
15078else
15079 ok=yes
15080 case " ${configdirs} " in
15081 *" binutils "*) ;;
15082 *) ok=no ;;
15083 esac
1c710c3c 15084
2abefe3d
PB
15085 if test $ok = yes; then
15086 # An in-tree tool is available and we can use it
15087 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15089$as_echo "just compiled" >&6; }
e8b05380
PB
15090 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15091 # We already found the complete path
172e41aa 15092 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15094$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15095 elif test "x$target" = "x$host"; then
15096 # We can use an host tool
15097 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15099$as_echo "host tool" >&6; }
2abefe3d
PB
15100 else
15101 # We need a cross tool
5213506e
RW
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15103$as_echo "pre-installed" >&6; }
2abefe3d
PB
15104 fi
15105fi
0b0dc272 15106
e4a9a572
IS
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15108$as_echo_n "checking where to find the target otool... " >&6; }
15109if test "x${build}" != "x${host}" ; then
15110 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15111 # We already found the complete path
15112 ac_dir=`dirname $OTOOL_FOR_TARGET`
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15114$as_echo "pre-installed in $ac_dir" >&6; }
15115 else
15116 # Canadian cross, just use what we found
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15118$as_echo "pre-installed" >&6; }
15119 fi
15120else
15121 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15122 # We already found the complete path
15123 ac_dir=`dirname $OTOOL_FOR_TARGET`
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15125$as_echo "pre-installed in $ac_dir" >&6; }
15126 elif test "x$target" = "x$host"; then
15127 # We can use an host tool
15128 OTOOL_FOR_TARGET='$(OTOOL)'
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15130$as_echo "host tool" >&6; }
15131 else
15132 # We need a cross tool
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15134$as_echo "pre-installed" >&6; }
15135 fi
15136fi
15137
5213506e
RW
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15139$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15140if test "x${build}" != "x${host}" ; then
e8b05380
PB
15141 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15142 # We already found the complete path
172e41aa 15143 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15145$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15146 else
15147 # Canadian cross, just use what we found
5213506e
RW
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15149$as_echo "pre-installed" >&6; }
e8b05380 15150 fi
2abefe3d
PB
15151else
15152 ok=yes
15153 case " ${configdirs} " in
15154 *" binutils "*) ;;
15155 *) ok=no ;;
15156 esac
1c710c3c 15157
2abefe3d
PB
15158 if test $ok = yes; then
15159 # An in-tree tool is available and we can use it
15160 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15162$as_echo "just compiled" >&6; }
e8b05380
PB
15163 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15164 # We already found the complete path
172e41aa 15165 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15167$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15168 elif test "x$target" = "x$host"; then
15169 # We can use an host tool
15170 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15172$as_echo "host tool" >&6; }
2abefe3d
PB
15173 else
15174 # We need a cross tool
5213506e
RW
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15176$as_echo "pre-installed" >&6; }
2abefe3d
PB
15177 fi
15178fi
0b0dc272 15179
e7a82751
RM
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15181$as_echo_n "checking where to find the target readelf... " >&6; }
15182if test "x${build}" != "x${host}" ; then
15183 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15184 # We already found the complete path
15185 ac_dir=`dirname $READELF_FOR_TARGET`
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15187$as_echo "pre-installed in $ac_dir" >&6; }
15188 else
15189 # Canadian cross, just use what we found
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15191$as_echo "pre-installed" >&6; }
15192 fi
15193else
15194 ok=yes
15195 case " ${configdirs} " in
15196 *" binutils "*) ;;
15197 *) ok=no ;;
15198 esac
15199
15200 if test $ok = yes; then
15201 # An in-tree tool is available and we can use it
15202 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15204$as_echo "just compiled" >&6; }
15205 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15206 # We already found the complete path
15207 ac_dir=`dirname $READELF_FOR_TARGET`
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15209$as_echo "pre-installed in $ac_dir" >&6; }
15210 elif test "x$target" = "x$host"; then
15211 # We can use an host tool
15212 READELF_FOR_TARGET='$(READELF)'
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15214$as_echo "host tool" >&6; }
15215 else
15216 # We need a cross tool
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15218$as_echo "pre-installed" >&6; }
15219 fi
15220fi
15221
5213506e
RW
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15223$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15224if test "x${build}" != "x${host}" ; then
e8b05380
PB
15225 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15226 # We already found the complete path
172e41aa 15227 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15229$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15230 else
15231 # Canadian cross, just use what we found
5213506e
RW
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15233$as_echo "pre-installed" >&6; }
e8b05380 15234 fi
2abefe3d
PB
15235else
15236 ok=yes
15237 case " ${configdirs} " in
15238 *" binutils "*) ;;
15239 *) ok=no ;;
15240 esac
1c710c3c 15241
2abefe3d
PB
15242 if test $ok = yes; then
15243 # An in-tree tool is available and we can use it
455c8f48 15244 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15246$as_echo "just compiled" >&6; }
e8b05380
PB
15247 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15248 # We already found the complete path
172e41aa 15249 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15251$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15252 elif test "x$target" = "x$host"; then
15253 # We can use an host tool
15254 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15256$as_echo "host tool" >&6; }
2abefe3d
PB
15257 else
15258 # We need a cross tool
5213506e
RW
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15260$as_echo "pre-installed" >&6; }
2abefe3d
PB
15261 fi
15262fi
0b0dc272 15263
5213506e
RW
15264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15265$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15266if test "x${build}" != "x${host}" ; then
e8b05380
PB
15267 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15268 # We already found the complete path
172e41aa 15269 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15271$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15272 else
15273 # Canadian cross, just use what we found
5213506e
RW
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15275$as_echo "pre-installed" >&6; }
e8b05380 15276 fi
2abefe3d
PB
15277else
15278 ok=yes
15279 case " ${configdirs} " in
15280 *" binutils "*) ;;
15281 *) ok=no ;;
15282 esac
1c710c3c 15283
2abefe3d
PB
15284 if test $ok = yes; then
15285 # An in-tree tool is available and we can use it
15286 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15288$as_echo "just compiled" >&6; }
e8b05380
PB
15289 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15290 # We already found the complete path
172e41aa 15291 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15293$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15294 elif test "x$target" = "x$host"; then
15295 # We can use an host tool
15296 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15298$as_echo "host tool" >&6; }
2abefe3d
PB
15299 else
15300 # We need a cross tool
5213506e
RW
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15302$as_echo "pre-installed" >&6; }
2abefe3d 15303 fi
671aa708 15304fi
be912515 15305
5213506e
RW
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15307$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15308if test "x${build}" != "x${host}" ; then
15309 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15310 # We already found the complete path
15311 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15313$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15314 else
15315 # Canadian cross, just use what we found
5213506e
RW
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15317$as_echo "pre-installed" >&6; }
901119ae
KT
15318 fi
15319else
15320 ok=yes
15321 case " ${configdirs} " in
15322 *" binutils "*) ;;
15323 *) ok=no ;;
15324 esac
15325
15326 if test $ok = yes; then
15327 # An in-tree tool is available and we can use it
15328 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15330$as_echo "just compiled" >&6; }
901119ae
KT
15331 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15332 # We already found the complete path
15333 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15335$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15336 elif test "x$target" = "x$host"; then
15337 # We can use an host tool
15338 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15340$as_echo "host tool" >&6; }
901119ae
KT
15341 else
15342 # We need a cross tool
5213506e
RW
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15344$as_echo "pre-installed" >&6; }
901119ae
KT
15345 fi
15346fi
15347
be912515
NN
15348
15349
2abefe3d 15350
0b0dc272 15351
671aa708
NN
15352# Certain tools may need extra flags.
15353AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15354RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15355NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15356
2abefe3d
PB
15357# When building target libraries, except in a Canadian cross, we use
15358# the same toolchain as the compiler we just built.
15359COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15360COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15361COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15362if test $host = $build; then
15363 case " $configdirs " in
15364 *" gcc "*)
15365 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15366 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15367 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15368 ;;
15369 esac
15370fi
15371
15372
15373
15374
15375
5213506e
RW
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15377$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15378# Check whether --enable-maintainer-mode was given.
15379if test "${enable_maintainer_mode+set}" = set; then :
15380 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15381else
15382 USE_MAINTAINER_MODE=no
5213506e
RW
15383fi
15384
15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15386$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15387
15388
15389if test "$USE_MAINTAINER_MODE" = yes; then
15390 MAINTAINER_MODE_TRUE=
15391 MAINTAINER_MODE_FALSE='#'
15392else
15393 MAINTAINER_MODE_TRUE='#'
15394 MAINTAINER_MODE_FALSE=
1c710c3c 15395fi
ee03dc5e
AO
15396MAINT=$MAINTAINER_MODE_TRUE
15397
2805b53a
NN
15398# ---------------------
15399# GCC bootstrap support
15400# ---------------------
15401
15402# Stage specific cflags for build.
15403stage1_cflags="-g"
15404case $build in
15405 vax-*-*)
15406 case ${GCC} in
15407 yes) stage1_cflags="-g -Wa,-J" ;;
15408 *) stage1_cflags="-g -J" ;;
15409 esac ;;
2805b53a
NN
15410esac
15411
0b50988a 15412
2805b53a 15413
8efea775 15414# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15415# Check whether --enable-stage1-checking was given.
15416if test "${enable_stage1_checking+set}" = set; then :
15417 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15418else
e643dc23 15419 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15420 # For --disable-checking or implicit --enable-checking=release, avoid
15421 # setting --enable-checking=gc in the default stage1 checking for LTO
15422 # bootstraps. See PR62077.
c10b5ea0
JJ
15423 case $BUILD_CONFIG in
15424 *lto*)
7db11a5a
JJ
15425 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15426 *)
15427 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15428 esac
7db11a5a
JJ
15429 if test "x$enable_checking" = x && \
15430 test -d ${srcdir}/gcc && \
15431 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15432 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15433 fi
8efea775 15434else
e643dc23 15435 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15436fi
5213506e 15437fi
8efea775
PB
15438
15439
2aeb72e9 15440
5213506e
RW
15441# Enable -Werror in bootstrap stage2 and later.
15442# Check whether --enable-werror was given.
15443if test "${enable_werror+set}" = set; then :
15444 enableval=$enable_werror;
09a9c095
NN
15445case ${enable_werror} in
15446 yes) stage2_werror_flag="--enable-werror-always" ;;
15447 *) stage2_werror_flag="" ;;
2805b53a
NN
15448esac
15449
afd88efc
ML
15450else
15451
01c712cb
ML
15452if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15453 case $BUILD_CONFIG in
15454 bootstrap-debug)
15455 stage2_werror_flag="--enable-werror-always" ;;
15456 "")
15457 stage2_werror_flag="--enable-werror-always" ;;
15458 esac
15459fi
15460
afd88efc
ML
15461fi
15462
15463
01c712cb 15464
2805b53a 15465
f2689b09
SE
15466# Specify what files to not compare during bootstrap.
15467
15468compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15469case "$target" in
15470 hppa*64*-*-hpux*) ;;
4f943869
MK
15471 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15472 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
15473esac
15474
15475
5213506e
RW
15476ac_config_files="$ac_config_files Makefile"
15477
1c710c3c 15478cat >confcache <<\_ACEOF
671aa708
NN
15479# This file is a shell script that caches the results of configure
15480# tests run on this system so they can be shared between configure
1c710c3c
DJ
15481# scripts and configure runs, see configure's option --config-cache.
15482# It is not useful on other systems. If it contains results you don't
15483# want to keep, you may remove or edit it.
671aa708 15484#
1c710c3c
DJ
15485# config.status only pays attention to the cache file if you give it
15486# the --recheck option to rerun configure.
671aa708 15487#
1c710c3c
DJ
15488# `ac_cv_env_foo' variables (set or unset) will be overridden when
15489# loading this file, other *unset* `ac_cv_foo' will be assigned the
15490# following values.
15491
15492_ACEOF
15493
671aa708
NN
15494# The following way of writing the cache mishandles newlines in values,
15495# but we know of no workaround that is simple, portable, and efficient.
5213506e 15496# So, we kill variables containing newlines.
671aa708
NN
15497# Ultrix sh set writes to stderr and can't be redirected directly,
15498# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15499(
15500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15501 eval ac_val=\$$ac_var
15502 case $ac_val in #(
15503 *${as_nl}*)
15504 case $ac_var in #(
15505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15507 esac
15508 case $ac_var in #(
15509 _ | IFS | as_nl) ;; #(
15510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15511 *) { eval $ac_var=; unset $ac_var;} ;;
15512 esac ;;
15513 esac
15514 done
15515
1c710c3c 15516 (set) 2>&1 |
5213506e
RW
15517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15518 *${as_nl}ac_space=\ *)
15519 # `set' does not quote correctly, so add quotes: double-quote
15520 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15521 sed -n \
15522 "s/'/'\\\\''/g;
15523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15524 ;; #(
1c710c3c
DJ
15525 *)
15526 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15528 ;;
5213506e
RW
15529 esac |
15530 sort
15531) |
1c710c3c 15532 sed '
5213506e 15533 /^ac_cv_env_/b end
1c710c3c 15534 t clear
5213506e 15535 :clear
1c710c3c
DJ
15536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15537 t end
5213506e
RW
15538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15539 :end' >>confcache
15540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15541 if test -w "$cache_file"; then
22e05272 15542 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15544$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15545 if test ! -f "$cache_file" || test -h "$cache_file"; then
15546 cat confcache >"$cache_file"
15547 else
15548 case $cache_file in #(
15549 */* | ?:*)
15550 mv -f confcache "$cache_file"$$ &&
15551 mv -f "$cache_file"$$ "$cache_file" ;; #(
15552 *)
15553 mv -f confcache "$cache_file" ;;
15554 esac
15555 fi
15556 fi
671aa708 15557 else
5213506e
RW
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15560 fi
4977bab6 15561fi
671aa708 15562rm -f confcache
79c06341 15563
671aa708
NN
15564test "x$prefix" = xNONE && prefix=$ac_default_prefix
15565# Let make expand exec_prefix.
15566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15567
671aa708
NN
15568# Transform confdefs.h into DEFS.
15569# Protect against shell expansion while executing Makefile rules.
15570# Protect against Makefile macro expansion.
1c710c3c
DJ
15571#
15572# If the first sed substitution is executed (which looks for macros that
5213506e 15573# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15574# look for a macro that doesn't take arguments.
5213506e
RW
15575ac_script='
15576:mline
15577/\\$/{
15578 N
15579 s,\\\n,,
15580 b mline
15581}
1c710c3c 15582t clear
5213506e
RW
15583:clear
15584s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15585t quote
5213506e 15586s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15587t quote
5213506e
RW
15588b any
15589:quote
15590s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15591s/\[/\\&/g
15592s/\]/\\&/g
15593s/\$/$$/g
15594H
15595:any
15596${
15597 g
15598 s/^\n//
15599 s/\n/ /g
15600 p
15601}
15602'
15603DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15604
15605
15606ac_libobjs=
15607ac_ltlibobjs=
22e05272 15608U=
1c710c3c
DJ
15609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15610 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15614 # will be set to the directory where LIBOBJS objects are built.
15615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15617done
15618LIBOBJS=$ac_libobjs
fb0103e5 15619
1c710c3c 15620LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15621
af71363e 15622
1c710c3c 15623
22e05272 15624: "${CONFIG_STATUS=./config.status}"
5213506e 15625ac_write_fail=0
1c710c3c
DJ
15626ac_clean_files_save=$ac_clean_files
15627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15629$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15630as_write_fail=0
15631cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15632#! $SHELL
15633# Generated by $as_me.
671aa708 15634# Run this file to recreate the current configuration.
671aa708 15635# Compiler output produced by configure, useful for debugging
1c710c3c 15636# configure, is in config.log if it exists.
0b0dc272 15637
1c710c3c
DJ
15638debug=false
15639ac_cs_recheck=false
15640ac_cs_silent=false
1c710c3c 15641
5213506e
RW
15642SHELL=\${CONFIG_SHELL-$SHELL}
15643export SHELL
15644_ASEOF
15645cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15646## -------------------- ##
15647## M4sh Initialization. ##
15648## -------------------- ##
15649
15650# Be more Bourne compatible
15651DUALCASE=1; export DUALCASE # for MKS sh
15652if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15653 emulate sh
15654 NULLCMD=:
5213506e 15655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15656 # is contrary to our usage. Disable this feature.
15657 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15658 setopt NO_GLOB_SUBST
15659else
15660 case `(set -o) 2>/dev/null` in #(
15661 *posix*) :
15662 set -o posix ;; #(
15663 *) :
15664 ;;
15665esac
1c710c3c 15666fi
1c710c3c 15667
5213506e
RW
15668
15669as_nl='
15670'
15671export as_nl
15672# Printing a long string crashes Solaris 7 /usr/bin/printf.
15673as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15676# Prefer a ksh shell builtin over an external printf program on Solaris,
15677# but without wasting forks for bash or zsh.
15678if test -z "$BASH_VERSION$ZSH_VERSION" \
15679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='print -r --'
15681 as_echo_n='print -rn --'
15682elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15683 as_echo='printf %s\n'
15684 as_echo_n='printf %s'
15685else
15686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15688 as_echo_n='/usr/ucb/echo -n'
15689 else
15690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15691 as_echo_n_body='eval
15692 arg=$1;
15693 case $arg in #(
15694 *"$as_nl"*)
15695 expr "X$arg" : "X\\(.*\\)$as_nl";
15696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15697 esac;
15698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15699 '
15700 export as_echo_n_body
15701 as_echo_n='sh -c $as_echo_n_body as_echo'
15702 fi
15703 export as_echo_body
15704 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15705fi
15706
5213506e
RW
15707# The user is always right.
15708if test "${PATH_SEPARATOR+set}" != set; then
15709 PATH_SEPARATOR=:
15710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15712 PATH_SEPARATOR=';'
15713 }
15714fi
15715
15716
15717# IFS
15718# We need space, tab and new line, in precisely that order. Quoting is
15719# there to prevent editors from complaining about space-tab.
15720# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15721# splitting by setting IFS to empty value.)
15722IFS=" "" $as_nl"
15723
15724# Find who we are. Look in the path if we contain no directory separator.
22e05272 15725as_myself=
5213506e
RW
15726case $0 in #((
15727 *[\\/]* ) as_myself=$0 ;;
15728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729for as_dir in $PATH
15730do
15731 IFS=$as_save_IFS
15732 test -z "$as_dir" && as_dir=.
15733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15734 done
15735IFS=$as_save_IFS
15736
15737 ;;
15738esac
15739# We did not find ourselves, most probably we were run as `sh COMMAND'
15740# in which case we are not to be found in the path.
15741if test "x$as_myself" = x; then
15742 as_myself=$0
15743fi
15744if test ! -f "$as_myself"; then
15745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15746 exit 1
15747fi
1c710c3c 15748
5213506e
RW
15749# Unset variables that we do not need and which cause bugs (e.g. in
15750# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15751# suppresses any "Segmentation fault" message there. '((' could
15752# trigger a bug in pdksh 5.2.14.
15753for as_var in BASH_ENV ENV MAIL MAILPATH
15754do eval test x\${$as_var+set} = xset \
15755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15756done
1c710c3c
DJ
15757PS1='$ '
15758PS2='> '
15759PS4='+ '
15760
15761# NLS nuisances.
5213506e
RW
15762LC_ALL=C
15763export LC_ALL
15764LANGUAGE=C
15765export LANGUAGE
15766
15767# CDPATH.
15768(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15769
15770
22e05272
JM
15771# as_fn_error STATUS ERROR [LINENO LOG_FD]
15772# ----------------------------------------
5213506e
RW
15773# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15774# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15775# script with STATUS, using 1 if that was 0.
5213506e
RW
15776as_fn_error ()
15777{
22e05272
JM
15778 as_status=$1; test $as_status -eq 0 && as_status=1
15779 if test "$4"; then
15780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15782 fi
22e05272 15783 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15784 as_fn_exit $as_status
15785} # as_fn_error
15786
15787
15788# as_fn_set_status STATUS
15789# -----------------------
15790# Set $? to STATUS, without forking.
15791as_fn_set_status ()
15792{
15793 return $1
15794} # as_fn_set_status
15795
15796# as_fn_exit STATUS
15797# -----------------
15798# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15799as_fn_exit ()
15800{
15801 set +e
15802 as_fn_set_status $1
15803 exit $1
15804} # as_fn_exit
15805
15806# as_fn_unset VAR
15807# ---------------
15808# Portably unset VAR.
15809as_fn_unset ()
15810{
15811 { eval $1=; unset $1;}
15812}
15813as_unset=as_fn_unset
15814# as_fn_append VAR VALUE
15815# ----------------------
15816# Append the text in VALUE to the end of the definition contained in VAR. Take
15817# advantage of any shell optimizations that allow amortized linear growth over
15818# repeated appends, instead of the typical quadratic growth present in naive
15819# implementations.
15820if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15821 eval 'as_fn_append ()
15822 {
15823 eval $1+=\$2
15824 }'
15825else
15826 as_fn_append ()
15827 {
15828 eval $1=\$$1\$2
15829 }
15830fi # as_fn_append
15831
15832# as_fn_arith ARG...
15833# ------------------
15834# Perform arithmetic evaluation on the ARGs, and store the result in the
15835# global $as_val. Take advantage of shells that can avoid forks. The arguments
15836# must be portable across $(()) and expr.
15837if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15838 eval 'as_fn_arith ()
15839 {
15840 as_val=$(( $* ))
15841 }'
15842else
15843 as_fn_arith ()
15844 {
15845 as_val=`expr "$@" || test $? -eq 1`
15846 }
15847fi # as_fn_arith
15848
1c710c3c 15849
5213506e
RW
15850if expr a : '\(a\)' >/dev/null 2>&1 &&
15851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15852 as_expr=expr
15853else
15854 as_expr=false
15855fi
15856
5213506e 15857if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15858 as_basename=basename
15859else
15860 as_basename=false
15861fi
15862
5213506e
RW
15863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15864 as_dirname=dirname
15865else
15866 as_dirname=false
15867fi
1c710c3c 15868
5213506e 15869as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15870$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15871 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15873$as_echo X/"$0" |
15874 sed '/^.*\/\([^/][^/]*\)\/*$/{
15875 s//\1/
15876 q
15877 }
15878 /^X\/\(\/\/\)$/{
15879 s//\1/
15880 q
15881 }
15882 /^X\/\(\/\).*/{
15883 s//\1/
15884 q
15885 }
15886 s/.*/./; q'`
2aeb72e9 15887
2aeb72e9
DD
15888# Avoid depending upon Character Ranges.
15889as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15890as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15891as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15892as_cr_digits='0123456789'
15893as_cr_alnum=$as_cr_Letters$as_cr_digits
15894
5213506e
RW
15895ECHO_C= ECHO_N= ECHO_T=
15896case `echo -n x` in #(((((
15897-n*)
15898 case `echo 'xy\c'` in
15899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15900 xy) ECHO_C='\c';;
15901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15902 ECHO_T=' ';;
15903 esac;;
15904*)
15905 ECHO_N='-n';;
1c710c3c
DJ
15906esac
15907
5213506e
RW
15908rm -f conf$$ conf$$.exe conf$$.file
15909if test -d conf$$.dir; then
15910 rm -f conf$$.dir/conf$$.file
1c710c3c 15911else
5213506e
RW
15912 rm -f conf$$.dir
15913 mkdir conf$$.dir 2>/dev/null
1c710c3c 15914fi
5213506e
RW
15915if (echo >conf$$.file) 2>/dev/null; then
15916 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15917 as_ln_s='ln -s'
5213506e
RW
15918 # ... but there are two gotchas:
15919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15921 # In both cases, we have to default to `cp -pR'.
5213506e 15922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15923 as_ln_s='cp -pR'
5213506e
RW
15924 elif ln conf$$.file conf$$ 2>/dev/null; then
15925 as_ln_s=ln
15926 else
22e05272 15927 as_ln_s='cp -pR'
2aeb72e9 15928 fi
1c710c3c 15929else
22e05272 15930 as_ln_s='cp -pR'
1c710c3c 15931fi
5213506e
RW
15932rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15933rmdir conf$$.dir 2>/dev/null
15934
15935
15936# as_fn_mkdir_p
15937# -------------
15938# Create "$as_dir" as a directory, including parents if necessary.
15939as_fn_mkdir_p ()
15940{
15941
15942 case $as_dir in #(
15943 -*) as_dir=./$as_dir;;
15944 esac
15945 test -d "$as_dir" || eval $as_mkdir_p || {
15946 as_dirs=
15947 while :; do
15948 case $as_dir in #(
15949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15950 *) as_qdir=$as_dir;;
15951 esac
15952 as_dirs="'$as_qdir' $as_dirs"
15953 as_dir=`$as_dirname -- "$as_dir" ||
15954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15955 X"$as_dir" : 'X\(//\)[^/]' \| \
15956 X"$as_dir" : 'X\(//\)$' \| \
15957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15958$as_echo X"$as_dir" |
15959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\/\)[^/].*/{
15964 s//\1/
15965 q
15966 }
15967 /^X\(\/\/\)$/{
15968 s//\1/
15969 q
15970 }
15971 /^X\(\/\).*/{
15972 s//\1/
15973 q
15974 }
15975 s/.*/./; q'`
15976 test -d "$as_dir" && break
15977 done
15978 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15980
1c710c3c 15981
5213506e 15982} # as_fn_mkdir_p
1c710c3c 15983if mkdir -p . 2>/dev/null; then
5213506e 15984 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15985else
15986 test -d ./-p && rmdir ./-p
15987 as_mkdir_p=false
15988fi
15989
22e05272
JM
15990
15991# as_fn_executable_p FILE
15992# -----------------------
15993# Test if FILE is an executable regular file.
15994as_fn_executable_p ()
15995{
15996 test -f "$1" && test -x "$1"
15997} # as_fn_executable_p
15998as_test_x='test -x'
15999as_executable_p=as_fn_executable_p
1c710c3c
DJ
16000
16001# Sed expression to map a string onto a valid CPP name.
16002as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16003
16004# Sed expression to map a string onto a valid variable name.
16005as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16006
16007
1c710c3c 16008exec 6>&1
5213506e
RW
16009## ----------------------------------- ##
16010## Main body of $CONFIG_STATUS script. ##
16011## ----------------------------------- ##
16012_ASEOF
16013test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16014
16015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 16017# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16018# values after options handling.
16019ac_log="
1c710c3c 16020This file was extended by $as_me, which was
22e05272 16021generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
16022
16023 CONFIG_FILES = $CONFIG_FILES
16024 CONFIG_HEADERS = $CONFIG_HEADERS
16025 CONFIG_LINKS = $CONFIG_LINKS
16026 CONFIG_COMMANDS = $CONFIG_COMMANDS
16027 $ $0 $@
16028
5213506e
RW
16029on `(hostname || uname -n) 2>/dev/null | sed 1q`
16030"
16031
1c710c3c
DJ
16032_ACEOF
16033
5213506e
RW
16034case $ac_config_files in *"
16035"*) set x $ac_config_files; shift; ac_config_files=$*;;
16036esac
1c710c3c 16037
2aeb72e9 16038
2aeb72e9 16039
5213506e
RW
16040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041# Files that config.status was made for.
16042config_files="$ac_config_files"
1c710c3c 16043
5213506e 16044_ACEOF
2aeb72e9 16045
5213506e 16046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 16047ac_cs_usage="\
5213506e
RW
16048\`$as_me' instantiates files and other configuration actions
16049from templates according to the current configuration. Unless the files
16050and actions are specified as TAGs, all are instantiated by default.
1c710c3c 16051
5213506e 16052Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
16053
16054 -h, --help print this help, then exit
5213506e 16055 -V, --version print version number and configuration settings, then exit
22e05272 16056 --config print configuration, then exit
5213506e
RW
16057 -q, --quiet, --silent
16058 do not print progress messages
1c710c3c
DJ
16059 -d, --debug don't remove temporary files
16060 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16061 --file=FILE[:TEMPLATE]
16062 instantiate the configuration file FILE
1c710c3c
DJ
16063
16064Configuration files:
16065$config_files
16066
5213506e 16067Report bugs to the package provider."
2aeb72e9 16068
5213506e
RW
16069_ACEOF
16070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16071ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
16072ac_cs_version="\\
16073config.status
22e05272
JM
16074configured by $0, generated by GNU Autoconf 2.69,
16075 with options \\"\$ac_cs_config\\"
1c710c3c 16076
22e05272 16077Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
16078This config.status script is free software; the Free Software Foundation
16079gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16080
16081ac_pwd='$ac_pwd'
16082srcdir='$srcdir'
16083INSTALL='$INSTALL'
87264276 16084AWK='$AWK'
5213506e 16085test -n "\$AWK" || AWK=awk
1c710c3c
DJ
16086_ACEOF
16087
5213506e
RW
16088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16089# The default lists apply if the user does not specify any file.
1c710c3c
DJ
16090ac_need_defaults=:
16091while test $# != 0
a4b9e93e 16092do
1c710c3c 16093 case $1 in
22e05272 16094 --*=?*)
5213506e
RW
16095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
16097 ac_shift=:
16098 ;;
22e05272
JM
16099 --*=)
16100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16101 ac_optarg=
16102 ac_shift=:
16103 ;;
5213506e 16104 *)
1c710c3c
DJ
16105 ac_option=$1
16106 ac_optarg=$2
16107 ac_shift=shift
16108 ;;
1c710c3c
DJ
16109 esac
16110
16111 case $ac_option in
16112 # Handling of the options.
671aa708 16113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16114 ac_cs_recheck=: ;;
5213506e
RW
16115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16116 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16117 --config | --confi | --conf | --con | --co | --c )
16118 $as_echo "$ac_cs_config"; exit ;;
5213506e 16119 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16120 debug=: ;;
16121 --file | --fil | --fi | --f )
16122 $ac_shift
5213506e
RW
16123 case $ac_optarg in
16124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16125 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16126 esac
16127 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16128 ac_need_defaults=false;;
5213506e
RW
16129 --he | --h | --help | --hel | -h )
16130 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16133 ac_cs_silent=: ;;
16134
16135 # This is an error.
22e05272 16136 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16137Try \`$0 --help' for more information." ;;
1c710c3c 16138
5213506e
RW
16139 *) as_fn_append ac_config_targets " $1"
16140 ac_need_defaults=false ;;
1c710c3c 16141
0b0dc272 16142 esac
1c710c3c 16143 shift
0b0dc272
AM
16144done
16145
1c710c3c 16146ac_configure_extra_args=
0b0dc272 16147
1c710c3c
DJ
16148if $ac_cs_silent; then
16149 exec 6>/dev/null
16150 ac_configure_extra_args="$ac_configure_extra_args --silent"
16151fi
0b0dc272 16152
1c710c3c 16153_ACEOF
5213506e 16154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16155if \$ac_cs_recheck; then
22e05272 16156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16157 shift
16158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16159 CONFIG_SHELL='$SHELL'
16160 export CONFIG_SHELL
16161 exec "\$@"
1c710c3c
DJ
16162fi
16163
16164_ACEOF
5213506e
RW
16165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166exec 5>>config.log
16167{
16168 echo
16169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16170## Running $as_me. ##
16171_ASBOX
16172 $as_echo "$ac_log"
16173} >&5
1c710c3c 16174
5213506e
RW
16175_ACEOF
16176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16177#
16178# INIT-COMMANDS
16179#
16180extrasub_build="$extrasub_build"
16181 extrasub_host="$extrasub_host"
16182 extrasub_target="$extrasub_target"
16183
5213506e 16184_ACEOF
1c710c3c 16185
5213506e 16186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16187
5213506e 16188# Handling of arguments.
1c710c3c
DJ
16189for ac_config_target in $ac_config_targets
16190do
5213506e
RW
16191 case $ac_config_target in
16192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16193
22e05272 16194 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16195 esac
16196done
16197
5213506e 16198
1c710c3c
DJ
16199# If the user did not use the arguments to specify the items to instantiate,
16200# then the envvar interface is used. Set only those that are not.
16201# We use the long form for the default assignment because of an extremely
16202# bizarre bug on SunOS 4.1.3.
16203if $ac_need_defaults; then
16204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16205fi
16206
16207# Have a temporary directory for convenience. Make it in the build tree
5213506e 16208# simply because there is no reason against having it here, and in addition,
1c710c3c 16209# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16210# Hook for its removal unless debugging.
16211# Note that there is a small window in which the directory will not be cleaned:
16212# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16213$debug ||
16214{
22e05272 16215 tmp= ac_tmp=
5213506e 16216 trap 'exit_status=$?
22e05272
JM
16217 : "${ac_tmp:=$tmp}"
16218 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16219' 0
16220 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16221}
1c710c3c
DJ
16222# Create a (secure) tmp directory for tmp files.
16223
16224{
5213506e 16225 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16226 test -d "$tmp"
1c710c3c
DJ
16227} ||
16228{
5213506e
RW
16229 tmp=./conf$$-$RANDOM
16230 (umask 077 && mkdir "$tmp")
22e05272
JM
16231} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16232ac_tmp=$tmp
5213506e
RW
16233
16234# Set up the scripts for CONFIG_FILES section.
16235# No need to generate them if there are no CONFIG_FILES.
16236# This happens for instance with `./config.status config.h'.
16237if test -n "$CONFIG_FILES"; then
16238
16239if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16240 ac_cs_awk_getline=:
16241 ac_cs_awk_pipe_init=
16242 ac_cs_awk_read_file='
16243 while ((getline aline < (F[key])) > 0)
16244 print(aline)
16245 close(F[key])'
16246 ac_cs_awk_pipe_fini=
16247else
16248 ac_cs_awk_getline=false
16249 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16250 ac_cs_awk_read_file='
16251 print "|#_!!_#|"
16252 print "cat " F[key] " &&"
16253 '$ac_cs_awk_pipe_init
16254 # The final `:' finishes the AND list.
16255 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16256fi
16257ac_cr=`echo X | tr X '\015'`
16258# On cygwin, bash can eat \r inside `` if the user requested igncr.
16259# But we know of no other shell where ac_cr would be empty at this
16260# point, so we can use a bashism as a fallback.
16261if test "x$ac_cr" = x; then
16262 eval ac_cr=\$\'\\r\'
16263fi
16264ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16265if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16266 ac_cs_awk_cr='\\r'
5213506e
RW
16267else
16268 ac_cs_awk_cr=$ac_cr
16269fi
16270
22e05272 16271echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16272_ACEOF
16273
16274# Create commands to substitute file output variables.
1c710c3c 16275{
5213506e 16276 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16277 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16278 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16279 echo "_ACAWK" &&
16280 echo "_ACEOF"
16281} >conf$$files.sh &&
16282. ./conf$$files.sh ||
22e05272 16283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16284rm -f conf$$files.sh
1c710c3c 16285
5213506e
RW
16286{
16287 echo "cat >conf$$subs.awk <<_ACEOF" &&
16288 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16289 echo "_ACEOF"
16290} >conf$$subs.sh ||
22e05272
JM
16291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16292ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16293ac_delim='%!_!# '
16294for ac_last_try in false false false false false :; do
16295 . ./conf$$subs.sh ||
22e05272 16296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16297
16298 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16299 if test $ac_delim_n = $ac_delim_num; then
16300 break
16301 elif $ac_last_try; then
22e05272 16302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16303 else
16304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16305 fi
16306done
16307rm -f conf$$subs.sh
16308
16309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16310cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16311_ACEOF
5213506e
RW
16312sed -n '
16313h
16314s/^/S["/; s/!.*/"]=/
16315p
16316g
16317s/^[^!]*!//
16318:repl
16319t repl
16320s/'"$ac_delim"'$//
16321t delim
16322:nl
16323h
22e05272 16324s/\(.\{148\}\)..*/\1/
5213506e
RW
16325t more1
16326s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16327p
16328n
16329b repl
16330:more1
16331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16332p
16333g
16334s/.\{148\}//
16335t nl
16336:delim
16337h
22e05272 16338s/\(.\{148\}\)..*/\1/
5213506e
RW
16339t more2
16340s/["\\]/\\&/g; s/^/"/; s/$/"/
16341p
16342b
16343:more2
16344s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16345p
16346g
16347s/.\{148\}//
16348t delim
16349' <conf$$subs.awk | sed '
16350/^[^""]/{
16351 N
16352 s/\n//
16353}
16354' >>$CONFIG_STATUS || ac_write_fail=1
16355rm -f conf$$subs.awk
16356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16357_ACAWK
22e05272 16358cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16359 for (key in S) S_is_set[key] = 1
16360 FS = "\a"
16361 \$ac_cs_awk_pipe_init
16362}
16363{
16364 line = $ 0
16365 nfields = split(line, field, "@")
16366 substed = 0
16367 len = length(field[1])
16368 for (i = 2; i < nfields; i++) {
16369 key = field[i]
16370 keylen = length(key)
16371 if (S_is_set[key]) {
16372 value = S[key]
16373 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16374 len += length(value) + length(field[++i])
16375 substed = 1
16376 } else
16377 len += 1 + keylen
16378 }
16379 if (nfields == 3 && !substed) {
16380 key = field[2]
16381 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16382 \$ac_cs_awk_read_file
16383 next
16384 }
16385 }
16386 print line
16387}
16388\$ac_cs_awk_pipe_fini
16389_ACAWK
16390_ACEOF
16391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16394else
16395 cat
22e05272
JM
16396fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16397 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16398_ACEOF
16399
22e05272
JM
16400# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16401# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16402# trailing colons and then remove the whole line if VPATH becomes empty
16403# (actually we leave an empty line to preserve line numbers).
16404if test "x$srcdir" = x.; then
22e05272
JM
16405 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16406h
16407s///
16408s/^/:/
16409s/[ ]*$/:/
16410s/:\$(srcdir):/:/g
16411s/:\${srcdir}:/:/g
16412s/:@srcdir@:/:/g
16413s/^:*//
5213506e 16414s/:*$//
22e05272
JM
16415x
16416s/\(=[ ]*\).*/\1/
16417G
16418s/\n//
5213506e
RW
16419s/^[^=]*=[ ]*$//
16420}'
16421fi
2aeb72e9 16422
5213506e
RW
16423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16424fi # test -n "$CONFIG_FILES"
2aeb72e9 16425
1c710c3c 16426
5213506e
RW
16427eval set X " :F $CONFIG_FILES "
16428shift
16429for ac_tag
16430do
16431 case $ac_tag in
16432 :[FHLC]) ac_mode=$ac_tag; continue;;
16433 esac
16434 case $ac_mode$ac_tag in
16435 :[FHL]*:*);;
22e05272 16436 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16437 :[FH]-) ac_tag=-:-;;
16438 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16439 esac
16440 ac_save_IFS=$IFS
16441 IFS=:
16442 set x $ac_tag
16443 IFS=$ac_save_IFS
16444 shift
16445 ac_file=$1
16446 shift
79c06341 16447
5213506e
RW
16448 case $ac_mode in
16449 :L) ac_source=$1;;
16450 :[FH])
16451 ac_file_inputs=
16452 for ac_f
16453 do
16454 case $ac_f in
22e05272 16455 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16456 *) # Look for the file first in the build tree, then in the source tree
16457 # (if the path is not absolute). The absolute path cannot be DOS-style,
16458 # because $ac_f cannot contain `:'.
16459 test -f "$ac_f" ||
16460 case $ac_f in
16461 [\\/$]*) false;;
16462 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16463 esac ||
22e05272 16464 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16465 esac
16466 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16467 as_fn_append ac_file_inputs " '$ac_f'"
16468 done
1c710c3c 16469
5213506e
RW
16470 # Let's still pretend it is `configure' which instantiates (i.e., don't
16471 # use $as_me), people would be surprised to read:
16472 # /* config.h. Generated by config.status. */
16473 configure_input='Generated from '`
16474 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16475 `' by configure.'
16476 if test x"$ac_file" != x-; then
16477 configure_input="$ac_file. $configure_input"
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16479$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16480 fi
5213506e
RW
16481 # Neutralize special characters interpreted by sed in replacement strings.
16482 case $configure_input in #(
16483 *\&* | *\|* | *\\* )
16484 ac_sed_conf_input=`$as_echo "$configure_input" |
16485 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16486 *) ac_sed_conf_input=$configure_input;;
16487 esac
11a67599 16488
5213506e 16489 case $ac_tag in
22e05272
JM
16490 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16492 esac
16493 ;;
11a67599
ZW
16494 esac
16495
5213506e 16496 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16498 X"$ac_file" : 'X\(//\)[^/]' \| \
16499 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16501$as_echo X"$ac_file" |
16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16503 s//\1/
16504 q
16505 }
16506 /^X\(\/\/\)[^/].*/{
16507 s//\1/
16508 q
16509 }
16510 /^X\(\/\/\)$/{
16511 s//\1/
16512 q
16513 }
16514 /^X\(\/\).*/{
16515 s//\1/
16516 q
16517 }
16518 s/.*/./; q'`
16519 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16520 ac_builddir=.
0b0dc272 16521
5213506e
RW
16522case "$ac_dir" in
16523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16524*)
16525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16526 # A ".." for each directory in $ac_dir_suffix.
16527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16528 case $ac_top_builddir_sub in
16529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16531 esac ;;
16532esac
16533ac_abs_top_builddir=$ac_pwd
16534ac_abs_builddir=$ac_pwd$ac_dir_suffix
16535# for backward compatibility:
16536ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16537
16538case $srcdir in
5213506e 16539 .) # We are building in place.
1c710c3c 16540 ac_srcdir=.
5213506e
RW
16541 ac_top_srcdir=$ac_top_builddir_sub
16542 ac_abs_top_srcdir=$ac_pwd ;;
16543 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16544 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16545 ac_top_srcdir=$srcdir
16546 ac_abs_top_srcdir=$srcdir ;;
16547 *) # Relative name.
16548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16549 ac_top_srcdir=$ac_top_build_prefix$srcdir
16550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16551esac
5213506e 16552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16553
0b0dc272 16554
5213506e
RW
16555 case $ac_mode in
16556 :F)
16557 #
16558 # CONFIG_FILE
16559 #
1c710c3c
DJ
16560
16561 case $INSTALL in
16562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16563 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16564 esac
5213506e 16565_ACEOF
11a67599 16566
5213506e
RW
16567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568# If the template does not know about datarootdir, expand it.
16569# FIXME: This hack should be removed a few years after 2.60.
16570ac_datarootdir_hack=; ac_datarootdir_seen=
16571ac_sed_dataroot='
16572/datarootdir/ {
16573 p
16574 q
16575}
16576/@datadir@/p
16577/@docdir@/p
16578/@infodir@/p
16579/@localedir@/p
16580/@mandir@/p'
16581case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16582*datarootdir*) ac_datarootdir_seen=yes;;
16583*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16585$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16586_ACEOF
5213506e
RW
16587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16588 ac_datarootdir_hack='
16589 s&@datadir@&$datadir&g
16590 s&@docdir@&$docdir&g
16591 s&@infodir@&$infodir&g
16592 s&@localedir@&$localedir&g
16593 s&@mandir@&$mandir&g
16594 s&\\\${datarootdir}&$datarootdir&g' ;;
16595esac
16596_ACEOF
16597
16598# Neutralize VPATH when `$srcdir' = `.'.
16599# Shell code in configure.ac might set extrasub.
16600# FIXME: do we really want to maintain this feature?
16601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16602ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16603$extrasub
16604_ACEOF
5213506e 16605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16606:t
16607/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16608s|@configure_input@|$ac_sed_conf_input|;t t
16609s&@top_builddir@&$ac_top_builddir_sub&;t t
16610s&@top_build_prefix@&$ac_top_build_prefix&;t t
16611s&@srcdir@&$ac_srcdir&;t t
16612s&@abs_srcdir@&$ac_abs_srcdir&;t t
16613s&@top_srcdir@&$ac_top_srcdir&;t t
16614s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16615s&@builddir@&$ac_builddir&;t t
16616s&@abs_builddir@&$ac_abs_builddir&;t t
16617s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16618s&@INSTALL@&$ac_INSTALL&;t t
16619$ac_datarootdir_hack
16620"
16621eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16622if $ac_cs_awk_getline; then
22e05272 16623 $AWK -f "$ac_tmp/subs.awk"
5213506e 16624else
22e05272
JM
16625 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16626fi \
16627 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16628
16629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16630 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16632 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16634which seems to be undefined. Please make sure it is defined" >&5
5213506e 16635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16636which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16637
22e05272 16638 rm -f "$ac_tmp/stdin"
5213506e 16639 case $ac_file in
22e05272
JM
16640 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16641 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16642 esac \
22e05272 16643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16644 ;;
11a67599 16645
11a67599 16646
79c06341 16647
5213506e
RW
16648 esac
16649
3e54529c
RW
16650
16651 case $ac_file$ac_mode in
16652 "Makefile":F) sed "$extrasub_build" Makefile |
16653 sed "$extrasub_host" |
16654 sed "$extrasub_target" > mf$$
16655 mv -f mf$$ Makefile ;;
16656
16657 esac
5213506e
RW
16658done # for ac_tag
16659
16660
16661as_fn_exit 0
1c710c3c 16662_ACEOF
1c710c3c
DJ
16663ac_clean_files=$ac_clean_files_save
16664
5213506e 16665test $ac_write_fail = 0 ||
22e05272 16666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16667
1c710c3c
DJ
16668
16669# configure is writing to config.log, and then calls config.status.
16670# config.status does its own redirection, appending to config.log.
16671# Unfortunately, on DOS this fails, as config.log is still kept open
16672# by configure, so config.status won't be able to write to it; its
16673# output is simply discarded. So we exec the FD to /dev/null,
16674# effectively closing config.log, so it can be properly (re)opened and
16675# appended to by config.status. When coming back to configure, we
16676# need to make the FD available again.
16677if test "$no_create" != yes; then
16678 ac_cs_success=:
16679 ac_config_status_args=
16680 test "$silent" = yes &&
16681 ac_config_status_args="$ac_config_status_args --quiet"
16682 exec 5>/dev/null
16683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16684 exec 5>>config.log
16685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16686 # would make configure fail if this is the last instruction.
22e05272 16687 $ac_cs_success || as_fn_exit 1
5213506e
RW
16688fi
16689if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16691$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16692fi
79c06341 16693