]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[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
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
9bccfdf5 607OBJCOPY_FOR_TARGET
5213506e
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
b4c522fa 614GDC_FOR_TARGET
632e2a07 615GOC_FOR_TARGET
5213506e 616GFORTRAN_FOR_TARGET
5213506e
RW
617GCC_FOR_TARGET
618CXX_FOR_TARGET
619CC_FOR_TARGET
e7a82751 620READELF
5213506e
RW
621OBJDUMP
622OBJCOPY
623WINDMC
624WINDRES
625STRIP
626RANLIB
627NM
628LIPO
629LD
630DLLTOOL
631AS
632AR
633RUNTEST
634EXPECT
635MAKEINFO
636FLEX
637LEX
638M4
639BISON
640YACC
5213506e
RW
641WINDRES_FOR_BUILD
642WINDMC_FOR_BUILD
643RANLIB_FOR_BUILD
644NM_FOR_BUILD
645LD_FOR_BUILD
646LDFLAGS_FOR_BUILD
b4c522fa 647GDC_FOR_BUILD
632e2a07 648GOC_FOR_BUILD
5213506e 649GFORTRAN_FOR_BUILD
5213506e
RW
650DLLTOOL_FOR_BUILD
651CXX_FOR_BUILD
652CXXFLAGS_FOR_BUILD
653CFLAGS_FOR_BUILD
654CC_FOR_BUILD
655AS_FOR_BUILD
656AR_FOR_BUILD
aae29963 657target_configdirs
5213506e 658configdirs
5213506e 659build_configdirs
5213506e
RW
660INSTALL_GDB_TK
661GDB_TK
662CONFIGURE_GDB_TK
663build_tooldir
664tooldir
665GCC_SHLIB_SUBDIR
666RPATH_ENVVAR
ffedf511
RW
667target_configargs
668host_configargs
669build_configargs
e12c4094 670BUILD_CONFIG
6f57bdf6 671LDFLAGS_FOR_TARGET
5213506e
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 676get_gcc_base_ver
1c01ebf6 677extra_host_zlib_configure_flags
d7f09764 678extra_host_libiberty_configure_flags
fca38047 679stage1_languages
cdfee50a 680host_shared
45b3824d
TS
681extra_linker_plugin_flags
682extra_linker_plugin_configure_flags
33ad93b9 683islinc
eae1a5d4 684isllibs
5213506e 685poststage1_ldflags
ed2eaa9f 686poststage1_libs
5213506e 687stage1_ldflags
0b21f5d3 688stage1_libs
0ff2d841 689extra_isl_gmp_configure_flags
5213506e
RW
690extra_mpc_mpfr_configure_flags
691extra_mpc_gmp_configure_flags
692extra_mpfr_configure_flags
693gmpinc
694gmplibs
695do_compare
696GNATMAKE
697GNATBIND
698ac_ct_CXX
699CXXFLAGS
700CXX
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
5f520819 708extra_liboffloadmic_configure_flags
5213506e
RW
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
87264276
PB
713AWK
714SED
5213506e
RW
715LN_S
716LN
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728target_noncanonical
729host_noncanonical
730build_noncanonical
731build_os
732build_vendor
733build_cpu
734build
735TOPLEVEL_CONFIGURE_ARGUMENTS
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='serialization_dependencies
775host_makefile_frag
776target_makefile_frag
777alphaieee_frag
778ospace_frag'
779ac_user_opts='
780enable_option_checking
781with_build_libsubdir
a05c2c75 782with_system_zlib
85c64bbe
BS
783enable_as_accelerator_for
784enable_offload_targets
5213506e 785enable_gold
21539e2e 786enable_ld
78edb32f 787enable_compressed_debug_sections
87e6d9dc
TB
788enable_libquadmath
789enable_libquadmath_support
5213506e
RW
790enable_libada
791enable_libssp
1873ec0c 792enable_libstdcxx
5f520819 793enable_liboffloadmic
ff3ac0f4 794enable_bootstrap
5213506e
RW
795with_mpc
796with_mpc_include
797with_mpc_lib
798with_mpfr_dir
799with_mpfr
800with_mpfr_include
801with_mpfr_lib
802with_gmp_dir
803with_gmp
804with_gmp_include
805with_gmp_lib
5213506e 806with_stage1_libs
0b21f5d3 807with_stage1_ldflags
5213506e 808with_boot_libs
ed2eaa9f 809with_boot_ldflags
33ad93b9
RG
810with_isl
811with_isl_include
812with_isl_lib
813enable_isl_version_check
d7f09764 814enable_lto
45b3824d
TS
815enable_linker_plugin_configure_flags
816enable_linker_plugin_flags
cdfee50a 817enable_host_shared
5213506e 818enable_stage1_languages
43c40f3e 819enable_objc_gc
114bf3f1
MK
820with_target_bdw_gc
821with_target_bdw_gc_include
822with_target_bdw_gc_lib
3c36aa6b 823with_gcc_major_version_only
5213506e
RW
824with_build_sysroot
825with_debug_prefix_map
5646b7b9 826with_build_config
beeda1d9 827enable_vtable_verify
5213506e
RW
828enable_serial_configure
829with_build_time_tools
830enable_maintainer_mode
831enable_stage1_checking
832enable_werror
5213506e
RW
833'
834 ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842CXX
843CXXFLAGS
844CCC
ffedf511
RW
845build_configargs
846host_configargs
847target_configargs
5213506e
RW
848AR
849AS
850DLLTOOL
851LD
852LIPO
853NM
854RANLIB
855STRIP
856WINDRES
857WINDMC
858OBJCOPY
859OBJDUMP
e7a82751 860READELF
5213506e
RW
861CC_FOR_TARGET
862CXX_FOR_TARGET
863GCC_FOR_TARGET
5213506e 864GFORTRAN_FOR_TARGET
632e2a07 865GOC_FOR_TARGET
b4c522fa 866GDC_FOR_TARGET
5213506e
RW
867AR_FOR_TARGET
868AS_FOR_TARGET
869DLLTOOL_FOR_TARGET
870LD_FOR_TARGET
871LIPO_FOR_TARGET
872NM_FOR_TARGET
9bccfdf5 873OBJCOPY_FOR_TARGET
5213506e
RW
874OBJDUMP_FOR_TARGET
875RANLIB_FOR_TARGET
e7a82751 876READELF_FOR_TARGET
5213506e
RW
877STRIP_FOR_TARGET
878WINDRES_FOR_TARGET
879WINDMC_FOR_TARGET'
880
671aa708
NN
881
882# Initialize some variables set by options.
1c710c3c
DJ
883ac_init_help=
884ac_init_version=false
5213506e
RW
885ac_unrecognized_opts=
886ac_unrecognized_sep=
671aa708
NN
887# The variables have the same names as the options, with
888# dashes changed to underlines.
1c710c3c 889cache_file=/dev/null
671aa708 890exec_prefix=NONE
671aa708 891no_create=
671aa708
NN
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
671aa708
NN
900verbose=
901x_includes=NONE
902x_libraries=NONE
1c710c3c
DJ
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 909# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
5213506e
RW
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
671aa708
NN
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
671aa708
NN
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
5213506e
RW
920docdir='${datarootdir}/doc/${PACKAGE}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
79c06341 929
671aa708 930ac_prev=
5213506e 931ac_dashdash=
671aa708
NN
932for ac_option
933do
671aa708
NN
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
5213506e 936 eval $ac_prev=\$ac_option
671aa708
NN
937 ac_prev=
938 continue
939 fi
79c06341 940
5213506e 941 case $ac_option in
22e05272
JM
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
5213506e 945 esac
671aa708
NN
946
947 # Accept the important Cygnus configure options, so we can diagnose typos.
948
5213506e
RW
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
671aa708
NN
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 956 bindir=$ac_optarg ;;
671aa708
NN
957
958 -build | --build | --buil | --bui | --bu)
1c710c3c 959 ac_prev=build_alias ;;
671aa708 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 961 build_alias=$ac_optarg ;;
671aa708
NN
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
671aa708 972
5213506e 973 -datadir | --datadir | --datadi | --datad)
671aa708 974 ac_prev=datadir ;;
5213506e 975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 976 datadir=$ac_optarg ;;
671aa708 977
5213506e
RW
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
671aa708 985 -disable-* | --disable-*)
5213506e 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 987 # Reject names that are not valid shell variable names.
5213506e 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 989 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"enable_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
671aa708
NN
1010
1011 -enable-* | --enable-*)
5213506e 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1013 # Reject names that are not valid shell variable names.
5213506e 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1015 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
2aeb72e9 1024 esac
5213506e 1025 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1c710c3c 1034 exec_prefix=$ac_optarg ;;
671aa708
NN
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1c710c3c
DJ
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
671aa708
NN
1046
1047 -host | --host | --hos | --ho)
1c710c3c 1048 ac_prev=host_alias ;;
671aa708 1049 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1050 host_alias=$ac_optarg ;;
671aa708 1051
5213506e
RW
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
671aa708
NN
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1063 includedir=$ac_optarg ;;
671aa708
NN
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1068 infodir=$ac_optarg ;;
671aa708
NN
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1073 libdir=$ac_optarg ;;
671aa708
NN
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1080 libexecdir=$ac_optarg ;;
671aa708 1081
5213506e
RW
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
671aa708 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1088 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1092 localstatedir=$ac_optarg ;;
671aa708
NN
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1097 mandir=$ac_optarg ;;
671aa708
NN
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1104 | --no-cr | --no-c | -n)
671aa708
NN
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1118 oldincludedir=$ac_optarg ;;
671aa708
NN
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1123 prefix=$ac_optarg ;;
671aa708
NN
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1130 program_prefix=$ac_optarg ;;
671aa708
NN
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1137 program_suffix=$ac_optarg ;;
671aa708
NN
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1154 program_transform_name=$ac_optarg ;;
671aa708 1155
5213506e
RW
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
671aa708
NN
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1c710c3c 1174 sbindir=$ac_optarg ;;
671aa708
NN
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1c710c3c 1185 sharedstatedir=$ac_optarg ;;
671aa708
NN
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1c710c3c 1190 site=$ac_optarg ;;
671aa708
NN
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1195 srcdir=$ac_optarg ;;
671aa708
NN
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1202 sysconfdir=$ac_optarg ;;
671aa708
NN
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1205 ac_prev=target_alias ;;
671aa708 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1207 target_alias=$ac_optarg ;;
671aa708
NN
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1c710c3c
DJ
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
671aa708
NN
1214
1215 -with-* | --with-*)
5213506e 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1217 # Reject names that are not valid shell variable names.
5213506e 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1219 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
2aeb72e9 1228 esac
5213506e 1229 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1230
1231 -without-* | --without-*)
5213506e 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1233 # Reject names that are not valid shell variable names.
5213506e 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1235 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240"with_$ac_useropt"
1241"*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
671aa708
NN
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1256 x_includes=$ac_optarg ;;
671aa708
NN
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1263 x_libraries=$ac_optarg ;;
671aa708 1264
22e05272
JM
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266Try \`$0 --help' for more information"
671aa708
NN
1267 ;;
1268
1c710c3c
DJ
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
5213506e
RW
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1277 export $ac_envvar ;;
1278
671aa708 1279 *)
1c710c3c 1280 # FIXME: should be removed in autoconf 3.0.
5213506e 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1285 ;;
1286
1287 esac
1288done
1289
1290if test -n "$ac_prev"; then
1c710c3c 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1292 as_fn_error $? "missing argument to $ac_option"
af71363e 1293fi
af71363e 1294
5213506e
RW
1295if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
22e05272 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1300 esac
5213506e 1301fi
2aeb72e9 1302
5213506e
RW
1303# Check all directory arguments for consistency.
1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
2aeb72e9 1308do
5213506e
RW
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
2aeb72e9 1317 case $ac_val in
5213506e
RW
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1320 esac
22e05272 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1322done
1323
1c710c3c
DJ
1324# There might be people who depend on the old broken behavior: `$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
0b0dc272 1330
1c710c3c
DJ
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1c710c3c
DJ
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
671aa708 1344
671aa708 1345
5213506e
RW
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1349 as_fn_error $? "working directory cannot be determined"
5213506e 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1351 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1352
1353
671aa708
NN
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
5213506e
RW
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
671aa708 1381 srcdir=$ac_confdir
5213506e 1382 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
5213506e
RW
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1391fi
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
22e05272 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
87841584
AM
1406case $srcdir in
1407 *" "*)
22e05272 1408 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1409 ;;
1410esac
ac9e6043
RW
1411ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1412
5213506e
RW
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
1c710c3c
DJ
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427\`configure' configures this package to adapt to many kinds of systems.
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
22e05272 1441 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1c710c3c
DJ
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1449 [$ac_default_prefix]
1c710c3c 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1451 [PREFIX]
1c710c3c
DJ
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
5213506e
RW
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1480_ACEOF
1481
1482 cat <<\_ACEOF
1483
1484Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497
1498 cat <<\_ACEOF
1499
1500Optional Features:
5213506e 1501 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1506 host triple by ARG
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET[=DIR]. Use optional path to find
1510 offload target compiler during the build
21539e2e 1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1513 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1514 Enable compressed debug sections for gas, gold or ld
1515 by default
87e6d9dc
TB
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support for Fortran
30b74385
RW
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
1873ec0c 1521 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1524 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1525 --disable-isl-version-check
560d18d3 1526 disable check for isl version
d7f09764 1527 --enable-lto enable link time optimization support
45b3824d
TS
1528 --enable-linker-plugin-configure-flags=FLAGS
1529 additional flags for configuring linker plugins
1530 [none]
1531 --enable-linker-plugin-flags=FLAGS
1532 additional flags for configuring and building linker
1533 plugins [none]
cdfee50a 1534 --enable-host-shared build host code as shared libraries
33e39b66
AS
1535 --enable-stage1-languages[=all]
1536 choose additional languages to build during stage1.
1537 Mostly useful for compiler development
43c40f3e
RO
1538 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1539 Objective-C runtime
318a4e6d 1540 --enable-vtable-verify Enable vtable verification feature
30b74385 1541 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1542 force sequential configuration of sub-packages for
1543 the host, target or build machine, or all
1544 sub-packages
1545 --enable-maintainer-mode
1546 enable make rules and dependencies not useful (and
1547 sometimes confusing) to the casual installer
1548 --enable-stage1-checking[=all]
1549 choose additional checking for stage1 of the
1550 compiler
1c710c3c
DJ
1551 --enable-werror enable -Werror in bootstrap stage2 and later
1552
1553Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1557 --with-system-zlib use installed libz
33e39b66
AS
1558 --with-mpc=PATH specify prefix directory for installed MPC package.
1559 Equivalent to --with-mpc-include=PATH/include plus
1560 --with-mpc-lib=PATH/lib
1561 --with-mpc-include=PATH specify directory for installed MPC include files
1562 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1563 --with-mpfr-dir=PATH this option has been REMOVED
1564 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1565 Equivalent to --with-mpfr-include=PATH/include plus
1566 --with-mpfr-lib=PATH/lib
1c710c3c 1567 --with-mpfr-include=PATH
30b74385
RW
1568 specify directory for installed MPFR include files
1569 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1570 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1571 --with-gmp=PATH specify prefix directory for the installed GMP
1572 package. Equivalent to
1573 --with-gmp-include=PATH/include plus
1574 --with-gmp-lib=PATH/lib
30b74385
RW
1575 --with-gmp-include=PATH specify directory for installed GMP include files
1576 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1577 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1578 --with-stage1-ldflags=FLAGS
1579 linker flags for stage1
33e39b66
AS
1580 --with-boot-libs=LIBS libraries for stage2 and later
1581 --with-boot-ldflags=FLAGS
1582 linker flags for stage2 and later
e357a5e0 1583 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1584 package. Equivalent to
33ad93b9
RG
1585 --with-isl-include=PATH/include plus
1586 --with-isl-lib=PATH/lib
560d18d3
AK
1587 --with-isl-include=PATH Specify directory for installed isl include files
1588 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1589 --with-target-bdw-gc=PATHLIST
1590 specify prefix directory for installed bdw-gc
1591 package. Equivalent to
1592 --with-target-bdw-gc-include=PATH/include plus
1593 --with-target-bdw-gc-lib=PATH/lib
1594 --with-target-bdw-gc-include=PATHLIST
1595 specify directories for installed bdw-gc include
1596 files
1597 --with-target-bdw-gc-lib=PATHLIST
1598 specify directories for installed bdw-gc library
3c36aa6b
JJ
1599 --with-gcc-major-version-only
1600 use only GCC major number in filesystem paths
30b74385 1601 --with-build-sysroot=SYSROOT
1c710c3c 1602 use sysroot as the system root during the build
c8aea42c 1603 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1604 map A to B, C to D ... in debug information
1605 --with-build-config='NAME NAME2...'
1606 use config/NAME.mk build configuration
30b74385 1607 --with-build-time-tools=PATH
1c710c3c 1608 use given path to find target tools during the build
1c710c3c
DJ
1609
1610Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
5213506e 1615 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1617 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1618 CXX C++ compiler command
1619 CXXFLAGS C++ compiler flags
ffedf511
RW
1620 build_configargs
1621 additional configure arguments for build directories
1622 host_configargs
1623 additional configure arguments for host directories
1624 target_configargs
1625 additional configure arguments for target directories
278a7a38
AO
1626 AR AR for the host
1627 AS AS for the host
1628 DLLTOOL DLLTOOL for the host
1629 LD LD for the host
1630 LIPO LIPO for the host
1631 NM NM for the host
1632 RANLIB RANLIB for the host
1633 STRIP STRIP for the host
1634 WINDRES WINDRES for the host
901119ae 1635 WINDMC WINDMC for the host
278a7a38
AO
1636 OBJCOPY OBJCOPY for the host
1637 OBJDUMP OBJDUMP for the host
e7a82751 1638 READELF READELF for the host
278a7a38
AO
1639 CC_FOR_TARGET
1640 CC for the target
1641 CXX_FOR_TARGET
1642 CXX for the target
1643 GCC_FOR_TARGET
1644 GCC for the target
278a7a38
AO
1645 GFORTRAN_FOR_TARGET
1646 GFORTRAN for the target
632e2a07
ILT
1647 GOC_FOR_TARGET
1648 GOC for the target
b4c522fa
IB
1649 GDC_FOR_TARGET
1650 GDC for the target
278a7a38
AO
1651 AR_FOR_TARGET
1652 AR for the target
1653 AS_FOR_TARGET
1654 AS for the target
1655 DLLTOOL_FOR_TARGET
1656 DLLTOOL for the target
1657 LD_FOR_TARGET
1658 LD for the target
1659 LIPO_FOR_TARGET
1660 LIPO for the target
1661 NM_FOR_TARGET
1662 NM for the target
9bccfdf5
AP
1663 OBJCOPY_FOR_TARGET
1664 OBJCOPY for the target
278a7a38
AO
1665 OBJDUMP_FOR_TARGET
1666 OBJDUMP for the target
1667 RANLIB_FOR_TARGET
1668 RANLIB for the target
e7a82751
RM
1669 READELF_FOR_TARGET
1670 READELF for the target
278a7a38
AO
1671 STRIP_FOR_TARGET
1672 STRIP for the target
1673 WINDRES_FOR_TARGET
1674 WINDRES for the target
901119ae
KT
1675 WINDMC_FOR_TARGET
1676 WINDMC for the target
1c710c3c
DJ
1677
1678Use these variables to override the choices made by `configure' or to help
1679it to find libraries and programs with nonstandard names/locations.
1680
5213506e 1681Report bugs to the package provider.
1c710c3c 1682_ACEOF
5213506e 1683ac_status=$?
1c710c3c
DJ
1684fi
1685
1686if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1c710c3c 1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1c710c3c
DJ
1692 ac_builddir=.
1693
5213506e
RW
1694case "$ac_dir" in
1695.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696*)
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704esac
1705ac_abs_top_builddir=$ac_pwd
1706ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707# for backward compatibility:
1708ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1709
1710case $srcdir in
5213506e 1711 .) # We are building in place.
1c710c3c 1712 ac_srcdir=.
5213506e
RW
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1716 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1723esac
5213506e
RW
1724ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1734 else
5213506e
RW
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1738 done
1739fi
1740
5213506e 1741test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1742if $ac_init_version; then
1743 cat <<\_ACEOF
5213506e 1744configure
22e05272 1745generated by GNU Autoconf 2.69
1c710c3c 1746
22e05272 1747Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1748This configure script is free software; the Free Software Foundation
1749gives unlimited permission to copy, distribute and modify it.
1750_ACEOF
5213506e 1751 exit
0b0dc272 1752fi
5213506e
RW
1753
1754## ------------------------ ##
1755## Autoconf initialization. ##
1756## ------------------------ ##
1757
1758# ac_fn_c_try_compile LINENO
1759# --------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
22e05272
JM
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
5213506e
RW
1793
1794} # ac_fn_c_try_compile
1795
1796# ac_fn_cxx_try_compile LINENO
1797# ----------------------------
1798# Try to compile conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_compile ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823else
1824 $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828fi
22e05272
JM
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
5213506e
RW
1831
1832} # ac_fn_cxx_try_compile
1833
0b21f5d3
EB
1834# ac_fn_cxx_try_link LINENO
1835# -------------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_cxx_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
22e05272 1861 test -x conftest$ac_exeext
0b21f5d3
EB
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
0b21f5d3
EB
1877
1878} # ac_fn_cxx_try_link
1879
5213506e
RW
1880# ac_fn_c_try_link LINENO
1881# -----------------------
1882# Try to link conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_c_try_link ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
22e05272 1907 test -x conftest$ac_exeext
5213506e
RW
1908 }; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
5213506e
RW
1923
1924} # ac_fn_c_try_link
1925cat >config.log <<_ACEOF
1c710c3c
DJ
1926This file contains any messages produced by compilers while
1927running configure, to aid debugging if configure makes a mistake.
1928
1929It was created by $as_me, which was
22e05272 1930generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1931
1932 $ $0 $@
1933
1934_ACEOF
5213506e 1935exec 5>>config.log
1c710c3c
DJ
1936{
1937cat <<_ASUNAME
1938## --------- ##
1939## Platform. ##
1940## --------- ##
1941
1942hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1950
1951/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1954/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1955/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958
1959_ASUNAME
1960
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
5213506e
RW
1966 $as_echo "PATH: $as_dir"
1967 done
1968IFS=$as_save_IFS
1c710c3c
DJ
1969
1970} >&5
1971
1972cat >&5 <<_ACEOF
1973
1974
1975## ----------- ##
1976## Core tests. ##
1977## ----------- ##
1978
1979_ACEOF
1980
1981
1982# Keep a trace of the command line.
1983# Strip out --no-create and --no-recursion so they do not pile up.
1984# Strip out --silent because we don't want to record it for future runs.
1985# Also quote any args containing shell meta-characters.
1986# Make two passes to allow for proper duplicate-argument suppression.
1987ac_configure_args=
1988ac_configure_args0=
1989ac_configure_args1=
1c710c3c
DJ
1990ac_must_keep_next=false
1991for ac_pass in 1 2
1992do
1993 for ac_arg
1994 do
1995 case $ac_arg in
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
1999 continue ;;
5213506e
RW
2000 *\'*)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2002 esac
2003 case $ac_pass in
5213506e 2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2005 2)
5213506e 2006 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2009 else
2010 case $ac_arg in
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017 esac
2018 ;;
2019 -* ) ac_must_keep_next=true ;;
2020 esac
2021 fi
5213506e 2022 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2023 ;;
2024 esac
2025 done
2026done
5213506e
RW
2027{ ac_configure_args0=; unset ac_configure_args0;}
2028{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2029
2030# When interrupted or exit'd, cleanup temporary files, and complete
2031# config.log. We remove comments because anyway the quotes in there
2032# would cause problems or look ugly.
5213506e
RW
2033# WARNING: Use '\'' to represent an apostrophe within the trap.
2034# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2035trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2037 {
2038 echo
2039
22e05272 2040 $as_echo "## ---------------- ##
1c710c3c 2041## Cache variables. ##
22e05272 2042## ---------------- ##"
1c710c3c
DJ
2043 echo
2044 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2045(
2046 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in #(
2049 *${as_nl}*)
2050 case $ac_var in #(
2051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2053 esac
2054 case $ac_var in #(
2055 _ | IFS | as_nl) ;; #(
2056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2057 *) { eval $ac_var=; unset $ac_var;} ;;
2058 esac ;;
2059 esac
2060 done
1c710c3c 2061 (set) 2>&1 |
5213506e
RW
2062 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2063 *${as_nl}ac_space=\ *)
1c710c3c 2064 sed -n \
5213506e
RW
2065 "s/'\''/'\''\\\\'\'''\''/g;
2066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2067 ;; #(
1c710c3c 2068 *)
5213506e 2069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2070 ;;
5213506e
RW
2071 esac |
2072 sort
2073)
1c710c3c
DJ
2074 echo
2075
22e05272 2076 $as_echo "## ----------------- ##
1c710c3c 2077## Output variables. ##
22e05272 2078## ----------------- ##"
1c710c3c
DJ
2079 echo
2080 for ac_var in $ac_subst_vars
2081 do
5213506e
RW
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2087 done | sort
2088 echo
2089
2090 if test -n "$ac_subst_files"; then
22e05272 2091 $as_echo "## ------------------- ##
5213506e 2092## File substitutions. ##
22e05272 2093## ------------------- ##"
1c710c3c
DJ
2094 echo
2095 for ac_var in $ac_subst_files
2096 do
5213506e
RW
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2102 done | sort
2103 echo
2104 fi
2105
2106 if test -s confdefs.h; then
22e05272 2107 $as_echo "## ----------- ##
1c710c3c 2108## confdefs.h. ##
22e05272 2109## ----------- ##"
1c710c3c 2110 echo
5213506e 2111 cat confdefs.h
1c710c3c
DJ
2112 echo
2113 fi
2114 test "$ac_signal" != 0 &&
5213506e
RW
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
1c710c3c 2117 } >&5
5213506e
RW
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2120 exit $exit_status
5213506e 2121' 0
1c710c3c 2122for ac_signal in 1 2 13 15; do
5213506e 2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2124done
2125ac_signal=0
2126
2127# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2128rm -f -r conftest* confdefs.h
2129
2130$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2131
2132# Predefined preprocessor variables.
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_NAME "$PACKAGE_NAME"
2136_ACEOF
2137
1c710c3c
DJ
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140_ACEOF
2141
1c710c3c
DJ
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_VERSION "$PACKAGE_VERSION"
2144_ACEOF
0b0dc272 2145
1c710c3c
DJ
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_STRING "$PACKAGE_STRING"
2148_ACEOF
2149
1c710c3c
DJ
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152_ACEOF
2153
5213506e
RW
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_URL "$PACKAGE_URL"
2156_ACEOF
2157
1c710c3c
DJ
2158
2159# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2160# Prefer an explicitly selected file to automatically selected ones.
2161ac_site_file1=NONE
2162ac_site_file2=NONE
2163if test -n "$CONFIG_SITE"; then
22e05272
JM
2164 # We do not want a PATH search for config.site.
2165 case $CONFIG_SITE in #((
2166 -*) ac_site_file1=./$CONFIG_SITE;;
2167 */*) ac_site_file1=$CONFIG_SITE;;
2168 *) ac_site_file1=./$CONFIG_SITE;;
2169 esac
5213506e
RW
2170elif test "x$prefix" != xNONE; then
2171 ac_site_file1=$prefix/share/config.site
2172 ac_site_file2=$prefix/etc/config.site
2173else
2174 ac_site_file1=$ac_default_prefix/share/config.site
2175 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2176fi
5213506e
RW
2177for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2178do
2179 test "x$ac_site_file" = xNONE && continue
22e05272 2180 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2182$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2183 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2184 . "$ac_site_file" \
2185 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187as_fn_error $? "failed to load site script $ac_site_file
2188See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2189 fi
2190done
2191
2192if test -r "$cache_file"; then
22e05272
JM
2193 # Some versions of bash will fail to source /dev/null (special files
2194 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2195 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2197$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2198 case $cache_file in
5213506e
RW
2199 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2200 *) . "./$cache_file";;
1c710c3c
DJ
2201 esac
2202 fi
671aa708 2203else
5213506e
RW
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2205$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2206 >$cache_file
2207fi
2208
2209# Check that the precious variables saved in the cache have kept the same
2210# value.
2211ac_cache_corrupted=false
5213506e 2212for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2214 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2215 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2216 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2217 case $ac_old_set,$ac_new_set in
2218 set,)
5213506e
RW
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2220$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2221 ac_cache_corrupted=: ;;
2222 ,set)
5213506e
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2224$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2225 ac_cache_corrupted=: ;;
2226 ,);;
2227 *)
2228 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2229 # differences in whitespace do not lead to failure.
2230 ac_old_val_w=`echo x $ac_old_val`
2231 ac_new_val_w=`echo x $ac_new_val`
2232 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2234$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2235 ac_cache_corrupted=:
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2238$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2239 eval $ac_var=\$ac_old_val
2240 fi
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2242$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2244$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2245 fi;;
2246 esac
2247 # Pass precious variables to config.status.
2248 if test "$ac_new_set" = set; then
2249 case $ac_new_val in
5213506e 2250 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2251 *) ac_arg=$ac_var=$ac_new_val ;;
2252 esac
2253 case " $ac_configure_args " in
2254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2255 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2256 esac
2257 fi
2258done
2259if $ac_cache_corrupted; then
5213506e
RW
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2263$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2264 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2265fi
5213506e
RW
2266## -------------------- ##
2267## Main body of script. ##
2268## -------------------- ##
671aa708 2269
2aeb72e9
DD
2270ac_ext=c
2271ac_cpp='$CPP $CPPFLAGS'
2272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275
1c710c3c
DJ
2276
2277
2278
1c710c3c
DJ
2279
2280
0115d4a3 2281
1c710c3c 2282
ad33ff57
RW
2283progname=$0
2284# if PWD already has a value, it is probably wrong.
2285if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2286
2287# Export original configure arguments for use by sub-configures.
2288# Quote arguments with shell meta charatcers.
2289TOPLEVEL_CONFIGURE_ARGUMENTS=
2290set -- "$progname" "$@"
2291for ac_arg
2292do
2293 case "$ac_arg" in
2294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2296 # if the argument is of the form -foo=baz, quote the baz part only
2297 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2298 *) ;;
2299 esac
2300 # Add the quoted argument to the list.
2301 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2302done
2303if test "$silent" = yes; then
2304 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2305fi
2306# Remove the initial space we just introduced and, as these will be
2307# expanded by make, quote '$'.
2308TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2309
1c710c3c
DJ
2310
2311# Find the build, host, and target systems.
671aa708 2312ac_aux_dir=
5213506e 2313for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2314 if test -f "$ac_dir/install-sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install-sh -c"
2317 break
2318 elif test -f "$ac_dir/install.sh"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install.sh -c"
2321 break
2322 elif test -f "$ac_dir/shtool"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/shtool install -c"
2325 break
2326 fi
671aa708
NN
2327done
2328if test -z "$ac_aux_dir"; then
22e05272 2329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2330fi
5213506e
RW
2331
2332# These three variables are undocumented and unsupported,
2333# and are intended to be withdrawn in a future Autoconf release.
2334# They can cause serious problems if a builder's source tree is in a directory
2335# whose full name contains unusual characters.
2336ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2339
671aa708 2340
1c710c3c 2341# Make sure we can run config.sub.
5213506e 2342$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2343 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2344
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346$as_echo_n "checking build system type... " >&6; }
22e05272 2347if ${ac_cv_build+:} false; then :
5213506e
RW
2348 $as_echo_n "(cached) " >&6
2349else
2350 ac_build_alias=$build_alias
2351test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353test "x$ac_build_alias" = x &&
22e05272 2354 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2355ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2357
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360$as_echo "$ac_cv_build" >&6; }
2361case $ac_cv_build in
2362*-*-*) ;;
22e05272 2363*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2364esac
1c710c3c 2365build=$ac_cv_build
5213506e
RW
2366ac_save_IFS=$IFS; IFS='-'
2367set x $ac_cv_build
2368shift
2369build_cpu=$1
2370build_vendor=$2
2371shift; shift
2372# Remember, the first character of IFS is used to create $*,
2373# except with old shells:
2374build_os=$*
2375IFS=$ac_save_IFS
2376case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2377
671aa708 2378
1c710c3c
DJ
2379 case ${build_alias} in
2380 "") build_noncanonical=${build} ;;
2381 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2382esac
2383
2384
af71363e 2385
1c710c3c
DJ
2386 case ${host_alias} in
2387 "") host_noncanonical=${build_noncanonical} ;;
2388 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2389esac
2390
af71363e 2391
1c710c3c
DJ
2392
2393 case ${target_alias} in
2394 "") target_noncanonical=${host_noncanonical} ;;
2395 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2396esac
2397
af71363e 2398
1c710c3c
DJ
2399
2400
2401test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2402 test "$program_prefix$program_suffix$program_transform_name" = \
2403 NONENONEs,x,x, &&
1c710c3c 2404 program_transform_name=s,y,y,
af71363e 2405
5213506e
RW
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2407$as_echo_n "checking host system type... " >&6; }
22e05272 2408if ${ac_cv_host+:} false; then :
5213506e 2409 $as_echo_n "(cached) " >&6
af71363e 2410else
5213506e
RW
2411 if test "x$host_alias" = x; then
2412 ac_cv_host=$ac_cv_build
2413else
2414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2416fi
1c710c3c 2417
af71363e 2418fi
5213506e
RW
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2420$as_echo "$ac_cv_host" >&6; }
2421case $ac_cv_host in
2422*-*-*) ;;
22e05272 2423*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2424esac
1c710c3c 2425host=$ac_cv_host
5213506e
RW
2426ac_save_IFS=$IFS; IFS='-'
2427set x $ac_cv_host
2428shift
2429host_cpu=$1
2430host_vendor=$2
2431shift; shift
2432# Remember, the first character of IFS is used to create $*,
2433# except with old shells:
2434host_os=$*
2435IFS=$ac_save_IFS
2436case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2437
2438
5213506e
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2440$as_echo_n "checking target system type... " >&6; }
22e05272 2441if ${ac_cv_target+:} false; then :
5213506e 2442 $as_echo_n "(cached) " >&6
1c710c3c 2443else
5213506e
RW
2444 if test "x$target_alias" = x; then
2445 ac_cv_target=$ac_cv_host
2446else
2447 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2449fi
1c710c3c
DJ
2450
2451fi
5213506e
RW
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2453$as_echo "$ac_cv_target" >&6; }
2454case $ac_cv_target in
2455*-*-*) ;;
22e05272 2456*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2457esac
1c710c3c 2458target=$ac_cv_target
5213506e
RW
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_target
2461shift
2462target_cpu=$1
2463target_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467target_os=$*
2468IFS=$ac_save_IFS
2469case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2470
2471
2472# The aliases save the names the user supplied, while $host etc.
2473# will get canonicalized.
2474test -n "$target_alias" &&
2475 test "$program_prefix$program_suffix$program_transform_name" = \
2476 NONENONEs,x,x, &&
2477 program_prefix=${target_alias}-
5213506e 2478
671aa708 2479test "$program_prefix" != NONE &&
5213506e 2480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2481# Use a double $ so make ignores it.
2482test "$program_suffix" != NONE &&
5213506e
RW
2483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484# Double any \ or $.
1c710c3c 2485# By default was `s,x,x', remove it if useless.
5213506e
RW
2486ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2488
671aa708
NN
2489
2490
775956d0
NN
2491# Get 'install' or 'install-sh' and its variants.
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
1c710c3c 2499# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2503# OS/2's system install, which has a completely different semantic
775956d0 2504# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2505# Reject install programs that cannot install multiple files.
5213506e
RW
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2508if test -z "$INSTALL"; then
22e05272 2509if ${ac_cv_path_install+:} false; then :
5213506e 2510 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2511else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
5213506e
RW
2517 # Account for people who put trailing slashes in PATH elements.
2518case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
1c710c3c 2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2529 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2530 if test $ac_prog = install &&
1c710c3c 2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2532 # AIX install. It has an incompatible calling convention.
2533 :
1c710c3c
DJ
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
775956d0 2538 else
38d24731
RW
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2542 mkdir conftest.dir
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2547 then
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 break 3
2550 fi
775956d0
NN
2551 fi
2552 fi
2553 done
1c710c3c
DJ
2554 done
2555 ;;
2556esac
5213506e
RW
2557
2558 done
2559IFS=$as_save_IFS
1c710c3c 2560
38d24731 2561rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2562
2563fi
2564 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2565 INSTALL=$ac_cv_path_install
775956d0 2566 else
38d24731
RW
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
775956d0 2569 # break other packages using the cache if that directory is
38d24731 2570 # removed, or if the value is a relative name.
1c710c3c 2571 INSTALL=$ac_install_sh
775956d0
NN
2572 fi
2573fi
5213506e
RW
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575$as_echo "$INSTALL" >&6; }
775956d0
NN
2576
2577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578# It thinks the first close brace ends the variable substitution.
2579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2580
1c710c3c 2581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2582
2583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584
5213506e
RW
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2586$as_echo_n "checking whether ln works... " >&6; }
22e05272 2587if ${acx_cv_prog_LN+:} false; then :
5213506e 2588 $as_echo_n "(cached) " >&6
ad6717df
PB
2589else
2590 rm -f conftestdata_t
2591echo >conftestdata_f
2592if ln conftestdata_f conftestdata_t 2>/dev/null
2593then
2594 acx_cv_prog_LN=ln
2595else
2596 acx_cv_prog_LN=no
2597fi
2598rm -f conftestdata_f conftestdata_t
2599
2600fi
2601if test $acx_cv_prog_LN = no; then
2602 LN="cp"
5213506e
RW
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2604$as_echo "no, using $LN" >&6; }
ad6717df
PB
2605else
2606 LN="$acx_cv_prog_LN"
5213506e
RW
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608$as_echo "yes" >&6; }
ad6717df
PB
2609fi
2610
5213506e
RW
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2612$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2613LN_S=$as_ln_s
2614if test "$LN_S" = "ln -s"; then
5213506e
RW
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
fb0103e5 2617else
5213506e
RW
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2619$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2620fi
2621
87264276
PB
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2623$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2624if ${ac_cv_path_SED+:} false; then :
87264276
PB
2625 $as_echo_n "(cached) " >&6
2626else
2627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2628 for ac_i in 1 2 3 4 5 6 7; do
2629 ac_script="$ac_script$as_nl$ac_script"
2630 done
2631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2632 { ac_script=; unset ac_script;}
2633 if test -z "$SED"; then
2634 ac_path_SED_found=false
2635 # Loop through the user's path and test for each of PROGNAME-LIST
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_prog in sed gsed; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2644 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2645# Check for GNU ac_path_SED and select it if it is found.
2646 # Check for GNU $ac_path_SED
2647case `"$ac_path_SED" --version 2>&1` in
2648*GNU*)
2649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2650*)
2651 ac_count=0
2652 $as_echo_n 0123456789 >"conftest.in"
2653 while :
2654 do
2655 cat "conftest.in" "conftest.in" >"conftest.tmp"
2656 mv "conftest.tmp" "conftest.in"
2657 cp "conftest.in" "conftest.nl"
2658 $as_echo '' >> "conftest.nl"
2659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2661 as_fn_arith $ac_count + 1 && ac_count=$as_val
2662 if test $ac_count -gt ${ac_path_SED_max-0}; then
2663 # Best one so far, save it but keep looking for a better one
2664 ac_cv_path_SED="$ac_path_SED"
2665 ac_path_SED_max=$ac_count
2666 fi
2667 # 10*(2^10) chars as input seems more than enough
2668 test $ac_count -gt 10 && break
2669 done
2670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2671esac
2672
2673 $ac_path_SED_found && break 3
2674 done
2675 done
2676 done
2677IFS=$as_save_IFS
2678 if test -z "$ac_cv_path_SED"; then
22e05272 2679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2680 fi
2681else
2682 ac_cv_path_SED=$SED
2683fi
2684
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2687$as_echo "$ac_cv_path_SED" >&6; }
2688 SED="$ac_cv_path_SED"
2689 rm -f conftest.sed
2690
2691for ac_prog in gawk mawk nawk awk
2692do
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694set dummy $ac_prog; ac_word=$2
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2697if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2698 $as_echo_n "(cached) " >&6
2699else
2700 if test -n "$AWK"; then
2701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2710 ac_cv_prog_AWK="$ac_prog"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
2715 done
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720AWK=$ac_cv_prog_AWK
2721if test -n "$AWK"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723$as_echo "$AWK" >&6; }
2724else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727fi
2728
2729
2730 test -n "$AWK" && break
2731done
2732
775956d0 2733
ee6a22df
L
2734srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2735
2736# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2737# a relative path.
2738if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2739 INSTALL="${srcpwd}/install-sh -c"
2740fi
2741
671aa708
NN
2742# Set srcdir to "." if that's what it is.
2743# This is important for multilib support.
2744pwd=`${PWDCMD-pwd}`
671aa708
NN
2745if test "${pwd}" = "${srcpwd}" ; then
2746 srcdir=.
79c06341
JL
2747fi
2748
671aa708 2749topsrcdir=$srcpwd
5d4a5ee6 2750
671aa708 2751extra_host_args=
afabd8e6 2752
671aa708
NN
2753### To add a new directory to the tree, first choose whether it is a target
2754### or a host dependent tool. Then put it into the appropriate list
2755### (library or tools, host or target), doing a dependency sort.
79c06341 2756
1c710c3c 2757# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2758# configdirs, or target_configdirs; see the serialization section below.
79c06341 2759
1c710c3c
DJ
2760# Dependency sorting is only needed when *configuration* must be done in
2761# a particular order. In all cases a dependency should be specified in
671aa708 2762# the Makefile, whether or not it's implicitly specified here.
79c06341 2763
671aa708
NN
2764# Double entries in build_configdirs, configdirs, or target_configdirs may
2765# cause circular dependencies and break everything horribly.
79c06341 2766
23f6b2f9
PB
2767# these library is used by various programs built for the build
2768# environment
2769#
929315a9 2770build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2771
2772# these tools are built for the build environment
85bfb75e 2773build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2774
671aa708 2775# these libraries are used by various programs built for the host environment
eae1a5d4 2776#f
4a9bb2aa 2777host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2778
671aa708
NN
2779# these tools are built for the host environment
2780# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2781# know that we are building the simulator.
2782# binutils, gas and ld appear in that order because it makes sense to run
2783# "make check" in that particular order.
38e3d868 2784# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2785host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2786
671aa708
NN
2787# these libraries are built for the target environment, and are built after
2788# the host libraries and the host tools (which may be a cross compiler)
8499116a 2789# Note that libiberty is not a target library.
291f172e 2790target_libraries="target-libgcc \
eff02e4f 2791 target-libbacktrace \
671aa708
NN
2792 target-libgloss \
2793 target-newlib \
6d3b5aea 2794 target-libgomp \
5f520819 2795 target-liboffloadmic \
5fd1486c 2796 target-libhsail-rt \
48310492 2797 target-libatomic \
0a35513e 2798 target-libitm \
cb543528 2799 target-libstdc++-v3 \
f35db108 2800 target-libsanitizer \
2077db1b 2801 target-libvtv \
77008252 2802 target-libssp \
1ec601bf 2803 target-libquadmath \
6de9cd9a 2804 target-libgfortran \
012447ea 2805 target-libffi \
d9cdb878 2806 target-libobjc \
632e2a07 2807 target-libada \
b4c522fa
IB
2808 target-libgo \
2809 target-libphobos"
671aa708 2810
4dbda6f0
NN
2811# these tools are built using the target libraries, and are intended to
2812# run only in the target environment
671aa708 2813#
4dbda6f0 2814# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2815# list belongs in this list.
671aa708 2816#
85bfb75e 2817target_tools="target-rda"
79c06341 2818
671aa708 2819################################################################################
79c06341 2820
671aa708
NN
2821## All tools belong in one of the four categories, and are assigned above
2822## We assign ${configdirs} this way to remove all embedded newlines. This
2823## is important because configure will choke if they ever get through.
2824## ${configdirs} is directories we build using the host tools.
2825## ${target_configdirs} is directories we build using the target tools.
671aa708 2826configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2827target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2828build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2829
ac9e6043
RW
2830
2831
671aa708 2832################################################################################
79c06341 2833
671aa708 2834srcname="gnu development package"
79c06341 2835
671aa708
NN
2836# This gets set non-empty for some net releases of packages.
2837appdirs=""
79c06341 2838
671aa708
NN
2839# Define is_cross_compiler to save on calls to 'test'.
2840is_cross_compiler=
2841if test x"${host}" = x"${target}" ; then
2842 is_cross_compiler=no
79c06341 2843else
671aa708 2844 is_cross_compiler=yes
1c710c3c 2845fi
79c06341 2846
b4acb5ef 2847# Find the build and target subdir names.
8b87bb96 2848
2e9e6f68
DJ
2849# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2850# have matching libraries, they should use host libraries: Makefile.tpl
2851# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2852# However, they still use the build modules, because the corresponding
2853# host modules (e.g. bison) are only built for the host when bootstrap
2854# finishes. So:
2855# - build_subdir is where we find build modules, and never changes.
2856# - build_libsubdir is where we find build libraries, and can be overridden.
2857
2858# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2859build_subdir="build-${build_noncanonical}"
1c710c3c 2860
5213506e
RW
2861# Check whether --with-build-libsubdir was given.
2862if test "${with_build_libsubdir+set}" = set; then :
2863 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2864else
2865 build_libsubdir="$build_subdir"
5213506e
RW
2866fi
2867
215c351a
PB
2868# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2869if ( test $srcdir = . && test -d gcc ) \
2870 || test -d $srcdir/../host-${host_noncanonical}; then
2871 host_subdir="host-${host_noncanonical}"
2872else
2873 host_subdir=.
2874fi
8b87bb96
NN
2875# No prefix.
2876target_subdir=${target_noncanonical}
1c710c3c 2877
0db770bd
RW
2878# Be sure to cover against remnants of an in-tree build.
2879if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2880 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2881Use a pristine source tree when building in a separate tree" "$LINENO" 5
2882fi
79c06341 2883
671aa708
NN
2884# Skipdirs are removed silently.
2885skipdirs=
2886# Noconfigdirs are removed loudly.
2887noconfigdirs=""
79c06341 2888
671aa708
NN
2889use_gnu_ld=
2890# Make sure we don't let GNU ld be added if we didn't want it.
2891if test x$with_gnu_ld = xno ; then
2892 use_gnu_ld=no
5afab7ad 2893 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2894fi
2895
671aa708
NN
2896use_gnu_as=
2897# Make sure we don't let GNU as be added if we didn't want it.
2898if test x$with_gnu_as = xno ; then
2899 use_gnu_as=no
2900 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2901fi
2902
d7f09764 2903use_included_zlib=
a05c2c75
L
2904
2905# Check whether --with-system-zlib was given.
2906if test "${with_system_zlib+set}" = set; then :
2907 withval=$with_system_zlib;
2908fi
2909
d7f09764
DN
2910# Make sure we don't let ZLIB be added if we didn't want it.
2911if test x$with_system_zlib = xyes ; then
2912 use_included_zlib=no
2913 noconfigdirs="$noconfigdirs zlib"
2914fi
2915
1c710c3c 2916# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2917# it's not even worth trying to configure, much less build, that tool.
79c06341 2918
671aa708
NN
2919case ${with_x} in
2920 yes | "") ;; # the default value for this tree is that X11 is available
2921 no)
b4f96efe 2922 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2923 # We won't be able to build gdbtk without X.
1c710c3c 2924 enable_gdbtk=no
671aa708
NN
2925 ;;
2926 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2927esac
79c06341 2928
1bcce263 2929# Some are only suitable for cross toolchains.
671aa708
NN
2930# Remove these if host=target.
2931cross_only="target-libgloss target-newlib target-opcodes"
2932
2933case $is_cross_compiler in
2934 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2935esac
79c06341 2936
671aa708
NN
2937# If both --with-headers and --with-libs are specified, default to
2938# --without-newlib.
ee6a22df
L
2939if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2940 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2941 if test x"${with_newlib}" = x ; then
2942 with_newlib=no
2943 fi
79c06341
JL
2944fi
2945
671aa708
NN
2946# Recognize --with-newlib/--without-newlib.
2947case ${with_newlib} in
2948 no) skipdirs="${skipdirs} target-newlib" ;;
2949 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2950esac
79c06341 2951
85c64bbe
BS
2952# Check whether --enable-as-accelerator-for was given.
2953if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2954 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2955fi
2956
2957
2958# Check whether --enable-offload-targets was given.
2959if test "${enable_offload_targets+set}" = set; then :
2960 enableval=$enable_offload_targets;
2961 if test x"$enable_offload_targets" = x; then
22e05272 2962 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2963 fi
2964
2965else
2966 enable_offload_targets=
2967fi
2968
2969
21539e2e
MK
2970# Handle --enable-gold, --enable-ld.
2971# --disable-gold [--enable-ld]
2972# Build only ld. Default option.
9580395f
L
2973# --enable-gold [--enable-ld]
2974# Build both gold and ld. Install gold as "ld.gold", install ld
2975# as "ld.bfd" and "ld".
2976# --enable-gold=default [--enable-ld]
21539e2e
MK
2977# Build both gold and ld. Install gold as "ld.gold" and "ld",
2978# install ld as "ld.bfd".
2979# --enable-gold[=default] --disable-ld
2980# Build only gold, which is then installed as both "ld.gold" and "ld".
2981# --enable-gold --enable-ld=default
9580395f
L
2982# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2983# and ld.bfd).
21539e2e
MK
2984# In other words, ld is default
2985# --enable-gold=default --enable-ld=default
2986# Error.
2987
2988default_ld=
5213506e
RW
2989# Check whether --enable-gold was given.
2990if test "${enable_gold+set}" = set; then :
2991 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2992else
2993 ENABLE_GOLD=no
5213506e
RW
2994fi
2995
21539e2e
MK
2996case "${ENABLE_GOLD}" in
2997 yes|default)
38e3d868
RM
2998 # Check for ELF target.
2999 is_elf=no
3000 case "${target}" in
3001 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3002 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3003 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3004 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3005 case "${target}" in
3006 *-*-linux*aout* | *-*-linux*oldld*)
3007 ;;
3008 *)
3009 is_elf=yes
3010 ;;
3011 esac
3012 esac
3013
3014 if test "$is_elf" = "yes"; then
3015 # Check for target supported by gold.
5afab7ad 3016 case "${target}" in
7705dfd1 3017 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3018 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3019 configdirs="$configdirs gold"
3020 if test x${ENABLE_GOLD} = xdefault; then
3021 default_ld=gold
3022 fi
38e3d868 3023 ENABLE_GOLD=yes
5afab7ad
ILT
3024 ;;
3025 esac
38e3d868
RM
3026 fi
3027 ;;
3028 no)
3029 ;;
3030 *)
22e05272 3031 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3032 ;;
21539e2e
MK
3033esac
3034
3035# Check whether --enable-ld was given.
3036if test "${enable_ld+set}" = set; then :
3037 enableval=$enable_ld; ENABLE_LD=$enableval
3038else
3039 ENABLE_LD=yes
3040fi
3041
3042
3043case "${ENABLE_LD}" in
3044 default)
9580395f 3045 if test x${default_ld} != x; then
22e05272 3046 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3047 fi
3048 ;;
3049 yes)
3050 ;;
3051 no)
3052 if test x${ENABLE_GOLD} != xyes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3054$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3055 fi
3056 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3057 ;;
3058 *)
22e05272 3059 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3060 ;;
3061esac
5afab7ad 3062
78edb32f
L
3063# PR gas/19109
3064# Decide the default method for compressing debug sections.
3065# Provide a configure time option to override our default.
3066# Check whether --enable-compressed_debug_sections was given.
3067if test "${enable_compressed_debug_sections+set}" = set; then :
3068 enableval=$enable_compressed_debug_sections;
3069 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3070 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3071 fi
3072
3073else
3074 enable_compressed_debug_sections=
3075fi
3076
3077
671aa708 3078# Configure extra directories which are host specific
79c06341 3079
671aa708
NN
3080case "${host}" in
3081 *-cygwin*)
3082 configdirs="$configdirs libtermcap" ;;
3083esac
79c06341 3084
4fab7234
HPN
3085# A target can indicate whether a language isn't supported for some reason.
3086# Only spaces may be used in this macro; not newlines or tabs.
3087unsupported_languages=
3088
1c710c3c 3089# Remove more programs from consideration, based on the host or
671aa708
NN
3090# target this usually means that a port of the program doesn't
3091# exist yet.
ec8d6ddc 3092
671aa708 3093case "${host}" in
111eeb6e 3094 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3095 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3096 ;;
671aa708 3097esac
ec8d6ddc 3098
6de9cd9a 3099
87e6d9dc
TB
3100# Check whether --enable-libquadmath was given.
3101if test "${enable_libquadmath+set}" = set; then :
3102 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3103else
3104 ENABLE_LIBQUADMATH=yes
3105fi
3106
3107if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libquadmath"
3109fi
3110
3111
3112# Check whether --enable-libquadmath-support was given.
3113if test "${enable_libquadmath_support+set}" = set; then :
3114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3115else
3116 ENABLE_LIBQUADMATH_SUPPORT=yes
3117fi
3118
3119enable_libquadmath_support=
3120if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3121 enable_libquadmath_support=no
3122fi
3123
3124
5213506e
RW
3125# Check whether --enable-libada was given.
3126if test "${enable_libada+set}" = set; then :
3127 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3128else
3129 ENABLE_LIBADA=yes
5213506e
RW
3130fi
3131
d9cdb878 3132if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3133 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3134fi
3135
5213506e
RW
3136# Check whether --enable-libssp was given.
3137if test "${enable_libssp+set}" = set; then :
3138 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3139else
3140 ENABLE_LIBSSP=yes
5213506e
RW
3141fi
3142
ef0087a7 3143
1873ec0c
L
3144# Check whether --enable-libstdcxx was given.
3145if test "${enable_libstdcxx+set}" = set; then :
3146 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3147else
3148 ENABLE_LIBSTDCXX=default
3149fi
3150
3151if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3152 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3153fi
3154
5f520819
KY
3155# If this is accelerator compiler and its target is intelmic we enable
3156# target liboffloadmic by default. If this is compiler with offloading
3157# for intelmic we enable host liboffloadmic by default. Otherwise
3158# liboffloadmic is disabled by default.
3159# Check whether --enable-liboffloadmic was given.
3160if test "${enable_liboffloadmic+set}" = set; then :
3161 enableval=$enable_liboffloadmic; case "$enableval" in
3162 no | host | target)
3163 enable_liboffloadmic=$enableval ;;
3164 *)
22e05272 3165 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3166esac
3167else
4b4f2e35 3168 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3169 case "${target}" in
3170 *-intelmic-* | *-intelmicemul-*)
3171 enable_liboffloadmic=target
3172 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3173 ;;
3174 *)
3175 enable_liboffloadmic=no
3176 ;;
3177 esac
3178else
3179 case "${enable_offload_targets}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=host
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3183 ;;
3184 *)
3185 enable_liboffloadmic=no
3186 ;;
3187 esac
3188fi
3189fi
3190
3191
3192
44a7d18d 3193# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3194if test x$enable_libgomp = x ; then
953ff289 3195 case "${target}" in
416ac4d4 3196 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3197 ;;
8c6d158a 3198 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3199 ;;
b24513a1 3200 *-*-solaris2* | *-*-hpux11*)
953ff289 3201 ;;
cac90078 3202 *-*-darwin* | *-*-aix*)
953ff289 3203 ;;
44a7d18d
TS
3204 nvptx*-*-*)
3205 ;;
953ff289
DN
3206 *)
3207 noconfigdirs="$noconfigdirs target-libgomp"
3208 ;;
3209 esac
27079765 3210fi
953ff289 3211
48310492
RH
3212# Disable libatomic on unsupported systems.
3213if test -d ${srcdir}/libatomic; then
3214 if test x$enable_libatomic = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3216$as_echo_n "checking for libatomic support... " >&6; }
3217 if (srcdir=${srcdir}/libatomic; \
3218 . ${srcdir}/configure.tgt; \
3219 test -n "$UNSUPPORTED")
3220 then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libatomic"
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226$as_echo "yes" >&6; }
3227 fi
3228 fi
3229fi
3230
5f520819
KY
3231# Disable liboffloadmic on unsupported systems.
3232if test -d ${srcdir}/liboffloadmic; then
3233 if test x$enable_liboffloadmic != xno; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3235$as_echo_n "checking for liboffloadmic support... " >&6; }
3236 if (srcdir=${srcdir}/liboffloadmic; \
3237 . ${srcdir}/configure.tgt; \
3238 test -n "$UNSUPPORTED")
3239 then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
3242 noconfigdirs="$noconfigdirs target-liboffloadmic"
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245$as_echo "yes" >&6; }
3246 fi
3247 fi
3248fi
3249
e948157d
RH
3250# Disable libitm on unsupported systems.
3251if test -d ${srcdir}/libitm; then
3252 if test x$enable_libitm = x; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3254$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3255 if (srcdir=${srcdir}/libitm; \
3256 . ${srcdir}/configure.tgt; \
3257 test -n "$UNSUPPORTED")
3258 then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3260$as_echo "no" >&6; }
e948157d
RH
3261 noconfigdirs="$noconfigdirs target-libitm"
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3264$as_echo "yes" >&6; }
e948157d
RH
3265 fi
3266 fi
0a35513e
AH
3267fi
3268
93bf5390
RH
3269# Disable libsanitizer on unsupported systems.
3270if test -d ${srcdir}/libsanitizer; then
3271 if test x$enable_libsanitizer = x; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3273$as_echo_n "checking for libsanitizer support... " >&6; }
3274 if (srcdir=${srcdir}/libsanitizer; \
3275 . ${srcdir}/configure.tgt; \
3276 test -n "$UNSUPPORTED")
3277 then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280 noconfigdirs="$noconfigdirs target-libsanitizer"
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283$as_echo "yes" >&6; }
3284 fi
3285 fi
3286fi
3287
2077db1b
CT
3288# Disable libvtv on unsupported systems.
3289if test -d ${srcdir}/libvtv; then
3290 if test x$enable_libvtv = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3292$as_echo_n "checking for libvtv support... " >&6; }
3293 if (srcdir=${srcdir}/libvtv; \
3294 . ${srcdir}/configure.tgt; \
1e74b850 3295 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libvtv"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303 fi
3304 fi
3305fi
3306
5373cd33 3307
f6a24a94
MJ
3308# Disable libhsail-rt on unsupported systems.
3309if test -d ${srcdir}/libhsail-rt; then
3310 if test x$enable_libhsail_rt = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3312$as_echo_n "checking for libhsail-rt support... " >&6; }
3313 if (srcdir=${srcdir}/libhsail-rt; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319 unsupported_languages="$unsupported_languages brig"
3320 # This implicitly disables also target-libhsail-rt as it won't
3321 # get added to the build without BRIG FE.
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
3325 fi
3326 fi
3327fi
5373cd33
IE
3328
3329
d91491e5
SE
3330# Disable libquadmath for some systems.
3331case "${target}" in
e7fae550
DE
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3334 ;;
d91491e5
SE
3335 # libquadmath is unused on AIX and libquadmath build process use of
3336 # LD_LIBRARY_PATH can break AIX bootstrap.
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libquadmath"
3339 ;;
3340esac
3341
1e9e0e23
JM
3342# Disable libssp for some systems.
3343case "${target}" in
3344 avr-*-*)
b318fb4b 3345 # No hosted I/O support.
1e9e0e23
JM
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
3348 powerpc-*-aix* | rs6000-*-aix*)
3349 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3350 ;;
3351 rl78-*-*)
7cb62ef1
EB
3352 # libssp uses a misaligned load to trigger a fault, but the RL78
3353 # doesn't fault for those - instead, it gives a build-time error
3354 # for explicit misaligned loads.
85b8555e 3355 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3356 ;;
0969ec7d
EB
3357 visium-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
1e9e0e23
JM
3361esac
3362
1e9e0e23 3363# Disable libstdc++-v3 for some systems.
1873ec0c
L
3364# Allow user to override this if they pass --enable-libstdc++-v3
3365if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3366 case "${target}" in
3367 *-*-vxworks*)
3368 # VxWorks uses the Dinkumware C++ library.
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 ;;
3371 arm*-wince-pe*)
3372 # the C++ libraries don't build on top of CE's C libraries
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 avr-*-*)
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
fef939d6
JB
3378 ft32-*-*)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
1873ec0c
L
3381 esac
3382fi
1e9e0e23 3383
260eedb9
IB
3384# Disable D on systems where it is known to not work.
3385# For testing, you can override this with --enable-languages=d.
3386case ,${enable_languages}, in
3387 *,d,*)
3388 ;;
3389 *)
3390 case "${target}" in
3391 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3392 unsupported_languages="$unsupported_languages d"
3393 ;;
3394 esac
3395 ;;
3396esac
3397
3398# Disable libphobos on unsupported systems.
3399# For testing, you can override this with --enable-libphobos.
3400if test -d ${srcdir}/libphobos; then
3401 if test x$enable_libphobos = x; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3403$as_echo_n "checking for libphobos support... " >&6; }
3404 if (srcdir=${srcdir}/libphobos; \
3405 . ${srcdir}/configure.tgt; \
3406 test -n "$UNSUPPORTED")
3407 then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410 noconfigdirs="$noconfigdirs target-libphobos"
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414 fi
3415 fi
3416fi
3417
1e9e0e23
JM
3418# Disable Fortran for some systems.
3419case "${target}" in
3420 mmix-*-*)
3421 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3422 unsupported_languages="$unsupported_languages fortran"
3423 ;;
3424esac
3425
012447ea
JJ
3426# Disable libffi for some systems.
3427case "${target}" in
3428 powerpc-*-darwin*)
3429 ;;
3430 i[3456789]86-*-darwin*)
3431 ;;
3432 x86_64-*-darwin[912]*)
3433 ;;
3434 *-*-darwin*)
3435 noconfigdirs="$noconfigdirs target-libffi"
3436 ;;
3437 *-*-netware*)
3438 noconfigdirs="$noconfigdirs target-libffi"
3439 ;;
3440 *-*-phoenix*)
3441 noconfigdirs="$noconfigdirs target-libffi"
3442 ;;
3443 *-*-rtems*)
3444 noconfigdirs="$noconfigdirs target-libffi"
3445 ;;
3446 *-*-tpf*)
3447 noconfigdirs="$noconfigdirs target-libffi"
3448 ;;
3449 *-*-uclinux*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 *-*-vxworks*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3454 ;;
b20e7532
AT
3455 aarch64*-*-freebsd*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
012447ea
JJ
3458 alpha*-*-*vms*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3460 ;;
3461 arm*-*-freebsd*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 arm-wince-pe)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 arm*-*-symbianelf*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 cris-*-* | crisv32-*-*)
3471 case "${target}" in
3472 *-*-linux*)
3473 ;;
3474 *) # See PR46792 regarding target-libffi.
3475 noconfigdirs="$noconfigdirs target-libffi";;
3476 esac
3477 ;;
3478 hppa*64*-*-hpux*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
3481 hppa*-hp-hpux11*)
3482 ;;
3483 hppa*-*-hpux*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486 ia64*-*-*vms*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
3489 i[3456789]86-w64-mingw*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3491 ;;
3492 i[3456789]86-*-mingw*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 x86_64-*-mingw*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 mmix-*-*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 powerpc-*-aix*)
012447ea
JJ
3502 ;;
3503 rs6000-*-aix*)
012447ea
JJ
3504 ;;
3505 ft32-*-*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-lynxos*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511esac
3512
3513# Disable the go frontend on systems where it is known to not work. Please keep
3514# this in sync with contrib/config-list.mk.
3515case "${target}" in
5a427c63 3516*-*-darwin* | *-*-cygwin* | *-*-mingw*)
012447ea
JJ
3517 unsupported_languages="$unsupported_languages go"
3518 ;;
3519esac
3520
cdbc9e92
ILT
3521# Disable libgo for some systems where it is known to not work.
3522# For testing, you can easily override this with --enable-libgo.
3523if test x$enable_libgo = x; then
3524 case "${target}" in
3525 *-*-darwin*)
3526 # PR 46986
3527 noconfigdirs="$noconfigdirs target-libgo"
3528 ;;
3529 *-*-cygwin* | *-*-mingw*)
3530 noconfigdirs="$noconfigdirs target-libgo"
3531 ;;
cdbc9e92
ILT
3532 esac
3533fi
3534
c03353e2
RIL
3535# Default libgloss CPU subdirectory.
3536libgloss_dir="$target_cpu"
6de9cd9a 3537
fbcf0dca
JM
3538case "${target}" in
3539 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3540 libgloss_dir=wince
3541 ;;
4dddfc74
YZ
3542 aarch64*-*-* )
3543 libgloss_dir=aarch64
3544 ;;
fbcf0dca
JM
3545 arm*-*-*)
3546 libgloss_dir=arm
3547 ;;
3548 cris-*-* | crisv32-*-*)
3549 libgloss_dir=cris
3550 ;;
3551 hppa*-*-*)
3552 libgloss_dir=pa
3553 ;;
3554 i[3456789]86-*-*)
3555 libgloss_dir=i386
3556 ;;
3557 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3558 libgloss_dir=m68hc11
3559 ;;
3560 m68*-*-* | fido-*-*)
3561 libgloss_dir=m68k
3562 ;;
3563 mips*-*-*)
3564 libgloss_dir=mips
3565 ;;
3566 powerpc*-*-*)
3567 libgloss_dir=rs6000
3568 ;;
3569 sparc*-*-*)
3570 libgloss_dir=sparc
3571 ;;
3572esac
3573
6a789d5e 3574# Disable newlib and libgloss for various target OSes.
671aa708 3575case "${target}" in
6a789d5e
JM
3576 alpha*-dec-osf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 i[3456789]86-*-linux*)
3580 # This section makes it possible to build newlib natively on linux.
3581 # If we are using a cross compiler then don't configure newlib.
3582 if test x${is_cross_compiler} != xno ; then
3583 noconfigdirs="$noconfigdirs target-newlib"
3584 fi
3585 noconfigdirs="$noconfigdirs target-libgloss"
3586 # If we are not using a cross compiler, do configure newlib.
3587 # Note however, that newlib will only be configured in this situation
3588 # if the --with-newlib option has been given, because otherwise
3589 # 'target-newlib' will appear in skipdirs.
3590 ;;
3591 i[3456789]86-*-rdos*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 sparc-*-sunos4*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-aix*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-beos*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
671aa708 3606 *-*-chorusos)
0036370f 3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3608 ;;
6a789d5e
JM
3609 *-*-dragonfly*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-freebsd*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-lynxos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-mingw*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-netbsd*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-netware*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-tpf*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-uclinux*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-vxworks*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639esac
3640
3641case "${target}" in
3642 *-*-chorusos)
3643 ;;
3be96231
TG
3644 aarch64-*-darwin*)
3645 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3646 noconfigdirs="$noconfigdirs sim target-rda"
3647 ;;
3648 arm-*-darwin*)
3649 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3650 noconfigdirs="$noconfigdirs sim target-rda"
3651 ;;
75eeae1a 3652 powerpc-*-darwin*)
e1514c3f 3653 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3654 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3655 ;;
354ebf88
RW
3656 i[3456789]86-*-darwin*)
3657 noconfigdirs="$noconfigdirs ld gprof"
3658 noconfigdirs="$noconfigdirs sim target-rda"
3659 ;;
3660 x86_64-*-darwin[912]*)
0db3a858
TG
3661 noconfigdirs="$noconfigdirs ld gas gprof"
3662 noconfigdirs="$noconfigdirs sim target-rda"
3663 ;;
42c1cd8a
AT
3664 *-*-darwin*)
3665 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3667 ;;
8c6d158a 3668 *-*-dragonfly*)
8c6d158a 3669 ;;
c3f84f61 3670 *-*-freebsd*)
6de9cd9a
DN
3671 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3672 && test -f /usr/local/include/gmp.h; then
3673 with_gmp=/usr/local
3674 fi
6de9cd9a 3675 ;;
ef4e7569
US
3676 *-*-kaos*)
3677 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3678 noconfigdirs="$noconfigdirs target-libgloss"
3679 ;;
671aa708 3680 *-*-netbsd*)
671aa708 3681 ;;
61fec9ff 3682 *-*-netware*)
671aa708 3683 ;;
fd6487af
JS
3684 *-*-phoenix*)
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
671aa708 3687 *-*-rtems*)
2909494b 3688 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3689 ;;
a8ba31f2
EC
3690 # The tpf target doesn't support gdb yet.
3691 *-*-tpf*)
6a789d5e 3692 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3693 ;;
5785c0ed 3694 *-*-uclinux*)
6a789d5e 3695 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3696 ;;
671aa708 3697 *-*-vxworks*)
671aa708
NN
3698 ;;
3699 alpha*-dec-osf*)
3700 # ld works, but does not support shared libraries.
671aa708 3701 # gas doesn't generate exception information.
6a789d5e 3702 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3703 ;;
3704 alpha*-*-*vms*)
2909494b 3705 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3706 ;;
671aa708
NN
3707 alpha*-*-*)
3708 # newlib is not 64 bit ready
2909494b 3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3710 ;;
671aa708 3711 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3712 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3713 ;;
2fd88f4f
AK
3714 arc*-*-*)
3715 noconfigdirs="$noconfigdirs sim"
3716 ;;
671aa708 3717 arm-*-pe*)
2909494b 3718 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3719 ;;
671aa708 3720 arm-*-riscix*)
0036370f 3721 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3722 ;;
b588ae30
GJL
3723 avr-*-*)
3724 if test x${with_avrlibc} != xno; then
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 fi
3727 ;;
671aa708 3728 c4x-*-* | tic4x-*-*)
0036370f 3729 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3730 ;;
0036370f
JM
3731 tic54x-*-*)
3732 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3733 ;;
671aa708 3734 d10v-*-*)
0036370f 3735 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3736 ;;
3737 d30v-*-*)
0036370f 3738 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3739 ;;
3740 fr30-*-elf*)
2909494b 3741 noconfigdirs="$noconfigdirs gdb"
671aa708 3742 ;;
a05c2c75
L
3743 ft32-*-*)
3744 noconfigdirs="$noconfigdirs target-rda gprof"
3745 ;;
55f2d967 3746 moxie-*-*)
a05c2c75 3747 noconfigdirs="$noconfigdirs"
55f2d967 3748 ;;
671aa708 3749 h8300*-*-*)
2909494b 3750 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3751 ;;
3752 h8500-*-*)
0036370f 3753 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3754 ;;
ee6a22df 3755 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3756 ;;
a05c2c75
L
3757 hppa*64*-*-hpux*)
3758 noconfigdirs="$noconfigdirs gdb"
3759 ;;
3760 hppa*-*-hpux11*)
3761 noconfigdirs="$noconfigdirs gdb ld"
3762 ;;
4569f85e 3763 hppa*64*-*-linux*)
671aa708 3764 ;;
56f8587a 3765 hppa*-*-linux*)
3e732ba0 3766 ;;
671aa708 3767 hppa*-*-*elf* | \
671aa708
NN
3768 hppa*-*-lites* | \
3769 hppa*-*-openbsd* | \
3770 hppa*64*-*-*)
671aa708 3771 ;;
c03353e2 3772 hppa*-*-pro*)
c03353e2 3773 ;;
671aa708 3774 hppa*-*-*)
2909494b 3775 noconfigdirs="$noconfigdirs ld"
671aa708 3776 ;;
fb87ad5d 3777 i960-*-*)
0036370f 3778 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3779 ;;
671aa708
NN
3780 ia64*-*-elf*)
3781 # No gdb support yet.
1bcce263 3782 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3783 ;;
3784 ia64*-**-hpux*)
5a2931d1 3785 # No ld support yet.
a05c2c75 3786 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3787 ;;
52535a64 3788 ia64*-*-*vms*)
091fe9ca
TG
3789 # No ld support yet.
3790 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3791 ;;
ef4c4300 3792 i[3456789]86-w64-mingw*)
ef4c4300
KT
3793 ;;
3794 i[3456789]86-*-mingw*)
b91f0a41 3795 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3796 ;;
671aa708
NN
3797 *-*-cygwin*)
3798 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3799 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3800 # always build newlib if winsup directory is present.
b91f0a41 3801 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3802 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3803 elif test -d "$srcdir/newlib"; then
b91f0a41 3804 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3805 fi
1c710c3c 3806 ;;
f2a0e225 3807 i[3456789]86-*-pe)
ebb9f8b0 3808 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3809 ;;
f2a0e225 3810 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3811 # The linker does not yet know about weak symbols in COFF,
3812 # and is not configured to handle mixed ELF and COFF.
0036370f 3813 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3814 ;;
f2a0e225 3815 i[3456789]86-*-sco*)
0036370f 3816 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3817 ;;
fbdd5d87 3818 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3819 noconfigdirs="$noconfigdirs target-libgloss"
3820 ;;
f2a0e225 3821 i[3456789]86-*-sysv4*)
0036370f 3822 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3823 ;;
f2a0e225 3824 i[3456789]86-*-beos*)
6a789d5e 3825 noconfigdirs="$noconfigdirs gdb"
3aa83176 3826 ;;
d1f8db0c 3827 i[3456789]86-*-rdos*)
6a789d5e 3828 noconfigdirs="$noconfigdirs gdb"
c03353e2 3829 ;;
671aa708 3830 mmix-*-*)
2909494b 3831 noconfigdirs="$noconfigdirs gdb"
671aa708 3832 ;;
ab34901f 3833 mt-*-*)
79dd769c
AH
3834 noconfigdirs="$noconfigdirs sim"
3835 ;;
58b40a67
FT
3836 nfp-*-*)
3837 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3838 noconfigdirs="$noconfigdirs $target_libraries"
3839 ;;
671aa708
NN
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
6a789d5e 3842 noconfigdirs="$noconfigdirs gprof"
671aa708 3843 ;;
4569f85e 3844 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3845 target_configdirs="$target_configdirs target-winsup"
0036370f 3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849 ;;
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
0036370f 3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3853 ;;
3854 powerpc-*-beos*)
6a789d5e 3855 noconfigdirs="$noconfigdirs gdb"
671aa708 3856 ;;
671aa708 3857 rs6000-*-lynxos*)
6a789d5e 3858 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3859 ;;
3860 rs6000-*-aix*)
6a789d5e 3861 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3862 ;;
3863 rs6000-*-*)
2909494b 3864 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3865 ;;
3866 m68k-apollo-*)
0036370f 3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3868 ;;
ca9fe997 3869 microblaze*)
2909494b 3870 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3871 ;;
d896cc4d 3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3875 fi
d9dced13 3876 ;;
671aa708 3877 mips*-*-irix5*)
0036370f 3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3879 ;;
3880 mips*-*-irix6*)
2909494b 3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3882 ;;
671aa708 3883 mips*-*-bsd*)
bc98bcc4 3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3885 ;;
671aa708 3886 mips*-*-linux*)
671aa708 3887 ;;
bc98bcc4
JBG
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3891 ;;
671aa708 3892 mips*-*-*)
2909494b 3893 noconfigdirs="$noconfigdirs gprof"
671aa708 3894 ;;
738f2522 3895 nvptx*-*-*)
738f2522
BS
3896 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3897 ;;
bc6d9014 3898 sh-*-*)
ea2002ba
CB
3899 case "${target}" in
3900 sh*-*-elf)
2909494b 3901 ;;
ea2002ba 3902 *)
2909494b 3903 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3904 esac
671aa708 3905 ;;
671aa708 3906 sparc-*-sunos4*)
6a789d5e 3907 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3908 use_gnu_ld=no
3909 fi
3910 ;;
b42f0d7e 3911 tic6x-*-*)
0d557ff8 3912 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3913 ;;
341c653c 3914 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3915 noconfigdirs="$noconfigdirs sim"
3916 ;;
671aa708 3917 v810-*-*)
0036370f 3918 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3919 ;;
3920 vax-*-*)
2909494b 3921 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3922 ;;
1fc1d82e
MR
3923 wasm32-*-*)
3924 noconfigdirs="$noconfigdirs ld"
3925 ;;
671aa708 3926esac
79c06341 3927
671aa708
NN
3928# If we aren't building newlib, then don't build libgloss, since libgloss
3929# depends upon some newlib header files.
3930case "${noconfigdirs}" in
3931 *target-libgloss*) ;;
3932 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3933esac
3934
671aa708 3935# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3936host_makefile_frag=/dev/null
3937if test -d ${srcdir}/config ; then
3938case "${host}" in
f2a0e225 3939 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3940 host_makefile_frag="config/mh-djgpp"
3941 ;;
3942 *-cygwin*)
2a79c47f 3943
5213506e
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3945$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3946echo a >cygwin-cat-check
e25a8c82 3947if test `cat cygwin-cat-check` = a ; then
2a79c47f 3948 rm cygwin-cat-check
5213506e
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950$as_echo "yes" >&6; }
2a79c47f
NC
3951else
3952 rm cygwin-cat-check
5213506e
RW
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
22e05272 3955 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
3956 Please either mount the build directory in binary mode or run the following
3957 commands before running any configure script:
3958set -o igncr
3959export SHELLOPTS
5213506e 3960 " "$LINENO" 5
2a79c47f
NC
3961fi
3962
671aa708
NN
3963 host_makefile_frag="config/mh-cygwin"
3964 ;;
c53a18d3 3965 *-mingw*)
1f5a6b84 3966 host_makefile_frag="config/mh-mingw"
95af8923 3967 ;;
cabb9d59 3968 alpha*-linux*)
13be44ed
UB
3969 host_makefile_frag="config/mh-alpha-linux"
3970 ;;
efd41714 3971 hppa*-hp-hpux10*)
efd41714 3972 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3973 ;;
111eeb6e 3974 hppa*-hp-hpux*)
efd41714
PB
3975 host_makefile_frag="config/mh-pa"
3976 ;;
3977 hppa*-*)
3978 host_makefile_frag="config/mh-pa"
3979 ;;
d8ed14ce
IS
3980 *-*-darwin*)
3981 host_makefile_frag="config/mh-darwin"
be8fff81 3982 ;;
d19bca38
PB
3983 powerpc-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
3986 rs6000-*-aix*)
3987 host_makefile_frag="config/mh-ppc-aix"
3988 ;;
671aa708
NN
3989esac
3990fi
3991
55ffb5ed 3992if test "${build}" != "${host}" ; then
0999159b
PB
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3997 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3998 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 3999 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4000 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4001 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4002 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4003 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4004 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4005 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4006else
4007 AR_FOR_BUILD="\$(AR)"
4008 AS_FOR_BUILD="\$(AS)"
fb0103e5 4009 CC_FOR_BUILD="\$(CC)"
0999159b 4010 CXX_FOR_BUILD="\$(CXX)"
0999159b 4011 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4012 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4013 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4014 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4015 LD_FOR_BUILD="\$(LD)"
4016 NM_FOR_BUILD="\$(NM)"
4017 RANLIB_FOR_BUILD="\$(RANLIB)"
4018 WINDRES_FOR_BUILD="\$(WINDRES)"
4019 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4020fi
4021
4022ac_ext=c
1c710c3c
DJ
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4029set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4032if ${ac_cv_prog_CC+:} false; then :
5213506e 4033 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4034else
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC="$CC" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
5213506e 4043 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4047 break 2
4048 fi
4049done
5213506e
RW
4050 done
4051IFS=$as_save_IFS
1c710c3c
DJ
4052
4053fi
4054fi
4055CC=$ac_cv_prog_CC
4056if test -n "$CC"; then
5213506e
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058$as_echo "$CC" >&6; }
1c710c3c 4059else
5213506e
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
1c710c3c
DJ
4062fi
4063
5213506e 4064
1c710c3c
DJ
4065fi
4066if test -z "$ac_cv_prog_CC"; then
4067 ac_ct_CC=$CC
fb0103e5
RG
4068 # Extract the first word of "gcc", so it can be a program name with args.
4069set dummy gcc; ac_word=$2
5213506e
RW
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4072if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4073 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4074else
4075 if test -n "$ac_ct_CC"; then
4076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4077else
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
5213506e 4083 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4085 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4087 break 2
4088 fi
4089done
5213506e
RW
4090 done
4091IFS=$as_save_IFS
1c710c3c
DJ
4092
4093fi
4094fi
4095ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096if test -n "$ac_ct_CC"; then
5213506e
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4099else
5213506e
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
1c710c3c
DJ
4102fi
4103
5213506e
RW
4104 if test "x$ac_ct_CC" = x; then
4105 CC=""
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108yes:)
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111ac_tool_warned=yes ;;
4112esac
4113 CC=$ac_ct_CC
4114 fi
1c710c3c
DJ
4115else
4116 CC="$ac_cv_prog_CC"
4117fi
4118
4119if test -z "$CC"; then
5213506e
RW
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4122set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4125if ${ac_cv_prog_CC+:} false; then :
5213506e 4126 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4127else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130else
1c710c3c
DJ
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
5213506e 4136 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4138 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4140 break 2
4141 fi
4142done
5213506e
RW
4143 done
4144IFS=$as_save_IFS
1c710c3c 4145
0b0dc272 4146fi
0b0dc272 4147fi
1c710c3c 4148CC=$ac_cv_prog_CC
af71363e 4149if test -n "$CC"; then
5213506e
RW
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4151$as_echo "$CC" >&6; }
2aeb72e9 4152else
5213506e
RW
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154$as_echo "no" >&6; }
2aeb72e9
DD
4155fi
4156
2aeb72e9 4157
5213506e 4158 fi
1c710c3c 4159fi
55ffb5ed
NN
4160if test -z "$CC"; then
4161 # Extract the first word of "cc", so it can be a program name with args.
4162set dummy cc; ac_word=$2
5213506e
RW
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4165if ${ac_cv_prog_CC+:} false; then :
5213506e 4166 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4167else
4168 if test -n "$CC"; then
4169 ac_cv_prog_CC="$CC" # Let the user override the test.
4170else
0b0dc272 4171 ac_prog_rejected=no
1c710c3c
DJ
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
5213506e 4177 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4180 ac_prog_rejected=yes
4181 continue
4182 fi
4183 ac_cv_prog_CC="cc"
5213506e 4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4185 break 2
4186 fi
4187done
5213506e
RW
4188 done
4189IFS=$as_save_IFS
1c710c3c 4190
55ffb5ed
NN
4191if test $ac_prog_rejected = yes; then
4192 # We found a bogon in the path, so make sure we never use it.
4193 set dummy $ac_cv_prog_CC
4194 shift
1c710c3c 4195 if test $# != 0; then
55ffb5ed
NN
4196 # We chose a different compiler from the bogus one.
4197 # However, it has the same basename, so the bogon will be chosen
4198 # first if we set CC to just the basename; use the full file name.
4199 shift
1c710c3c 4200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4201 fi
4202fi
4203fi
4204fi
1c710c3c 4205CC=$ac_cv_prog_CC
55ffb5ed 4206if test -n "$CC"; then
5213506e
RW
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208$as_echo "$CC" >&6; }
55ffb5ed 4209else
5213506e
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
55ffb5ed
NN
4212fi
4213
5213506e 4214
1c710c3c
DJ
4215fi
4216if test -z "$CC"; then
4217 if test -n "$ac_tool_prefix"; then
5213506e 4218 for ac_prog in cl.exe
1c710c3c
DJ
4219 do
4220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4224if ${ac_cv_prog_CC+:} false; then :
5213506e 4225 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
1c710c3c
DJ
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
5213506e 4235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4239 break 2
4240 fi
4241done
5213506e
RW
4242 done
4243IFS=$as_save_IFS
1c710c3c 4244
55ffb5ed
NN
4245fi
4246fi
1c710c3c 4247CC=$ac_cv_prog_CC
55ffb5ed 4248if test -n "$CC"; then
5213506e
RW
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
a4b9e93e 4251else
5213506e
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
fb0103e5 4254fi
af71363e 4255
5213506e 4256
1c710c3c
DJ
4257 test -n "$CC" && break
4258 done
af71363e 4259fi
1c710c3c
DJ
4260if test -z "$CC"; then
4261 ac_ct_CC=$CC
5213506e 4262 for ac_prog in cl.exe
1c710c3c
DJ
4263do
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265set dummy $ac_prog; ac_word=$2
5213506e
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4268if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4269 $as_echo_n "(cached) " >&6
0b0dc272 4270else
1c710c3c
DJ
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4273else
1c710c3c
DJ
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
5213506e 4279 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4281 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4283 break 2
4284 fi
4285done
5213506e
RW
4286 done
4287IFS=$as_save_IFS
1c710c3c 4288
af71363e
AS
4289fi
4290fi
1c710c3c
DJ
4291ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292if test -n "$ac_ct_CC"; then
5213506e
RW
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4295else
5213506e
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
af71363e 4298fi
0b0dc272 4299
5213506e 4300
1c710c3c
DJ
4301 test -n "$ac_ct_CC" && break
4302done
4303
5213506e
RW
4304 if test "x$ac_ct_CC" = x; then
4305 CC=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 CC=$ac_ct_CC
4314 fi
1c710c3c
DJ
4315fi
4316
4317fi
4318
4319
5213506e
RW
4320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4322as_fn_error $? "no acceptable C compiler found in \$PATH
4323See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4324
4325# Provide some information about the compiler.
5213506e
RW
4326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327set X $ac_compile
4328ac_compiler=$2
4329for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336$as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4338 ac_status=$?
5213506e
RW
4339 if test -s conftest.err; then
4340 sed '10a\
4341... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
5213506e 4344 fi
22e05272 4345 rm -f conftest.er1 conftest.err
5213506e
RW
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348done
1c710c3c 4349
5213506e 4350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4351/* end confdefs.h. */
4352
4353int
4354main ()
4355{
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361ac_clean_files_save=$ac_clean_files
22e05272 4362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4363# Try to create an executable without -o first, disregard a.out.
4364# It will help us diagnose broken compilers, and finding out an intuition
4365# of exeext.
22e05272
JM
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369
4370# The possible output files:
4371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372
4373ac_rmfiles=
4374for ac_file in $ac_files
4375do
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4379 esac
4380done
4381rm -f $ac_rmfiles
4382
4383if { { ac_try="$ac_link_default"
4384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389$as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_link_default") 2>&5
1c710c3c 4391 ac_status=$?
5213506e
RW
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }; then :
4394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4396# in a Makefile. We should not override ac_cv_exeext if it was cached,
4397# so that the user can short-circuit this test for compilers unknown to
4398# Autoconf.
4399for ac_file in $ac_files ''
1c710c3c
DJ
4400do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
5213506e 4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4404 ;;
4405 [ab].out )
4406 # We found the default executable, but exeext='' is most
4407 # certainly right.
4408 break;;
4409 *.* )
5213506e
RW
4410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4411 then :; else
4412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 fi
4414 # We set ac_cv_exeext here because the later test for it is not
4415 # safe: cross compilers may not add the suffix if given an `-o'
4416 # argument, so we may need to know it at that point already.
4417 # Even if this section looks crufty: it has the advantage of
4418 # actually working.
1c710c3c
DJ
4419 break;;
4420 * )
4421 break;;
4422 esac
4423done
5213506e
RW
4424test "$ac_cv_exeext" = no && ac_cv_exeext=
4425
1c710c3c 4426else
5213506e
RW
4427 ac_file=''
4428fi
5213506e 4429if test -z "$ac_file"; then :
22e05272
JM
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
5213506e
RW
4435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4437as_fn_error 77 "C compiler cannot create executables
4438See \`config.log' for more details" "$LINENO" 5; }
4439else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441$as_echo "yes" >&6; }
1c710c3c 4442fi
22e05272
JM
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4444$as_echo_n "checking for C compiler default output file name... " >&6; }
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446$as_echo "$ac_file" >&6; }
1c710c3c 4447ac_exeext=$ac_cv_exeext
1c710c3c 4448
22e05272 4449rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4450ac_clean_files=$ac_clean_files_save
5213506e
RW
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4452$as_echo_n "checking for suffix of executables... " >&6; }
4453if { { ac_try="$ac_link"
4454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
4458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459$as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_link") 2>&5
1c710c3c 4461 ac_status=$?
5213506e
RW
4462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }; then :
1c710c3c
DJ
4464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4465# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4466# work properly (i.e., refer to `conftest.exe'), while it won't with
4467# `rm'.
4468for ac_file in conftest.exe conftest conftest.*; do
4469 test -f "$ac_file" || continue
4470 case $ac_file in
5213506e 4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4473 break;;
4474 * ) break;;
4475 esac
4476done
af71363e 4477else
5213506e
RW
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4480as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4481See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4482fi
22e05272 4483rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4485$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4486
4487rm -f conftest.$ac_ext
4488EXEEXT=$ac_cv_exeext
4489ac_exeext=$EXEEXT
22e05272
JM
4490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h. */
4492#include <stdio.h>
4493int
4494main ()
4495{
4496FILE *f = fopen ("conftest.out", "w");
4497 return ferror (f) || fclose (f) != 0;
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503ac_clean_files="$ac_clean_files conftest.out"
4504# Check that the compiler produces executables we can run. If not, either
4505# the compiler is broken, or we cross compile.
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4507$as_echo_n "checking whether we are cross compiling... " >&6; }
4508if test "$cross_compiling" != yes; then
4509 { { ac_try="$ac_link"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 if { ac_try='./conftest$ac_cv_exeext'
4521 { { case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
4525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526$as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_try") 2>&5
4528 ac_status=$?
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; }; then
4531 cross_compiling=no
4532 else
4533 if test "$cross_compiling" = maybe; then
4534 cross_compiling=yes
4535 else
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538as_fn_error $? "cannot run C compiled programs.
4539If you meant to cross compile, use \`--host'.
4540See \`config.log' for more details" "$LINENO" 5; }
4541 fi
4542 fi
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4545$as_echo "$cross_compiling" >&6; }
4546
4547rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4548ac_clean_files=$ac_clean_files_save
5213506e
RW
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4550$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4551if ${ac_cv_objext+:} false; then :
5213506e 4552 $as_echo_n "(cached) " >&6
1c710c3c 4553else
5213506e 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4555/* end confdefs.h. */
4556
4557int
4558main ()
4559{
4560
4561 ;
4562 return 0;
4563}
4564_ACEOF
4565rm -f conftest.o conftest.obj
5213506e
RW
4566if { { ac_try="$ac_compile"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572$as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_compile") 2>&5
1c710c3c 4574 ac_status=$?
5213506e
RW
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 for ac_file in conftest.o conftest.obj conftest.*; do
4578 test -f "$ac_file" || continue;
1c710c3c 4579 case $ac_file in
5213506e 4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4582 break;;
4583 esac
4584done
4585else
5213506e 4586 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
5213506e
RW
4589{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4591as_fn_error $? "cannot compute suffix of object files: cannot compile
4592See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4593fi
1c710c3c
DJ
4594rm -f conftest.$ac_cv_objext conftest.$ac_ext
4595fi
5213506e
RW
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4597$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4598OBJEXT=$ac_cv_objext
4599ac_objext=$OBJEXT
5213506e
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4602if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4603 $as_echo_n "(cached) " >&6
1c710c3c 4604else
5213506e 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4606/* end confdefs.h. */
4607
4608int
4609main ()
4610{
4611#ifndef __GNUC__
4612 choke me
4613#endif
4614
4615 ;
4616 return 0;
4617}
4618_ACEOF
5213506e 4619if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4620 ac_compiler_gnu=yes
4621else
5213506e 4622 ac_compiler_gnu=no
1c710c3c 4623fi
5213506e 4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4625ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626
4627fi
5213506e
RW
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630if test $ac_compiler_gnu = yes; then
4631 GCC=yes
4632else
4633 GCC=
4634fi
1c710c3c
DJ
4635ac_test_CFLAGS=${CFLAGS+set}
4636ac_save_CFLAGS=$CFLAGS
5213506e
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4639if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4640 $as_echo_n "(cached) " >&6
4641else
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4644 ac_cv_prog_cc_g=no
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
5213506e 4657if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4658 ac_cv_prog_cc_g=yes
4659else
5213506e
RW
4660 CFLAGS=""
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h. */
4663
4664int
4665main ()
4666{
4667
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_compile "$LINENO"; then :
4673
4674else
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
af71363e 4679
5213506e
RW
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_prog_cc_g=yes
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4692fi
5213506e 4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4694fi
5213506e
RW
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4700if test "$ac_test_CFLAGS" = set; then
1c710c3c 4701 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4702elif test $ac_cv_prog_cc_g = yes; then
4703 if test "$GCC" = yes; then
4704 CFLAGS="-g -O2"
4705 else
4706 CFLAGS="-g"
4707 fi
4708else
4709 if test "$GCC" = yes; then
4710 CFLAGS="-O2"
4711 else
4712 CFLAGS=
4713 fi
4714fi
5213506e
RW
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4717if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4718 $as_echo_n "(cached) " >&6
1c710c3c 4719else
5213506e 4720 ac_cv_prog_cc_c89=no
1c710c3c 4721ac_save_CC=$CC
5213506e 4722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4723/* end confdefs.h. */
4724#include <stdarg.h>
4725#include <stdio.h>
22e05272 4726struct stat;
1c710c3c
DJ
4727/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4728struct buf { int x; };
4729FILE * (*rcsopen) (struct buf *, struct stat *, int);
4730static char *e (p, i)
4731 char **p;
4732 int i;
4733{
4734 return p[i];
4735}
4736static char *f (char * (*g) (char **, int), char **p, ...)
4737{
4738 char *s;
4739 va_list v;
4740 va_start (v,p);
4741 s = g (p, va_arg (v,int));
4742 va_end (v);
4743 return s;
4744}
4745
4746/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4747 function prototypes and stuff, but not '\xHH' hex character constants.
4748 These don't provoke an error unfortunately, instead are silently treated
5213506e 4749 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4751 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4752 that's true only with -std. */
1c710c3c
DJ
4753int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4754
5213506e
RW
4755/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4756 inside strings and character constants. */
4757#define FOO(x) 'x'
4758int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4759
1c710c3c
DJ
4760int test (int i, double x);
4761struct s1 {int (*f) (int a);};
4762struct s2 {int (*f) (double a);};
4763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4764int argc;
4765char **argv;
4766int
4767main ()
4768{
4769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4770 ;
4771 return 0;
4772}
4773_ACEOF
5213506e
RW
4774for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4776do
4777 CC="$ac_save_CC $ac_arg"
5213506e
RW
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4780fi
5213506e
RW
4781rm -f core conftest.err conftest.$ac_objext
4782 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4783done
5213506e 4784rm -f conftest.$ac_ext
1c710c3c
DJ
4785CC=$ac_save_CC
4786
4787fi
5213506e
RW
4788# AC_CACHE_VAL
4789case "x$ac_cv_prog_cc_c89" in
4790 x)
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792$as_echo "none needed" >&6; } ;;
4793 xno)
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795$as_echo "unsupported" >&6; } ;;
1c710c3c 4796 *)
5213506e
RW
4797 CC="$CC $ac_cv_prog_cc_c89"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4799$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4800esac
5213506e 4801if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4802
2aeb72e9
DD
4803fi
4804
2aeb72e9
DD
4805ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
5213506e 4811ac_ext=cpp
2aeb72e9
DD
4812ac_cpp='$CXXCPP $CPPFLAGS'
4813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4816if test -z "$CXX"; then
4817 if test -n "$CCC"; then
4818 CXX=$CCC
4819 else
4820 if test -n "$ac_tool_prefix"; then
4821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4822 do
4823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4827if ${ac_cv_prog_CXX+:} false; then :
5213506e 4828 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4829else
4830 if test -n "$CXX"; then
4831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
5213506e 4838 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4842 break 2
4843 fi
4844done
5213506e
RW
4845 done
4846IFS=$as_save_IFS
55ffb5ed 4847
c3a86da9
DJ
4848fi
4849fi
4850CXX=$ac_cv_prog_CXX
4851if test -n "$CXX"; then
5213506e
RW
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4853$as_echo "$CXX" >&6; }
c3a86da9 4854else
5213506e
RW
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
c3a86da9
DJ
4857fi
4858
5213506e 4859
c3a86da9
DJ
4860 test -n "$CXX" && break
4861 done
4862fi
4863if test -z "$CXX"; then
4864 ac_ct_CXX=$CXX
5213506e 4865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4866do
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868set dummy $ac_prog; ac_word=$2
5213506e
RW
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4871if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4872 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4873else
4874 if test -n "$ac_ct_CXX"; then
4875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
5213506e 4882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4884 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4886 break 2
4887 fi
4888done
5213506e
RW
4889 done
4890IFS=$as_save_IFS
c3a86da9
DJ
4891
4892fi
4893fi
4894ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4895if test -n "$ac_ct_CXX"; then
5213506e
RW
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4897$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4898else
5213506e
RW
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900$as_echo "no" >&6; }
c3a86da9
DJ
4901fi
4902
5213506e 4903
c3a86da9
DJ
4904 test -n "$ac_ct_CXX" && break
4905done
c3a86da9 4906
5213506e
RW
4907 if test "x$ac_ct_CXX" = x; then
4908 CXX="g++"
4909 else
4910 case $cross_compiling:$ac_tool_warned in
4911yes:)
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914ac_tool_warned=yes ;;
4915esac
4916 CXX=$ac_ct_CXX
4917 fi
c3a86da9
DJ
4918fi
4919
5213506e
RW
4920 fi
4921fi
c3a86da9 4922# Provide some information about the compiler.
5213506e
RW
4923$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4924set X $ac_compile
4925ac_compiler=$2
4926for ac_option in --version -v -V -qversion; do
4927 { { ac_try="$ac_compiler $ac_option >&5"
4928case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933$as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4935 ac_status=$?
5213506e
RW
4936 if test -s conftest.err; then
4937 sed '10a\
4938... rest of stderr output deleted ...
4939 10q' conftest.err >conftest.er1
4940 cat conftest.er1 >&5
5213506e 4941 fi
22e05272 4942 rm -f conftest.er1 conftest.err
5213506e
RW
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }
4945done
c3a86da9 4946
5213506e
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4948$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4949if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 4950 $as_echo_n "(cached) " >&6
c3a86da9 4951else
5213506e 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4953/* end confdefs.h. */
4954
4955int
4956main ()
4957{
4958#ifndef __GNUC__
4959 choke me
4960#endif
4961
4962 ;
4963 return 0;
4964}
4965_ACEOF
5213506e 4966if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4967 ac_compiler_gnu=yes
4968else
5213506e 4969 ac_compiler_gnu=no
c3a86da9 4970fi
5213506e 4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4972ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4973
4974fi
5213506e
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4976$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4977if test $ac_compiler_gnu = yes; then
4978 GXX=yes
4979else
4980 GXX=
4981fi
c3a86da9
DJ
4982ac_test_CXXFLAGS=${CXXFLAGS+set}
4983ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4985$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4986if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
4987 $as_echo_n "(cached) " >&6
4988else
4989 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4990 ac_cxx_werror_flag=yes
4991 ac_cv_prog_cxx_g=no
4992 CXXFLAGS="-g"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4994/* end confdefs.h. */
4995
4996int
4997main ()
4998{
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
5213506e 5004if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5005 ac_cv_prog_cxx_g=yes
5006else
5213506e
RW
5007 CXXFLAGS=""
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5009/* end confdefs.h. */
5213506e 5010
c3a86da9
DJ
5011int
5012main ()
5013{
5213506e 5014
c3a86da9
DJ
5015 ;
5016 return 0;
5017}
5018_ACEOF
5213506e 5019if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5020
5213506e
RW
5021else
5022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5023 CXXFLAGS="-g"
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5025/* end confdefs.h. */
5213506e 5026
c3a86da9
DJ
5027int
5028main ()
5029{
5213506e 5030
c3a86da9
DJ
5031 ;
5032 return 0;
5033}
5034_ACEOF
5213506e
RW
5035if ac_fn_cxx_try_compile "$LINENO"; then :
5036 ac_cv_prog_cxx_g=yes
11a67599 5037fi
5213506e
RW
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5046$as_echo "$ac_cv_prog_cxx_g" >&6; }
5047if test "$ac_test_CXXFLAGS" = set; then
5048 CXXFLAGS=$ac_save_CXXFLAGS
5049elif test $ac_cv_prog_cxx_g = yes; then
5050 if test "$GXX" = yes; then
5051 CXXFLAGS="-g -O2"
5052 else
5053 CXXFLAGS="-g"
5054 fi
5055else
5056 if test "$GXX" = yes; then
5057 CXXFLAGS="-O2"
5058 else
5059 CXXFLAGS=
5060 fi
c3a86da9 5061fi
c3a86da9
DJ
5062ac_ext=c
5063ac_cpp='$CPP $CPPFLAGS'
5064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067
5068
5069# We must set the default linker to the linker used by gcc for the correct
5070# operation of libtool. If LD is not defined and we are using gcc, try to
5071# set the LD default to the ld used by gcc.
5072if test -z "$LD"; then
5073 if test "$GCC" = yes; then
5074 case $build in
5075 *-*-mingw*)
5076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5077 *)
5078 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5079 esac
5080 case $gcc_prog_ld in
5081 # Accept absolute paths.
5082 [\\/]* | [A-Za-z]:[\\/]*)
5083 LD="$gcc_prog_ld" ;;
5084 esac
5085 fi
23f6b2f9
PB
5086fi
5087
0b21f5d3
EB
5088# Check whether -static-libstdc++ -static-libgcc is supported.
5089have_static_libs=no
5090if test "$GCC" = yes; then
5091 saved_LDFLAGS="$LDFLAGS"
5092
5093 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5095$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5096 ac_ext=cpp
5097ac_cpp='$CXXCPP $CPPFLAGS'
5098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5101
5102
5103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
0d6414b2
EB
5105
5106#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5107#error -static-libstdc++ not implemented
5108#endif
0b21f5d3
EB
5109int main() {}
5110_ACEOF
5111if ac_fn_cxx_try_link "$LINENO"; then :
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113$as_echo "yes" >&6; }; have_static_libs=yes
5114else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116$as_echo "no" >&6; }
5117fi
5118rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126
5127 LDFLAGS="$saved_LDFLAGS"
5128fi
5129
23f6b2f9
PB
5130
5131
55ffb5ed 5132
1c710c3c
DJ
5133if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5135set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5138if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5139 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5140else
5141 if test -n "$GNATBIND"; then
5142 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5143else
1c710c3c
DJ
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5213506e 5149 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5151 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5153 break 2
5154 fi
5155done
5213506e
RW
5156 done
5157IFS=$as_save_IFS
1c710c3c 5158
55ffb5ed
NN
5159fi
5160fi
1c710c3c 5161GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5162if test -n "$GNATBIND"; then
5213506e
RW
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5164$as_echo "$GNATBIND" >&6; }
55ffb5ed 5165else
5213506e
RW
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
55ffb5ed
NN
5168fi
5169
5213506e 5170
1c710c3c 5171fi
55ffb5ed 5172if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5173 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5174 # Extract the first word of "gnatbind", so it can be a program name with args.
5175set dummy gnatbind; ac_word=$2
5213506e
RW
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5178if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5179 $as_echo_n "(cached) " >&6
55ffb5ed 5180else
1c710c3c
DJ
5181 if test -n "$ac_ct_GNATBIND"; then
5182 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5183else
1c710c3c
DJ
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5213506e 5189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5191 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5193 break 2
5194 fi
5195done
5213506e
RW
5196 done
5197IFS=$as_save_IFS
1c710c3c 5198
55ffb5ed
NN
5199fi
5200fi
1c710c3c
DJ
5201ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5202if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5204$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5205else
5213506e
RW
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
55ffb5ed
NN
5208fi
5209
5213506e
RW
5210 if test "x$ac_ct_GNATBIND" = x; then
5211 GNATBIND="no"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214yes:)
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217ac_tool_warned=yes ;;
5218esac
5219 GNATBIND=$ac_ct_GNATBIND
5220 fi
55ffb5ed 5221else
1c710c3c 5222 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5223fi
5224
1c710c3c
DJ
5225if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5227set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5230if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5231 $as_echo_n "(cached) " >&6
5305be7e
RG
5232else
5233 if test -n "$GNATMAKE"; then
5234 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5235else
1c710c3c
DJ
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5213506e 5241 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5243 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5245 break 2
5246 fi
5247done
5213506e
RW
5248 done
5249IFS=$as_save_IFS
1c710c3c 5250
5305be7e
RG
5251fi
5252fi
1c710c3c 5253GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5254if test -n "$GNATMAKE"; then
5213506e
RW
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5256$as_echo "$GNATMAKE" >&6; }
5305be7e 5257else
5213506e
RW
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5305be7e
RG
5260fi
5261
5213506e 5262
1c710c3c 5263fi
5305be7e 5264if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5265 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5266 # Extract the first word of "gnatmake", so it can be a program name with args.
5267set dummy gnatmake; ac_word=$2
5213506e
RW
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5270if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5271 $as_echo_n "(cached) " >&6
5305be7e 5272else
1c710c3c
DJ
5273 if test -n "$ac_ct_GNATMAKE"; then
5274 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5275else
1c710c3c
DJ
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5213506e 5281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5283 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5285 break 2
5286 fi
5287done
5213506e
RW
5288 done
5289IFS=$as_save_IFS
1c710c3c 5290
5305be7e
RG
5291fi
5292fi
1c710c3c
DJ
5293ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5294if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5296$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5297else
5213506e
RW
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5305be7e
RG
5300fi
5301
5213506e
RW
5302 if test "x$ac_ct_GNATMAKE" = x; then
5303 GNATMAKE="no"
5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306yes:)
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309ac_tool_warned=yes ;;
5310esac
5311 GNATMAKE=$ac_ct_GNATMAKE
5312 fi
5305be7e 5313else
1c710c3c 5314 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5315fi
5316
5213506e
RW
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5318$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5319if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5320 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5321else
5322 cat >conftest.adb <<EOF
5323procedure conftest is begin null; end conftest;
5324EOF
5325acx_cv_cc_gcc_supports_ada=no
5326# There is a bug in old released versions of GCC which causes the
5327# driver to exit successfully when the appropriate language module
5328# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5329# Therefore we must check for the error message as well as an
5330# unsuccessful exit.
1db673ca
RO
5331# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5332# given a .adb file, but produce no object file. So we must check
5333# if an object file was really produced to guard against this.
55ffb5ed 5334errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5335if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5336 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5337fi
5338rm -f conftest.*
5339fi
5213506e
RW
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5341$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5342
7cb62ef1 5343if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5344 have_gnat=yes
5345else
5346 have_gnat=no
5347fi
5348
5213506e
RW
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5350$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5351if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5352 $as_echo_n "(cached) " >&6
a76494aa
PB
5353else
5354 echo abfoo >t1
5355 echo cdfoo >t2
b55e6680 5356 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5357 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5358 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5359 :
5360 else
5361 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5362 fi
5363 fi
a76494aa
PB
5364 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5365 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5366 :
a76494aa
PB
5367 else
5368 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5369 fi
5370 fi
5371 rm t1 t2
5372
5373fi
5213506e
RW
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5375$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5376do_compare="$gcc_cv_prog_cmp_skip"
5377
5378
55ffb5ed 5379
ff3ac0f4
ILT
5380# Check whether --enable-bootstrap was given.
5381if test "${enable_bootstrap+set}" = set; then :
5382 enableval=$enable_bootstrap;
5383else
5384 enable_bootstrap=default
5385fi
5386
5387
5388# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5389if test -r $srcdir/gcc/configure; then
5390 have_compiler=yes
5391else
5392 have_compiler=no
5393fi
ff3ac0f4
ILT
5394
5395case "$have_compiler:$host:$target:$enable_bootstrap" in
5396 *:*:*:no) ;;
5397
5398 # Default behavior. Enable bootstrap if we have a compiler
5399 # and we are in a native configuration.
5400 yes:$build:$build:default)
5401 enable_bootstrap=yes ;;
5402
5403 *:*:*:default)
5404 enable_bootstrap=no ;;
5405
5406 # We have a compiler and we are in a native configuration, bootstrap is ok
5407 yes:$build:$build:yes)
5408 ;;
5409
5410 # Other configurations, but we have a compiler. Assume the user knows
5411 # what he's doing.
5412 yes:*:*:yes)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5414$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5415 ;;
5416
5417 # No compiler: if they passed --enable-bootstrap explicitly, fail
5418 no:*:*:yes)
22e05272 5419 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5420
5421 # Fail if wrong command line
5422 *)
22e05272 5423 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5424 ;;
5425esac
5426
46070488
JM
5427# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5428# C++98 compiler can still start the bootstrap.
5429if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5430 CXX="$CXX -std=gnu++98"
46070488
JM
5431fi
5432
592c90ff
KG
5433# Used for setting $lt_cv_objdir
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5435$as_echo_n "checking for objdir... " >&6; }
22e05272 5436if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5437 $as_echo_n "(cached) " >&6
5438else
5439 rm -f .libs 2>/dev/null
5440mkdir .libs 2>/dev/null
5441if test -d .libs; then
5442 lt_cv_objdir=.libs
5443else
5444 # MS-DOS does not allow filenames that begin with a dot.
5445 lt_cv_objdir=_libs
5446fi
5447rmdir .libs 2>/dev/null
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5450$as_echo "$lt_cv_objdir" >&6; }
5451objdir=$lt_cv_objdir
5452
5453
5454
5455
5456
5457cat >>confdefs.h <<_ACEOF
5458#define LT_OBJDIR "$lt_cv_objdir/"
5459_ACEOF
5460
5461
5462
acd26225 5463# Check for GMP, MPFR and MPC
3a5729ea 5464gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5465gmpinc=
e69bf64b 5466have_gmp=no
acd26225
KG
5467
5468# Specify a location for mpc
5469# check for this first so it ends up on the link line before mpfr.
5470
5213506e
RW
5471# Check whether --with-mpc was given.
5472if test "${with_mpc+set}" = set; then :
5473 withval=$with_mpc;
5474fi
acd26225 5475
acd26225 5476
9965e3cd 5477# Check whether --with-mpc-include was given.
5213506e
RW
5478if test "${with_mpc_include+set}" = set; then :
5479 withval=$with_mpc_include;
5480fi
acd26225 5481
acd26225 5482
9965e3cd 5483# Check whether --with-mpc-lib was given.
5213506e
RW
5484if test "${with_mpc_lib+set}" = set; then :
5485 withval=$with_mpc_lib;
5486fi
acd26225 5487
acd26225
KG
5488
5489if test "x$with_mpc" != x; then
3a5729ea
KG
5490 gmplibs="-L$with_mpc/lib $gmplibs"
5491 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5492fi
5493if test "x$with_mpc_include" != x; then
3a5729ea 5494 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5495fi
5496if test "x$with_mpc_lib" != x; then
3a5729ea 5497 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5498fi
5499if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5500 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5501 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5502 # Do not test the mpc version. Assume that it is sufficient, since
5503 # it is in the source tree, and the library has not been built yet
5504 # but it would be included on the link line in the version check below
5505 # hence making the test fail.
3a5729ea 5506 have_gmp=yes
acd26225 5507fi
e69bf64b 5508
bebf829d
PB
5509# Specify a location for mpfr
5510# check for this first so it ends up on the link line before gmp.
1c710c3c 5511
5213506e
RW
5512# Check whether --with-mpfr-dir was given.
5513if test "${with_mpfr_dir+set}" = set; then :
22e05272 5514 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5515Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5516fi
5517
bebf829d
PB
5518
5519
5213506e
RW
5520# Check whether --with-mpfr was given.
5521if test "${with_mpfr+set}" = set; then :
5522 withval=$with_mpfr;
5523fi
1c710c3c 5524
bebf829d 5525
9965e3cd 5526# Check whether --with-mpfr-include was given.
5213506e
RW
5527if test "${with_mpfr_include+set}" = set; then :
5528 withval=$with_mpfr_include;
5529fi
1c710c3c 5530
8a877c9c 5531
9965e3cd 5532# Check whether --with-mpfr-lib was given.
5213506e
RW
5533if test "${with_mpfr_lib+set}" = set; then :
5534 withval=$with_mpfr_lib;
5535fi
8a877c9c 5536
bebf829d
PB
5537
5538if test "x$with_mpfr" != x; then
5539 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5540 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5541fi
8a877c9c 5542if test "x$with_mpfr_include" != x; then
3a5729ea 5543 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5544fi
5545if test "x$with_mpfr_lib" != x; then
5546 gmplibs="-L$with_mpfr_lib $gmplibs"
5547fi
e69bf64b 5548if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5549 # MPFR v3.1.0 moved the sources into a src sub-directory.
5550 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5551 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5552 fi
00f35794
BE
5553 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5554 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5555 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5556 # Do not test the mpfr version. Assume that it is sufficient, since
5557 # it is in the source tree, and the library has not been built yet
5558 # but it would be included on the link line in the version check below
5559 # hence making the test fail.
5560 have_gmp=yes
5561fi
bebf829d 5562
6de9cd9a 5563# Specify a location for gmp
1c710c3c 5564
5213506e
RW
5565# Check whether --with-gmp-dir was given.
5566if test "${with_gmp_dir+set}" = set; then :
22e05272 5567 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5568Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5569fi
5570
6de9cd9a 5571
6de9cd9a 5572
5213506e
RW
5573# Check whether --with-gmp was given.
5574if test "${with_gmp+set}" = set; then :
5575 withval=$with_gmp;
5576fi
1c710c3c 5577
6de9cd9a 5578
9965e3cd 5579# Check whether --with-gmp-include was given.
5213506e
RW
5580if test "${with_gmp_include+set}" = set; then :
5581 withval=$with_gmp_include;
5582fi
1c710c3c 5583
8a877c9c 5584
9965e3cd 5585# Check whether --with-gmp-lib was given.
5213506e
RW
5586if test "${with_gmp_lib+set}" = set; then :
5587 withval=$with_gmp_lib;
5588fi
8a877c9c
KG
5589
5590
6de9cd9a 5591
bebf829d
PB
5592if test "x$with_gmp" != x; then
5593 gmplibs="-L$with_gmp/lib $gmplibs"
5594 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5595fi
8a877c9c
KG
5596if test "x$with_gmp_include" != x; then
5597 gmpinc="-I$with_gmp_include $gmpinc"
5598fi
5599if test "x$with_gmp_lib" != x; then
5600 gmplibs="-L$with_gmp_lib $gmplibs"
5601fi
e69bf64b 5602if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5603 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5604 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5605 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5606 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5607 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5608 # Do not test the gmp version. Assume that it is sufficient, since
5609 # it is in the source tree, and the library has not been built yet
5610 # but it would be included on the link line in the version check below
5611 # hence making the test fail.
5612 have_gmp=yes
5613fi
6de9cd9a 5614
d943d7c4 5615if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5616 have_gmp=yes
5617 saved_CFLAGS="$CFLAGS"
5618 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5619 # Check for the recommended and required versions of GMP.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5621$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5622
5623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5624/* end confdefs.h. */
5625#include "gmp.h"
5626int
5627main ()
5628{
5629
5630 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5631 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5632 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5633 choke me
5634 #endif
5635
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5642/* end confdefs.h. */
362c6d2f 5643#include <gmp.h>
1c710c3c
DJ
5644int
5645main ()
5646{
6de9cd9a 5647
362c6d2f
KG
5648 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5649 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5650 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5651 choke me
5652 #endif
1c710c3c
DJ
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5213506e
RW
5658if ac_fn_c_try_compile "$LINENO"; then :
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660$as_echo "yes" >&6; }
362c6d2f
KG
5661else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5663$as_echo "buggy but acceptable" >&6; }
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5666else
5213506e
RW
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5669fi
5213506e 5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5671
acd26225 5672 # If we have GMP, check the MPFR version.
e69bf64b 5673 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5674 # Check for the recommended and required versions of MPFR.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5676$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5678/* end confdefs.h. */
70ec446f 5679#include <gmp.h>
e69bf64b 5680 #include <mpfr.h>
1c710c3c
DJ
5681int
5682main ()
5683{
e48d66a9 5684
f7d6bc01 5685 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5686 choke me
5687 #endif
1c710c3c
DJ
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
5213506e
RW
5693if ac_fn_c_try_compile "$LINENO"; then :
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5695/* end confdefs.h. */
a3993f33 5696#include <gmp.h>
e69bf64b 5697 #include <mpfr.h>
1c710c3c
DJ
5698int
5699main ()
5700{
a3993f33 5701
362c6d2f 5702 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5703 choke me
5704 #endif
acd26225
KG
5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
5213506e
RW
5710if ac_fn_c_try_compile "$LINENO"; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712$as_echo "yes" >&6; }
acd26225 5713else
5213506e
RW
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5715$as_echo "buggy but acceptable" >&6; }
acd26225 5716fi
5213506e 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5718else
5213506e
RW
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }; have_gmp=no
acd26225 5721fi
5213506e 5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5723 fi
5724
5725 # Check for the MPC header version.
3a5729ea 5726 if test x"$have_gmp" = xyes ; then
362c6d2f 5727 # Check for the recommended and required versions of MPC.
5213506e
RW
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5729$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5731/* end confdefs.h. */
5732#include <mpc.h>
5733int
5734main ()
5735{
5736
362c6d2f
KG
5737 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5738 choke me
5739 #endif
5740
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_compile "$LINENO"; then :
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747/* end confdefs.h. */
5748#include <mpc.h>
5749int
5750main ()
5751{
5752
5753 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5754 choke me
5755 #endif
5756
5757 ;
5758 return 0;
5759}
5760_ACEOF
5213506e
RW
5761if ac_fn_c_try_compile "$LINENO"; then :
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5763$as_echo "yes" >&6; }
362c6d2f
KG
5764else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5766$as_echo "buggy but acceptable" >&6; }
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5769else
5213506e 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5771$as_echo "no" >&6; }; have_gmp=no
acd26225 5772fi
5213506e 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5774 fi
5775
5776 # Now check the MPFR library.
5777 if test x"$have_gmp" = xyes; then
5778 saved_LIBS="$LIBS"
5779 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5781$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5783/* end confdefs.h. */
3a5729ea 5784#include <mpc.h>
acd26225
KG
5785int
5786main ()
5787{
5788
5789 mpfr_t n;
5790 mpfr_t x;
3a5729ea 5791 mpc_t c;
acd26225
KG
5792 int t;
5793 mpfr_init (n);
5794 mpfr_init (x);
5795 mpfr_atan2 (n, n, x, GMP_RNDN);
5796 mpfr_erfc (n, x, GMP_RNDN);
5797 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5798 mpfr_clear(n);
5799 mpfr_clear(x);
5800 mpc_init2 (c, 53);
5801 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5802 mpc_cosh (c, c, MPC_RNDNN);
5803 mpc_pow (c, c, c, MPC_RNDNN);
5804 mpc_acosh (c, c, MPC_RNDNN);
5805 mpc_clear (c);
1c710c3c
DJ
5806
5807 ;
5808 return 0;
5809}
5810_ACEOF
5213506e
RW
5811if ac_fn_c_try_link "$LINENO"; then :
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813$as_echo "yes" >&6; }
1c710c3c 5814else
5213506e
RW
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5817fi
5213506e
RW
5818rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5820 LIBS="$saved_LIBS"
5821 fi
5822
e69bf64b 5823 CFLAGS="$saved_CFLAGS"
6de9cd9a 5824
362c6d2f
KG
5825# The library versions listed in the error message below should match
5826# the HARD-minimums enforced above.
e69bf64b 5827 if test x$have_gmp != xyes; then
22e05272 5828 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5829Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5830their locations. Source code for these libraries can be found at
5831their respective hosting sites as well as at
5832ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5833http://gcc.gnu.org/install/prerequisites.html for additional info. If
5834you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5835make sure that you have installed both the libraries and the header
5836files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5837 fi
70ec446f
KG
5838fi
5839
acd26225
KG
5840# Flags needed for both GMP, MPFR and/or MPC.
5841
5842
6de9cd9a
DN
5843
5844
5845
9e3eba15 5846
0ff2d841 5847
0b21f5d3 5848# Libraries to use for stage1 or when not bootstrapping.
00020c16 5849
0b21f5d3
EB
5850# Check whether --with-stage1-libs was given.
5851if test "${with_stage1_libs+set}" = set; then :
5852 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5853 stage1_libs=
00020c16 5854 else
0b21f5d3 5855 stage1_libs=$withval
00020c16
ILT
5856 fi
5857else
5dc85f7e 5858 stage1_libs=
5213506e
RW
5859fi
5860
00020c16
ILT
5861
5862
0b21f5d3 5863# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5864
0b21f5d3
EB
5865# Check whether --with-stage1-ldflags was given.
5866if test "${with_stage1_ldflags+set}" = set; then :
5867 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5868 stage1_ldflags=
00020c16 5869 else
0b21f5d3 5870 stage1_ldflags=$withval
00020c16
ILT
5871 fi
5872else
0b21f5d3
EB
5873 stage1_ldflags=
5874 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5875 # if supported. But if the user explicitly specified the libraries to use,
5876 # trust that they are doing what they want.
5877 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5878 stage1_ldflags="-static-libstdc++ -static-libgcc"
5879 fi
5213506e
RW
5880fi
5881
00020c16
ILT
5882
5883
5dc85f7e 5884# Libraries to use for stage2 and later builds.
00020c16 5885
5213506e
RW
5886# Check whether --with-boot-libs was given.
5887if test "${with_boot_libs+set}" = set; then :
5888 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5889 poststage1_libs=
5890 else
5891 poststage1_libs=$withval
5892 fi
5893else
5dc85f7e 5894 poststage1_libs=
5213506e
RW
5895fi
5896
00020c16
ILT
5897
5898
ed2eaa9f
ILT
5899# Linker flags to use for stage2 and later builds.
5900
5901# Check whether --with-boot-ldflags was given.
5902if test "${with_boot_ldflags+set}" = set; then :
5903 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5904 poststage1_ldflags=
5905 else
5906 poststage1_ldflags=$withval
5907 fi
5908else
5909 poststage1_ldflags=
bec93d73
ILT
5910 # In stages 2 and 3, default to linking libstdc++ and libgcc
5911 # statically. But if the user explicitly specified the libraries to
5912 # use, trust that they are doing what they want.
5913 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5914 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5915 fi
5916fi
5917
5918
5919
e357a5e0 5920# GCC GRAPHITE dependency isl.
4a9bb2aa 5921# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5922
5923
33ad93b9
RG
5924# Check whether --with-isl was given.
5925if test "${with_isl+set}" = set; then :
5926 withval=$with_isl;
5213506e 5927fi
f8bf9252 5928
f8bf9252 5929
eae1a5d4 5930# Treat --without-isl as a request to disable
625afa23 5931# GRAPHITE support and skip all following checks.
eae1a5d4 5932if test "x$with_isl" != "xno"; then
e357a5e0 5933 # Check for isl
625afa23
RG
5934
5935
33ad93b9
RG
5936# Check whether --with-isl-include was given.
5937if test "${with_isl_include+set}" = set; then :
5938 withval=$with_isl_include;
5213506e
RW
5939fi
5940
f8bf9252 5941
33ad93b9
RG
5942# Check whether --with-isl-lib was given.
5943if test "${with_isl_lib+set}" = set; then :
5944 withval=$with_isl_lib;
5213506e 5945fi
f8bf9252 5946
f8bf9252 5947
33ad93b9
RG
5948 # Check whether --enable-isl-version-check was given.
5949if test "${enable_isl_version_check+set}" = set; then :
5950 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5951else
5952 ENABLE_ISL_CHECK=yes
7d32a440
SP
5953fi
5954
5955
33ad93b9
RG
5956 # Initialize isllibs and islinc.
5957 case $with_isl in
5958 no)
5959 isllibs=
5960 islinc=
5961 ;;
5962 "" | yes)
5963 ;;
5964 *)
5965 isllibs="-L$with_isl/lib"
5966 islinc="-I$with_isl/include"
5967 ;;
5968 esac
5969 if test "x${with_isl_include}" != x ; then
5970 islinc="-I$with_isl_include"
5971 fi
5972 if test "x${with_isl_lib}" != x; then
5973 isllibs="-L$with_isl_lib"
5974 fi
5975 if test "x${islinc}" = x && test "x${isllibs}" = x \
5976 && test -d ${srcdir}/isl; then
5977 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5978 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5979 ENABLE_ISL_CHECK=no
560d18d3
AK
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5981$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5982 fi
7d32a440 5983
eae1a5d4
RG
5984 isllibs="${isllibs} -lisl"
5985
7d32a440 5986
7d32a440 5987
9847828b
RB
5988 if test "${ENABLE_ISL_CHECK}" = yes ; then
5989 _isl_saved_CFLAGS=$CFLAGS
5990 _isl_saved_LDFLAGS=$LDFLAGS
5991 _isl_saved_LIBS=$LIBS
5992
5993 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5994 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5995 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5996
f877b3ad
RB
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5998$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6000/* end confdefs.h. */
f877b3ad 6001#include <isl/schedule.h>
622dbadf
BC
6002int
6003main ()
6004{
f877b3ad 6005isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6006 ;
6007 return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_link "$LINENO"; then :
9847828b 6011 gcc_cv_isl=yes
622dbadf
BC
6012else
6013 gcc_cv_isl=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6018$as_echo "$gcc_cv_isl" >&6; }
6019
560d18d3 6020 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6022$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6023 fi
6024
9847828b
RB
6025 CFLAGS=$_isl_saved_CFLAGS
6026 LDFLAGS=$_isl_saved_LDFLAGS
6027 LIBS=$_isl_saved_LIBS
6028 fi
6029
6030
f8bf9252 6031
f8bf9252 6032
33ad93b9
RG
6033
6034
33ad93b9
RG
6035 if test "x${with_isl}" = xno; then
6036 graphite_requested=no
6037 elif test "x${with_isl}" != x \
6038 || test "x${with_isl_include}" != x \
6039 || test "x${with_isl_lib}" != x ; then
6040 graphite_requested=yes
6041 else
6042 graphite_requested=no
7d32a440 6043 fi
d789184e 6044
d789184e
SP
6045
6046
33ad93b9
RG
6047 if test "${gcc_cv_isl}" = no ; then
6048 isllibs=
6049 islinc=
6050 fi
6051
6052 if test "${graphite_requested}" = yes \
6053 && test "x${isllibs}" = x \
6054 && test "x${islinc}" = x ; then
f8bf9252 6055
22e05272 6056 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6057 fi
f8bf9252 6058
d32ef397 6059
d32ef397
AS
6060fi
6061
e357a5e0 6062# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6063if test "x$with_isl" = xno ||
625afa23 6064 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6065 noconfigdirs="$noconfigdirs isl"
625afa23 6066 islinc=
32d024bf
RG
6067fi
6068
625afa23
RG
6069
6070
6071
d7f09764
DN
6072# Check for LTO support.
6073# Check whether --enable-lto was given.
6074if test "${enable_lto+set}" = set; then :
6075 enableval=$enable_lto; enable_lto=$enableval
6076else
6077 enable_lto=yes; default_enable_lto=yes
6078fi
6079
6080
7413962d 6081
9a02962b
DK
6082
6083
6084target_elf=no
6085case $target in
6086 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6087 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6088 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6089 nvptx-*-none)
9a02962b
DK
6090 target_elf=no
6091 ;;
6092 *)
6093 target_elf=yes
6094 ;;
6095esac
6096
6097if test $target_elf = yes; then :
48215350
DK
6098 # ELF platforms build the lto-plugin always.
6099 build_lto_plugin=yes
9a02962b 6100
9a02962b
DK
6101else
6102 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6103 case $target in
deeba76a 6104 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6105 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6106 *) enable_lto=no ;;
6107 esac
9a02962b 6108 else
db50fe7d
IS
6109 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6110 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6111 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6112 # warn during gcc/ subconfigure; unless you're bootstrapping with
6113 # -flto it won't be needed until after installation anyway.
6114 case $target in
9e530bcd 6115 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6116 *) if test x"$enable_lto" = x"yes"; then
22e05272 6117 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6118 fi
6119 ;;
6120 esac
6121 fi
1cd0b716 6122 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6123 # Build it unless LTO was explicitly disabled.
1cd0b716 6124 case $target in
48215350 6125 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6126 *) ;;
6127 esac
48215350 6128
9a02962b
DK
6129fi
6130
d7f09764 6131
45b3824d
TS
6132# Check whether --enable-linker-plugin-configure-flags was given.
6133if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6134 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6135else
6136 extra_linker_plugin_configure_flags=
6137fi
6138
6139
6140# Check whether --enable-linker-plugin-flags was given.
6141if test "${enable_linker_plugin_flags+set}" = set; then :
6142 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6143else
6144 extra_linker_plugin_flags=
6145fi
6146
6147
6148
cdfee50a
NS
6149# Enable --enable-host-shared.
6150# Checked early to determine whether jit is an 'all' language
6151# Check whether --enable-host-shared was given.
6152if test "${enable_host_shared+set}" = set; then :
6153 enableval=$enable_host_shared; host_shared=$enableval
6154else
6155 host_shared=no
6156fi
6157
6158
f8bf9252 6159
0823efed 6160# By default, C and C++ are the only stage 1 languages.
e1888513 6161stage1_languages=,c,
2805b53a 6162
00020c16 6163# Target libraries that we bootstrap.
ad1e5170 6164bootstrap_target_libs=,target-libgcc,
00020c16 6165
55ffb5ed
NN
6166# Figure out what language subdirectories are present.
6167# Look if the user specified --enable-languages="..."; if not, use
6168# the environment variable $LANGUAGES if defined. $LANGUAGES might
6169# go away some day.
6170# NB: embedded tabs in this IF block -- do not untabify
6171if test -d ${srcdir}/gcc; then
6172 if test x"${enable_languages+set}" != xset; then
6173 if test x"${LANGUAGES+set}" = xset; then
6174 enable_languages="${LANGUAGES}"
6b1786aa 6175 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6176 else
cdfee50a 6177 enable_languages=default
55ffb5ed
NN
6178 fi
6179 else
6180 if test x"${enable_languages}" = x ||
6181 test x"${enable_languages}" = xyes;
6182 then
6b1786aa 6183 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6184 exit 1
6185 fi
6186 fi
6187 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6188
7f26dfa3
FXC
6189 # 'f95' is the old name for the 'fortran' language. We issue a warning
6190 # and make the substitution.
6191 case ,${enable_languages}, in
6192 *,f95,*)
6b1786aa 6193 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6194 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6195 ;;
6196 esac
6197
0823efed
DN
6198 # If bootstrapping, C++ must be enabled.
6199 case ",$enable_languages,:$enable_bootstrap" in
6200 *,c++,*:*) ;;
6201 *:yes)
ff3ac0f4
ILT
6202 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6203 enable_languages="${enable_languages},c++"
6204 else
22e05272 6205 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6206 fi
6207 ;;
6208 esac
6209
55ffb5ed
NN
6210 # First scan to see if an enabled language requires some other language.
6211 # We assume that a given config-lang.in will list all the language
6212 # front ends it requires, even if some are required indirectly.
6213 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6214 case ${lang_frag} in
6215 ..) ;;
6216 # The odd quoting in the next line works around
6217 # an apparent bug in bash 1.12 on linux.
6218 ${srcdir}/gcc/[*]/config-lang.in) ;;
6219 *)
69ecd18f
ILT
6220 # From the config-lang.in, get $language, $lang_requires, and
6221 # $lang_requires_boot_languages.
55ffb5ed
NN
6222 language=
6223 lang_requires=
69ecd18f 6224 lang_requires_boot_languages=
d4360477
NS
6225 # set srcdir during sourcing lang_frag to the gcc dir.
6226 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6227 # polutes this shell
6228 saved_srcdir=${srcdir}
6229 srcdir=${srcdir}/gcc . ${lang_frag}
6230 srcdir=${saved_srcdir}
69ecd18f 6231 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6232 case ,${enable_languages}, in
6233 *,$other,*) ;;
cdfee50a 6234 *,default,*) ;;
55ffb5ed
NN
6235 *,all,*) ;;
6236 *,$language,*)
6237 echo " \`$other' language required by \`$language'; enabling" 1>&2
6238 enable_languages="${enable_languages},${other}"
6239 ;;
6240 esac
6241 done
69ecd18f
ILT
6242 for other in ${lang_requires_boot_languages} ; do
6243 if test "$other" != "c"; then
6244 case ,${enable_stage1_languages}, in
6245 *,$other,*) ;;
cdfee50a 6246 *,default,*) ;;
69ecd18f
ILT
6247 *,all,*) ;;
6248 *)
6249 case ,${enable_languages}, in
6250 *,$language,*)
6251 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6252 enable_stage1_languages="$enable_stage1_languages,${other}"
6253 ;;
6254 esac
6255 ;;
6256 esac
6257 fi
6258 done
55ffb5ed
NN
6259 ;;
6260 esac
6261 done
6262
e1888513 6263 new_enable_languages=,c,
d7f09764
DN
6264
6265 # If LTO is enabled, add the LTO front end.
d7f09764 6266 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6267 case ,${enable_languages}, in
6268 *,lto,*) ;;
6269 *) enable_languages="${enable_languages},lto" ;;
6270 esac
1cd0b716 6271 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6272 configdirs="$configdirs lto-plugin"
d7f09764
DN
6273 fi
6274 fi
6275
426c1eb0
TS
6276 # If we're building an offloading compiler, add the LTO front end.
6277 if test x"$enable_as_accelerator_for" != x ; then
6278 case ,${enable_languages}, in
6279 *,lto,*) ;;
6280 *) enable_languages="${enable_languages},lto" ;;
6281 esac
6282 fi
6283
cdfee50a 6284 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6285 potential_languages=,c,
55ffb5ed 6286
4da3b0f8
ILT
6287 enabled_target_libs=
6288 disabled_target_libs=
6289
55ffb5ed
NN
6290 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6291 case ${lang_frag} in
6292 ..) ;;
6293 # The odd quoting in the next line works around
6294 # an apparent bug in bash 1.12 on linux.
6295 ${srcdir}/gcc/[*]/config-lang.in) ;;
6296 *)
1c710c3c 6297 # From the config-lang.in, get $language, $target_libs,
2805b53a 6298 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6299 language=
6300 target_libs=
6301 lang_dirs=
1546bb64 6302 subdir_requires=
e1888513
PB
6303 boot_language=no
6304 build_by_default=yes
d4360477
NS
6305 # set srcdir during sourcing. See above about save & restore
6306 saved_srcdir=${srcdir}
6307 srcdir=${srcdir}/gcc . ${lang_frag}
6308 srcdir=${saved_srcdir}
e1888513
PB
6309 if test x${language} = x; then
6310 echo "${lang_frag} doesn't set \$language." 1>&2
6311 exit 1
6312 fi
6313
78767fd9 6314 if test "$language" = "c++"; then
0823efed 6315 boot_language=yes
00020c16
ILT
6316 fi
6317
178f875a 6318 add_this_lang=no
cdfee50a
NS
6319 # C is always enabled, so no need to add it again
6320 if test "$language" != "c"; then
6321 case ,${enable_languages}, in
6322 *,${language},*)
6323 # Language was explicitly selected; include it
d4a10d0a 6324 add_this_lang=yes
cdfee50a
NS
6325 ;;
6326 *,all,*)
6327 # All languages are enabled
6328 add_this_lang=all
6329 ;;
6330 *,default,*)
6331 # 'default' was selected, select it if it is a default language
178f875a 6332 add_this_lang=${build_by_default}
cdfee50a
NS
6333 ;;
6334 esac
6335 fi
6de9cd9a 6336
1546bb64 6337 # Disable languages that need other directories if these aren't available.
95695ad3 6338 for i in $subdir_requires; do
b6348cb3 6339 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6340 case ${add_this_lang} in
6341 yes)
1546bb64 6342 # Specifically requested language; tell them.
22e05272 6343 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6344 ;;
cdfee50a
NS
6345 all)
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6347$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6348 add_this_lang=unsupported
6349 ;;
1546bb64
PB
6350 *)
6351 # Silently disable.
e1888513 6352 add_this_lang=unsupported
1546bb64
PB
6353 ;;
6354 esac
6355 done
6356
e1888513 6357 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6358 case ${add_this_lang}:${language}:${have_gnat} in
6359 yes:ada:no)
e1888513 6360 # Specifically requested language; tell them.
22e05272 6361 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6362 ;;
cdfee50a
NS
6363 all:ada:no)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6365$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6366 add_this_lang=unsupported
6367 ;;
e1888513
PB
6368 *:ada:no)
6369 # Silently disable.
6370 add_this_lang=unsupported
6371 ;;
6372 esac
6373
cdfee50a
NS
6374 # Disable jit if -enable-host-shared not specified
6375 case ${add_this_lang}:${language}:${host_shared} in
6376 yes:jit:no)
6377 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6378 as_fn_error $? "
cdfee50a
NS
6379Enabling language \"jit\" requires --enable-host-shared.
6380
6381--enable-host-shared typically slows the rest of the compiler down by
6382a few %, so you must explicitly enable it.
6383
6384If you want to build both the jit and the regular compiler, it is often
6385best to do this via two separate configure/builds, in separate
6386directories, to avoid imposing the performance cost of
6387--enable-host-shared on the regular compiler." "$LINENO" 5
6388 ;;
6389 all:jit:no)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6391$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6392 add_this_lang=unsupported
6393 ;;
6394 *:jit:no)
6395 # Silently disable.
6396 add_this_lang=unsupported
6397 ;;
6398 esac
6399
6400 # Disable a language that is unsupported by the target.
6401 case "${add_this_lang}: $unsupported_languages " in
6402 no:*) ;;
6403 unsupported:*) ;;
6404 *:*" $language "*)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6406$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6407 add_this_lang=unsupported
4fab7234
HPN
6408 ;;
6409 esac
6410
6de9cd9a 6411 case $add_this_lang in
e1888513 6412 unsupported)
55ffb5ed 6413 # Remove language-dependent dirs.
4da3b0f8
ILT
6414 disabled_target_libs="$disabled_target_libs $target_libs"
6415 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6416 ;;
e1888513
PB
6417 no)
6418 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6419 disabled_target_libs="$disabled_target_libs $target_libs"
6420 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6421 potential_languages="${potential_languages}${language},"
6422 ;;
cdfee50a 6423 all|yes)
e1888513
PB
6424 new_enable_languages="${new_enable_languages}${language},"
6425 potential_languages="${potential_languages}${language},"
2805b53a 6426 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6427 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6428 case "${boot_language}:,$enable_stage1_languages," in
6429 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6430 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6431 case ",$stage1_languages," in
6432 *,$language,* | ,yes, | ,all,) ;;
6433 *) stage1_languages="${stage1_languages}${language}," ;;
6434 esac
00020c16
ILT
6435 # We need to bootstrap any supporting libraries.
6436 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6437 ;;
6438 esac
6439 ;;
55ffb5ed
NN
6440 esac
6441 ;;
6442 esac
6443 done
6444
4da3b0f8
ILT
6445 # Add target libraries which are only needed for disabled languages
6446 # to noconfigdirs.
6447 if test -n "$disabled_target_libs"; then
6448 for dir in $disabled_target_libs; do
6449 case " $enabled_target_libs " in
6450 *" ${dir} "*) ;;
6451 *) noconfigdirs="$noconfigdirs $dir" ;;
6452 esac
6453 done
6454 fi
6455
5213506e
RW
6456 # Check whether --enable-stage1-languages was given.
6457if test "${enable_stage1_languages+set}" = set; then :
6458 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6459 ,no,|,,)
6460 # Set it to something that will have no effect in the loop below
6461 enable_stage1_languages=c ;;
6462 ,yes,)
6463 enable_stage1_languages=`echo $new_enable_languages | \
6464 sed -e "s/^,//" -e "s/,$//" ` ;;
6465 *,all,*)
6466 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6467 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6468 esac
6469
6470 # Add "good" languages from enable_stage1_languages to stage1_languages,
6471 # while "bad" languages go in missing_languages. Leave no duplicates.
6472 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6473 case $potential_languages in
6474 *,$i,*)
6475 case $stage1_languages in
6476 *,$i,*) ;;
6477 *) stage1_languages="$stage1_languages$i," ;;
6478 esac ;;
6479 *)
6480 case $missing_languages in
6481 *,$i,*) ;;
6482 *) missing_languages="$missing_languages$i," ;;
6483 esac ;;
6484 esac
6485 done
5213506e
RW
6486fi
6487
e1888513
PB
6488
6489 # Remove leading/trailing commas that were added for simplicity
6490 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6491 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6492 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6493 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6494
55ffb5ed 6495 if test "x$missing_languages" != x; then
22e05272 6496 as_fn_error $? "
0cf085e4 6497The following requested languages could not be built: ${missing_languages}
5213506e 6498Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6499 fi
55ffb5ed
NN
6500 if test "x$new_enable_languages" != "x$enable_languages"; then
6501 echo The following languages will be built: ${new_enable_languages}
e1888513 6502 enable_languages="$new_enable_languages"
55ffb5ed 6503 fi
e1888513 6504
1c710c3c 6505
b2eaac4a 6506 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6507fi
6508
27079765
AH
6509# Handle --disable-<component> generically.
6510for dir in $configdirs $build_configdirs $target_configdirs ; do
6511 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6512 varname=`echo $dirname | sed -e s/+/_/g`
6513 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6514 noconfigdirs="$noconfigdirs $dir"
6515 fi
6516done
6517
43c40f3e
RO
6518# Check for Boehm's garbage collector
6519# Check whether --enable-objc-gc was given.
6520if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6521 enableval=$enable_objc_gc;
6522fi
6523
6524
6525# Check whether --with-target-bdw-gc was given.
6526if test "${with_target_bdw_gc+set}" = set; then :
6527 withval=$with_target_bdw_gc;
6528fi
6529
6530
6531# Check whether --with-target-bdw-gc-include was given.
6532if test "${with_target_bdw_gc_include+set}" = set; then :
6533 withval=$with_target_bdw_gc_include;
6534fi
6535
6536
6537# Check whether --with-target-bdw-gc-lib was given.
6538if test "${with_target_bdw_gc_lib+set}" = set; then :
6539 withval=$with_target_bdw_gc_lib;
6540fi
6541
6542
6543case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6545$as_echo_n "checking for bdw garbage collector... " >&6; }
6546 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6548$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6549 else
6550 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6551 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6552 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6553 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6556$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6557 fi
6558 fi
43c40f3e
RO
6559esac
6560
5e9d6aa4 6561# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6562case ,${enable_languages}, in
1007a55c 6563 *,c++,*)
5e9d6aa4 6564 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6565 case "${noconfigdirs}" in
6566 *target-libstdc++-v3*)
5e9d6aa4 6567 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6568 ;;
6569 *) ;;
6570 esac
6571 ;;
99776ebd 6572 *)
5e9d6aa4 6573 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6574 ;;
6575esac
6576
ee6a22df
L
6577# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6578# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6579# If we have the source for $noconfigdirs entries, add them to $notsupp.
6580
6581notsupp=""
6582for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6583 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6584 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6585 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6586 if test -r $srcdir/$dirname/configure ; then
6587 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588 true
6589 else
6590 notsupp="$notsupp $dir"
6591 fi
6592 fi
6593 fi
ee6a22df
L
6594 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6596 if test -r $srcdir/$dirname/configure ; then
6597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 true
6599 else
6600 notsupp="$notsupp $dir"
6601 fi
6602 fi
6603 fi
55ffb5ed
NN
6604 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6606 if test -r $srcdir/$dirname/configure ; then
6607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 true
6609 else
6610 notsupp="$notsupp $dir"
6611 fi
6612 fi
6613 fi
6614done
6615
55ffb5ed
NN
6616# Quietly strip out all directories which aren't configurable in this tree.
6617# This relies on all configurable subdirectories being autoconfiscated, which
6618# is now the case.
23f6b2f9
PB
6619build_configdirs_all="$build_configdirs"
6620build_configdirs=
6621for i in ${build_configdirs_all} ; do
1c710c3c 6622 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6623 if test -f ${srcdir}/$j/configure ; then
6624 build_configdirs="${build_configdirs} $i"
6625 fi
6626done
6627
55ffb5ed
NN
6628configdirs_all="$configdirs"
6629configdirs=
6630for i in ${configdirs_all} ; do
6631 if test -f ${srcdir}/$i/configure ; then
6632 configdirs="${configdirs} $i"
6633 fi
6634done
23f6b2f9 6635
55ffb5ed
NN
6636target_configdirs_all="$target_configdirs"
6637target_configdirs=
6638for i in ${target_configdirs_all} ; do
1c710c3c 6639 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6640 if test -f ${srcdir}/$j/configure ; then
6641 target_configdirs="${target_configdirs} $i"
6642 fi
6643done
6644
45b3824d
TS
6645# libiberty-linker-plugin is special: it doesn't have its own source directory,
6646# so we have to add it after the preceding checks.
6647if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6648then
6649 case " $configdirs " in
6650 *" libiberty "*)
6651 # If we can build libiberty, we can also build libiberty-linker-plugin.
6652 configdirs="$configdirs libiberty-linker-plugin"
6653 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6654 --with-libiberty=../libiberty-linker-plugin";;
6655 *)
22e05272 6656 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6657 esac
6658fi
6659
fca38047
TS
6660# Sometimes we have special requirements for the host libiberty.
6661extra_host_libiberty_configure_flags=
1c01ebf6 6662extra_host_zlib_configure_flags=
fca38047
TS
6663case " $configdirs " in
6664 *" lto-plugin "* | *" libcc1 "*)
6665 # When these are to be built as shared libraries, the same applies to
6666 # libiberty.
6667 extra_host_libiberty_configure_flags=--enable-shared
6668 ;;
1c01ebf6
L
6669 *" bfd "*)
6670 # When bfd is to be built as a shared library, the same applies to
6671 # zlib.
6672 if test "$enable_shared" = "yes"; then
6673 extra_host_zlib_configure_flags=--enable-host-shared
6674 fi
6675 ;;
fca38047
TS
6676esac
6677
6678
1c01ebf6 6679
55ffb5ed
NN
6680# Produce a warning message for the subdirs we can't configure.
6681# This isn't especially interesting in the Cygnus tree, but in the individual
6682# FSF releases, it's important to let people know when their machine isn't
6683# supported by the one or two programs in a package.
6684
6685if test -n "${notsupp}" && test -z "${norecursion}" ; then
6686 # If $appdirs is non-empty, at least one of those directories must still
6687 # be configured, or we error out. (E.g., if the gas release supports a
6688 # specified target in some subdirs but not the gas subdir, we shouldn't
6689 # pretend that all is well.)
6690 if test -n "$appdirs" ; then
6691 for dir in $appdirs ; do
6692 if test -r $dir/Makefile.in ; then
6693 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6694 appdirs=""
6695 break
6696 fi
23f6b2f9 6697 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6698 appdirs=""
6699 break
6700 fi
6701 fi
6702 done
6703 if test -n "$appdirs" ; then
6704 echo "*** This configuration is not supported by this package." 1>&2
6705 exit 1
6706 fi
6707 fi
6708 # Okay, some application will build, or we don't care to check. Still
6709 # notify of subdirs not getting built.
6710 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6711 echo " ${notsupp}" 1>&2
6712 echo " (Any other directories should still work fine.)" 1>&2
6713fi
6714
6715case "$host" in
6716 *msdosdjgpp*)
6717 enable_gdbtk=no ;;
6718esac
6719
c3a86da9
DJ
6720# To find our prefix, in gcc_cv_tool_prefix.
6721
6722# The user is always right.
6723if test "${PATH_SEPARATOR+set}" != set; then
6724 echo "#! /bin/sh" >conf$$.sh
6725 echo "exit 0" >>conf$$.sh
6726 chmod +x conf$$.sh
6727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6728 PATH_SEPARATOR=';'
6729 else
6730 PATH_SEPARATOR=:
6731 fi
6732 rm -f conf$$.sh
6733fi
6734
6735
3c36aa6b
JJ
6736 get_gcc_base_ver="cat"
6737
6738# Check whether --with-gcc-major-version-only was given.
6739if test "${with_gcc_major_version_only+set}" = set; then :
6740 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6741 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6742 fi
6743
6744fi
6745
6746
6747
6748
6749
c3a86da9
DJ
6750
6751if test "x$exec_prefix" = xNONE; then
6752 if test "x$prefix" = xNONE; then
6753 gcc_cv_tool_prefix=$ac_default_prefix
6754 else
6755 gcc_cv_tool_prefix=$prefix
6756 fi
6757else
6758 gcc_cv_tool_prefix=$exec_prefix
6759fi
6760
6761# If there is no compiler in the tree, use the PATH only. In any
6762# case, if there is no compiler in the tree nobody should use
6763# AS_FOR_TARGET and LD_FOR_TARGET.
6764if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6765 if test x$with_gcc_major_version_only = xyes ; then
6766 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6767 else
6768 gcc_version=`cat $srcdir/gcc/BASE-VER`
6769 fi
c3a86da9
DJ
6770 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6771 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6772 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6773 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6774 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6775 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6776else
6777 gcc_cv_tool_dirs=
6778fi
6779
6780if test x$build = x$target && test -n "$md_exec_prefix"; then
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6782fi
6783
6784
6785
55ffb5ed
NN
6786copy_dirs=
6787
1c710c3c 6788
5213506e
RW
6789# Check whether --with-build-sysroot was given.
6790if test "${with_build_sysroot+set}" = set; then :
6791 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6792 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6793 fi
6794else
6795 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6796fi
526635cb
MM
6797
6798
c8aea42c 6799
5213506e
RW
6800
6801# Check whether --with-debug-prefix-map was given.
6802if test "${with_debug_prefix_map+set}" = set; then :
6803 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6804 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6805 for debug_map in $withval; do
6806 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6807 done
6808 fi
6809else
6810 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6811fi
6812
c8aea42c
PB
6813
6814
1c8bd6a3
PB
6815# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6816# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6817# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6818# We want to ensure that TARGET libraries (which we know are built with
6819# gcc) are built with "-O2 -g", so include those options when setting
6820# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6821if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6822 if test "x${is_cross_compiler}" = xyes; then
6823 CFLAGS_FOR_TARGET="-g -O2"
6824 else
6825 CFLAGS_FOR_TARGET=$CFLAGS
6826 case " $CFLAGS " in
6827 *" -O2 "*) ;;
6828 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6829 esac
6830 case " $CFLAGS " in
6831 *" -g "* | *" -g3 "*) ;;
6832 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6833 esac
6834 fi
1c8bd6a3
PB
6835fi
6836
6837
6838if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6839 if test "x${is_cross_compiler}" = xyes; then
6840 CXXFLAGS_FOR_TARGET="-g -O2"
6841 else
6842 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6843 case " $CXXFLAGS " in
6844 *" -O2 "*) ;;
6845 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6846 esac
6847 case " $CXXFLAGS " in
6848 *" -g "* | *" -g3 "*) ;;
6849 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6850 esac
6851 fi
1c8bd6a3
PB
6852fi
6853
6854
6f57bdf6
DK
6855
6856
55ffb5ed
NN
6857# Handle --with-headers=XXX. If the value is not "yes", the contents of
6858# the named directory are copied to $(tooldir)/sys-include.
6859if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6860 if test x${is_cross_compiler} = xno ; then
6861 echo 1>&2 '***' --with-headers is only supported when cross compiling
6862 exit 1
6863 fi
6864 if test x"${with_headers}" != xyes ; then
c3a86da9 6865 x=${gcc_cv_tool_prefix}
1c710c3c 6866 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6867 fi
6868fi
6869
6870# Handle --with-libs=XXX. If the value is not "yes", the contents of
6871# the name directories are copied to $(tooldir)/lib. Multiple directories
6872# are permitted.
6873if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6874 if test x${is_cross_compiler} = xno ; then
6875 echo 1>&2 '***' --with-libs is only supported when cross compiling
6876 exit 1
6877 fi
6878 if test x"${with_libs}" != xyes ; then
6879 # Copy the libraries in reverse order, so that files in the first named
6880 # library override files in subsequent libraries.
c3a86da9 6881 x=${gcc_cv_tool_prefix}
55ffb5ed 6882 for l in ${with_libs}; do
1c710c3c 6883 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6884 done
6885 fi
6886fi
6887
d7f09764 6888# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6889#
6890# This is done by determining whether or not the appropriate directory
6891# is available, and by checking whether or not specific configurations
6892# have requested that this magic not happen.
1c710c3c
DJ
6893#
6894# The command line options always override the explicit settings in
6b1786aa 6895# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6896#
1c710c3c 6897# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6898# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6899# --without-gnu-ld options for the configure script. Similarly, if
6900# the default is to use the included zlib and you don't want to do that,
6901# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6902
6903if test x${use_gnu_as} = x &&
6904 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6905 with_gnu_as=yes
6906 extra_host_args="$extra_host_args --with-gnu-as"
6907fi
6908
6909if test x${use_gnu_ld} = x &&
5afab7ad 6910 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6911 with_gnu_ld=yes
6912 extra_host_args="$extra_host_args --with-gnu-ld"
6913fi
6914
d7f09764
DN
6915if test x${use_included_zlib} = x &&
6916 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6917 :
6918else
6919 with_system_zlib=yes
6920 extra_host_args="$extra_host_args --with-system-zlib"
6921fi
6922
e8b05380
PB
6923# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6924# can detect this case.
6925
6926if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6927 with_newlib=yes
6928 extra_host_args="$extra_host_args --with-newlib"
6929fi
6930
55ffb5ed
NN
6931# Handle ${copy_dirs}
6932set fnord ${copy_dirs}
6933shift
6934while test $# != 0 ; do
6935 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6936 :
6937 else
6938 echo Copying $1 to $2
6939
6940 # Use the install script to create the directory and all required
6941 # parent directories.
6942 if test -d $2 ; then
6943 :
6944 else
6945 echo >config.temp
6946 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6947 fi
6948
6949 # Copy the directory, assuming we have tar.
6950 # FIXME: Should we use B in the second tar? Not all systems support it.
6951 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6952
6953 # It is the responsibility of the user to correctly adjust all
6954 # symlinks. If somebody can figure out how to handle them correctly
6955 # here, feel free to add the code.
6956
6957 echo $1 > $2/COPIED
6958 fi
6959 shift; shift
6960done
6961
e8b05380
PB
6962# Determine a target-dependent exec_prefix that the installed
6963# gcc will search in. Keep this list sorted by triplet, with
6964# the *-*-osname triplets last.
6965md_exec_prefix=
6966case "${target}" in
30b74385 6967 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6968 md_exec_prefix=/dev/env/DJDIR/bin
6969 ;;
e8b05380 6970 *-*-hpux* | \
e8b05380 6971 *-*-nto-qnx* | \
6de66370 6972 *-*-solaris2*)
e8b05380
PB
6973 md_exec_prefix=/usr/ccs/bin
6974 ;;
6975esac
6976
671aa708
NN
6977extra_arflags_for_target=
6978extra_nmflags_for_target=
6979extra_ranlibflags_for_target=
6980target_makefile_frag=/dev/null
6981case "${target}" in
58e24147
AM
6982 spu-*-*)
6983 target_makefile_frag="config/mt-spu"
6984 ;;
d896cc4d 6985 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6986 target_makefile_frag="config/mt-sde"
6987 ;;
1ec3b87b
RS
6988 mipsisa*-*-elfoabi*)
6989 target_makefile_frag="config/mt-mips-elfoabi"
6990 ;;
08d0963a
RS
6991 mips*-*-*linux* | mips*-*-gnu*)
6992 target_makefile_frag="config/mt-mips-gnu"
6993 ;;
707f1839
SL
6994 nios2-*-elf*)
6995 target_makefile_frag="config/mt-nios2-elf"
6996 ;;
76052545
EB
6997 *-*-linux-android*)
6998 target_makefile_frag="config/mt-android"
6999 ;;
416ac4d4 7000 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7001 target_makefile_frag="config/mt-gnu"
671aa708
NN
7002 ;;
7003 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7004 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7005 # commands to handle both 32-bit and 64-bit objects. These flags are
7006 # harmless if we're using GNU nm or ar.
7007 extra_arflags_for_target=" -X32_64"
7008 extra_nmflags_for_target=" -B -X32_64"
7009 ;;
671aa708
NN
7010esac
7011
7012alphaieee_frag=/dev/null
7013case $target in
7014 alpha*-*-*)
7015 # This just makes sure to use the -mieee option to build target libs.
7016 # This should probably be set individually by each library.
7017 alphaieee_frag="config/mt-alphaieee"
7018 ;;
7019esac
7020
7021# If --enable-target-optspace always use -Os instead of -O2 to build
7022# the target libraries, similarly if it is not specified, use -Os
7023# on selected platforms.
7024ospace_frag=/dev/null
7025case "${enable_target_optspace}:${target}" in
7026 yes:*)
7027 ospace_frag="config/mt-ospace"
7028 ;;
7029 :d30v-*)
7030 ospace_frag="config/mt-d30v"
7031 ;;
d9063947 7032 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7033 ospace_frag="config/mt-ospace"
7034 ;;
7035 no:* | :*)
7036 ;;
7037 *)
7038 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7039 ;;
7040esac
7041
671aa708
NN
7042# Some systems (e.g., one of the i386-aix systems the gas testers are
7043# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7044tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7045build_tooldir=${tooldir}
7046
671aa708
NN
7047# Create a .gdbinit file which runs the one in srcdir
7048# and tells GDB to look there for source files.
7049
7050if test -r ${srcdir}/.gdbinit ; then
7051 case ${srcdir} in
7052 .) ;;
7053 *) cat > ./.gdbinit <<EOF
7054# ${NO_EDIT}
7055dir ${srcdir}
7056dir .
7057source ${srcdir}/.gdbinit
7058EOF
7059 ;;
7060 esac
7061fi
7062
671aa708
NN
7063# Make sure that the compiler is able to generate an executable. If it
7064# can't, we are probably in trouble. We don't care whether we can run the
7065# executable--we might be using a cross compiler--we only care whether it
7066# can be created. At this point the main configure script has set CC.
7067we_are_ok=no
7068echo "int main () { return 0; }" > conftest.c
7069${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7070if test $? = 0 ; then
7071 if test -s conftest || test -s conftest.exe ; then
7072 we_are_ok=yes
7073 fi
1c710c3c 7074fi
671aa708
NN
7075case $we_are_ok in
7076 no)
7077 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7078 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7079 rm -f conftest*
7080 exit 1
7081 ;;
7082esac
7083rm -f conftest*
7084
d89f0ad6 7085# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7086case "${host}" in
7087 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7088 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7089 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7090 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7091esac
7092
d89f0ad6
AL
7093# On systems where the dynamic library environment variable is PATH,
7094# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7095# built executables to PATH.
7096if test "$RPATH_ENVVAR" = PATH; then
7097 GCC_SHLIB_SUBDIR=/shlib
7098else
7099 GCC_SHLIB_SUBDIR=
7100fi
7101
beeda1d9
JJ
7102# Adjust the toplevel makefile according to whether bootstrap was selected.
7103case $enable_bootstrap in
7104 yes)
7105 bootstrap_suffix=bootstrap
7106 BUILD_CONFIG=bootstrap-debug
7107 ;;
7108 no)
7109 bootstrap_suffix=no-bootstrap
7110 BUILD_CONFIG=
7111 ;;
7112esac
7113
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7115$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7116
7117
7118# Check whether --with-build-config was given.
7119if test "${with_build_config+set}" = set; then :
7120 withval=$with_build_config; case $with_build_config in
7121 yes) with_build_config= ;;
7122 no) with_build_config= BUILD_CONFIG= ;;
7123 esac
7124fi
7125
7126
7127if test "x${with_build_config}" != x; then
7128 BUILD_CONFIG=$with_build_config
7129else
7130 case $BUILD_CONFIG in
7131 bootstrap-debug)
7132 if echo "int f (void) { return 0; }" > conftest.c &&
7133 ${CC} -c conftest.c &&
7134 mv conftest.o conftest.o.g0 &&
7135 ${CC} -c -g conftest.c &&
7136 mv conftest.o conftest.o.g &&
7137 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7138 :
7139 else
7140 BUILD_CONFIG=
7141 fi
7142 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7143 ;;
7144 esac
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7147$as_echo "$BUILD_CONFIG" >&6; }
7148
7149
7150# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7152$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7153# Check whether --enable-vtable-verify was given.
7154if test "${enable_vtable_verify+set}" = set; then :
7155 enableval=$enable_vtable_verify; case "$enableval" in
7156 yes) enable_vtable_verify=yes ;;
7157 no) enable_vtable_verify=no ;;
7158 *) enable_vtable_verify=no;;
7159 esac
7160else
7161 enable_vtable_verify=no
7162fi
7163
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7165$as_echo "$enable_vtable_verify" >&6; }
7166
671aa708
NN
7167# Record target_configdirs and the configure arguments for target and
7168# build configuration in Makefile.
7169target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7170build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7171bootstrap_fixincludes=no
671aa708 7172
ad1e5170
JR
7173# If we are building libgomp, bootstrap it.
7174if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7175 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7176fi
7177
beeda1d9
JJ
7178# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7179# or bootstrap-ubsan, bootstrap it.
7180if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7181 case "$BUILD_CONFIG" in
7182 *bootstrap-asan* | *bootstrap-ubsan* )
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7184 bootstrap_fixincludes=yes
beeda1d9
JJ
7185 ;;
7186 esac
ac8701fe
L
7187fi
7188
beeda1d9
JJ
7189# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7190if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7191 test "$enable_vtable_verify" != no; then
2077db1b
CT
7192 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7193fi
7194
671aa708
NN
7195# Determine whether gdb needs tk/tcl or not.
7196# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7197# and in that case we want gdb to be built without tk. Ugh!
7198# In fact I believe gdb is the *only* package directly dependent on tk,
7199# so we should be able to put the 'maybe's in unconditionally and
7200# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7201# 100% sure that that's safe though.
e914a571 7202
b4f96efe 7203gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7204case "$enable_gdbtk" in
7205 no)
7206 GDB_TK="" ;;
e914a571
AC
7207 yes)
7208 GDB_TK="${gdb_tk}" ;;
671aa708 7209 *)
e914a571
AC
7210 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7211 # distro. Eventually someone will fix this and move Insight, nee
7212 # gdbtk to a separate directory.
7213 if test -d ${srcdir}/gdb/gdbtk ; then
7214 GDB_TK="${gdb_tk}"
7215 else
7216 GDB_TK=""
7217 fi
7218 ;;
671aa708 7219esac
ef9db8d5
DJ
7220CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7221INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7222
60975492 7223# Strip out unwanted targets.
8b87bb96
NN
7224
7225# While at that, we remove Makefiles if we were started for recursive
7226# configuration, so that the top-level Makefile reconfigures them,
7227# like we used to do when configure itself was recursive.
8b87bb96 7228
3e54529c
RW
7229# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7230# but now we're fixing up the Makefile ourselves with the additional
7231# commands passed to AC_CONFIG_FILES. Use separate variables
7232# extrasub-{build,host,target} not because there is any reason to split
7233# the substitutions up that way, but only to remain below the limit of
7234# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7235
7236# Do not nest @if/@endif or @unless/@endunless pairs, because
7237# configure will not warn you at all.
8b87bb96 7238
79cd2b23
RW
7239case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7240 yes:yes:*\ gold\ *:*,c++,*) ;;
7241 yes:yes:*\ gold\ *:*)
22e05272 7242 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7243 ;;
7244esac
7245
3e54529c 7246extrasub_build=
23f6b2f9 7247for module in ${build_configdirs} ; do
5607edfd
PB
7248 if test -z "${no_recursion}" \
7249 && test -f ${build_subdir}/${module}/Makefile; then
7250 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7251 rm -f ${build_subdir}/${module}/Makefile
7252 fi
3e54529c 7253 extrasub_build="$extrasub_build
5607edfd
PB
7254/^@if build-$module\$/d
7255/^@endif build-$module\$/d
da34ca3f 7256/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7257/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7258/^@endif build-$module-$bootstrap_suffix\$/d
7259/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7260done
3e54529c 7261extrasub_host=
5607edfd 7262for module in ${configdirs} ; do
a6fbc1e2 7263 if test -z "${no_recursion}"; then
f063a9ed 7264 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7265 if test -f ${file}; then
7266 echo 1>&2 "*** removing ${file} to force reconfigure"
7267 rm -f ${file}
7268 fi
7269 done
5607edfd 7270 fi
9e1c8fc1
JJ
7271 case ${module},${bootstrap_fixincludes} in
7272 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7273 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7274 esac
3e54529c 7275 extrasub_host="$extrasub_host
5607edfd
PB
7276/^@if $module\$/d
7277/^@endif $module\$/d
da34ca3f 7278/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7279/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7280/^@endif $module-$host_bootstrap_suffix\$/d
7281/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7282done
3e54529c 7283extrasub_target=
5607edfd
PB
7284for module in ${target_configdirs} ; do
7285 if test -z "${no_recursion}" \
7286 && test -f ${target_subdir}/${module}/Makefile; then
7287 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7288 rm -f ${target_subdir}/${module}/Makefile
7289 fi
00020c16
ILT
7290
7291 # We only bootstrap target libraries listed in bootstrap_target_libs.
7292 case $bootstrap_target_libs in
7293 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7294 *) target_bootstrap_suffix=no-bootstrap ;;
7295 esac
7296
3e54529c 7297 extrasub_target="$extrasub_target
5607edfd
PB
7298/^@if target-$module\$/d
7299/^@endif target-$module\$/d
da34ca3f 7300/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7301/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7302/^@endif target-$module-$target_bootstrap_suffix\$/d
7303/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7304done
7305
3e54529c
RW
7306# Do the final fixup along with target modules.
7307extrasub_target="$extrasub_target
da34ca3f
AO
7308/^@if /,/^@endif /d
7309/^@unless /d
7310/^@endunless /d"
671aa708
NN
7311
7312# Create the serialization dependencies. This uses a temporary file.
7313
5213506e
RW
7314# Check whether --enable-serial-configure was given.
7315if test "${enable_serial_configure+set}" = set; then :
7316 enableval=$enable_serial_configure;
7317fi
ade82b16
AO
7318
7319
bf1d3e81
NN
7320case ${enable_serial_configure} in
7321 yes)
7322 enable_serial_build_configure=yes
7323 enable_serial_host_configure=yes
7324 enable_serial_target_configure=yes
7325 ;;
7326esac
7327
671aa708
NN
7328# These force 'configure's to be done one at a time, to avoid problems
7329# with contention over a shared config.cache.
7330rm -f serdep.tmp
ade82b16 7331echo '# serdep.tmp' > serdep.tmp
671aa708 7332olditem=
bf1d3e81 7333test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7334for item in ${build_configdirs} ; do
7335 case ${olditem} in
7336 "") ;;
ade82b16 7337 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7338 esac
7339 olditem=${item}
7340done
7341olditem=
bf1d3e81 7342test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7343for item in ${configdirs} ; do
7344 case ${olditem} in
7345 "") ;;
ade82b16 7346 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7347 esac
7348 olditem=${item}
7349done
7350olditem=
bf1d3e81 7351test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7352for item in ${target_configdirs} ; do
7353 case ${olditem} in
7354 "") ;;
ade82b16 7355 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7356 esac
7357 olditem=${item}
7358done
7359serialization_dependencies=serdep.tmp
7360
7361
ade82b16 7362# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7363# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7364# might not want to pass down to subconfigures. The exception being
7365# --cache-file=/dev/null, which is used to turn off the use of cache
7366# files altogether, and which should be passed on to subconfigures.
7367# Also strip program-prefix, program-suffix, and program-transform-name,
7368# so that we can pass down a consistent program-transform-name.
1c710c3c 7369baseargs=
29a63921 7370tbaseargs=
1c710c3c
DJ
7371keep_next=no
7372skip_next=no
7373eval "set -- $ac_configure_args"
44bfc3ac
DJ
7374for ac_arg
7375do
1c710c3c
DJ
7376 if test X"$skip_next" = X"yes"; then
7377 skip_next=no
7378 continue
7379 fi
7380 if test X"$keep_next" = X"yes"; then
7381 case $ac_arg in
7382 *\'*)
7383 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7384 esac
7385 baseargs="$baseargs '$ac_arg'"
29a63921 7386 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7387 keep_next=no
7388 continue
7389 fi
7390
7391 # Handle separated arguments. Based on the logic generated by
7392 # autoconf 2.59.
7393 case $ac_arg in
7394 *=* | --config-cache | -C | -disable-* | --disable-* \
7395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7397 | -with-* | --with-* | -without-* | --without-* | --x)
7398 separate_arg=no
7399 ;;
7400 -*)
7401 separate_arg=yes
7402 ;;
7403 *)
7404 separate_arg=no
7405 ;;
7406 esac
7407
29a63921
AO
7408 skip_targ=no
7409 case $ac_arg in
7410
7411 --with-* | --without-*)
7412 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7413
7414 case $libopt in
7415 *[-_]include)
7416 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7417 ;;
7418 *[-_]lib)
7419 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7420 ;;
7421 *)
7422 lib=$libopt
7423 ;;
7424 esac
7425
7426
7427 case $lib in
4a9bb2aa 7428 mpc | mpfr | gmp | isl)
29a63921
AO
7429 # If we're processing --with-$lib, --with-$lib-include or
7430 # --with-$lib-lib, for one of the libs above, and target is
7431 # different from host, don't pass the current argument to any
7432 # target library's configure.
7433 if test x$is_cross_compiler = xyes; then
7434 skip_targ=yes
7435 fi
7436 ;;
7437 esac
7438 ;;
7439 esac
7440
1c710c3c 7441 case "$ac_arg" in
f1a036e4
NC
7442 --cache-file=/dev/null | \
7443 -cache-file=/dev/null )
7444 # Handled here to avoid the test to skip args below.
7445 baseargs="$baseargs '$ac_arg'"
29a63921 7446 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7447 # Assert: $separate_arg should always be no.
7448 keep_next=$separate_arg
7449 ;;
1c710c3c
DJ
7450 --no*)
7451 continue
7452 ;;
7453 --c* | \
7454 --sr* | \
7455 --ho* | \
7456 --bu* | \
7457 --t* | \
7458 --program-* | \
7459 -cache_file* | \
7460 -srcdir* | \
7461 -host* | \
7462 -build* | \
7463 -target* | \
7464 -program-prefix* | \
7465 -program-suffix* | \
7466 -program-transform-name* )
7467 skip_next=$separate_arg
7468 continue
7469 ;;
7470 -*)
7471 # An option. Add it.
7472 case $ac_arg in
7473 *\'*)
7474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7475 esac
7476 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7477 if test X"$skip_targ" = Xno; then
7478 tbaseargs="$tbaseargs '$ac_arg'"
7479 fi
1c710c3c
DJ
7480 keep_next=$separate_arg
7481 ;;
7482 *)
7483 # Either a variable assignment, or a nonopt (triplet). Don't
7484 # pass it down; let the Makefile handle this.
7485 continue
7486 ;;
7487 esac
7488done
7489# Remove the initial space we just introduced and, as these will be
7490# expanded by make, quote '$'.
7491baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7492
43bb47c2
DJ
7493# Add in --program-transform-name, after --program-prefix and
7494# --program-suffix have been applied to it. Autoconf has already
7495# doubled dollar signs and backslashes in program_transform_name; we want
7496# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7497# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7498# Also, because we want to override the logic in subdir configure scripts to
7499# choose program_transform_name, replace any s,x,x, with s,y,y,.
7500sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7501${program_transform_name}
7502EOF_SED
7503gcc_transform_name=`cat conftestsed.out`
7504rm -f conftestsed.out
7505baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7506tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7507if test "$silent" = yes; then
7508 baseargs="$baseargs --silent"
29a63921 7509 tbaseargs="$tbaseargs --silent"
d9acb717 7510fi
0115d4a3 7511baseargs="$baseargs --disable-option-checking"
29a63921 7512tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7513
ffedf511
RW
7514# Record and document user additions to sub configure arguments.
7515
7516
7517
7518
671aa708
NN
7519# For the build-side libraries, we just need to pretend we're native,
7520# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7521# desired. We can't even use the same cache file for all build-side
7522# libraries, as they're compiled differently; some with C, some with
7523# C++ or with different feature-enabling options.
7524build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7525
7526# For host modules, accept cache file option, or specification as blank.
7527case "${cache_file}" in
7528"") # empty
7529 cache_file_option="" ;;
7530/* | [A-Za-z]:[\\/]* ) # absolute path
7531 cache_file_option="--cache-file=${cache_file}" ;;
7532*) # relative path
7533 cache_file_option="--cache-file=../${cache_file}" ;;
7534esac
7535
09438bde
NN
7536# Host dirs don't like to share a cache file either, horribly enough.
7537# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7538host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7539
29a63921 7540target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7541
7542# Passing a --with-cross-host argument lets the target libraries know
7543# whether they are being built with a cross-compiler or being built
7544# native. However, it would be better to use other mechanisms to make the
7545# sorts of decisions they want to make on this basis. Please consider
7546# this option to be deprecated. FIXME.
7547if test x${is_cross_compiler} = xyes ; then
1c710c3c 7548 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7549fi
7550
79e0604d
FXC
7551# Special user-friendly check for native x86_64-linux build, if
7552# multilib is not explicitly enabled.
7553case "$target:$have_compiler:$host:$target:$enable_multilib" in
7554 x86_64-*linux*:yes:$build:$build:)
e640447c 7555 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7556 dev64=no
7557 echo "int main () { return 0; }" > conftest.c
7558 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7559 if test $? = 0 ; then
7560 if test -s conftest || test -s conftest.exe ; then
7561 dev64=yes
7562 fi
7563 fi
7564 rm -f conftest*
7565 if test x${dev64} != xyes ; then
22e05272 7566 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
7567 fi
7568 ;;
7569esac
7570
dc683a3f
RW
7571# Default to --enable-multilib.
7572if test x${enable_multilib} = x ; then
671aa708 7573 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7574fi
671aa708
NN
7575
7576# Pass --with-newlib if appropriate. Note that target_configdirs has
7577# changed from the earlier setting of with_newlib.
7578if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7579 target_configargs="--with-newlib ${target_configargs}"
7580fi
7581
6b9eb62c
NN
7582# Different target subdirs use different values of certain variables
7583# (notably CXX). Worse, multilibs use *lots* of different values.
7584# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7585# it doesn't automatically accept command-line overrides of them.
7586# This means it's not safe for target subdirs to share a cache file,
7587# which is disgusting, but there you have it. Hopefully this can be
7588# fixed in future. It's still worthwhile to use a cache file for each
7589# directory. I think.
7590
bebcd931
MS
7591# Pass the appropriate --build, --host, --target and --cache-file arguments.
7592# We need to pass --target, as newer autoconf's requires consistency
7593# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7594target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7595
671aa708
NN
7596FLAGS_FOR_TARGET=
7597case " $target_configdirs " in
7598 *" newlib "*)
7599 case " $target_configargs " in
7600 *" --with-newlib "*)
7601 case "$target" in
5d571eaa 7602 *-cygwin*)
443e6238 7603 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7604 ;;
671aa708
NN
7605 esac
7606
7607 # If we're not building GCC, don't discard standard headers.
7608 if test -d ${srcdir}/gcc; then
7609 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7610
7611 if test "${build}" != "${host}"; then
7612 # On Canadian crosses, CC_FOR_TARGET will have already been set
7613 # by `configure', so we won't have an opportunity to add -Bgcc/
7614 # to it. This is right: we don't want to search that directory
7615 # for binaries, but we want the header files in there, so add
7616 # them explicitly.
0463992b 7617 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7618
7619 # Someone might think of using the pre-installed headers on
7620 # Canadian crosses, in case the installed compiler is not fully
7621 # compatible with the compiler being built. In this case, it
7622 # would be better to flag an error than risking having
7623 # incompatible object files being constructed. We can't
7624 # guarantee that an error will be flagged, but let's hope the
7625 # compiler will do it, when presented with incompatible header
7626 # files.
7627 fi
7628 fi
7629
7630 case "${target}-${is_cross_compiler}" in
f2a0e225 7631 i[3456789]86-*-linux*-no)
671aa708
NN
7632 # Here host == target, so we don't need to build gcc,
7633 # so we don't want to discard standard headers.
7634 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7635 ;;
7636 *)
7637 # If we're building newlib, use its generic headers last, but search
7638 # for any libc-related directories first (so make it the last -B
7639 # switch).
7640 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
7641
7642 # If we're building libgloss, find the startup file, simulator library
7643 # and linker script.
7644 case " $target_configdirs " in
7645 *" libgloss "*)
7646 # Look for startup file, simulator library and maybe linker script.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7648 # Look for libnosys.a in case the target needs it.
7649 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7650 # Most targets have the linker script in the source directory.
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7652 ;;
7653 esac
671aa708
NN
7654 ;;
7655 esac
7656 ;;
7657 esac
7658 ;;
7659esac
5d571eaa 7660
b91f0a41 7661case "$target" in
5d571eaa
OS
7662 x86_64-*mingw* | *-w64-mingw*)
7663 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7664 # however, use a symlink named 'mingw' in ${prefix} .
7665 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7666 ;;
7667 *-mingw*)
7668 # MinGW can't be handled as Cygwin above since it does not use newlib.
7669 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'
7670 ;;
b91f0a41 7671esac
671aa708 7672
6691a79e
ME
7673# Allow the user to override the flags for
7674# our build compiler if desired.
f019adc1
MF
7675if test x"${build}" = x"${host}" ; then
7676 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7677 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7678 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7679fi
6691a79e 7680
671aa708
NN
7681# On Canadian crosses, we'll be searching the right directories for
7682# the previously-installed cross compiler, so don't bother to add
7683# flags for directories within the install tree of the compiler
7684# being built; programs in there won't even run.
7685if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7686 # Search for pre-installed headers if nothing else fits.
9124bc53 7687 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
7688fi
7689
7690if test "x${use_gnu_ld}" = x &&
7691 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7692 # Arrange for us to find uninstalled linker scripts.
215c351a 7693 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7694fi
7695
e88a2c09
DD
7696# Search for other target-specific linker scripts and such.
7697case "${target}" in
3e19841a
PB
7698 mep*)
7699 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7700 ;;
e88a2c09
DD
7701esac
7702
671aa708 7703# Makefile fragments.
7b61653a
PE
7704for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7705do
7706 eval fragval=\$$frag
7707 if test $fragval != /dev/null; then
7708 eval $frag=${srcdir}/$fragval
7709 fi
7710done
671aa708
NN
7711
7712
7713
7714
7715
7716# Miscellanea: directories, flags, etc.
7717
7718
7719
7720
7721
7722
7723
d89f0ad6 7724
23f6b2f9 7725# Build module lists & subconfigure args.
671aa708
NN
7726
7727
7728
2abefe3d
PB
7729# Host module lists & subconfigure args.
7730
7731
7732
aae29963 7733
2abefe3d
PB
7734# Target module lists & subconfigure args.
7735
7736
7737
7738# Build tools.
7739
7740
7741
0999159b
PB
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
b4c522fa 7755
2abefe3d
PB
7756# Generate default definitions for YACC, M4, LEX and other programs that run
7757# on the build machine. These are used if the Makefile can't locate these
7758# programs in objdir.
7759MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7760
7761for ac_prog in 'bison -y' byacc yacc
7762do
1c710c3c 7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7764set dummy $ac_prog; ac_word=$2
5213506e
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7767if ${ac_cv_prog_YACC+:} false; then :
5213506e 7768 $as_echo_n "(cached) " >&6
2abefe3d
PB
7769else
7770 if test -n "$YACC"; then
7771 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
5213506e 7778 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7780 ac_cv_prog_YACC="$ac_prog"
5213506e 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7782 break 2
7783 fi
7784done
5213506e
RW
7785 done
7786IFS=$as_save_IFS
1c710c3c 7787
2abefe3d
PB
7788fi
7789fi
1c710c3c 7790YACC=$ac_cv_prog_YACC
2abefe3d 7791if test -n "$YACC"; then
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7793$as_echo "$YACC" >&6; }
2abefe3d 7794else
5213506e
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
2abefe3d
PB
7797fi
7798
5213506e 7799
1c710c3c 7800 test -n "$YACC" && break
2abefe3d
PB
7801done
7802test -n "$YACC" || YACC="$MISSING bison -y"
7803
7804case " $build_configdirs " in
7805 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7806esac
7807
7808for ac_prog in bison
7809do
1c710c3c 7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7811set dummy $ac_prog; ac_word=$2
5213506e
RW
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7814if ${ac_cv_prog_BISON+:} false; then :
5213506e 7815 $as_echo_n "(cached) " >&6
2abefe3d
PB
7816else
7817 if test -n "$BISON"; then
7818 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7819else
1c710c3c
DJ
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
5213506e 7825 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7827 ac_cv_prog_BISON="$ac_prog"
5213506e 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7829 break 2
7830 fi
7831done
5213506e
RW
7832 done
7833IFS=$as_save_IFS
1c710c3c 7834
2abefe3d
PB
7835fi
7836fi
1c710c3c 7837BISON=$ac_cv_prog_BISON
2abefe3d 7838if test -n "$BISON"; then
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7840$as_echo "$BISON" >&6; }
2abefe3d 7841else
5213506e
RW
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
2abefe3d
PB
7844fi
7845
5213506e 7846
1c710c3c 7847 test -n "$BISON" && break
2abefe3d
PB
7848done
7849test -n "$BISON" || BISON="$MISSING bison"
7850
7851case " $build_configdirs " in
7852 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7853esac
7854
7855for ac_prog in gm4 gnum4 m4
7856do
1c710c3c 7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7858set dummy $ac_prog; ac_word=$2
5213506e
RW
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7861if ${ac_cv_prog_M4+:} false; then :
5213506e 7862 $as_echo_n "(cached) " >&6
2abefe3d
PB
7863else
7864 if test -n "$M4"; then
7865 ac_cv_prog_M4="$M4" # Let the user override the test.
7866else
1c710c3c
DJ
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
5213506e 7872 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7874 ac_cv_prog_M4="$ac_prog"
5213506e 7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7876 break 2
7877 fi
7878done
5213506e
RW
7879 done
7880IFS=$as_save_IFS
1c710c3c 7881
2abefe3d
PB
7882fi
7883fi
1c710c3c 7884M4=$ac_cv_prog_M4
2abefe3d 7885if test -n "$M4"; then
5213506e
RW
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7887$as_echo "$M4" >&6; }
2abefe3d 7888else
5213506e
RW
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
2abefe3d
PB
7891fi
7892
5213506e 7893
1c710c3c 7894 test -n "$M4" && break
2abefe3d
PB
7895done
7896test -n "$M4" || M4="$MISSING m4"
7897
7898case " $build_configdirs " in
7899 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7900esac
7901
7902for ac_prog in flex lex
7903do
1c710c3c 7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7905set dummy $ac_prog; ac_word=$2
5213506e
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7908if ${ac_cv_prog_LEX+:} false; then :
5213506e 7909 $as_echo_n "(cached) " >&6
2abefe3d
PB
7910else
7911 if test -n "$LEX"; then
7912 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7913else
1c710c3c
DJ
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
5213506e 7919 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7921 ac_cv_prog_LEX="$ac_prog"
5213506e 7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7923 break 2
7924 fi
7925done
5213506e
RW
7926 done
7927IFS=$as_save_IFS
1c710c3c 7928
2abefe3d
PB
7929fi
7930fi
1c710c3c 7931LEX=$ac_cv_prog_LEX
2abefe3d 7932if test -n "$LEX"; then
5213506e
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7934$as_echo "$LEX" >&6; }
2abefe3d 7935else
5213506e
RW
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
2abefe3d
PB
7938fi
7939
5213506e 7940
1c710c3c 7941 test -n "$LEX" && break
2abefe3d
PB
7942done
7943test -n "$LEX" || LEX="$MISSING flex"
7944
7945case " $build_configdirs " in
7946 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7947 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7948esac
7949
7950for ac_prog in flex
7951do
1c710c3c 7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7953set dummy $ac_prog; ac_word=$2
5213506e
RW
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7956if ${ac_cv_prog_FLEX+:} false; then :
5213506e 7957 $as_echo_n "(cached) " >&6
2abefe3d
PB
7958else
7959 if test -n "$FLEX"; then
7960 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7961else
1c710c3c
DJ
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
5213506e 7967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7969 ac_cv_prog_FLEX="$ac_prog"
5213506e 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7971 break 2
7972 fi
7973done
5213506e
RW
7974 done
7975IFS=$as_save_IFS
1c710c3c 7976
2abefe3d
PB
7977fi
7978fi
1c710c3c 7979FLEX=$ac_cv_prog_FLEX
2abefe3d 7980if test -n "$FLEX"; then
5213506e
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7982$as_echo "$FLEX" >&6; }
2abefe3d 7983else
5213506e
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
2abefe3d
PB
7986fi
7987
5213506e 7988
1c710c3c 7989 test -n "$FLEX" && break
2abefe3d
PB
7990done
7991test -n "$FLEX" || FLEX="$MISSING flex"
7992
7993case " $build_configdirs " in
7994 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7995esac
7996
7997for ac_prog in makeinfo
7998do
1c710c3c 7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8000set dummy $ac_prog; ac_word=$2
5213506e
RW
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8003if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8004 $as_echo_n "(cached) " >&6
2abefe3d
PB
8005else
8006 if test -n "$MAKEINFO"; then
8007 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8008else
1c710c3c
DJ
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
5213506e 8014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8016 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8018 break 2
8019 fi
8020done
5213506e
RW
8021 done
8022IFS=$as_save_IFS
1c710c3c 8023
2abefe3d
PB
8024fi
8025fi
1c710c3c 8026MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8027if test -n "$MAKEINFO"; then
5213506e
RW
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8029$as_echo "$MAKEINFO" >&6; }
2abefe3d 8030else
5213506e
RW
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
2abefe3d
PB
8033fi
8034
5213506e 8035
1c710c3c 8036 test -n "$MAKEINFO" && break
2abefe3d
PB
8037done
8038test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8039
8040case " $build_configdirs " in
8041 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8042 *)
8043
d18ff35a 8044 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8045 # higher, else we use the "missing" dummy.
8046 if ${MAKEINFO} --version \
d18ff35a 8047 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8048 :
8049 else
8050 MAKEINFO="$MISSING makeinfo"
8051 fi
8052 ;;
8053
8054esac
671aa708 8055
2abefe3d 8056# FIXME: expect and dejagnu may become build tools?
671aa708 8057
2abefe3d
PB
8058for ac_prog in expect
8059do
1c710c3c 8060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8061set dummy $ac_prog; ac_word=$2
5213506e
RW
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8064if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8065 $as_echo_n "(cached) " >&6
2abefe3d
PB
8066else
8067 if test -n "$EXPECT"; then
8068 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8069else
1c710c3c
DJ
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
5213506e 8075 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8077 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8079 break 2
8080 fi
8081done
5213506e
RW
8082 done
8083IFS=$as_save_IFS
1c710c3c 8084
2abefe3d
PB
8085fi
8086fi
1c710c3c 8087EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8088if test -n "$EXPECT"; then
5213506e
RW
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8090$as_echo "$EXPECT" >&6; }
2abefe3d 8091else
5213506e
RW
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
2abefe3d 8094fi
671aa708 8095
5213506e 8096
1c710c3c 8097 test -n "$EXPECT" && break
2abefe3d
PB
8098done
8099test -n "$EXPECT" || EXPECT="expect"
671aa708 8100
2abefe3d
PB
8101case " $configdirs " in
8102 *" expect "*)
8103 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8104 ;;
8105esac
671aa708 8106
2abefe3d
PB
8107for ac_prog in runtest
8108do
1c710c3c 8109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8110set dummy $ac_prog; ac_word=$2
5213506e
RW
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8113if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8114 $as_echo_n "(cached) " >&6
2abefe3d
PB
8115else
8116 if test -n "$RUNTEST"; then
8117 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8118else
1c710c3c
DJ
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
5213506e 8124 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8126 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8128 break 2
8129 fi
8130done
5213506e
RW
8131 done
8132IFS=$as_save_IFS
1c710c3c 8133
2abefe3d
PB
8134fi
8135fi
1c710c3c 8136RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8137if test -n "$RUNTEST"; then
5213506e
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8139$as_echo "$RUNTEST" >&6; }
2abefe3d 8140else
5213506e
RW
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
2abefe3d 8143fi
671aa708 8144
5213506e 8145
1c710c3c 8146 test -n "$RUNTEST" && break
2abefe3d
PB
8147done
8148test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8149
2abefe3d
PB
8150case " $configdirs " in
8151 *" dejagnu "*)
c394e891 8152 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8153 ;;
8154esac
671aa708
NN
8155
8156
671aa708 8157# Host tools.
ca9f4b81
AO
8158ncn_tool_prefix=
8159test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8160ncn_target_tool_prefix=
8161test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8162
278a7a38
AO
8163
8164
8165if test -n "$AR"; then
8166 ac_cv_prog_AR=$AR
8167elif test -n "$ac_cv_prog_AR"; then
8168 AR=$ac_cv_prog_AR
8169fi
8170
8171if test -n "$ac_cv_prog_AR"; then
8172 for ncn_progname in ar; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8177if ${ac_cv_prog_AR+:} false; then :
5213506e 8178 $as_echo_n "(cached) " >&6
278a7a38
AO
8179else
8180 if test -n "$AR"; then
8181 ac_cv_prog_AR="$AR" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
5213506e 8188 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8190 ac_cv_prog_AR="${ncn_progname}"
5213506e 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8192 break 2
8193 fi
8194done
5213506e
RW
8195 done
8196IFS=$as_save_IFS
278a7a38
AO
8197
8198fi
8199fi
8200AR=$ac_cv_prog_AR
8201if test -n "$AR"; then
5213506e
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8203$as_echo "$AR" >&6; }
278a7a38 8204else
5213506e
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
278a7a38
AO
8207fi
8208
5213506e 8209
278a7a38
AO
8210 done
8211fi
8212
8213for ncn_progname in ar; do
2693c0b0
PB
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8219if ${ac_cv_prog_AR+:} false; then :
5213506e 8220 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8221else
8222 if test -n "$AR"; then
8223 ac_cv_prog_AR="$AR" # Let the user override the test.
8224else
1c710c3c
DJ
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
5213506e 8230 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8232 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8234 break 2
8235 fi
8236done
5213506e
RW
8237 done
8238IFS=$as_save_IFS
1c710c3c 8239
ca9f4b81
AO
8240fi
8241fi
1c710c3c 8242AR=$ac_cv_prog_AR
ca9f4b81 8243if test -n "$AR"; then
5213506e
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8245$as_echo "$AR" >&6; }
ca9f4b81 8246else
5213506e
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
ca9f4b81
AO
8249fi
8250
5213506e 8251
2693c0b0
PB
8252 fi
8253 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8258if ${ac_cv_prog_AR+:} false; then :
5213506e 8259 $as_echo_n "(cached) " >&6
ca9f4b81 8260else
2693c0b0 8261 if test -n "$AR"; then
af71363e
AS
8262 ac_cv_prog_AR="$AR" # Let the user override the test.
8263else
1c710c3c
DJ
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
5213506e 8269 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8271 ac_cv_prog_AR="${ncn_progname}"
5213506e 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8273 break 2
8274 fi
8275done
5213506e
RW
8276 done
8277IFS=$as_save_IFS
1c710c3c 8278
ca9f4b81
AO
8279fi
8280fi
1c710c3c 8281AR=$ac_cv_prog_AR
2693c0b0 8282if test -n "$AR"; then
5213506e
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8284$as_echo "$AR" >&6; }
ca9f4b81 8285else
5213506e
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
ca9f4b81 8288fi
1c710c3c 8289
5213506e 8290
2693c0b0
PB
8291 fi
8292 test -n "$ac_cv_prog_AR" && break
8293done
8294
8295if test -z "$ac_cv_prog_AR" ; then
8296 set dummy ar
8297 if test $build = $host ; then
8298 AR="$2"
ca9f4b81 8299 else
2693c0b0 8300 AR="${ncn_tool_prefix}$2"
ca9f4b81 8301 fi
ca9f4b81
AO
8302fi
8303
278a7a38
AO
8304
8305
8306if test -n "$AS"; then
8307 ac_cv_prog_AS=$AS
8308elif test -n "$ac_cv_prog_AS"; then
8309 AS=$ac_cv_prog_AS
8310fi
8311
8312if test -n "$ac_cv_prog_AS"; then
8313 for ncn_progname in as; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8318if ${ac_cv_prog_AS+:} false; then :
5213506e 8319 $as_echo_n "(cached) " >&6
278a7a38
AO
8320else
8321 if test -n "$AS"; then
8322 ac_cv_prog_AS="$AS" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
5213506e 8329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8331 ac_cv_prog_AS="${ncn_progname}"
5213506e 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8333 break 2
8334 fi
8335done
5213506e
RW
8336 done
8337IFS=$as_save_IFS
278a7a38
AO
8338
8339fi
8340fi
8341AS=$ac_cv_prog_AS
8342if test -n "$AS"; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8344$as_echo "$AS" >&6; }
278a7a38 8345else
5213506e
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
278a7a38
AO
8348fi
8349
5213506e 8350
278a7a38
AO
8351 done
8352fi
8353
8354for ncn_progname in as; do
2693c0b0
PB
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8360if ${ac_cv_prog_AS+:} false; then :
5213506e 8361 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8362else
8363 if test -n "$AS"; then
8364 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8365else
1c710c3c
DJ
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
5213506e 8371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8373 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8375 break 2
8376 fi
8377done
5213506e
RW
8378 done
8379IFS=$as_save_IFS
1c710c3c 8380
ca9f4b81
AO
8381fi
8382fi
1c710c3c 8383AS=$ac_cv_prog_AS
ca9f4b81 8384if test -n "$AS"; then
5213506e
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8386$as_echo "$AS" >&6; }
ca9f4b81 8387else
5213506e
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
ca9f4b81
AO
8390fi
8391
5213506e 8392
2693c0b0
PB
8393 fi
8394 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8399if ${ac_cv_prog_AS+:} false; then :
5213506e 8400 $as_echo_n "(cached) " >&6
ca9f4b81 8401else
2693c0b0
PB
8402 if test -n "$AS"; then
8403 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8404else
1c710c3c
DJ
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
5213506e 8410 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8412 ac_cv_prog_AS="${ncn_progname}"
5213506e 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8414 break 2
8415 fi
8416done
5213506e
RW
8417 done
8418IFS=$as_save_IFS
1c710c3c 8419
ca9f4b81
AO
8420fi
8421fi
1c710c3c 8422AS=$ac_cv_prog_AS
2693c0b0 8423if test -n "$AS"; then
5213506e
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8425$as_echo "$AS" >&6; }
ca9f4b81 8426else
5213506e
RW
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
ca9f4b81 8429fi
1c710c3c 8430
5213506e 8431
2693c0b0
PB
8432 fi
8433 test -n "$ac_cv_prog_AS" && break
8434done
8435
8436if test -z "$ac_cv_prog_AS" ; then
8437 set dummy as
8438 if test $build = $host ; then
8439 AS="$2"
ca9f4b81 8440 else
2693c0b0 8441 AS="${ncn_tool_prefix}$2"
ca9f4b81 8442 fi
ca9f4b81
AO
8443fi
8444
278a7a38
AO
8445
8446
8447if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL=$DLLTOOL
8449elif test -n "$ac_cv_prog_DLLTOOL"; then
8450 DLLTOOL=$ac_cv_prog_DLLTOOL
8451fi
8452
8453if test -n "$ac_cv_prog_DLLTOOL"; then
8454 for ncn_progname in dlltool; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8459if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8460 $as_echo_n "(cached) " >&6
278a7a38
AO
8461else
8462 if test -n "$DLLTOOL"; then
8463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
5213506e 8470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8472 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8474 break 2
8475 fi
8476done
5213506e
RW
8477 done
8478IFS=$as_save_IFS
278a7a38
AO
8479
8480fi
8481fi
8482DLLTOOL=$ac_cv_prog_DLLTOOL
8483if test -n "$DLLTOOL"; then
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8485$as_echo "$DLLTOOL" >&6; }
278a7a38 8486else
5213506e
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
278a7a38
AO
8489fi
8490
5213506e 8491
278a7a38
AO
8492 done
8493fi
8494
8495for ncn_progname in dlltool; do
2693c0b0
PB
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8501if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8502 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8503else
8504 if test -n "$DLLTOOL"; then
8505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8506else
1c710c3c
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
5213506e 8512 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8514 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8516 break 2
8517 fi
8518done
5213506e
RW
8519 done
8520IFS=$as_save_IFS
1c710c3c 8521
ca9f4b81
AO
8522fi
8523fi
1c710c3c 8524DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8525if test -n "$DLLTOOL"; then
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8527$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8528else
5213506e
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
ca9f4b81
AO
8531fi
8532
5213506e 8533
2693c0b0
PB
8534 fi
8535 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8540if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8541 $as_echo_n "(cached) " >&6
ca9f4b81 8542else
2693c0b0
PB
8543 if test -n "$DLLTOOL"; then
8544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8545else
1c710c3c
DJ
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
5213506e 8551 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8553 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8555 break 2
8556 fi
8557done
5213506e
RW
8558 done
8559IFS=$as_save_IFS
1c710c3c 8560
ca9f4b81
AO
8561fi
8562fi
1c710c3c 8563DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8564if test -n "$DLLTOOL"; then
5213506e
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8566$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8567else
5213506e
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
ca9f4b81 8570fi
1c710c3c 8571
5213506e 8572
2693c0b0
PB
8573 fi
8574 test -n "$ac_cv_prog_DLLTOOL" && break
8575done
8576
8577if test -z "$ac_cv_prog_DLLTOOL" ; then
8578 set dummy dlltool
8579 if test $build = $host ; then
8580 DLLTOOL="$2"
ca9f4b81 8581 else
2693c0b0 8582 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8583 fi
ca9f4b81
AO
8584fi
8585
278a7a38
AO
8586
8587
8588if test -n "$LD"; then
8589 ac_cv_prog_LD=$LD
8590elif test -n "$ac_cv_prog_LD"; then
8591 LD=$ac_cv_prog_LD
8592fi
8593
8594if test -n "$ac_cv_prog_LD"; then
8595 for ncn_progname in ld; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8600if ${ac_cv_prog_LD+:} false; then :
5213506e 8601 $as_echo_n "(cached) " >&6
278a7a38
AO
8602else
8603 if test -n "$LD"; then
8604 ac_cv_prog_LD="$LD" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
5213506e 8611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8613 ac_cv_prog_LD="${ncn_progname}"
5213506e 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8615 break 2
8616 fi
8617done
5213506e
RW
8618 done
8619IFS=$as_save_IFS
278a7a38
AO
8620
8621fi
8622fi
8623LD=$ac_cv_prog_LD
8624if test -n "$LD"; then
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8626$as_echo "$LD" >&6; }
278a7a38 8627else
5213506e
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
278a7a38
AO
8630fi
8631
5213506e 8632
278a7a38
AO
8633 done
8634fi
8635
8636for ncn_progname in ld; do
2693c0b0
PB
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8642if ${ac_cv_prog_LD+:} false; then :
5213506e 8643 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8644else
8645 if test -n "$LD"; then
8646 ac_cv_prog_LD="$LD" # Let the user override the test.
8647else
1c710c3c
DJ
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
5213506e 8653 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8655 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8657 break 2
8658 fi
8659done
5213506e
RW
8660 done
8661IFS=$as_save_IFS
1c710c3c 8662
ca9f4b81
AO
8663fi
8664fi
1c710c3c 8665LD=$ac_cv_prog_LD
ca9f4b81 8666if test -n "$LD"; then
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8668$as_echo "$LD" >&6; }
ca9f4b81 8669else
5213506e
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
ca9f4b81
AO
8672fi
8673
5213506e 8674
2693c0b0
PB
8675 fi
8676 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8681if ${ac_cv_prog_LD+:} false; then :
5213506e 8682 $as_echo_n "(cached) " >&6
ca9f4b81 8683else
2693c0b0
PB
8684 if test -n "$LD"; then
8685 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8686else
1c710c3c
DJ
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
5213506e 8692 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8694 ac_cv_prog_LD="${ncn_progname}"
5213506e 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8696 break 2
8697 fi
8698done
5213506e
RW
8699 done
8700IFS=$as_save_IFS
1c710c3c 8701
ca9f4b81
AO
8702fi
8703fi
1c710c3c 8704LD=$ac_cv_prog_LD
2693c0b0 8705if test -n "$LD"; then
5213506e
RW
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8707$as_echo "$LD" >&6; }
ca9f4b81 8708else
5213506e
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710$as_echo "no" >&6; }
ca9f4b81 8711fi
1c710c3c 8712
5213506e 8713
2693c0b0
PB
8714 fi
8715 test -n "$ac_cv_prog_LD" && break
8716done
8717
8718if test -z "$ac_cv_prog_LD" ; then
8719 set dummy ld
8720 if test $build = $host ; then
8721 LD="$2"
ca9f4b81 8722 else
2693c0b0 8723 LD="${ncn_tool_prefix}$2"
ca9f4b81 8724 fi
ca9f4b81
AO
8725fi
8726
278a7a38
AO
8727
8728
8729if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO=$LIPO
8731elif test -n "$ac_cv_prog_LIPO"; then
8732 LIPO=$ac_cv_prog_LIPO
8733fi
8734
8735if test -n "$ac_cv_prog_LIPO"; then
8736 for ncn_progname in lipo; do
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8741if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8742 $as_echo_n "(cached) " >&6
278a7a38
AO
8743else
8744 if test -n "$LIPO"; then
8745 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8746else
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
5213506e 8752 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8754 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8756 break 2
8757 fi
8758done
5213506e
RW
8759 done
8760IFS=$as_save_IFS
278a7a38
AO
8761
8762fi
8763fi
8764LIPO=$ac_cv_prog_LIPO
8765if test -n "$LIPO"; then
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8767$as_echo "$LIPO" >&6; }
278a7a38 8768else
5213506e
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
278a7a38
AO
8771fi
8772
5213506e 8773
278a7a38
AO
8774 done
8775fi
8776
8777for ncn_progname in lipo; do
2abefe3d
PB
8778 if test -n "$ncn_tool_prefix"; then
8779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8783if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8784 $as_echo_n "(cached) " >&6
2abefe3d
PB
8785else
8786 if test -n "$LIPO"; then
8787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8788else
1c710c3c
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
5213506e 8794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8796 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8798 break 2
8799 fi
8800done
5213506e
RW
8801 done
8802IFS=$as_save_IFS
1c710c3c 8803
2abefe3d
PB
8804fi
8805fi
1c710c3c 8806LIPO=$ac_cv_prog_LIPO
2abefe3d 8807if test -n "$LIPO"; then
5213506e
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8809$as_echo "$LIPO" >&6; }
2abefe3d 8810else
5213506e
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
2abefe3d
PB
8813fi
8814
5213506e 8815
2abefe3d
PB
8816 fi
8817 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8822if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8823 $as_echo_n "(cached) " >&6
2abefe3d
PB
8824else
8825 if test -n "$LIPO"; then
8826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8827else
1c710c3c
DJ
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
5213506e 8833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8835 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8837 break 2
8838 fi
8839done
5213506e
RW
8840 done
8841IFS=$as_save_IFS
1c710c3c 8842
2abefe3d
PB
8843fi
8844fi
1c710c3c 8845LIPO=$ac_cv_prog_LIPO
2abefe3d 8846if test -n "$LIPO"; then
5213506e
RW
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8848$as_echo "$LIPO" >&6; }
2abefe3d 8849else
5213506e
RW
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
2abefe3d 8852fi
1c710c3c 8853
5213506e 8854
2abefe3d
PB
8855 fi
8856 test -n "$ac_cv_prog_LIPO" && break
8857done
8858
8859if test -z "$ac_cv_prog_LIPO" ; then
8860 set dummy lipo
8861 if test $build = $host ; then
8862 LIPO="$2"
8863 else
8864 LIPO="${ncn_tool_prefix}$2"
8865 fi
8866fi
8867
278a7a38
AO
8868
8869
8870if test -n "$NM"; then
8871 ac_cv_prog_NM=$NM
8872elif test -n "$ac_cv_prog_NM"; then
8873 NM=$ac_cv_prog_NM
8874fi
8875
8876if test -n "$ac_cv_prog_NM"; then
8877 for ncn_progname in nm; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8882if ${ac_cv_prog_NM+:} false; then :
5213506e 8883 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8884else
8885 if test -n "$NM"; then
8886 ac_cv_prog_NM="$NM" # Let the user override the test.
8887else
1c710c3c
DJ
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
5213506e 8893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8895 ac_cv_prog_NM="${ncn_progname}"
5213506e 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8897 break 2
8898 fi
8899done
5213506e
RW
8900 done
8901IFS=$as_save_IFS
1c710c3c 8902
ca9f4b81
AO
8903fi
8904fi
1c710c3c 8905NM=$ac_cv_prog_NM
ca9f4b81 8906if test -n "$NM"; then
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8908$as_echo "$NM" >&6; }
ca9f4b81 8909else
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
ca9f4b81
AO
8912fi
8913
5213506e 8914
278a7a38
AO
8915 done
8916fi
8917
8918for ncn_progname in nm; do
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8924if ${ac_cv_prog_NM+:} false; then :
5213506e 8925 $as_echo_n "(cached) " >&6
ca9f4b81 8926else
2693c0b0
PB
8927 if test -n "$NM"; then
8928 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8929else
1c710c3c
DJ
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
5213506e 8935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8937 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8939 break 2
8940 fi
8941done
5213506e
RW
8942 done
8943IFS=$as_save_IFS
1c710c3c 8944
ca9f4b81
AO
8945fi
8946fi
1c710c3c 8947NM=$ac_cv_prog_NM
2693c0b0 8948if test -n "$NM"; then
5213506e
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8950$as_echo "$NM" >&6; }
ca9f4b81 8951else
5213506e
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
ca9f4b81 8954fi
1c710c3c 8955
5213506e 8956
2693c0b0 8957 fi
278a7a38
AO
8958 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8963if ${ac_cv_prog_NM+:} false; then :
5213506e 8964 $as_echo_n "(cached) " >&6
278a7a38
AO
8965else
8966 if test -n "$NM"; then
8967 ac_cv_prog_NM="$NM" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
5213506e 8974 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8976 ac_cv_prog_NM="${ncn_progname}"
5213506e 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8978 break 2
8979 fi
8980done
5213506e
RW
8981 done
8982IFS=$as_save_IFS
278a7a38
AO
8983
8984fi
8985fi
8986NM=$ac_cv_prog_NM
8987if test -n "$NM"; then
5213506e
RW
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8989$as_echo "$NM" >&6; }
278a7a38 8990else
5213506e
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
278a7a38
AO
8993fi
8994
5213506e 8995
278a7a38
AO
8996 fi
8997 test -n "$ac_cv_prog_NM" && break
8998done
8999
9000if test -z "$ac_cv_prog_NM" ; then
9001 set dummy nm
9002 if test $build = $host ; then
9003 NM="$2"
9004 else
9005 NM="${ncn_tool_prefix}$2"
9006 fi
9007fi
9008
9009
9010
9011if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB=$RANLIB
9013elif test -n "$ac_cv_prog_RANLIB"; then
9014 RANLIB=$ac_cv_prog_RANLIB
9015fi
9016
9017if test -n "$ac_cv_prog_RANLIB"; then
9018 for ncn_progname in ranlib; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9023if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9024 $as_echo_n "(cached) " >&6
278a7a38
AO
9025else
9026 if test -n "$RANLIB"; then
9027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
5213506e 9034 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9036 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9038 break 2
9039 fi
9040done
5213506e
RW
9041 done
9042IFS=$as_save_IFS
278a7a38
AO
9043
9044fi
9045fi
9046RANLIB=$ac_cv_prog_RANLIB
9047if test -n "$RANLIB"; then
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9049$as_echo "$RANLIB" >&6; }
278a7a38 9050else
5213506e
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
278a7a38
AO
9053fi
9054
5213506e 9055
278a7a38
AO
9056 done
9057fi
ca9f4b81 9058
278a7a38 9059for ncn_progname in ranlib; do
2693c0b0
PB
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9065if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9066 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9067else
9068 if test -n "$RANLIB"; then
9069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9070else
1c710c3c
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
5213506e 9076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9078 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9080 break 2
9081 fi
9082done
5213506e
RW
9083 done
9084IFS=$as_save_IFS
1c710c3c 9085
ca9f4b81
AO
9086fi
9087fi
1c710c3c 9088RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9089if test -n "$RANLIB"; then
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9091$as_echo "$RANLIB" >&6; }
ca9f4b81 9092else
5213506e
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
ca9f4b81
AO
9095fi
9096
5213506e 9097
2693c0b0
PB
9098 fi
9099 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9104if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9105 $as_echo_n "(cached) " >&6
ca9f4b81 9106else
2693c0b0
PB
9107 if test -n "$RANLIB"; then
9108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9109else
1c710c3c
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
5213506e 9115 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9117 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9119 break 2
9120 fi
9121done
5213506e
RW
9122 done
9123IFS=$as_save_IFS
1c710c3c 9124
ca9f4b81
AO
9125fi
9126fi
1c710c3c 9127RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9128if test -n "$RANLIB"; then
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9130$as_echo "$RANLIB" >&6; }
ca9f4b81 9131else
5213506e
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
ca9f4b81 9134fi
1c710c3c 9135
5213506e 9136
ca9f4b81 9137 fi
2693c0b0
PB
9138 test -n "$ac_cv_prog_RANLIB" && break
9139done
9140
9141if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9142 RANLIB="true"
ca9f4b81
AO
9143fi
9144
278a7a38
AO
9145
9146
9147if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP=$STRIP
9149elif test -n "$ac_cv_prog_STRIP"; then
9150 STRIP=$ac_cv_prog_STRIP
9151fi
9152
9153if test -n "$ac_cv_prog_STRIP"; then
9154 for ncn_progname in strip; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9159if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9160 $as_echo_n "(cached) " >&6
278a7a38
AO
9161else
9162 if test -n "$STRIP"; then
9163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
5213506e 9170 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9172 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9174 break 2
9175 fi
9176done
5213506e
RW
9177 done
9178IFS=$as_save_IFS
278a7a38
AO
9179
9180fi
9181fi
9182STRIP=$ac_cv_prog_STRIP
9183if test -n "$STRIP"; then
5213506e
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9185$as_echo "$STRIP" >&6; }
278a7a38 9186else
5213506e
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
278a7a38
AO
9189fi
9190
5213506e 9191
278a7a38
AO
9192 done
9193fi
9194
9195for ncn_progname in strip; do
2abefe3d
PB
9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9201if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9202 $as_echo_n "(cached) " >&6
2abefe3d
PB
9203else
9204 if test -n "$STRIP"; then
9205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9206else
1c710c3c
DJ
9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208for as_dir in $PATH
9209do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
5213506e 9212 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9214 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9216 break 2
9217 fi
9218done
5213506e
RW
9219 done
9220IFS=$as_save_IFS
1c710c3c 9221
2abefe3d
PB
9222fi
9223fi
1c710c3c 9224STRIP=$ac_cv_prog_STRIP
2abefe3d 9225if test -n "$STRIP"; then
5213506e
RW
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9227$as_echo "$STRIP" >&6; }
2abefe3d 9228else
5213506e
RW
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
2abefe3d
PB
9231fi
9232
5213506e 9233
2abefe3d
PB
9234 fi
9235 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9240if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9241 $as_echo_n "(cached) " >&6
2abefe3d
PB
9242else
9243 if test -n "$STRIP"; then
9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9245else
1c710c3c
DJ
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
5213506e 9251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9253 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9255 break 2
9256 fi
9257done
5213506e
RW
9258 done
9259IFS=$as_save_IFS
1c710c3c 9260
2abefe3d
PB
9261fi
9262fi
1c710c3c 9263STRIP=$ac_cv_prog_STRIP
2abefe3d 9264if test -n "$STRIP"; then
5213506e
RW
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9266$as_echo "$STRIP" >&6; }
2abefe3d 9267else
5213506e
RW
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
2abefe3d 9270fi
1c710c3c 9271
5213506e 9272
2abefe3d
PB
9273 fi
9274 test -n "$ac_cv_prog_STRIP" && break
9275done
9276
9277if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9278 STRIP="true"
2abefe3d
PB
9279fi
9280
278a7a38
AO
9281
9282
9283if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES=$WINDRES
9285elif test -n "$ac_cv_prog_WINDRES"; then
9286 WINDRES=$ac_cv_prog_WINDRES
9287fi
9288
9289if test -n "$ac_cv_prog_WINDRES"; then
9290 for ncn_progname in windres; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9295if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9296 $as_echo_n "(cached) " >&6
278a7a38
AO
9297else
9298 if test -n "$WINDRES"; then
9299 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
5213506e 9306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9308 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9310 break 2
9311 fi
9312done
5213506e
RW
9313 done
9314IFS=$as_save_IFS
278a7a38
AO
9315
9316fi
9317fi
9318WINDRES=$ac_cv_prog_WINDRES
9319if test -n "$WINDRES"; then
5213506e
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9321$as_echo "$WINDRES" >&6; }
278a7a38 9322else
5213506e
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
278a7a38
AO
9325fi
9326
5213506e 9327
278a7a38
AO
9328 done
9329fi
9330
9331for ncn_progname in windres; do
2693c0b0
PB
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9337if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9338 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9339else
9340 if test -n "$WINDRES"; then
9341 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9342else
1c710c3c
DJ
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
5213506e 9348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9350 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9352 break 2
9353 fi
9354done
5213506e
RW
9355 done
9356IFS=$as_save_IFS
1c710c3c 9357
ca9f4b81
AO
9358fi
9359fi
1c710c3c 9360WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9361if test -n "$WINDRES"; then
5213506e
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9363$as_echo "$WINDRES" >&6; }
ca9f4b81 9364else
5213506e
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
ca9f4b81
AO
9367fi
9368
5213506e 9369
2693c0b0
PB
9370 fi
9371 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9376if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9377 $as_echo_n "(cached) " >&6
ca9f4b81 9378else
2693c0b0
PB
9379 if test -n "$WINDRES"; then
9380 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9381else
1c710c3c
DJ
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
5213506e 9387 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9389 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9391 break 2
9392 fi
9393done
5213506e
RW
9394 done
9395IFS=$as_save_IFS
1c710c3c 9396
ca9f4b81
AO
9397fi
9398fi
1c710c3c 9399WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9400if test -n "$WINDRES"; then
5213506e
RW
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9402$as_echo "$WINDRES" >&6; }
ca9f4b81 9403else
5213506e
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
ca9f4b81 9406fi
1c710c3c 9407
5213506e 9408
2693c0b0
PB
9409 fi
9410 test -n "$ac_cv_prog_WINDRES" && break
9411done
9412
9413if test -z "$ac_cv_prog_WINDRES" ; then
9414 set dummy windres
9415 if test $build = $host ; then
9416 WINDRES="$2"
ca9f4b81 9417 else
2693c0b0 9418 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9419 fi
ca9f4b81
AO
9420fi
9421
278a7a38
AO
9422
9423
901119ae
KT
9424if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC=$WINDMC
9426elif test -n "$ac_cv_prog_WINDMC"; then
9427 WINDMC=$ac_cv_prog_WINDMC
9428fi
9429
9430if test -n "$ac_cv_prog_WINDMC"; then
9431 for ncn_progname in windmc; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9436if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9437 $as_echo_n "(cached) " >&6
901119ae
KT
9438else
9439 if test -n "$WINDMC"; then
9440 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
5213506e 9447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9449 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9451 break 2
9452 fi
9453done
5213506e
RW
9454 done
9455IFS=$as_save_IFS
901119ae
KT
9456
9457fi
9458fi
9459WINDMC=$ac_cv_prog_WINDMC
9460if test -n "$WINDMC"; then
5213506e
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9462$as_echo "$WINDMC" >&6; }
901119ae 9463else
5213506e
RW
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
901119ae
KT
9466fi
9467
5213506e 9468
901119ae
KT
9469 done
9470fi
9471
9472for ncn_progname in windmc; do
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9478if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9479 $as_echo_n "(cached) " >&6
901119ae
KT
9480else
9481 if test -n "$WINDMC"; then
9482 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9483else
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
5213506e 9489 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9491 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9493 break 2
9494 fi
9495done
5213506e
RW
9496 done
9497IFS=$as_save_IFS
901119ae
KT
9498
9499fi
9500fi
9501WINDMC=$ac_cv_prog_WINDMC
9502if test -n "$WINDMC"; then
5213506e
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9504$as_echo "$WINDMC" >&6; }
901119ae 9505else
5213506e
RW
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
901119ae
KT
9508fi
9509
5213506e 9510
901119ae
KT
9511 fi
9512 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9517if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9518 $as_echo_n "(cached) " >&6
901119ae
KT
9519else
9520 if test -n "$WINDMC"; then
9521 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9522else
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
5213506e 9528 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9530 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9532 break 2
9533 fi
9534done
5213506e
RW
9535 done
9536IFS=$as_save_IFS
901119ae
KT
9537
9538fi
9539fi
9540WINDMC=$ac_cv_prog_WINDMC
9541if test -n "$WINDMC"; then
5213506e
RW
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9543$as_echo "$WINDMC" >&6; }
901119ae 9544else
5213506e
RW
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546$as_echo "no" >&6; }
901119ae
KT
9547fi
9548
5213506e 9549
901119ae
KT
9550 fi
9551 test -n "$ac_cv_prog_WINDMC" && break
9552done
9553
9554if test -z "$ac_cv_prog_WINDMC" ; then
9555 set dummy windmc
9556 if test $build = $host ; then
9557 WINDMC="$2"
9558 else
9559 WINDMC="${ncn_tool_prefix}$2"
9560 fi
9561fi
9562
9563
9564
278a7a38
AO
9565if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY=$OBJCOPY
9567elif test -n "$ac_cv_prog_OBJCOPY"; then
9568 OBJCOPY=$ac_cv_prog_OBJCOPY
9569fi
9570
9571if test -n "$ac_cv_prog_OBJCOPY"; then
9572 for ncn_progname in objcopy; do
9573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9574set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9577if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9578 $as_echo_n "(cached) " >&6
278a7a38
AO
9579else
9580 if test -n "$OBJCOPY"; then
9581 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9582else
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
5213506e 9588 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9590 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9592 break 2
9593 fi
9594done
5213506e
RW
9595 done
9596IFS=$as_save_IFS
278a7a38
AO
9597
9598fi
9599fi
9600OBJCOPY=$ac_cv_prog_OBJCOPY
9601if test -n "$OBJCOPY"; then
5213506e
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9603$as_echo "$OBJCOPY" >&6; }
278a7a38 9604else
5213506e
RW
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606$as_echo "no" >&6; }
278a7a38
AO
9607fi
9608
5213506e 9609
278a7a38
AO
9610 done
9611fi
9612
9613for ncn_progname in objcopy; do
2693c0b0
PB
9614 if test -n "$ncn_tool_prefix"; then
9615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9619if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9620 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9621else
9622 if test -n "$OBJCOPY"; then
9623 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9624else
1c710c3c
DJ
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
5213506e 9630 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9632 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9634 break 2
9635 fi
9636done
5213506e
RW
9637 done
9638IFS=$as_save_IFS
1c710c3c 9639
ca9f4b81
AO
9640fi
9641fi
1c710c3c 9642OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9643if test -n "$OBJCOPY"; then
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9645$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9646else
5213506e
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
ca9f4b81
AO
9649fi
9650
5213506e 9651
2693c0b0
PB
9652 fi
9653 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9658if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9659 $as_echo_n "(cached) " >&6
ca9f4b81 9660else
2693c0b0
PB
9661 if test -n "$OBJCOPY"; then
9662 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9663else
1c710c3c
DJ
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
5213506e 9669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9671 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9673 break 2
9674 fi
9675done
5213506e
RW
9676 done
9677IFS=$as_save_IFS
1c710c3c 9678
ca9f4b81
AO
9679fi
9680fi
1c710c3c 9681OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9682if test -n "$OBJCOPY"; then
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9684$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9685else
5213506e
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
ca9f4b81 9688fi
1c710c3c 9689
5213506e 9690
2693c0b0
PB
9691 fi
9692 test -n "$ac_cv_prog_OBJCOPY" && break
9693done
9694
9695if test -z "$ac_cv_prog_OBJCOPY" ; then
9696 set dummy objcopy
9697 if test $build = $host ; then
9698 OBJCOPY="$2"
ca9f4b81 9699 else
2693c0b0 9700 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9701 fi
ca9f4b81
AO
9702fi
9703
278a7a38
AO
9704
9705
9706if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP=$OBJDUMP
9708elif test -n "$ac_cv_prog_OBJDUMP"; then
9709 OBJDUMP=$ac_cv_prog_OBJDUMP
9710fi
9711
9712if test -n "$ac_cv_prog_OBJDUMP"; then
9713 for ncn_progname in objdump; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9718if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9719 $as_echo_n "(cached) " >&6
278a7a38
AO
9720else
9721 if test -n "$OBJDUMP"; then
9722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9723else
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
5213506e 9729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9731 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9733 break 2
9734 fi
9735done
5213506e
RW
9736 done
9737IFS=$as_save_IFS
278a7a38
AO
9738
9739fi
9740fi
9741OBJDUMP=$ac_cv_prog_OBJDUMP
9742if test -n "$OBJDUMP"; then
5213506e
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9744$as_echo "$OBJDUMP" >&6; }
278a7a38 9745else
5213506e
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
278a7a38
AO
9748fi
9749
5213506e 9750
278a7a38
AO
9751 done
9752fi
9753
9754for ncn_progname in objdump; do
2693c0b0
PB
9755 if test -n "$ncn_tool_prefix"; then
9756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9760if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9761 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9762else
9763 if test -n "$OBJDUMP"; then
9764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9765else
1c710c3c
DJ
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
5213506e 9771 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9773 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9775 break 2
9776 fi
9777done
5213506e
RW
9778 done
9779IFS=$as_save_IFS
1c710c3c 9780
ca9f4b81
AO
9781fi
9782fi
1c710c3c 9783OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9784if test -n "$OBJDUMP"; then
5213506e
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9786$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9787else
5213506e
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
ca9f4b81
AO
9790fi
9791
5213506e 9792
2693c0b0
PB
9793 fi
9794 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9799if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9800 $as_echo_n "(cached) " >&6
ca9f4b81 9801else
2693c0b0
PB
9802 if test -n "$OBJDUMP"; then
9803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9804else
1c710c3c
DJ
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
5213506e 9810 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9812 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9814 break 2
9815 fi
9816done
5213506e
RW
9817 done
9818IFS=$as_save_IFS
1c710c3c 9819
ca9f4b81
AO
9820fi
9821fi
1c710c3c 9822OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9823if test -n "$OBJDUMP"; then
5213506e
RW
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9825$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9826else
5213506e
RW
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828$as_echo "no" >&6; }
ca9f4b81 9829fi
1c710c3c 9830
5213506e 9831
2693c0b0
PB
9832 fi
9833 test -n "$ac_cv_prog_OBJDUMP" && break
9834done
9835
9836if test -z "$ac_cv_prog_OBJDUMP" ; then
9837 set dummy objdump
9838 if test $build = $host ; then
9839 OBJDUMP="$2"
ca9f4b81 9840 else
2693c0b0 9841 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9842 fi
ca9f4b81
AO
9843fi
9844
671aa708
NN
9845
9846
e7a82751
RM
9847if test -n "$READELF"; then
9848 ac_cv_prog_READELF=$READELF
9849elif test -n "$ac_cv_prog_READELF"; then
9850 READELF=$ac_cv_prog_READELF
9851fi
9852
9853if test -n "$ac_cv_prog_READELF"; then
9854 for ncn_progname in readelf; do
9855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9856set dummy ${ncn_progname}; ac_word=$2
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9859if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
9860 $as_echo_n "(cached) " >&6
9861else
9862 if test -n "$READELF"; then
9863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9864else
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
9872 ac_cv_prog_READELF="${ncn_progname}"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876done
9877 done
9878IFS=$as_save_IFS
9879
9880fi
9881fi
9882READELF=$ac_cv_prog_READELF
9883if test -n "$READELF"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9885$as_echo "$READELF" >&6; }
9886else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
9889fi
9890
9891
9892 done
9893fi
9894
9895for ncn_progname in readelf; do
9896 if test -n "$ncn_tool_prefix"; then
9897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9898set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9901if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
9902 $as_echo_n "(cached) " >&6
9903else
9904 if test -n "$READELF"; then
9905 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9906else
9907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
9914 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9917 fi
9918done
9919 done
9920IFS=$as_save_IFS
9921
9922fi
9923fi
9924READELF=$ac_cv_prog_READELF
9925if test -n "$READELF"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9927$as_echo "$READELF" >&6; }
9928else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
9931fi
9932
9933
9934 fi
9935 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9937set dummy ${ncn_progname}; ac_word=$2
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9940if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
9941 $as_echo_n "(cached) " >&6
9942else
9943 if test -n "$READELF"; then
9944 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9945else
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
9953 ac_cv_prog_READELF="${ncn_progname}"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9956 fi
9957done
9958 done
9959IFS=$as_save_IFS
9960
9961fi
9962fi
9963READELF=$ac_cv_prog_READELF
9964if test -n "$READELF"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9966$as_echo "$READELF" >&6; }
9967else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
9970fi
9971
9972
9973 fi
9974 test -n "$ac_cv_prog_READELF" && break
9975done
9976
9977if test -z "$ac_cv_prog_READELF" ; then
9978 set dummy readelf
9979 if test $build = $host ; then
9980 READELF="$2"
9981 else
9982 READELF="${ncn_tool_prefix}$2"
9983 fi
9984fi
9985
9986
9987
671aa708
NN
9988
9989
9990
2abefe3d 9991# Target tools.
1c710c3c 9992
5213506e
RW
9993# Check whether --with-build-time-tools was given.
9994if test "${with_build_time_tools+set}" = set; then :
9995 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9996 x/*) ;;
9997 *)
9998 with_build_time_tools=
5213506e
RW
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10000$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10001 ;;
10002 esac
ca9f4b81 10003else
e8b05380 10004 with_build_time_tools=
5213506e
RW
10005fi
10006
ca9f4b81 10007
278a7a38
AO
10008
10009
10010if test -n "$CC_FOR_TARGET"; then
10011 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10012elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10014fi
10015
10016if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10017 for ncn_progname in cc gcc; do
10018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10022if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10023 $as_echo_n "(cached) " >&6
278a7a38
AO
10024else
10025 if test -n "$CC_FOR_TARGET"; then
10026 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10027else
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
5213506e 10033 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10035 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10037 break 2
10038 fi
10039done
5213506e
RW
10040 done
10041IFS=$as_save_IFS
278a7a38
AO
10042
10043fi
10044fi
10045CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10046if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10048$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10049else
5213506e
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
278a7a38
AO
10052fi
10053
5213506e 10054
278a7a38
AO
10055 done
10056fi
10057
10058if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10059 for ncn_progname in cc gcc; do
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10061$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10062 if test -x $with_build_time_tools/${ncn_progname}; then
10063 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10065$as_echo "yes" >&6; }
72a7ab82 10066 break
e8b05380 10067 else
5213506e
RW
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069$as_echo "no" >&6; }
72a7ab82
AP
10070 fi
10071 done
4de997d1
PB
10072fi
10073
e8b05380
PB
10074if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10075 for ncn_progname in cc gcc; do
10076 if test -n "$ncn_target_tool_prefix"; then
10077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10078set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10081if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10082 $as_echo_n "(cached) " >&6
4de997d1
PB
10083else
10084 if test -n "$CC_FOR_TARGET"; then
10085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10086else
1c710c3c
DJ
10087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088for as_dir in $PATH
10089do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
5213506e 10092 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10094 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10096 break 2
10097 fi
10098done
5213506e
RW
10099 done
10100IFS=$as_save_IFS
1c710c3c 10101
4de997d1
PB
10102fi
10103fi
1c710c3c 10104CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10105if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10107$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10108else
5213506e
RW
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110$as_echo "no" >&6; }
4de997d1
PB
10111fi
10112
5213506e 10113
e8b05380
PB
10114 fi
10115 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10117set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10120if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10121 $as_echo_n "(cached) " >&6
4de997d1 10122else
2693c0b0
PB
10123 if test -n "$CC_FOR_TARGET"; then
10124 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10125else
1c710c3c
DJ
10126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127for as_dir in $PATH
10128do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
5213506e 10131 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10133 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10135 break 2
10136 fi
10137done
5213506e
RW
10138 done
10139IFS=$as_save_IFS
1c710c3c 10140
4de997d1
PB
10141fi
10142fi
1c710c3c 10143CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10144if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10146$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10147else
5213506e
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149$as_echo "no" >&6; }
4de997d1 10150fi
1c710c3c 10151
5213506e 10152
e8b05380
PB
10153 fi
10154 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10155 done
10156fi
1c710c3c 10157
2693c0b0
PB
10158if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10159 set dummy cc gcc
10160 if test $build = $target ; then
10161 CC_FOR_TARGET="$2"
4de997d1 10162 else
2693c0b0 10163 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10164 fi
1c00b503
PB
10165else
10166 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10167fi
10168
278a7a38
AO
10169
10170
10171if test -n "$CXX_FOR_TARGET"; then
10172 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10173elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10175fi
10176
10177if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10178 for ncn_progname in c++ g++ cxx gxx; do
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10183if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10184 $as_echo_n "(cached) " >&6
278a7a38
AO
10185else
10186 if test -n "$CXX_FOR_TARGET"; then
10187 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10188else
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
5213506e 10194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10196 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10198 break 2
10199 fi
10200done
5213506e
RW
10201 done
10202IFS=$as_save_IFS
278a7a38
AO
10203
10204fi
10205fi
10206CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10207if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10209$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10210else
5213506e
RW
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212$as_echo "no" >&6; }
278a7a38
AO
10213fi
10214
5213506e 10215
278a7a38
AO
10216 done
10217fi
10218
10219if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10220 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10222$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10223 if test -x $with_build_time_tools/${ncn_progname}; then
10224 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226$as_echo "yes" >&6; }
e8b05380
PB
10227 break
10228 else
5213506e
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
e8b05380
PB
10231 fi
10232 done
10233fi
10234
10235if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10236 for ncn_progname in c++ g++ cxx gxx; do
10237 if test -n "$ncn_target_tool_prefix"; then
10238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10242if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10243 $as_echo_n "(cached) " >&6
4de997d1
PB
10244else
10245 if test -n "$CXX_FOR_TARGET"; then
10246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10247else
1c710c3c
DJ
10248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $PATH
10250do
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
5213506e 10253 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10255 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10257 break 2
10258 fi
10259done
5213506e
RW
10260 done
10261IFS=$as_save_IFS
1c710c3c 10262
4de997d1
PB
10263fi
10264fi
1c710c3c 10265CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10266if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10268$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10269else
5213506e
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271$as_echo "no" >&6; }
4de997d1
PB
10272fi
10273
5213506e 10274
e8b05380
PB
10275 fi
10276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10278set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10281if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10282 $as_echo_n "(cached) " >&6
4de997d1 10283else
2693c0b0
PB
10284 if test -n "$CXX_FOR_TARGET"; then
10285 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10286else
1c710c3c
DJ
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
5213506e 10292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10294 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10296 break 2
10297 fi
10298done
5213506e
RW
10299 done
10300IFS=$as_save_IFS
1c710c3c 10301
4de997d1
PB
10302fi
10303fi
1c710c3c 10304CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10305if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10307$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10308else
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310$as_echo "no" >&6; }
4de997d1 10311fi
1c710c3c 10312
5213506e 10313
e8b05380
PB
10314 fi
10315 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10316 done
10317fi
1c710c3c 10318
2693c0b0
PB
10319if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10320 set dummy c++ g++ cxx gxx
10321 if test $build = $target ; then
10322 CXX_FOR_TARGET="$2"
4de997d1 10323 else
2693c0b0 10324 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10325 fi
1c00b503
PB
10326else
10327 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10328fi
10329
278a7a38
AO
10330
10331
10332if test -n "$GCC_FOR_TARGET"; then
10333 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10334elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10336fi
10337
10338if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10339 for ncn_progname in gcc; do
10340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10341set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10344if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10345 $as_echo_n "(cached) " >&6
278a7a38
AO
10346else
10347 if test -n "$GCC_FOR_TARGET"; then
10348 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10349else
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
5213506e 10355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10357 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10359 break 2
10360 fi
10361done
5213506e
RW
10362 done
10363IFS=$as_save_IFS
278a7a38
AO
10364
10365fi
10366fi
10367GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10368if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10370$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10371else
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
278a7a38
AO
10374fi
10375
5213506e 10376
278a7a38
AO
10377 done
10378fi
10379
10380if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10381 for ncn_progname in gcc; do
5213506e
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10383$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10384 if test -x $with_build_time_tools/${ncn_progname}; then
10385 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387$as_echo "yes" >&6; }
e8b05380
PB
10388 break
10389 else
5213506e
RW
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
e8b05380
PB
10392 fi
10393 done
10394fi
10395
10396if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10397 for ncn_progname in gcc; do
10398 if test -n "$ncn_target_tool_prefix"; then
10399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10400set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10403if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10404 $as_echo_n "(cached) " >&6
ca9f4b81 10405else
e8b05380
PB
10406 if test -n "$GCC_FOR_TARGET"; then
10407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10408else
1c710c3c
DJ
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
5213506e 10414 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10416 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10418 break 2
10419 fi
10420done
5213506e
RW
10421 done
10422IFS=$as_save_IFS
1c710c3c 10423
ca9f4b81
AO
10424fi
10425fi
1c710c3c 10426GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10427if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10429$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10430else
5213506e
RW
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
ca9f4b81
AO
10433fi
10434
5213506e 10435
e8b05380
PB
10436 fi
10437 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10439set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10442if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10443 $as_echo_n "(cached) " >&6
ca9f4b81 10444else
e8b05380
PB
10445 if test -n "$GCC_FOR_TARGET"; then
10446 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10447else
1c710c3c
DJ
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
5213506e 10453 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10455 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10457 break 2
10458 fi
10459done
5213506e
RW
10460 done
10461IFS=$as_save_IFS
1c710c3c 10462
ca9f4b81
AO
10463fi
10464fi
1c710c3c 10465GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10466if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10468$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10469else
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
ca9f4b81 10472fi
1c710c3c 10473
5213506e 10474
e8b05380
PB
10475 fi
10476 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10477 done
10478fi
1c710c3c 10479
e8b05380
PB
10480if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10481 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10482else
10483 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10484fi
10485
278a7a38
AO
10486
10487
278a7a38
AO
10488if test -n "$GFORTRAN_FOR_TARGET"; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10490elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10491 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10492fi
10493
278a7a38
AO
10494if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495 for ncn_progname in gfortran; do
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10497set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10500if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10501 $as_echo_n "(cached) " >&6
e8b05380 10502else
278a7a38
AO
10503 if test -n "$GFORTRAN_FOR_TARGET"; then
10504 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10505else
1c710c3c
DJ
10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $PATH
10508do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
5213506e 10511 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10513 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10515 break 2
10516 fi
10517done
5213506e
RW
10518 done
10519IFS=$as_save_IFS
1c710c3c 10520
e8b05380
PB
10521fi
10522fi
278a7a38
AO
10523GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10524if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10526$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10527else
5213506e
RW
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529$as_echo "no" >&6; }
e8b05380 10530fi
1c710c3c 10531
5213506e 10532
e8b05380
PB
10533 done
10534fi
1c710c3c 10535
278a7a38 10536if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10537 for ncn_progname in gfortran; do
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10539$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10540 if test -x $with_build_time_tools/${ncn_progname}; then
10541 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543$as_echo "yes" >&6; }
e8b05380
PB
10544 break
10545 else
5213506e
RW
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
e8b05380
PB
10548 fi
10549 done
10550fi
10551
10552if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553 for ncn_progname in gfortran; do
10554 if test -n "$ncn_target_tool_prefix"; then
10555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10556set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10559if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10560 $as_echo_n "(cached) " >&6
e8b05380
PB
10561else
10562 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10564else
10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566for as_dir in $PATH
10567do
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
5213506e 10570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10574 break 2
10575 fi
10576done
5213506e
RW
10577 done
10578IFS=$as_save_IFS
1c710c3c 10579
e8b05380
PB
10580fi
10581fi
1c710c3c 10582GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10583if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10585$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10586else
5213506e
RW
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588$as_echo "no" >&6; }
e8b05380
PB
10589fi
10590
5213506e 10591
e8b05380
PB
10592 fi
10593 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10598if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10599 $as_echo_n "(cached) " >&6
e8b05380
PB
10600else
10601 if test -n "$GFORTRAN_FOR_TARGET"; then
10602 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10603else
1c710c3c
DJ
10604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605for as_dir in $PATH
10606do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
5213506e 10609 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10611 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10613 break 2
10614 fi
10615done
5213506e
RW
10616 done
10617IFS=$as_save_IFS
1c710c3c 10618
e8b05380
PB
10619fi
10620fi
1c710c3c 10621GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10622if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10624$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10625else
5213506e
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627$as_echo "no" >&6; }
e8b05380 10628fi
1c710c3c 10629
5213506e 10630
e8b05380
PB
10631 fi
10632 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10633 done
10634fi
1c710c3c 10635
e8b05380
PB
10636if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10637 set dummy gfortran
2693c0b0 10638 if test $build = $target ; then
e8b05380 10639 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10640 else
e8b05380
PB
10641 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10642 fi
1c00b503
PB
10643else
10644 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10645fi
10646
10647
10648
632e2a07
ILT
10649if test -n "$GOC_FOR_TARGET"; then
10650 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10651elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10652 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10653fi
10654
10655if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656 for ncn_progname in gccgo; do
10657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10658set dummy ${ncn_progname}; ac_word=$2
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10661if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10662 $as_echo_n "(cached) " >&6
10663else
10664 if test -n "$GOC_FOR_TARGET"; then
10665 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10674 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679 done
10680IFS=$as_save_IFS
10681
10682fi
10683fi
10684GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10685if test -n "$GOC_FOR_TARGET"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10687$as_echo "$GOC_FOR_TARGET" >&6; }
10688else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
10691fi
10692
10693
10694 done
10695fi
10696
10697if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10698 for ncn_progname in gccgo; do
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10700$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10701 if test -x $with_build_time_tools/${ncn_progname}; then
10702 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704$as_echo "yes" >&6; }
10705 break
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708$as_echo "no" >&6; }
10709 fi
10710 done
10711fi
10712
10713if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10714 for ncn_progname in gccgo; do
10715 if test -n "$ncn_target_tool_prefix"; then
10716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10717set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10720if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10721 $as_echo_n "(cached) " >&6
10722else
10723 if test -n "$GOC_FOR_TARGET"; then
10724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10725else
10726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727for as_dir in $PATH
10728do
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10733 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10736 fi
10737done
10738 done
10739IFS=$as_save_IFS
10740
10741fi
10742fi
10743GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10744if test -n "$GOC_FOR_TARGET"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10746$as_echo "$GOC_FOR_TARGET" >&6; }
10747else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749$as_echo "no" >&6; }
10750fi
10751
10752
10753 fi
10754 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756set dummy ${ncn_progname}; ac_word=$2
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10759if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10760 $as_echo_n "(cached) " >&6
10761else
10762 if test -n "$GOC_FOR_TARGET"; then
10763 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10772 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776done
10777 done
10778IFS=$as_save_IFS
10779
10780fi
10781fi
10782GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10783if test -n "$GOC_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10785$as_echo "$GOC_FOR_TARGET" >&6; }
10786else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788$as_echo "no" >&6; }
10789fi
10790
10791
10792 fi
10793 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10798 set dummy gccgo
10799 if test $build = $target ; then
10800 GOC_FOR_TARGET="$2"
10801 else
10802 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10803 fi
10804else
10805 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10806fi
10807
10808
10809
b4c522fa
IB
10810if test -n "$GDC_FOR_TARGET"; then
10811 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10812elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10813 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10814fi
10815
10816if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10817 for ncn_progname in gdc; do
10818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819set dummy ${ncn_progname}; ac_word=$2
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10822if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
10823 $as_echo_n "(cached) " >&6
10824else
10825 if test -n "$GDC_FOR_TARGET"; then
10826 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
10835 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840 done
10841IFS=$as_save_IFS
10842
10843fi
10844fi
10845GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10846if test -n "$GDC_FOR_TARGET"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10848$as_echo "$GDC_FOR_TARGET" >&6; }
10849else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854
10855 done
10856fi
10857
10858if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10859 for ncn_progname in gdc; do
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10861$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10862 if test -x $with_build_time_tools/${ncn_progname}; then
10863 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865$as_echo "yes" >&6; }
10866 break
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869$as_echo "no" >&6; }
10870 fi
10871 done
10872fi
10873
10874if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
10875 for ncn_progname in gdc; do
10876 if test -n "$ncn_target_tool_prefix"; then
10877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10878set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10881if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
10882 $as_echo_n "(cached) " >&6
10883else
10884 if test -n "$GDC_FOR_TARGET"; then
10885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10886else
10887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH
10889do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
10894 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898done
10899 done
10900IFS=$as_save_IFS
10901
10902fi
10903fi
10904GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10905if test -n "$GDC_FOR_TARGET"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10907$as_echo "$GDC_FOR_TARGET" >&6; }
10908else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
10911fi
10912
10913
10914 fi
10915 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
10916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10917set dummy ${ncn_progname}; ac_word=$2
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10920if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
10921 $as_echo_n "(cached) " >&6
10922else
10923 if test -n "$GDC_FOR_TARGET"; then
10924 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10925else
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
10933 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10938 done
10939IFS=$as_save_IFS
10940
10941fi
10942fi
10943GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10944if test -n "$GDC_FOR_TARGET"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10946$as_echo "$GDC_FOR_TARGET" >&6; }
10947else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949$as_echo "no" >&6; }
10950fi
10951
10952
10953 fi
10954 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
10955 done
10956fi
10957
10958if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
10959 set dummy gdc
10960 if test $build = $target ; then
10961 GDC_FOR_TARGET="$2"
10962 else
10963 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10964 fi
10965else
10966 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
10967fi
10968
10969
10970
e8b05380
PB
10971cat > conftest.c << \EOF
10972#ifdef __GNUC__
10973 gcc_yay;
10974#endif
10975EOF
10976if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10977 have_gcc_for_target=yes
10978else
10979 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10980 have_gcc_for_target=no
10981fi
10982rm conftest.c
10983
10984
10985
10986
10987if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10988 if test -n "$with_build_time_tools"; then
5213506e
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10990$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10991 if test -x $with_build_time_tools/ar; then
10992 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10993 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10995$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10996 else
5213506e
RW
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
d1f8db0c 10999 fi
e8b05380
PB
11000 elif test $build != $host && test $have_gcc_for_target = yes; then
11001 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11002 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11003 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11004 fi
11005fi
3e19841a 11006if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11007 # Extract the first word of "ar", so it can be a program name with args.
11008set dummy ar; ac_word=$2
5213506e
RW
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11011if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11012 $as_echo_n "(cached) " >&6
e8b05380 11013else
1c710c3c
DJ
11014 case $AR_FOR_TARGET in
11015 [\\/]* | ?:[\\/]*)
e8b05380
PB
11016 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11017 ;;
e8b05380 11018 *)
1c710c3c
DJ
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $gcc_cv_tool_dirs
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
5213506e 11024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11026 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11028 break 2
11029 fi
11030done
5213506e
RW
11031 done
11032IFS=$as_save_IFS
1c710c3c 11033
e8b05380
PB
11034 ;;
11035esac
11036fi
1c710c3c 11037AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11038if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11040$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11041else
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
4de997d1
PB
11044fi
11045
5213506e 11046
e8b05380
PB
11047fi
11048if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11049
11050
11051if test -n "$AR_FOR_TARGET"; then
11052 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11053elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11055fi
11056
11057if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11058 for ncn_progname in ar; do
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11063if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11064 $as_echo_n "(cached) " >&6
278a7a38
AO
11065else
11066 if test -n "$AR_FOR_TARGET"; then
11067 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11068else
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
5213506e 11074 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11076 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11078 break 2
11079 fi
11080done
5213506e
RW
11081 done
11082IFS=$as_save_IFS
278a7a38
AO
11083
11084fi
11085fi
11086AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11087if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11089$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11090else
5213506e
RW
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092$as_echo "no" >&6; }
278a7a38
AO
11093fi
11094
5213506e 11095
278a7a38
AO
11096 done
11097fi
11098
11099if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11100 for ncn_progname in ar; do
5213506e
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11102$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11103 if test -x $with_build_time_tools/${ncn_progname}; then
11104 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106$as_echo "yes" >&6; }
e8b05380
PB
11107 break
11108 else
5213506e
RW
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
e8b05380
PB
11111 fi
11112 done
11113fi
11114
11115if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11116 for ncn_progname in ar; do
11117 if test -n "$ncn_target_tool_prefix"; then
11118 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11119set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11122if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11123 $as_echo_n "(cached) " >&6
4de997d1 11124else
e8b05380
PB
11125 if test -n "$AR_FOR_TARGET"; then
11126 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11127else
1c710c3c
DJ
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
5213506e 11133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11135 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11137 break 2
11138 fi
11139done
5213506e
RW
11140 done
11141IFS=$as_save_IFS
1c710c3c 11142
4de997d1
PB
11143fi
11144fi
1c710c3c 11145AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11146if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11148$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11149else
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151$as_echo "no" >&6; }
4de997d1
PB
11152fi
11153
5213506e 11154
e8b05380
PB
11155 fi
11156 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11161if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11162 $as_echo_n "(cached) " >&6
e8b05380
PB
11163else
11164 if test -n "$AR_FOR_TARGET"; then
11165 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11166else
1c710c3c
DJ
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
5213506e 11172 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11174 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11176 break 2
11177 fi
11178done
5213506e
RW
11179 done
11180IFS=$as_save_IFS
1c710c3c 11181
e8b05380
PB
11182fi
11183fi
1c710c3c 11184AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11185if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11187$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11188else
5213506e
RW
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
e8b05380 11191fi
1c710c3c 11192
5213506e 11193
e8b05380
PB
11194 fi
11195 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11196 done
11197fi
1c710c3c 11198
e8b05380
PB
11199if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11200 set dummy ar
11201 if test $build = $target ; then
11202 AR_FOR_TARGET="$2"
11203 else
11204 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11205 fi
1c00b503
PB
11206else
11207 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11208fi
11209
d1f8db0c
PB
11210else
11211 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11212fi
11213
11214
11215
11216
11217if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11218 if test -n "$with_build_time_tools"; then
5213506e
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11220$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11221 if test -x $with_build_time_tools/as; then
11222 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11223 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11225$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11226 else
5213506e
RW
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
d1f8db0c 11229 fi
e8b05380
PB
11230 elif test $build != $host && test $have_gcc_for_target = yes; then
11231 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11232 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11233 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11234 fi
11235fi
3e19841a 11236if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11237 # Extract the first word of "as", so it can be a program name with args.
11238set dummy as; ac_word=$2
5213506e
RW
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11241if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11242 $as_echo_n "(cached) " >&6
e8b05380 11243else
1c710c3c
DJ
11244 case $AS_FOR_TARGET in
11245 [\\/]* | ?:[\\/]*)
e8b05380
PB
11246 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11247 ;;
e8b05380 11248 *)
1c710c3c
DJ
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250for as_dir in $gcc_cv_tool_dirs
11251do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
5213506e 11254 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11256 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11258 break 2
11259 fi
11260done
5213506e
RW
11261 done
11262IFS=$as_save_IFS
1c710c3c 11263
e8b05380
PB
11264 ;;
11265esac
11266fi
1c710c3c 11267AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11268if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11270$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11271else
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
e8b05380
PB
11274fi
11275
5213506e 11276
e8b05380
PB
11277fi
11278if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11279
11280
11281if test -n "$AS_FOR_TARGET"; then
11282 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11283elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11285fi
11286
11287if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11288 for ncn_progname in as; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11293if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11294 $as_echo_n "(cached) " >&6
278a7a38
AO
11295else
11296 if test -n "$AS_FOR_TARGET"; then
11297 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
5213506e 11304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11306 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11308 break 2
11309 fi
11310done
5213506e
RW
11311 done
11312IFS=$as_save_IFS
278a7a38
AO
11313
11314fi
11315fi
11316AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11317if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11319$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11320else
5213506e
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
278a7a38
AO
11323fi
11324
5213506e 11325
278a7a38
AO
11326 done
11327fi
11328
11329if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11330 for ncn_progname in as; do
5213506e
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11333 if test -x $with_build_time_tools/${ncn_progname}; then
11334 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336$as_echo "yes" >&6; }
e8b05380
PB
11337 break
11338 else
5213506e
RW
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340$as_echo "no" >&6; }
e8b05380
PB
11341 fi
11342 done
11343fi
11344
11345if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11346 for ncn_progname in as; do
11347 if test -n "$ncn_target_tool_prefix"; then
11348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11352if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11353 $as_echo_n "(cached) " >&6
e8b05380
PB
11354else
11355 if test -n "$AS_FOR_TARGET"; then
11356 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11357else
1c710c3c
DJ
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
5213506e 11363 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11365 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11367 break 2
11368 fi
11369done
5213506e
RW
11370 done
11371IFS=$as_save_IFS
1c710c3c 11372
e8b05380
PB
11373fi
11374fi
1c710c3c 11375AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11376if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11378$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11379else
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381$as_echo "no" >&6; }
e8b05380
PB
11382fi
11383
5213506e 11384
e8b05380
PB
11385 fi
11386 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11391if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11392 $as_echo_n "(cached) " >&6
4de997d1 11393else
e8b05380
PB
11394 if test -n "$AS_FOR_TARGET"; then
11395 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11396else
1c710c3c
DJ
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
5213506e 11402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11404 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11406 break 2
11407 fi
11408done
5213506e
RW
11409 done
11410IFS=$as_save_IFS
1c710c3c 11411
4de997d1
PB
11412fi
11413fi
1c710c3c 11414AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11415if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11417$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11418else
5213506e
RW
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
4de997d1 11421fi
1c710c3c 11422
5213506e 11423
e8b05380
PB
11424 fi
11425 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11426 done
11427fi
1c710c3c 11428
e8b05380
PB
11429if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11430 set dummy as
11431 if test $build = $target ; then
11432 AS_FOR_TARGET="$2"
11433 else
11434 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11435 fi
1c00b503
PB
11436else
11437 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11438fi
2693c0b0 11439
d1f8db0c
PB
11440else
11441 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11442fi
11443
e8b05380
PB
11444
11445
11446
11447if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11448 if test -n "$with_build_time_tools"; then
5213506e
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11450$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11451 if test -x $with_build_time_tools/dlltool; then
11452 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11453 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11455$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11456 else
5213506e
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
d1f8db0c 11459 fi
e8b05380
PB
11460 elif test $build != $host && test $have_gcc_for_target = yes; then
11461 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11462 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11463 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11464 fi
11465fi
3e19841a 11466if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11467 # Extract the first word of "dlltool", so it can be a program name with args.
11468set dummy dlltool; ac_word=$2
5213506e
RW
11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11471if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11472 $as_echo_n "(cached) " >&6
4de997d1 11473else
1c710c3c
DJ
11474 case $DLLTOOL_FOR_TARGET in
11475 [\\/]* | ?:[\\/]*)
e8b05380
PB
11476 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11477 ;;
e8b05380 11478 *)
1c710c3c
DJ
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $gcc_cv_tool_dirs
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
5213506e 11484 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11486 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11488 break 2
11489 fi
11490done
5213506e
RW
11491 done
11492IFS=$as_save_IFS
1c710c3c 11493
e8b05380
PB
11494 ;;
11495esac
4de997d1 11496fi
1c710c3c 11497DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11498if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11500$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11501else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
4de997d1
PB
11504fi
11505
5213506e 11506
e8b05380
PB
11507fi
11508if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11509
11510
11511if test -n "$DLLTOOL_FOR_TARGET"; then
11512 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11513elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11515fi
11516
11517if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11518 for ncn_progname in dlltool; do
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11520set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11523if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11524 $as_echo_n "(cached) " >&6
278a7a38
AO
11525else
11526 if test -n "$DLLTOOL_FOR_TARGET"; then
11527 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
5213506e 11534 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11536 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11538 break 2
11539 fi
11540done
5213506e
RW
11541 done
11542IFS=$as_save_IFS
278a7a38
AO
11543
11544fi
11545fi
11546DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11547if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11549$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11550else
5213506e
RW
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
278a7a38
AO
11553fi
11554
5213506e 11555
278a7a38
AO
11556 done
11557fi
11558
11559if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11560 for ncn_progname in dlltool; do
5213506e
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11562$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11563 if test -x $with_build_time_tools/${ncn_progname}; then
11564 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566$as_echo "yes" >&6; }
e8b05380
PB
11567 break
11568 else
5213506e
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570$as_echo "no" >&6; }
e8b05380
PB
11571 fi
11572 done
11573fi
11574
11575if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11576 for ncn_progname in dlltool; do
11577 if test -n "$ncn_target_tool_prefix"; then
11578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11579set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11582if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11583 $as_echo_n "(cached) " >&6
4de997d1 11584else
e8b05380
PB
11585 if test -n "$DLLTOOL_FOR_TARGET"; then
11586 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11587else
1c710c3c
DJ
11588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $PATH
11590do
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
5213506e 11593 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11595 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11597 break 2
11598 fi
11599done
5213506e
RW
11600 done
11601IFS=$as_save_IFS
1c710c3c 11602
4de997d1
PB
11603fi
11604fi
1c710c3c 11605DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11606if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11608$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11609else
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611$as_echo "no" >&6; }
4de997d1 11612fi
4de997d1 11613
5213506e 11614
e8b05380
PB
11615 fi
11616 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11621if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11622 $as_echo_n "(cached) " >&6
4de997d1 11623else
e8b05380
PB
11624 if test -n "$DLLTOOL_FOR_TARGET"; then
11625 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11626else
1c710c3c
DJ
11627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628for as_dir in $PATH
11629do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
5213506e 11632 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11634 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11636 break 2
11637 fi
11638done
5213506e
RW
11639 done
11640IFS=$as_save_IFS
1c710c3c 11641
4de997d1
PB
11642fi
11643fi
1c710c3c 11644DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11645if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11647$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11648else
5213506e
RW
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
4de997d1 11651fi
1c710c3c 11652
5213506e 11653
e8b05380
PB
11654 fi
11655 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11656 done
11657fi
1c710c3c 11658
e8b05380
PB
11659if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11660 set dummy dlltool
11661 if test $build = $target ; then
11662 DLLTOOL_FOR_TARGET="$2"
11663 else
11664 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11665 fi
1c00b503
PB
11666else
11667 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11668fi
11669
d1f8db0c
PB
11670else
11671 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11672fi
11673
4de997d1 11674
e8b05380
PB
11675
11676
11677if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11678 if test -n "$with_build_time_tools"; then
5213506e
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11680$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11681 if test -x $with_build_time_tools/ld; then
11682 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11683 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11685$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11686 else
5213506e
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
d1f8db0c 11689 fi
e8b05380
PB
11690 elif test $build != $host && test $have_gcc_for_target = yes; then
11691 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11692 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11693 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11694 fi
e8b05380 11695fi
3e19841a 11696if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11697 # Extract the first word of "ld", so it can be a program name with args.
11698set dummy ld; ac_word=$2
5213506e
RW
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11701if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11702 $as_echo_n "(cached) " >&6
4de997d1 11703else
1c710c3c
DJ
11704 case $LD_FOR_TARGET in
11705 [\\/]* | ?:[\\/]*)
e8b05380
PB
11706 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11707 ;;
e8b05380 11708 *)
1c710c3c
DJ
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $gcc_cv_tool_dirs
11711do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
5213506e 11714 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11716 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11718 break 2
11719 fi
11720done
5213506e
RW
11721 done
11722IFS=$as_save_IFS
1c710c3c 11723
e8b05380
PB
11724 ;;
11725esac
4de997d1 11726fi
1c710c3c 11727LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11728if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11730$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11731else
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
4de997d1 11734fi
2693c0b0 11735
5213506e 11736
e8b05380
PB
11737fi
11738if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11739
11740
11741if test -n "$LD_FOR_TARGET"; then
11742 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11743elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11745fi
11746
11747if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11748 for ncn_progname in ld; do
11749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11750set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11753if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11754 $as_echo_n "(cached) " >&6
278a7a38
AO
11755else
11756 if test -n "$LD_FOR_TARGET"; then
11757 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11758else
11759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
5213506e 11764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11766 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11768 break 2
11769 fi
11770done
5213506e
RW
11771 done
11772IFS=$as_save_IFS
278a7a38
AO
11773
11774fi
11775fi
11776LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11777if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11779$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11780else
5213506e
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
278a7a38
AO
11783fi
11784
5213506e 11785
278a7a38
AO
11786 done
11787fi
11788
11789if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11790 for ncn_progname in ld; do
5213506e
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11792$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11793 if test -x $with_build_time_tools/${ncn_progname}; then
11794 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796$as_echo "yes" >&6; }
e8b05380
PB
11797 break
11798 else
5213506e
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
e8b05380
PB
11801 fi
11802 done
ca9f4b81
AO
11803fi
11804
e8b05380
PB
11805if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11806 for ncn_progname in ld; do
11807 if test -n "$ncn_target_tool_prefix"; then
11808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11809set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11812if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11813 $as_echo_n "(cached) " >&6
ca9f4b81 11814else
4de997d1
PB
11815 if test -n "$LD_FOR_TARGET"; then
11816 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11817else
1c710c3c
DJ
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
5213506e 11823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11825 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11827 break 2
11828 fi
11829done
5213506e
RW
11830 done
11831IFS=$as_save_IFS
1c710c3c 11832
ca9f4b81
AO
11833fi
11834fi
1c710c3c 11835LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11836if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11838$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11839else
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
ca9f4b81
AO
11842fi
11843
5213506e 11844
e8b05380
PB
11845 fi
11846 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11848set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11851if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 11852 $as_echo_n "(cached) " >&6
ca9f4b81 11853else
2693c0b0
PB
11854 if test -n "$LD_FOR_TARGET"; then
11855 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11856else
1c710c3c
DJ
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
5213506e 11862 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11864 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11866 break 2
11867 fi
11868done
5213506e
RW
11869 done
11870IFS=$as_save_IFS
1c710c3c 11871
ca9f4b81
AO
11872fi
11873fi
1c710c3c 11874LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11875if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11877$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11878else
5213506e
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
ca9f4b81 11881fi
1c710c3c 11882
5213506e 11883
e8b05380
PB
11884 fi
11885 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11886 done
11887fi
1c710c3c 11888
2693c0b0
PB
11889if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11890 set dummy ld
11891 if test $build = $target ; then
11892 LD_FOR_TARGET="$2"
ca9f4b81 11893 else
2693c0b0 11894 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11895 fi
1c00b503
PB
11896else
11897 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11898fi
11899
d1f8db0c
PB
11900else
11901 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11902fi
11903
11904
11905
11906
11907if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11908 if test -n "$with_build_time_tools"; then
5213506e
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11910$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11911 if test -x $with_build_time_tools/lipo; then
11912 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11913 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11915$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11916 else
5213506e
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
d1f8db0c 11919 fi
e8b05380
PB
11920 elif test $build != $host && test $have_gcc_for_target = yes; then
11921 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11922 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11923 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11924 fi
11925fi
278a7a38
AO
11926if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11927 # Extract the first word of "lipo", so it can be a program name with args.
11928set dummy lipo; ac_word=$2
5213506e
RW
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11931if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 11932 $as_echo_n "(cached) " >&6
278a7a38
AO
11933else
11934 case $LIPO_FOR_TARGET in
11935 [\\/]* | ?:[\\/]*)
11936 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11937 ;;
11938 *)
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940for as_dir in $gcc_cv_tool_dirs
11941do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
5213506e 11944 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11946 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11948 break 2
11949 fi
11950done
5213506e
RW
11951 done
11952IFS=$as_save_IFS
278a7a38
AO
11953
11954 ;;
11955esac
11956fi
11957LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11958if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11960$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11961else
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
278a7a38
AO
11964fi
11965
5213506e 11966
278a7a38
AO
11967fi
11968if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11969
11970
11971if test -n "$LIPO_FOR_TARGET"; then
11972 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11973elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11975fi
11976
11977if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11978 for ncn_progname in lipo; do
11979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11980set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11983if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 11984 $as_echo_n "(cached) " >&6
e8b05380 11985else
278a7a38
AO
11986 if test -n "$LIPO_FOR_TARGET"; then
11987 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11988else
11989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
1c710c3c
DJ
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
5213506e 11994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11996 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11998 break 2
11999 fi
12000done
5213506e
RW
12001 done
12002IFS=$as_save_IFS
1c710c3c 12003
e8b05380 12004fi
278a7a38
AO
12005fi
12006LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12007if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12009$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12010else
5213506e
RW
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012$as_echo "no" >&6; }
e8b05380
PB
12013fi
12014
5213506e 12015
278a7a38 12016 done
e8b05380 12017fi
278a7a38
AO
12018
12019if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12020 for ncn_progname in lipo; do
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12022$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12023 if test -x $with_build_time_tools/${ncn_progname}; then
12024 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026$as_echo "yes" >&6; }
e8b05380
PB
12027 break
12028 else
5213506e
RW
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030$as_echo "no" >&6; }
e8b05380
PB
12031 fi
12032 done
12033fi
12034
12035if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12036 for ncn_progname in lipo; do
12037 if test -n "$ncn_target_tool_prefix"; then
12038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12039set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12042if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12043 $as_echo_n "(cached) " >&6
040b1c5a
GK
12044else
12045 if test -n "$LIPO_FOR_TARGET"; then
12046 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12047else
1c710c3c
DJ
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
5213506e 12053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12055 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12057 break 2
12058 fi
12059done
5213506e
RW
12060 done
12061IFS=$as_save_IFS
1c710c3c 12062
040b1c5a
GK
12063fi
12064fi
1c710c3c 12065LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12066if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12068$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12069else
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
040b1c5a
GK
12072fi
12073
5213506e 12074
e8b05380
PB
12075 fi
12076 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12078set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12081if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12082 $as_echo_n "(cached) " >&6
040b1c5a
GK
12083else
12084 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12085 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12086else
1c710c3c
DJ
12087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088for as_dir in $PATH
12089do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
5213506e 12092 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12094 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12096 break 2
12097 fi
12098done
5213506e
RW
12099 done
12100IFS=$as_save_IFS
1c710c3c 12101
040b1c5a
GK
12102fi
12103fi
1c710c3c 12104LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12105if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12107$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12108else
5213506e
RW
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
040b1c5a 12111fi
1c710c3c 12112
5213506e 12113
e8b05380
PB
12114 fi
12115 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12116 done
12117fi
1c710c3c 12118
040b1c5a
GK
12119if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12120 set dummy lipo
12121 if test $build = $target ; then
12122 LIPO_FOR_TARGET="$2"
12123 else
12124 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12125 fi
1c00b503
PB
12126else
12127 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12128fi
12129
d1f8db0c
PB
12130else
12131 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12132fi
12133
12134
12135
12136
12137if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12138 if test -n "$with_build_time_tools"; then
5213506e
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12140$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12141 if test -x $with_build_time_tools/nm; then
12142 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12143 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12145$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12146 else
5213506e
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148$as_echo "no" >&6; }
d1f8db0c 12149 fi
e8b05380
PB
12150 elif test $build != $host && test $have_gcc_for_target = yes; then
12151 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12152 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12153 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12154 fi
12155fi
3e19841a 12156if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12157 # Extract the first word of "nm", so it can be a program name with args.
12158set dummy nm; ac_word=$2
5213506e
RW
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12161if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12162 $as_echo_n "(cached) " >&6
e8b05380 12163else
1c710c3c
DJ
12164 case $NM_FOR_TARGET in
12165 [\\/]* | ?:[\\/]*)
e8b05380
PB
12166 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12167 ;;
e8b05380 12168 *)
1c710c3c
DJ
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $gcc_cv_tool_dirs
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
5213506e 12174 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12176 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12178 break 2
12179 fi
12180done
5213506e
RW
12181 done
12182IFS=$as_save_IFS
1c710c3c 12183
e8b05380
PB
12184 ;;
12185esac
12186fi
1c710c3c 12187NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12188if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12190$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12191else
5213506e
RW
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
e8b05380
PB
12194fi
12195
5213506e 12196
e8b05380
PB
12197fi
12198if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12199
12200
12201if test -n "$NM_FOR_TARGET"; then
12202 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12203elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12205fi
12206
12207if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12208 for ncn_progname in nm; do
12209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12210set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12213if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12214 $as_echo_n "(cached) " >&6
278a7a38
AO
12215else
12216 if test -n "$NM_FOR_TARGET"; then
12217 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
5213506e 12224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12226 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12228 break 2
12229 fi
12230done
5213506e
RW
12231 done
12232IFS=$as_save_IFS
278a7a38
AO
12233
12234fi
12235fi
12236NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12237if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12239$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12240else
5213506e
RW
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
278a7a38
AO
12243fi
12244
5213506e 12245
278a7a38
AO
12246 done
12247fi
12248
12249if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12250 for ncn_progname in nm; do
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12252$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12253 if test -x $with_build_time_tools/${ncn_progname}; then
12254 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256$as_echo "yes" >&6; }
e8b05380
PB
12257 break
12258 else
5213506e
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
e8b05380
PB
12261 fi
12262 done
12263fi
12264
12265if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12266 for ncn_progname in nm; do
12267 if test -n "$ncn_target_tool_prefix"; then
12268 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12269set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12272if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12273 $as_echo_n "(cached) " >&6
ca9f4b81 12274else
4de997d1
PB
12275 if test -n "$NM_FOR_TARGET"; then
12276 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12277else
1c710c3c
DJ
12278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
5213506e 12283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12285 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12287 break 2
12288 fi
12289done
5213506e
RW
12290 done
12291IFS=$as_save_IFS
1c710c3c 12292
ca9f4b81
AO
12293fi
12294fi
1c710c3c 12295NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12296if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12298$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12299else
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
ca9f4b81
AO
12302fi
12303
5213506e 12304
e8b05380
PB
12305 fi
12306 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12308set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12311if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12312 $as_echo_n "(cached) " >&6
ca9f4b81 12313else
2693c0b0
PB
12314 if test -n "$NM_FOR_TARGET"; then
12315 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12316else
1c710c3c
DJ
12317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318for as_dir in $PATH
12319do
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
5213506e 12322 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12324 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12326 break 2
12327 fi
12328done
5213506e
RW
12329 done
12330IFS=$as_save_IFS
1c710c3c 12331
ca9f4b81
AO
12332fi
12333fi
1c710c3c 12334NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12335if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12337$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12338else
5213506e
RW
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340$as_echo "no" >&6; }
ca9f4b81 12341fi
1c710c3c 12342
5213506e 12343
e8b05380
PB
12344 fi
12345 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12346 done
12347fi
1c710c3c 12348
2693c0b0
PB
12349if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12350 set dummy nm
12351 if test $build = $target ; then
12352 NM_FOR_TARGET="$2"
ca9f4b81 12353 else
2693c0b0 12354 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12355 fi
1c00b503
PB
12356else
12357 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12358fi
12359
d1f8db0c
PB
12360else
12361 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12362fi
12363
12364
12365
12366
9bccfdf5
AP
12367if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12368 if test -n "$with_build_time_tools"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12370$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12371 if test -x $with_build_time_tools/objcopy; then
12372 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12373 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12375$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
12379 fi
12380 elif test $build != $host && test $have_gcc_for_target = yes; then
12381 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12382 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12383 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12384 fi
12385fi
12386if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12387 # Extract the first word of "objcopy", so it can be a program name with args.
12388set dummy objcopy; ac_word=$2
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12391if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12392 $as_echo_n "(cached) " >&6
12393else
12394 case $OBJCOPY_FOR_TARGET in
12395 [\\/]* | ?:[\\/]*)
12396 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12397 ;;
12398 *)
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $gcc_cv_tool_dirs
12401do
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12406 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12409 fi
12410done
12411 done
12412IFS=$as_save_IFS
12413
12414 ;;
12415esac
12416fi
12417OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12418if test -n "$OBJCOPY_FOR_TARGET"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12420$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12421else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
12424fi
12425
12426
12427fi
12428if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12429
12430
12431if test -n "$OBJCOPY_FOR_TARGET"; then
12432 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12433elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12434 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12435fi
12436
12437if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12438 for ncn_progname in objcopy; do
12439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12440set dummy ${ncn_progname}; ac_word=$2
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12443if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12444 $as_echo_n "(cached) " >&6
12445else
12446 if test -n "$OBJCOPY_FOR_TARGET"; then
12447 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12448else
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12456 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460done
12461 done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12467if test -n "$OBJCOPY_FOR_TARGET"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12469$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12470else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475
12476 done
12477fi
12478
12479if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12480 for ncn_progname in objcopy; do
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12482$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12483 if test -x $with_build_time_tools/${ncn_progname}; then
12484 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486$as_echo "yes" >&6; }
12487 break
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490$as_echo "no" >&6; }
12491 fi
12492 done
12493fi
12494
12495if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12496 for ncn_progname in objcopy; do
12497 if test -n "$ncn_target_tool_prefix"; then
12498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12499set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12502if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12503 $as_echo_n "(cached) " >&6
12504else
12505 if test -n "$OBJCOPY_FOR_TARGET"; then
12506 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12515 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520 done
12521IFS=$as_save_IFS
12522
12523fi
12524fi
12525OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12526if test -n "$OBJCOPY_FOR_TARGET"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12528$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12529else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532fi
12533
12534
12535 fi
12536 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12538set dummy ${ncn_progname}; ac_word=$2
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12541if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12542 $as_echo_n "(cached) " >&6
12543else
12544 if test -n "$OBJCOPY_FOR_TARGET"; then
12545 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12546else
12547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $PATH
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12554 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556 break 2
12557 fi
12558done
12559 done
12560IFS=$as_save_IFS
12561
12562fi
12563fi
12564OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12565if test -n "$OBJCOPY_FOR_TARGET"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12567$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12568else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
12571fi
12572
12573
12574 fi
12575 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12576 done
12577fi
12578
12579if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12580 set dummy objcopy
12581 if test $build = $target ; then
12582 OBJCOPY_FOR_TARGET="$2"
12583 else
12584 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12585 fi
12586else
12587 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12588fi
12589
12590else
12591 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12592fi
12593
12594
12595
12596
e8b05380
PB
12597if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12598 if test -n "$with_build_time_tools"; then
5213506e
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12600$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12601 if test -x $with_build_time_tools/objdump; then
12602 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12603 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12605$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12606 else
5213506e
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
d1f8db0c 12609 fi
e8b05380
PB
12610 elif test $build != $host && test $have_gcc_for_target = yes; then
12611 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12612 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12613 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12614 fi
12615fi
3e19841a 12616if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12617 # Extract the first word of "objdump", so it can be a program name with args.
12618set dummy objdump; ac_word=$2
5213506e
RW
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12621if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12622 $as_echo_n "(cached) " >&6
e8b05380 12623else
1c710c3c
DJ
12624 case $OBJDUMP_FOR_TARGET in
12625 [\\/]* | ?:[\\/]*)
e8b05380
PB
12626 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12627 ;;
e8b05380 12628 *)
1c710c3c
DJ
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $gcc_cv_tool_dirs
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
5213506e 12634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12636 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12638 break 2
12639 fi
12640done
5213506e
RW
12641 done
12642IFS=$as_save_IFS
1c710c3c 12643
e8b05380
PB
12644 ;;
12645esac
12646fi
1c710c3c 12647OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12648if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12650$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12651else
5213506e
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
e8b05380
PB
12654fi
12655
5213506e 12656
e8b05380
PB
12657fi
12658if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12659
12660
12661if test -n "$OBJDUMP_FOR_TARGET"; then
12662 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12663elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12664 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12665fi
12666
12667if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12668 for ncn_progname in objdump; do
12669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12670set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12673if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12674 $as_echo_n "(cached) " >&6
278a7a38
AO
12675else
12676 if test -n "$OBJDUMP_FOR_TARGET"; then
12677 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12678else
12679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680for as_dir in $PATH
12681do
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
5213506e 12684 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12686 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12688 break 2
12689 fi
12690done
5213506e
RW
12691 done
12692IFS=$as_save_IFS
278a7a38
AO
12693
12694fi
12695fi
12696OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12697if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12699$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12700else
5213506e
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702$as_echo "no" >&6; }
278a7a38
AO
12703fi
12704
5213506e 12705
278a7a38
AO
12706 done
12707fi
12708
12709if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12710 for ncn_progname in objdump; do
5213506e
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12712$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12713 if test -x $with_build_time_tools/${ncn_progname}; then
12714 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12716$as_echo "yes" >&6; }
e8b05380
PB
12717 break
12718 else
5213506e
RW
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720$as_echo "no" >&6; }
e8b05380
PB
12721 fi
12722 done
12723fi
12724
12725if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12726 for ncn_progname in objdump; do
12727 if test -n "$ncn_target_tool_prefix"; then
12728 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12729set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12732if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12733 $as_echo_n "(cached) " >&6
d739199a
DJ
12734else
12735 if test -n "$OBJDUMP_FOR_TARGET"; then
12736 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12737else
1c710c3c
DJ
12738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739for as_dir in $PATH
12740do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
5213506e 12743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12745 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12747 break 2
12748 fi
12749done
5213506e
RW
12750 done
12751IFS=$as_save_IFS
1c710c3c 12752
d739199a
DJ
12753fi
12754fi
1c710c3c 12755OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12756if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12758$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12759else
5213506e
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761$as_echo "no" >&6; }
d739199a
DJ
12762fi
12763
5213506e 12764
e8b05380
PB
12765 fi
12766 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12768set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12771if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12772 $as_echo_n "(cached) " >&6
d739199a
DJ
12773else
12774 if test -n "$OBJDUMP_FOR_TARGET"; then
12775 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12776else
1c710c3c
DJ
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
5213506e 12782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12784 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12786 break 2
12787 fi
12788done
5213506e
RW
12789 done
12790IFS=$as_save_IFS
1c710c3c 12791
d739199a
DJ
12792fi
12793fi
1c710c3c 12794OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12795if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12797$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12798else
5213506e
RW
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
d739199a 12801fi
1c710c3c 12802
5213506e 12803
e8b05380
PB
12804 fi
12805 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12806 done
12807fi
1c710c3c 12808
d739199a
DJ
12809if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12810 set dummy objdump
12811 if test $build = $target ; then
12812 OBJDUMP_FOR_TARGET="$2"
12813 else
12814 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12815 fi
1c00b503
PB
12816else
12817 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12818fi
12819
d1f8db0c
PB
12820else
12821 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12822fi
12823
12824
12825
12826
12827if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12828 if test -n "$with_build_time_tools"; then
5213506e
RW
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12830$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12831 if test -x $with_build_time_tools/ranlib; then
12832 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12833 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12835$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12836 else
5213506e
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
d1f8db0c 12839 fi
e8b05380
PB
12840 elif test $build != $host && test $have_gcc_for_target = yes; then
12841 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12842 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12843 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12844 fi
12845fi
3e19841a 12846if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12847 # Extract the first word of "ranlib", so it can be a program name with args.
12848set dummy ranlib; ac_word=$2
5213506e
RW
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12851if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 12852 $as_echo_n "(cached) " >&6
e8b05380 12853else
1c710c3c
DJ
12854 case $RANLIB_FOR_TARGET in
12855 [\\/]* | ?:[\\/]*)
e8b05380
PB
12856 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12857 ;;
e8b05380 12858 *)
1c710c3c
DJ
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860for as_dir in $gcc_cv_tool_dirs
12861do
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
5213506e 12864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12866 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12868 break 2
12869 fi
12870done
5213506e
RW
12871 done
12872IFS=$as_save_IFS
1c710c3c 12873
e8b05380
PB
12874 ;;
12875esac
12876fi
1c710c3c 12877RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12878if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12880$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12881else
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
e8b05380
PB
12884fi
12885
5213506e 12886
e8b05380
PB
12887fi
12888if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12889
12890
12891if test -n "$RANLIB_FOR_TARGET"; then
12892 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12893elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12894 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12895fi
12896
12897if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12898 for ncn_progname in ranlib; do
12899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12900set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12903if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 12904 $as_echo_n "(cached) " >&6
278a7a38
AO
12905else
12906 if test -n "$RANLIB_FOR_TARGET"; then
12907 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12908else
12909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910for as_dir in $PATH
12911do
12912 IFS=$as_save_IFS
12913 test -z "$as_dir" && as_dir=.
5213506e 12914 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12916 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12918 break 2
12919 fi
12920done
5213506e
RW
12921 done
12922IFS=$as_save_IFS
278a7a38
AO
12923
12924fi
12925fi
12926RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12927if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12929$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12930else
5213506e
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932$as_echo "no" >&6; }
278a7a38
AO
12933fi
12934
5213506e 12935
278a7a38
AO
12936 done
12937fi
12938
12939if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12940 for ncn_progname in ranlib; do
5213506e
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12942$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12943 if test -x $with_build_time_tools/${ncn_progname}; then
12944 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946$as_echo "yes" >&6; }
e8b05380
PB
12947 break
12948 else
5213506e
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950$as_echo "no" >&6; }
e8b05380
PB
12951 fi
12952 done
12953fi
12954
12955if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12956 for ncn_progname in ranlib; do
12957 if test -n "$ncn_target_tool_prefix"; then
12958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12959set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12962if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 12963 $as_echo_n "(cached) " >&6
ca9f4b81 12964else
4de997d1
PB
12965 if test -n "$RANLIB_FOR_TARGET"; then
12966 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12967else
1c710c3c
DJ
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
5213506e 12973 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12975 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12977 break 2
12978 fi
12979done
5213506e
RW
12980 done
12981IFS=$as_save_IFS
1c710c3c 12982
ca9f4b81
AO
12983fi
12984fi
1c710c3c 12985RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12986if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12988$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12989else
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
ca9f4b81
AO
12992fi
12993
5213506e 12994
e8b05380
PB
12995 fi
12996 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12998set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13001if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13002 $as_echo_n "(cached) " >&6
ca9f4b81 13003else
2693c0b0
PB
13004 if test -n "$RANLIB_FOR_TARGET"; then
13005 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13006else
1c710c3c
DJ
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
5213506e 13012 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13014 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13016 break 2
13017 fi
13018done
5213506e
RW
13019 done
13020IFS=$as_save_IFS
1c710c3c 13021
ca9f4b81
AO
13022fi
13023fi
1c710c3c 13024RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13025if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13027$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13028else
5213506e
RW
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
ca9f4b81 13031fi
1c710c3c 13032
5213506e 13033
e8b05380
PB
13034 fi
13035 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13036 done
13037fi
1c710c3c 13038
e8b05380
PB
13039if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13040 set dummy ranlib
13041 if test $build = $target ; then
13042 RANLIB_FOR_TARGET="$2"
13043 else
13044 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13045 fi
1c00b503
PB
13046else
13047 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13048fi
2693c0b0 13049
d1f8db0c
PB
13050else
13051 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13052fi
13053
e8b05380
PB
13054
13055
13056
e7a82751
RM
13057if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13058 if test -n "$with_build_time_tools"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13060$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13061 if test -x $with_build_time_tools/readelf; then
13062 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13063 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13065$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
13069 fi
13070 elif test $build != $host && test $have_gcc_for_target = yes; then
13071 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13072 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13073 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13074 fi
13075fi
13076if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13077 # Extract the first word of "readelf", so it can be a program name with args.
13078set dummy readelf; ac_word=$2
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13081if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13082 $as_echo_n "(cached) " >&6
13083else
13084 case $READELF_FOR_TARGET in
13085 [\\/]* | ?:[\\/]*)
13086 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13087 ;;
13088 *)
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $gcc_cv_tool_dirs
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13096 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104 ;;
13105esac
13106fi
13107READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13108if test -n "$READELF_FOR_TARGET"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13110$as_echo "$READELF_FOR_TARGET" >&6; }
13111else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
13114fi
13115
13116
13117fi
13118if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13119
13120
13121if test -n "$READELF_FOR_TARGET"; then
13122 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13123elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13124 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13125fi
13126
13127if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13128 for ncn_progname in readelf; do
13129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13130set dummy ${ncn_progname}; ac_word=$2
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13133if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13134 $as_echo_n "(cached) " >&6
13135else
13136 if test -n "$READELF_FOR_TARGET"; then
13137 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13138else
13139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13146 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150done
13151 done
13152IFS=$as_save_IFS
13153
13154fi
13155fi
13156READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13157if test -n "$READELF_FOR_TARGET"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13159$as_echo "$READELF_FOR_TARGET" >&6; }
13160else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
13163fi
13164
13165
13166 done
13167fi
13168
13169if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13170 for ncn_progname in readelf; do
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13172$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13173 if test -x $with_build_time_tools/${ncn_progname}; then
13174 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176$as_echo "yes" >&6; }
13177 break
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181 fi
13182 done
13183fi
13184
13185if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13186 for ncn_progname in readelf; do
13187 if test -n "$ncn_target_tool_prefix"; then
13188 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13189set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13192if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13193 $as_echo_n "(cached) " >&6
13194else
13195 if test -n "$READELF_FOR_TARGET"; then
13196 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13197else
13198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199for as_dir in $PATH
13200do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13205 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209done
13210 done
13211IFS=$as_save_IFS
13212
13213fi
13214fi
13215READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13216if test -n "$READELF_FOR_TARGET"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13218$as_echo "$READELF_FOR_TARGET" >&6; }
13219else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; }
13222fi
13223
13224
13225 fi
13226 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13228set dummy ${ncn_progname}; ac_word=$2
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13231if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13232 $as_echo_n "(cached) " >&6
13233else
13234 if test -n "$READELF_FOR_TARGET"; then
13235 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13236else
13237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238for as_dir in $PATH
13239do
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13244 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13247 fi
13248done
13249 done
13250IFS=$as_save_IFS
13251
13252fi
13253fi
13254READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13255if test -n "$READELF_FOR_TARGET"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13257$as_echo "$READELF_FOR_TARGET" >&6; }
13258else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260$as_echo "no" >&6; }
13261fi
13262
13263
13264 fi
13265 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13266 done
13267fi
13268
13269if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13270 set dummy readelf
13271 if test $build = $target ; then
13272 READELF_FOR_TARGET="$2"
13273 else
13274 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13275 fi
13276else
13277 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13278fi
13279
13280else
13281 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13282fi
13283
13284
13285
13286
e8b05380
PB
13287if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13288 if test -n "$with_build_time_tools"; then
5213506e
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13290$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13291 if test -x $with_build_time_tools/strip; then
13292 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13293 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13295$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13296 else
5213506e
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
d1f8db0c 13299 fi
e8b05380
PB
13300 elif test $build != $host && test $have_gcc_for_target = yes; then
13301 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13302 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13303 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13304 fi
13305fi
3e19841a 13306if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13307 # Extract the first word of "strip", so it can be a program name with args.
13308set dummy strip; ac_word=$2
5213506e
RW
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13311if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13312 $as_echo_n "(cached) " >&6
e8b05380 13313else
1c710c3c
DJ
13314 case $STRIP_FOR_TARGET in
13315 [\\/]* | ?:[\\/]*)
e8b05380
PB
13316 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13317 ;;
e8b05380 13318 *)
1c710c3c
DJ
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320for as_dir in $gcc_cv_tool_dirs
13321do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
5213506e 13324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13326 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13328 break 2
13329 fi
13330done
5213506e
RW
13331 done
13332IFS=$as_save_IFS
1c710c3c 13333
e8b05380
PB
13334 ;;
13335esac
13336fi
1c710c3c 13337STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13338if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13340$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13341else
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
e8b05380
PB
13344fi
13345
5213506e 13346
e8b05380
PB
13347fi
13348if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13349
13350
13351if test -n "$STRIP_FOR_TARGET"; then
13352 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13353elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13354 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13355fi
13356
13357if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13358 for ncn_progname in strip; do
13359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13360set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13363if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13364 $as_echo_n "(cached) " >&6
278a7a38
AO
13365else
13366 if test -n "$STRIP_FOR_TARGET"; then
13367 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13368else
13369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370for as_dir in $PATH
13371do
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
5213506e 13374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13376 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13378 break 2
13379 fi
13380done
5213506e
RW
13381 done
13382IFS=$as_save_IFS
278a7a38
AO
13383
13384fi
13385fi
13386STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13387if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13389$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13390else
5213506e
RW
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392$as_echo "no" >&6; }
278a7a38
AO
13393fi
13394
5213506e 13395
278a7a38
AO
13396 done
13397fi
13398
13399if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13400 for ncn_progname in strip; do
5213506e
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13402$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13403 if test -x $with_build_time_tools/${ncn_progname}; then
13404 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13406$as_echo "yes" >&6; }
e8b05380
PB
13407 break
13408 else
5213506e
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410$as_echo "no" >&6; }
e8b05380
PB
13411 fi
13412 done
13413fi
13414
13415if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13416 for ncn_progname in strip; do
13417 if test -n "$ncn_target_tool_prefix"; then
13418 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13419set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13422if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13423 $as_echo_n "(cached) " >&6
af71363e
AS
13424else
13425 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13426 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13427else
13428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429for as_dir in $PATH
13430do
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
5213506e 13433 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13435 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13437 break 2
13438 fi
13439done
5213506e
RW
13440 done
13441IFS=$as_save_IFS
1c710c3c 13442
040b1c5a
GK
13443fi
13444fi
1c710c3c 13445STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13446if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13448$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13449else
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451$as_echo "no" >&6; }
040b1c5a
GK
13452fi
13453
5213506e 13454
e8b05380
PB
13455 fi
13456 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13458set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13461if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13462 $as_echo_n "(cached) " >&6
040b1c5a
GK
13463else
13464 if test -n "$STRIP_FOR_TARGET"; then
13465 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13466else
1c710c3c
DJ
13467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468for as_dir in $PATH
13469do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
5213506e 13472 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13474 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13476 break 2
13477 fi
13478done
5213506e
RW
13479 done
13480IFS=$as_save_IFS
1c710c3c 13481
040b1c5a
GK
13482fi
13483fi
1c710c3c 13484STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13485if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13487$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13488else
5213506e
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490$as_echo "no" >&6; }
040b1c5a 13491fi
1c710c3c 13492
5213506e 13493
e8b05380
PB
13494 fi
13495 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13496 done
13497fi
1c710c3c 13498
040b1c5a
GK
13499if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13500 set dummy strip
13501 if test $build = $target ; then
13502 STRIP_FOR_TARGET="$2"
13503 else
13504 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13505 fi
1c00b503
PB
13506else
13507 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13508fi
13509
d1f8db0c
PB
13510else
13511 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13512fi
13513
13514
13515
13516
13517if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13518 if test -n "$with_build_time_tools"; then
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13520$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13521 if test -x $with_build_time_tools/windres; then
13522 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13523 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13525$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13526 else
5213506e
RW
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528$as_echo "no" >&6; }
d1f8db0c 13529 fi
e8b05380
PB
13530 elif test $build != $host && test $have_gcc_for_target = yes; then
13531 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13532 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13533 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13534 fi
13535fi
3e19841a 13536if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13537 # Extract the first word of "windres", so it can be a program name with args.
13538set dummy windres; ac_word=$2
5213506e
RW
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13541if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 13542 $as_echo_n "(cached) " >&6
e8b05380 13543else
1c710c3c
DJ
13544 case $WINDRES_FOR_TARGET in
13545 [\\/]* | ?:[\\/]*)
e8b05380
PB
13546 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13547 ;;
e8b05380 13548 *)
1c710c3c
DJ
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550for as_dir in $gcc_cv_tool_dirs
13551do
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
5213506e 13554 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13556 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13558 break 2
13559 fi
13560done
5213506e
RW
13561 done
13562IFS=$as_save_IFS
1c710c3c 13563
e8b05380
PB
13564 ;;
13565esac
13566fi
1c710c3c 13567WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13568if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13570$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13571else
5213506e
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
e8b05380
PB
13574fi
13575
5213506e 13576
e8b05380
PB
13577fi
13578if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13579
13580
13581if test -n "$WINDRES_FOR_TARGET"; then
13582 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13583elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13584 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13585fi
13586
13587if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13588 for ncn_progname in windres; do
13589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13593if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 13594 $as_echo_n "(cached) " >&6
278a7a38
AO
13595else
13596 if test -n "$WINDRES_FOR_TARGET"; then
13597 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13598else
13599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600for as_dir in $PATH
13601do
13602 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
5213506e 13604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13606 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13608 break 2
13609 fi
13610done
5213506e
RW
13611 done
13612IFS=$as_save_IFS
278a7a38
AO
13613
13614fi
13615fi
13616WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13617if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13619$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13620else
5213506e
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622$as_echo "no" >&6; }
278a7a38
AO
13623fi
13624
5213506e 13625
278a7a38
AO
13626 done
13627fi
13628
13629if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13630 for ncn_progname in windres; do
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13632$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13633 if test -x $with_build_time_tools/${ncn_progname}; then
13634 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636$as_echo "yes" >&6; }
e8b05380
PB
13637 break
13638 else
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640$as_echo "no" >&6; }
e8b05380
PB
13641 fi
13642 done
13643fi
13644
13645if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13646 for ncn_progname in windres; do
13647 if test -n "$ncn_target_tool_prefix"; then
13648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13652if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 13653 $as_echo_n "(cached) " >&6
ca9f4b81 13654else
4de997d1
PB
13655 if test -n "$WINDRES_FOR_TARGET"; then
13656 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13657else
1c710c3c
DJ
13658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659for as_dir in $PATH
13660do
13661 IFS=$as_save_IFS
13662 test -z "$as_dir" && as_dir=.
5213506e 13663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13665 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13667 break 2
13668 fi
13669done
5213506e
RW
13670 done
13671IFS=$as_save_IFS
1c710c3c 13672
ca9f4b81
AO
13673fi
13674fi
1c710c3c 13675WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13676if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13678$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13679else
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
ca9f4b81
AO
13682fi
13683
5213506e 13684
e8b05380
PB
13685 fi
13686 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13688set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13691if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 13692 $as_echo_n "(cached) " >&6
ca9f4b81 13693else
2693c0b0
PB
13694 if test -n "$WINDRES_FOR_TARGET"; then
13695 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13696else
1c710c3c
DJ
13697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698for as_dir in $PATH
13699do
13700 IFS=$as_save_IFS
13701 test -z "$as_dir" && as_dir=.
5213506e 13702 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13704 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13706 break 2
13707 fi
13708done
5213506e
RW
13709 done
13710IFS=$as_save_IFS
1c710c3c 13711
ca9f4b81
AO
13712fi
13713fi
1c710c3c 13714WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13715if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13717$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13718else
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720$as_echo "no" >&6; }
ca9f4b81 13721fi
1c710c3c 13722
5213506e 13723
e8b05380
PB
13724 fi
13725 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13726 done
13727fi
1c710c3c 13728
2693c0b0
PB
13729if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13730 set dummy windres
13731 if test $build = $target ; then
13732 WINDRES_FOR_TARGET="$2"
ca9f4b81 13733 else
2693c0b0 13734 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13735 fi
1c00b503
PB
13736else
13737 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13738fi
13739
d1f8db0c
PB
13740else
13741 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13742fi
13743
4977bab6 13744
901119ae
KT
13745
13746
13747if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13748 if test -n "$with_build_time_tools"; then
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13750$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13751 if test -x $with_build_time_tools/windmc; then
13752 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13753 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13755$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13756 else
5213506e
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758$as_echo "no" >&6; }
901119ae
KT
13759 fi
13760 elif test $build != $host && test $have_gcc_for_target = yes; then
13761 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13762 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13763 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13764 fi
13765fi
13766if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13767 # Extract the first word of "windmc", so it can be a program name with args.
13768set dummy windmc; ac_word=$2
5213506e
RW
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13771if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 13772 $as_echo_n "(cached) " >&6
901119ae
KT
13773else
13774 case $WINDMC_FOR_TARGET in
13775 [\\/]* | ?:[\\/]*)
13776 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13777 ;;
13778 *)
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $gcc_cv_tool_dirs
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
5213506e 13784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 13786 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13788 break 2
13789 fi
13790done
5213506e
RW
13791 done
13792IFS=$as_save_IFS
901119ae
KT
13793
13794 ;;
13795esac
13796fi
13797WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13798if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13800$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13801else
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803$as_echo "no" >&6; }
901119ae
KT
13804fi
13805
5213506e 13806
901119ae
KT
13807fi
13808if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13809
13810
13811if test -n "$WINDMC_FOR_TARGET"; then
13812 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13813elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13814 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13815fi
13816
13817if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13818 for ncn_progname in windmc; do
13819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13820set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13823if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 13824 $as_echo_n "(cached) " >&6
901119ae
KT
13825else
13826 if test -n "$WINDMC_FOR_TARGET"; then
13827 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13828else
13829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830for as_dir in $PATH
13831do
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
5213506e 13834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 13836 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13838 break 2
13839 fi
13840done
5213506e
RW
13841 done
13842IFS=$as_save_IFS
901119ae
KT
13843
13844fi
13845fi
13846WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13847if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13849$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13850else
5213506e
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852$as_echo "no" >&6; }
901119ae
KT
13853fi
13854
5213506e 13855
901119ae
KT
13856 done
13857fi
13858
13859if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13860 for ncn_progname in windmc; do
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13862$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13863 if test -x $with_build_time_tools/${ncn_progname}; then
13864 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13866$as_echo "yes" >&6; }
901119ae
KT
13867 break
13868 else
5213506e
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
901119ae
KT
13871 fi
13872 done
13873fi
13874
13875if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13876 for ncn_progname in windmc; do
13877 if test -n "$ncn_target_tool_prefix"; then
13878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13879set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13882if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 13883 $as_echo_n "(cached) " >&6
901119ae
KT
13884else
13885 if test -n "$WINDMC_FOR_TARGET"; then
13886 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13887else
13888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889for as_dir in $PATH
13890do
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
5213506e 13893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 13895 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13897 break 2
13898 fi
13899done
5213506e
RW
13900 done
13901IFS=$as_save_IFS
901119ae
KT
13902
13903fi
13904fi
13905WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13906if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13908$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13909else
5213506e
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
901119ae
KT
13912fi
13913
5213506e 13914
901119ae
KT
13915 fi
13916 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13918set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13921if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 13922 $as_echo_n "(cached) " >&6
901119ae
KT
13923else
13924 if test -n "$WINDMC_FOR_TARGET"; then
13925 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
5213506e 13932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 13934 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13936 break 2
13937 fi
13938done
5213506e
RW
13939 done
13940IFS=$as_save_IFS
901119ae
KT
13941
13942fi
13943fi
13944WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13945if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13947$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13948else
5213506e
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950$as_echo "no" >&6; }
901119ae
KT
13951fi
13952
5213506e 13953
901119ae
KT
13954 fi
13955 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13956 done
13957fi
13958
13959if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13960 set dummy windmc
13961 if test $build = $target ; then
13962 WINDMC_FOR_TARGET="$2"
13963 else
13964 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13965 fi
1c00b503
PB
13966else
13967 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13968fi
13969
13970else
13971 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13972fi
13973
13974
2abefe3d
PB
13975RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13976
5213506e
RW
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13978$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13979if test "x${build}" != "x${host}" ; then
e8b05380
PB
13980 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
172e41aa 13982 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13985 else
13986 # Canadian cross, just use what we found
5213506e
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13988$as_echo "pre-installed" >&6; }
e8b05380 13989 fi
2abefe3d
PB
13990else
13991 ok=yes
13992 case " ${configdirs} " in
13993 *" binutils "*) ;;
13994 *) ok=no ;;
13995 esac
1c710c3c 13996
2abefe3d
PB
13997 if test $ok = yes; then
13998 # An in-tree tool is available and we can use it
13999 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14001$as_echo "just compiled" >&6; }
e8b05380
PB
14002 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
172e41aa 14004 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14007 elif test "x$target" = "x$host"; then
14008 # We can use an host tool
14009 AR_FOR_TARGET='$(AR)'
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14011$as_echo "host tool" >&6; }
2abefe3d
PB
14012 else
14013 # We need a cross tool
5213506e
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015$as_echo "pre-installed" >&6; }
2abefe3d
PB
14016 fi
14017fi
0b0dc272 14018
5213506e
RW
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14020$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14021if test "x${build}" != "x${host}" ; then
e8b05380
PB
14022 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14023 # We already found the complete path
172e41aa 14024 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14027 else
14028 # Canadian cross, just use what we found
5213506e
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14030$as_echo "pre-installed" >&6; }
e8b05380 14031 fi
2abefe3d
PB
14032else
14033 ok=yes
14034 case " ${configdirs} " in
14035 *" gas "*) ;;
14036 *) ok=no ;;
14037 esac
1c710c3c 14038
2abefe3d
PB
14039 if test $ok = yes; then
14040 # An in-tree tool is available and we can use it
14041 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043$as_echo "just compiled" >&6; }
e8b05380
PB
14044 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
172e41aa 14046 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14049 elif test "x$target" = "x$host"; then
14050 # We can use an host tool
14051 AS_FOR_TARGET='$(AS)'
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053$as_echo "host tool" >&6; }
2abefe3d
PB
14054 else
14055 # We need a cross tool
5213506e
RW
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057$as_echo "pre-installed" >&6; }
2abefe3d
PB
14058 fi
14059fi
0b0dc272 14060
5213506e
RW
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14062$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14063if test "x${build}" != "x${host}" ; then
e8b05380
PB
14064 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
172e41aa 14066 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14069 else
14070 # Canadian cross, just use what we found
5213506e
RW
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072$as_echo "pre-installed" >&6; }
e8b05380 14073 fi
2abefe3d
PB
14074else
14075 ok=yes
14076 case " ${configdirs} " in
14077 *" gcc "*) ;;
14078 *) ok=no ;;
14079 esac
1c710c3c 14080
2abefe3d
PB
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085$as_echo "just compiled" >&6; }
e8b05380
PB
14086 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
172e41aa 14088 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14091 elif test "x$target" = "x$host"; then
14092 # We can use an host tool
14093 CC_FOR_TARGET='$(CC)'
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095$as_echo "host tool" >&6; }
2abefe3d
PB
14096 else
14097 # We need a cross tool
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099$as_echo "pre-installed" >&6; }
2abefe3d
PB
14100 fi
14101fi
0b0dc272 14102
5213506e
RW
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14104$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14105if test "x${build}" != "x${host}" ; then
e8b05380
PB
14106 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
172e41aa 14108 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14111 else
14112 # Canadian cross, just use what we found
5213506e
RW
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114$as_echo "pre-installed" >&6; }
e8b05380 14115 fi
2abefe3d
PB
14116else
14117 ok=yes
14118 case " ${configdirs} " in
14119 *" gcc "*) ;;
14120 *) ok=no ;;
14121 esac
14122 case ,${enable_languages}, in
14123 *,c++,*) ;;
14124 *) ok=no ;;
14125 esac
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
2077db1b 14128 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
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130$as_echo "just compiled" >&6; }
e8b05380
PB
14131 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
172e41aa 14133 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140$as_echo "host tool" >&6; }
2abefe3d
PB
14141 else
14142 # We need a cross tool
5213506e
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144$as_echo "pre-installed" >&6; }
2abefe3d
PB
14145 fi
14146fi
0b0dc272 14147
5213506e
RW
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14149$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14150if test "x${build}" != "x${host}" ; then
e8b05380
PB
14151 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
172e41aa 14153 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14156 else
14157 # Canadian cross, just use what we found
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159$as_echo "pre-installed" >&6; }
e8b05380 14160 fi
2abefe3d
PB
14161else
14162 ok=yes
14163 case " ${configdirs} " in
14164 *" gcc "*) ;;
14165 *) ok=no ;;
14166 esac
14167 case ,${enable_languages}, in
14168 *,c++,*) ;;
14169 *) ok=no ;;
14170 esac
14171 if test $ok = yes; then
14172 # An in-tree tool is available and we can use it
2077db1b 14173 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
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14175$as_echo "just compiled" >&6; }
e8b05380
PB
14176 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14177 # We already found the complete path
172e41aa 14178 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14180$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14181 elif test "x$target" = "x$host"; then
14182 # We can use an host tool
14183 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14185$as_echo "host tool" >&6; }
2abefe3d
PB
14186 else
14187 # We need a cross tool
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
2abefe3d
PB
14190 fi
14191fi
0b0dc272 14192
5213506e
RW
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14194$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14195if test "x${build}" != "x${host}" ; then
e8b05380
PB
14196 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14197 # We already found the complete path
172e41aa 14198 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14200$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14201 else
14202 # Canadian cross, just use what we found
5213506e
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204$as_echo "pre-installed" >&6; }
e8b05380 14205 fi
2abefe3d
PB
14206else
14207 ok=yes
14208 case " ${configdirs} " in
14209 *" binutils "*) ;;
14210 *) ok=no ;;
14211 esac
1c710c3c 14212
2abefe3d
PB
14213 if test $ok = yes; then
14214 # An in-tree tool is available and we can use it
14215 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14217$as_echo "just compiled" >&6; }
e8b05380
PB
14218 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14219 # We already found the complete path
172e41aa 14220 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14222$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14223 elif test "x$target" = "x$host"; then
14224 # We can use an host tool
14225 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14227$as_echo "host tool" >&6; }
2abefe3d
PB
14228 else
14229 # We need a cross tool
5213506e
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
2abefe3d
PB
14232 fi
14233fi
0b0dc272 14234
5213506e
RW
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14236$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14237if test "x${build}" != "x${host}" ; then
e8b05380
PB
14238 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14239 # We already found the complete path
172e41aa 14240 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14242$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14243 else
14244 # Canadian cross, just use what we found
5213506e
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246$as_echo "pre-installed" >&6; }
e8b05380 14247 fi
2abefe3d
PB
14248else
14249 ok=yes
14250 case " ${configdirs} " in
14251 *" gcc "*) ;;
14252 *) ok=no ;;
14253 esac
1c710c3c 14254
2abefe3d
PB
14255 if test $ok = yes; then
14256 # An in-tree tool is available and we can use it
14257 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14259$as_echo "just compiled" >&6; }
e8b05380
PB
14260 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14261 # We already found the complete path
172e41aa 14262 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14265 elif test "x$target" = "x$host"; then
14266 # We can use an host tool
14267 GCC_FOR_TARGET='$()'
5213506e
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14269$as_echo "host tool" >&6; }
2abefe3d
PB
14270 else
14271 # We need a cross tool
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273$as_echo "pre-installed" >&6; }
2abefe3d
PB
14274 fi
14275fi
0b0dc272 14276
5213506e
RW
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14278$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14279if test "x${build}" != "x${host}" ; then
e8b05380
PB
14280 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14281 # We already found the complete path
172e41aa 14282 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14284$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14285 else
14286 # Canadian cross, just use what we found
5213506e
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288$as_echo "pre-installed" >&6; }
e8b05380 14289 fi
2abefe3d
PB
14290else
14291 ok=yes
14292 case " ${configdirs} " in
14293 *" gcc "*) ;;
14294 *) ok=no ;;
14295 esac
14296 case ,${enable_languages}, in
14297 *,fortran,*) ;;
14298 *) ok=no ;;
14299 esac
14300 if test $ok = yes; then
14301 # An in-tree tool is available and we can use it
14302 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304$as_echo "just compiled" >&6; }
e8b05380
PB
14305 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
172e41aa 14307 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14310 elif test "x$target" = "x$host"; then
14311 # We can use an host tool
14312 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314$as_echo "host tool" >&6; }
2abefe3d
PB
14315 else
14316 # We need a cross tool
5213506e
RW
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318$as_echo "pre-installed" >&6; }
2abefe3d
PB
14319 fi
14320fi
0b0dc272 14321
632e2a07
ILT
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14323$as_echo_n "checking where to find the target gccgo... " >&6; }
14324if test "x${build}" != "x${host}" ; then
14325 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $GOC_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329$as_echo "pre-installed in $ac_dir" >&6; }
14330 else
14331 # Canadian cross, just use what we found
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333$as_echo "pre-installed" >&6; }
14334 fi
14335else
14336 ok=yes
14337 case " ${configdirs} " in
14338 *" gcc "*) ;;
14339 *) ok=no ;;
14340 esac
14341 case ,${enable_languages}, in
14342 *,go,*) ;;
14343 *) ok=no ;;
14344 esac
14345 if test $ok = yes; then
14346 # An in-tree tool is available and we can use it
14347 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14349$as_echo "just compiled" >&6; }
14350 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14351 # We already found the complete path
14352 ac_dir=`dirname $GOC_FOR_TARGET`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354$as_echo "pre-installed in $ac_dir" >&6; }
14355 elif test "x$target" = "x$host"; then
14356 # We can use an host tool
14357 GOC_FOR_TARGET='$(GOC)'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14359$as_echo "host tool" >&6; }
14360 else
14361 # We need a cross tool
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363$as_echo "pre-installed" >&6; }
14364 fi
14365fi
14366
b4c522fa
IB
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14368$as_echo_n "checking where to find the target gdc... " >&6; }
14369if test "x${build}" != "x${host}" ; then
14370 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14371 # We already found the complete path
14372 ac_dir=`dirname $GDC_FOR_TARGET`
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374$as_echo "pre-installed in $ac_dir" >&6; }
14375 else
14376 # Canadian cross, just use what we found
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378$as_echo "pre-installed" >&6; }
14379 fi
14380else
14381 ok=yes
14382 case " ${configdirs} " in
14383 *" gcc "*) ;;
14384 *) ok=no ;;
14385 esac
14386 case ,${enable_languages}, in
14387 *,d,*) ;;
14388 *) ok=no ;;
14389 esac
14390 if test $ok = yes; then
14391 # An in-tree tool is available and we can use it
14392 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14394$as_echo "just compiled" >&6; }
14395 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14396 # We already found the complete path
14397 ac_dir=`dirname $GDC_FOR_TARGET`
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399$as_echo "pre-installed in $ac_dir" >&6; }
14400 elif test "x$target" = "x$host"; then
14401 # We can use an host tool
14402 GDC_FOR_TARGET='$(GDC)'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14404$as_echo "host tool" >&6; }
14405 else
14406 # We need a cross tool
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408$as_echo "pre-installed" >&6; }
14409 fi
14410fi
14411
5213506e
RW
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14413$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14414if test "x${build}" != "x${host}" ; then
e8b05380
PB
14415 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14416 # We already found the complete path
172e41aa 14417 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14420 else
14421 # Canadian cross, just use what we found
5213506e
RW
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14423$as_echo "pre-installed" >&6; }
e8b05380 14424 fi
2abefe3d
PB
14425else
14426 ok=yes
14427 case " ${configdirs} " in
14428 *" ld "*) ;;
14429 *) ok=no ;;
14430 esac
1c710c3c 14431
2abefe3d
PB
14432 if test $ok = yes; then
14433 # An in-tree tool is available and we can use it
14434 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14436$as_echo "just compiled" >&6; }
e8b05380
PB
14437 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14438 # We already found the complete path
172e41aa 14439 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14441$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14442 elif test "x$target" = "x$host"; then
14443 # We can use an host tool
14444 LD_FOR_TARGET='$(LD)'
5213506e
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14446$as_echo "host tool" >&6; }
2abefe3d
PB
14447 else
14448 # We need a cross tool
5213506e
RW
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450$as_echo "pre-installed" >&6; }
2abefe3d
PB
14451 fi
14452fi
0b0dc272 14453
5213506e
RW
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14455$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14456if test "x${build}" != "x${host}" ; then
e8b05380
PB
14457 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14458 # We already found the complete path
172e41aa 14459 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14462 else
14463 # Canadian cross, just use what we found
5213506e
RW
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14465$as_echo "pre-installed" >&6; }
e8b05380 14466 fi
2abefe3d 14467else
e8b05380
PB
14468 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14469 # We already found the complete path
172e41aa 14470 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14472$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14473 elif test "x$target" = "x$host"; then
2abefe3d
PB
14474 # We can use an host tool
14475 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14477$as_echo "host tool" >&6; }
2abefe3d
PB
14478 else
14479 # We need a cross tool
5213506e
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481$as_echo "pre-installed" >&6; }
2abefe3d
PB
14482 fi
14483fi
0b0dc272 14484
5213506e
RW
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14486$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14487if test "x${build}" != "x${host}" ; then
e8b05380
PB
14488 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14489 # We already found the complete path
172e41aa 14490 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14492$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14493 else
14494 # Canadian cross, just use what we found
5213506e
RW
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14496$as_echo "pre-installed" >&6; }
e8b05380 14497 fi
2abefe3d
PB
14498else
14499 ok=yes
14500 case " ${configdirs} " in
14501 *" binutils "*) ;;
14502 *) ok=no ;;
14503 esac
1c710c3c 14504
2abefe3d
PB
14505 if test $ok = yes; then
14506 # An in-tree tool is available and we can use it
14507 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14509$as_echo "just compiled" >&6; }
e8b05380
PB
14510 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14511 # We already found the complete path
172e41aa 14512 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14514$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14515 elif test "x$target" = "x$host"; then
14516 # We can use an host tool
14517 NM_FOR_TARGET='$(NM)'
5213506e
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14519$as_echo "host tool" >&6; }
2abefe3d
PB
14520 else
14521 # We need a cross tool
5213506e
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523$as_echo "pre-installed" >&6; }
2abefe3d
PB
14524 fi
14525fi
0b0dc272 14526
9bccfdf5
AP
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14528$as_echo_n "checking where to find the target objcopy... " >&6; }
14529if test "x${build}" != "x${host}" ; then
14530 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14531 # We already found the complete path
14532 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14534$as_echo "pre-installed in $ac_dir" >&6; }
14535 else
14536 # Canadian cross, just use what we found
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14538$as_echo "pre-installed" >&6; }
14539 fi
14540else
14541 ok=yes
14542 case " ${configdirs} " in
14543 *" binutils "*) ;;
14544 *) ok=no ;;
14545 esac
14546
14547 if test $ok = yes; then
14548 # An in-tree tool is available and we can use it
14549 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14551$as_echo "just compiled" >&6; }
14552 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14553 # We already found the complete path
14554 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14556$as_echo "pre-installed in $ac_dir" >&6; }
14557 elif test "x$target" = "x$host"; then
14558 # We can use an host tool
ec8fd1c0 14559 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14561$as_echo "host tool" >&6; }
14562 else
14563 # We need a cross tool
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565$as_echo "pre-installed" >&6; }
14566 fi
14567fi
14568
5213506e
RW
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14570$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14571if test "x${build}" != "x${host}" ; then
e8b05380
PB
14572 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14573 # We already found the complete path
172e41aa 14574 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14576$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14577 else
14578 # Canadian cross, just use what we found
5213506e
RW
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14580$as_echo "pre-installed" >&6; }
e8b05380 14581 fi
2abefe3d
PB
14582else
14583 ok=yes
14584 case " ${configdirs} " in
14585 *" binutils "*) ;;
14586 *) ok=no ;;
14587 esac
1c710c3c 14588
2abefe3d
PB
14589 if test $ok = yes; then
14590 # An in-tree tool is available and we can use it
14591 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14593$as_echo "just compiled" >&6; }
e8b05380
PB
14594 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14595 # We already found the complete path
172e41aa 14596 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14598$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14599 elif test "x$target" = "x$host"; then
14600 # We can use an host tool
14601 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14603$as_echo "host tool" >&6; }
2abefe3d
PB
14604 else
14605 # We need a cross tool
5213506e
RW
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607$as_echo "pre-installed" >&6; }
2abefe3d
PB
14608 fi
14609fi
0b0dc272 14610
5213506e
RW
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14612$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14613if test "x${build}" != "x${host}" ; then
e8b05380
PB
14614 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14615 # We already found the complete path
172e41aa 14616 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14618$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14619 else
14620 # Canadian cross, just use what we found
5213506e
RW
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14622$as_echo "pre-installed" >&6; }
e8b05380 14623 fi
2abefe3d
PB
14624else
14625 ok=yes
14626 case " ${configdirs} " in
14627 *" binutils "*) ;;
14628 *) ok=no ;;
14629 esac
1c710c3c 14630
2abefe3d
PB
14631 if test $ok = yes; then
14632 # An in-tree tool is available and we can use it
14633 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14635$as_echo "just compiled" >&6; }
e8b05380
PB
14636 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14637 # We already found the complete path
172e41aa 14638 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14640$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14641 elif test "x$target" = "x$host"; then
14642 # We can use an host tool
14643 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14645$as_echo "host tool" >&6; }
2abefe3d
PB
14646 else
14647 # We need a cross tool
5213506e
RW
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649$as_echo "pre-installed" >&6; }
2abefe3d
PB
14650 fi
14651fi
0b0dc272 14652
e7a82751
RM
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14654$as_echo_n "checking where to find the target readelf... " >&6; }
14655if test "x${build}" != "x${host}" ; then
14656 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14657 # We already found the complete path
14658 ac_dir=`dirname $READELF_FOR_TARGET`
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14660$as_echo "pre-installed in $ac_dir" >&6; }
14661 else
14662 # Canadian cross, just use what we found
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664$as_echo "pre-installed" >&6; }
14665 fi
14666else
14667 ok=yes
14668 case " ${configdirs} " in
14669 *" binutils "*) ;;
14670 *) ok=no ;;
14671 esac
14672
14673 if test $ok = yes; then
14674 # An in-tree tool is available and we can use it
14675 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14677$as_echo "just compiled" >&6; }
14678 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14679 # We already found the complete path
14680 ac_dir=`dirname $READELF_FOR_TARGET`
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14682$as_echo "pre-installed in $ac_dir" >&6; }
14683 elif test "x$target" = "x$host"; then
14684 # We can use an host tool
14685 READELF_FOR_TARGET='$(READELF)'
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14687$as_echo "host tool" >&6; }
14688 else
14689 # We need a cross tool
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691$as_echo "pre-installed" >&6; }
14692 fi
14693fi
14694
5213506e
RW
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14696$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14697if test "x${build}" != "x${host}" ; then
e8b05380
PB
14698 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14699 # We already found the complete path
172e41aa 14700 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14702$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14703 else
14704 # Canadian cross, just use what we found
5213506e
RW
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14706$as_echo "pre-installed" >&6; }
e8b05380 14707 fi
2abefe3d
PB
14708else
14709 ok=yes
14710 case " ${configdirs} " in
14711 *" binutils "*) ;;
14712 *) ok=no ;;
14713 esac
1c710c3c 14714
2abefe3d
PB
14715 if test $ok = yes; then
14716 # An in-tree tool is available and we can use it
455c8f48 14717 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14719$as_echo "just compiled" >&6; }
e8b05380
PB
14720 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14721 # We already found the complete path
172e41aa 14722 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14724$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14725 elif test "x$target" = "x$host"; then
14726 # We can use an host tool
14727 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14729$as_echo "host tool" >&6; }
2abefe3d
PB
14730 else
14731 # We need a cross tool
5213506e
RW
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14733$as_echo "pre-installed" >&6; }
2abefe3d
PB
14734 fi
14735fi
0b0dc272 14736
5213506e
RW
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14738$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14739if test "x${build}" != "x${host}" ; then
e8b05380
PB
14740 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14741 # We already found the complete path
172e41aa 14742 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14744$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14745 else
14746 # Canadian cross, just use what we found
5213506e
RW
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14748$as_echo "pre-installed" >&6; }
e8b05380 14749 fi
2abefe3d
PB
14750else
14751 ok=yes
14752 case " ${configdirs} " in
14753 *" binutils "*) ;;
14754 *) ok=no ;;
14755 esac
1c710c3c 14756
2abefe3d
PB
14757 if test $ok = yes; then
14758 # An in-tree tool is available and we can use it
14759 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14761$as_echo "just compiled" >&6; }
e8b05380
PB
14762 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14763 # We already found the complete path
172e41aa 14764 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14766$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14767 elif test "x$target" = "x$host"; then
14768 # We can use an host tool
14769 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14771$as_echo "host tool" >&6; }
2abefe3d
PB
14772 else
14773 # We need a cross tool
5213506e
RW
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14775$as_echo "pre-installed" >&6; }
2abefe3d 14776 fi
671aa708 14777fi
be912515 14778
5213506e
RW
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14780$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14781if test "x${build}" != "x${host}" ; then
14782 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14783 # We already found the complete path
14784 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14786$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14787 else
14788 # Canadian cross, just use what we found
5213506e
RW
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14790$as_echo "pre-installed" >&6; }
901119ae
KT
14791 fi
14792else
14793 ok=yes
14794 case " ${configdirs} " in
14795 *" binutils "*) ;;
14796 *) ok=no ;;
14797 esac
14798
14799 if test $ok = yes; then
14800 # An in-tree tool is available and we can use it
14801 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14803$as_echo "just compiled" >&6; }
901119ae
KT
14804 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14805 # We already found the complete path
14806 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14808$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14809 elif test "x$target" = "x$host"; then
14810 # We can use an host tool
14811 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14813$as_echo "host tool" >&6; }
901119ae
KT
14814 else
14815 # We need a cross tool
5213506e
RW
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14817$as_echo "pre-installed" >&6; }
901119ae
KT
14818 fi
14819fi
14820
be912515
NN
14821
14822
2abefe3d 14823
0b0dc272 14824
671aa708
NN
14825# Certain tools may need extra flags.
14826AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14827RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14828NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14829
2abefe3d
PB
14830# When building target libraries, except in a Canadian cross, we use
14831# the same toolchain as the compiler we just built.
14832COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14833COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14834COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14835if test $host = $build; then
14836 case " $configdirs " in
14837 *" gcc "*)
14838 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14839 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14840 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14841 ;;
14842 esac
14843fi
14844
14845
14846
14847
14848
5213506e
RW
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14850$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14851# Check whether --enable-maintainer-mode was given.
14852if test "${enable_maintainer_mode+set}" = set; then :
14853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14854else
14855 USE_MAINTAINER_MODE=no
5213506e
RW
14856fi
14857
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14859$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14860
14861
14862if test "$USE_MAINTAINER_MODE" = yes; then
14863 MAINTAINER_MODE_TRUE=
14864 MAINTAINER_MODE_FALSE='#'
14865else
14866 MAINTAINER_MODE_TRUE='#'
14867 MAINTAINER_MODE_FALSE=
1c710c3c 14868fi
ee03dc5e
AO
14869MAINT=$MAINTAINER_MODE_TRUE
14870
2805b53a
NN
14871# ---------------------
14872# GCC bootstrap support
14873# ---------------------
14874
14875# Stage specific cflags for build.
14876stage1_cflags="-g"
14877case $build in
14878 vax-*-*)
14879 case ${GCC} in
14880 yes) stage1_cflags="-g -Wa,-J" ;;
14881 *) stage1_cflags="-g -J" ;;
14882 esac ;;
2805b53a
NN
14883esac
14884
0b50988a 14885
2805b53a 14886
8efea775 14887# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14888# Check whether --enable-stage1-checking was given.
14889if test "${enable_stage1_checking+set}" = set; then :
14890 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14891else
e643dc23 14892 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14893 # For --disable-checking or implicit --enable-checking=release, avoid
14894 # setting --enable-checking=gc in the default stage1 checking for LTO
14895 # bootstraps. See PR62077.
c10b5ea0
JJ
14896 case $BUILD_CONFIG in
14897 *lto*)
7db11a5a
JJ
14898 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14899 *)
14900 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14901 esac
7db11a5a
JJ
14902 if test "x$enable_checking" = x && \
14903 test -d ${srcdir}/gcc && \
14904 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14905 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14906 fi
8efea775 14907else
e643dc23 14908 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14909fi
5213506e 14910fi
8efea775
PB
14911
14912
2aeb72e9 14913
5213506e
RW
14914# Enable -Werror in bootstrap stage2 and later.
14915# Check whether --enable-werror was given.
14916if test "${enable_werror+set}" = set; then :
14917 enableval=$enable_werror;
09a9c095
NN
14918case ${enable_werror} in
14919 yes) stage2_werror_flag="--enable-werror-always" ;;
14920 *) stage2_werror_flag="" ;;
2805b53a
NN
14921esac
14922
afd88efc
ML
14923else
14924
01c712cb
ML
14925if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14926 case $BUILD_CONFIG in
14927 bootstrap-debug)
14928 stage2_werror_flag="--enable-werror-always" ;;
14929 "")
14930 stage2_werror_flag="--enable-werror-always" ;;
14931 esac
14932fi
14933
afd88efc
ML
14934fi
14935
14936
01c712cb 14937
2805b53a 14938
f2689b09
SE
14939# Specify what files to not compare during bootstrap.
14940
14941compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14942case "$target" in
14943 hppa*64*-*-hpux*) ;;
510555e0 14944 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
d91491e5 14945 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14946esac
14947
14948
5213506e
RW
14949ac_config_files="$ac_config_files Makefile"
14950
1c710c3c 14951cat >confcache <<\_ACEOF
671aa708
NN
14952# This file is a shell script that caches the results of configure
14953# tests run on this system so they can be shared between configure
1c710c3c
DJ
14954# scripts and configure runs, see configure's option --config-cache.
14955# It is not useful on other systems. If it contains results you don't
14956# want to keep, you may remove or edit it.
671aa708 14957#
1c710c3c
DJ
14958# config.status only pays attention to the cache file if you give it
14959# the --recheck option to rerun configure.
671aa708 14960#
1c710c3c
DJ
14961# `ac_cv_env_foo' variables (set or unset) will be overridden when
14962# loading this file, other *unset* `ac_cv_foo' will be assigned the
14963# following values.
14964
14965_ACEOF
14966
671aa708
NN
14967# The following way of writing the cache mishandles newlines in values,
14968# but we know of no workaround that is simple, portable, and efficient.
5213506e 14969# So, we kill variables containing newlines.
671aa708
NN
14970# Ultrix sh set writes to stderr and can't be redirected directly,
14971# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14972(
14973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974 eval ac_val=\$$ac_var
14975 case $ac_val in #(
14976 *${as_nl}*)
14977 case $ac_var in #(
14978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14980 esac
14981 case $ac_var in #(
14982 _ | IFS | as_nl) ;; #(
14983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984 *) { eval $ac_var=; unset $ac_var;} ;;
14985 esac ;;
14986 esac
14987 done
14988
1c710c3c 14989 (set) 2>&1 |
5213506e
RW
14990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991 *${as_nl}ac_space=\ *)
14992 # `set' does not quote correctly, so add quotes: double-quote
14993 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14994 sed -n \
14995 "s/'/'\\\\''/g;
14996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14997 ;; #(
1c710c3c
DJ
14998 *)
14999 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15001 ;;
5213506e
RW
15002 esac |
15003 sort
15004) |
1c710c3c 15005 sed '
5213506e 15006 /^ac_cv_env_/b end
1c710c3c 15007 t clear
5213506e 15008 :clear
1c710c3c
DJ
15009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15010 t end
5213506e
RW
15011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15012 :end' >>confcache
15013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014 if test -w "$cache_file"; then
22e05272 15015 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15018 if test ! -f "$cache_file" || test -h "$cache_file"; then
15019 cat confcache >"$cache_file"
15020 else
15021 case $cache_file in #(
15022 */* | ?:*)
15023 mv -f confcache "$cache_file"$$ &&
15024 mv -f "$cache_file"$$ "$cache_file" ;; #(
15025 *)
15026 mv -f confcache "$cache_file" ;;
15027 esac
15028 fi
15029 fi
671aa708 15030 else
5213506e
RW
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15032$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15033 fi
4977bab6 15034fi
671aa708 15035rm -f confcache
79c06341 15036
671aa708
NN
15037test "x$prefix" = xNONE && prefix=$ac_default_prefix
15038# Let make expand exec_prefix.
15039test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15040
671aa708
NN
15041# Transform confdefs.h into DEFS.
15042# Protect against shell expansion while executing Makefile rules.
15043# Protect against Makefile macro expansion.
1c710c3c
DJ
15044#
15045# If the first sed substitution is executed (which looks for macros that
5213506e 15046# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15047# look for a macro that doesn't take arguments.
5213506e
RW
15048ac_script='
15049:mline
15050/\\$/{
15051 N
15052 s,\\\n,,
15053 b mline
15054}
1c710c3c 15055t clear
5213506e
RW
15056:clear
15057s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15058t quote
5213506e 15059s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15060t quote
5213506e
RW
15061b any
15062:quote
15063s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15064s/\[/\\&/g
15065s/\]/\\&/g
15066s/\$/$$/g
15067H
15068:any
15069${
15070 g
15071 s/^\n//
15072 s/\n/ /g
15073 p
15074}
15075'
15076DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15077
15078
15079ac_libobjs=
15080ac_ltlibobjs=
22e05272 15081U=
1c710c3c
DJ
15082for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15087 # will be set to the directory where LIBOBJS objects are built.
15088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15090done
15091LIBOBJS=$ac_libobjs
fb0103e5 15092
1c710c3c 15093LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15094
af71363e 15095
1c710c3c 15096
22e05272 15097: "${CONFIG_STATUS=./config.status}"
5213506e 15098ac_write_fail=0
1c710c3c
DJ
15099ac_clean_files_save=$ac_clean_files
15100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15102$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15103as_write_fail=0
15104cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15105#! $SHELL
15106# Generated by $as_me.
671aa708 15107# Run this file to recreate the current configuration.
671aa708 15108# Compiler output produced by configure, useful for debugging
1c710c3c 15109# configure, is in config.log if it exists.
0b0dc272 15110
1c710c3c
DJ
15111debug=false
15112ac_cs_recheck=false
15113ac_cs_silent=false
1c710c3c 15114
5213506e
RW
15115SHELL=\${CONFIG_SHELL-$SHELL}
15116export SHELL
15117_ASEOF
15118cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15119## -------------------- ##
15120## M4sh Initialization. ##
15121## -------------------- ##
15122
15123# Be more Bourne compatible
15124DUALCASE=1; export DUALCASE # for MKS sh
15125if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15126 emulate sh
15127 NULLCMD=:
5213506e 15128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15129 # is contrary to our usage. Disable this feature.
15130 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15131 setopt NO_GLOB_SUBST
15132else
15133 case `(set -o) 2>/dev/null` in #(
15134 *posix*) :
15135 set -o posix ;; #(
15136 *) :
15137 ;;
15138esac
1c710c3c 15139fi
1c710c3c 15140
5213506e
RW
15141
15142as_nl='
15143'
15144export as_nl
15145# Printing a long string crashes Solaris 7 /usr/bin/printf.
15146as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15147as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15148as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15149# Prefer a ksh shell builtin over an external printf program on Solaris,
15150# but without wasting forks for bash or zsh.
15151if test -z "$BASH_VERSION$ZSH_VERSION" \
15152 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15153 as_echo='print -r --'
15154 as_echo_n='print -rn --'
15155elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15156 as_echo='printf %s\n'
15157 as_echo_n='printf %s'
15158else
15159 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15160 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15161 as_echo_n='/usr/ucb/echo -n'
15162 else
15163 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15164 as_echo_n_body='eval
15165 arg=$1;
15166 case $arg in #(
15167 *"$as_nl"*)
15168 expr "X$arg" : "X\\(.*\\)$as_nl";
15169 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15170 esac;
15171 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15172 '
15173 export as_echo_n_body
15174 as_echo_n='sh -c $as_echo_n_body as_echo'
15175 fi
15176 export as_echo_body
15177 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15178fi
15179
5213506e
RW
15180# The user is always right.
15181if test "${PATH_SEPARATOR+set}" != set; then
15182 PATH_SEPARATOR=:
15183 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15184 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15185 PATH_SEPARATOR=';'
15186 }
15187fi
15188
15189
15190# IFS
15191# We need space, tab and new line, in precisely that order. Quoting is
15192# there to prevent editors from complaining about space-tab.
15193# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15194# splitting by setting IFS to empty value.)
15195IFS=" "" $as_nl"
15196
15197# Find who we are. Look in the path if we contain no directory separator.
22e05272 15198as_myself=
5213506e
RW
15199case $0 in #((
15200 *[\\/]* ) as_myself=$0 ;;
15201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202for as_dir in $PATH
15203do
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15207 done
15208IFS=$as_save_IFS
15209
15210 ;;
15211esac
15212# We did not find ourselves, most probably we were run as `sh COMMAND'
15213# in which case we are not to be found in the path.
15214if test "x$as_myself" = x; then
15215 as_myself=$0
15216fi
15217if test ! -f "$as_myself"; then
15218 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15219 exit 1
15220fi
1c710c3c 15221
5213506e
RW
15222# Unset variables that we do not need and which cause bugs (e.g. in
15223# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15224# suppresses any "Segmentation fault" message there. '((' could
15225# trigger a bug in pdksh 5.2.14.
15226for as_var in BASH_ENV ENV MAIL MAILPATH
15227do eval test x\${$as_var+set} = xset \
15228 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15229done
1c710c3c
DJ
15230PS1='$ '
15231PS2='> '
15232PS4='+ '
15233
15234# NLS nuisances.
5213506e
RW
15235LC_ALL=C
15236export LC_ALL
15237LANGUAGE=C
15238export LANGUAGE
15239
15240# CDPATH.
15241(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15242
15243
22e05272
JM
15244# as_fn_error STATUS ERROR [LINENO LOG_FD]
15245# ----------------------------------------
5213506e
RW
15246# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15247# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15248# script with STATUS, using 1 if that was 0.
5213506e
RW
15249as_fn_error ()
15250{
22e05272
JM
15251 as_status=$1; test $as_status -eq 0 && as_status=1
15252 if test "$4"; then
15253 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15254 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15255 fi
22e05272 15256 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15257 as_fn_exit $as_status
15258} # as_fn_error
15259
15260
15261# as_fn_set_status STATUS
15262# -----------------------
15263# Set $? to STATUS, without forking.
15264as_fn_set_status ()
15265{
15266 return $1
15267} # as_fn_set_status
15268
15269# as_fn_exit STATUS
15270# -----------------
15271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15272as_fn_exit ()
15273{
15274 set +e
15275 as_fn_set_status $1
15276 exit $1
15277} # as_fn_exit
15278
15279# as_fn_unset VAR
15280# ---------------
15281# Portably unset VAR.
15282as_fn_unset ()
15283{
15284 { eval $1=; unset $1;}
15285}
15286as_unset=as_fn_unset
15287# as_fn_append VAR VALUE
15288# ----------------------
15289# Append the text in VALUE to the end of the definition contained in VAR. Take
15290# advantage of any shell optimizations that allow amortized linear growth over
15291# repeated appends, instead of the typical quadratic growth present in naive
15292# implementations.
15293if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15294 eval 'as_fn_append ()
15295 {
15296 eval $1+=\$2
15297 }'
15298else
15299 as_fn_append ()
15300 {
15301 eval $1=\$$1\$2
15302 }
15303fi # as_fn_append
15304
15305# as_fn_arith ARG...
15306# ------------------
15307# Perform arithmetic evaluation on the ARGs, and store the result in the
15308# global $as_val. Take advantage of shells that can avoid forks. The arguments
15309# must be portable across $(()) and expr.
15310if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15311 eval 'as_fn_arith ()
15312 {
15313 as_val=$(( $* ))
15314 }'
15315else
15316 as_fn_arith ()
15317 {
15318 as_val=`expr "$@" || test $? -eq 1`
15319 }
15320fi # as_fn_arith
15321
1c710c3c 15322
5213506e
RW
15323if expr a : '\(a\)' >/dev/null 2>&1 &&
15324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15325 as_expr=expr
15326else
15327 as_expr=false
15328fi
15329
5213506e 15330if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15331 as_basename=basename
15332else
15333 as_basename=false
15334fi
15335
5213506e
RW
15336if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15337 as_dirname=dirname
15338else
15339 as_dirname=false
15340fi
1c710c3c 15341
5213506e 15342as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15344 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15346$as_echo X/"$0" |
15347 sed '/^.*\/\([^/][^/]*\)\/*$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\/\(\/\/\)$/{
15352 s//\1/
15353 q
15354 }
15355 /^X\/\(\/\).*/{
15356 s//\1/
15357 q
15358 }
15359 s/.*/./; q'`
2aeb72e9 15360
2aeb72e9
DD
15361# Avoid depending upon Character Ranges.
15362as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15363as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15364as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15365as_cr_digits='0123456789'
15366as_cr_alnum=$as_cr_Letters$as_cr_digits
15367
5213506e
RW
15368ECHO_C= ECHO_N= ECHO_T=
15369case `echo -n x` in #(((((
15370-n*)
15371 case `echo 'xy\c'` in
15372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15373 xy) ECHO_C='\c';;
15374 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15375 ECHO_T=' ';;
15376 esac;;
15377*)
15378 ECHO_N='-n';;
1c710c3c
DJ
15379esac
15380
5213506e
RW
15381rm -f conf$$ conf$$.exe conf$$.file
15382if test -d conf$$.dir; then
15383 rm -f conf$$.dir/conf$$.file
1c710c3c 15384else
5213506e
RW
15385 rm -f conf$$.dir
15386 mkdir conf$$.dir 2>/dev/null
1c710c3c 15387fi
5213506e
RW
15388if (echo >conf$$.file) 2>/dev/null; then
15389 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15390 as_ln_s='ln -s'
5213506e
RW
15391 # ... but there are two gotchas:
15392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15394 # In both cases, we have to default to `cp -pR'.
5213506e 15395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15396 as_ln_s='cp -pR'
5213506e
RW
15397 elif ln conf$$.file conf$$ 2>/dev/null; then
15398 as_ln_s=ln
15399 else
22e05272 15400 as_ln_s='cp -pR'
2aeb72e9 15401 fi
1c710c3c 15402else
22e05272 15403 as_ln_s='cp -pR'
1c710c3c 15404fi
5213506e
RW
15405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15406rmdir conf$$.dir 2>/dev/null
15407
15408
15409# as_fn_mkdir_p
15410# -------------
15411# Create "$as_dir" as a directory, including parents if necessary.
15412as_fn_mkdir_p ()
15413{
15414
15415 case $as_dir in #(
15416 -*) as_dir=./$as_dir;;
15417 esac
15418 test -d "$as_dir" || eval $as_mkdir_p || {
15419 as_dirs=
15420 while :; do
15421 case $as_dir in #(
15422 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15423 *) as_qdir=$as_dir;;
15424 esac
15425 as_dirs="'$as_qdir' $as_dirs"
15426 as_dir=`$as_dirname -- "$as_dir" ||
15427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15428 X"$as_dir" : 'X\(//\)[^/]' \| \
15429 X"$as_dir" : 'X\(//\)$' \| \
15430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15431$as_echo X"$as_dir" |
15432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15433 s//\1/
15434 q
15435 }
15436 /^X\(\/\/\)[^/].*/{
15437 s//\1/
15438 q
15439 }
15440 /^X\(\/\/\)$/{
15441 s//\1/
15442 q
15443 }
15444 /^X\(\/\).*/{
15445 s//\1/
15446 q
15447 }
15448 s/.*/./; q'`
15449 test -d "$as_dir" && break
15450 done
15451 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15452 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15453
1c710c3c 15454
5213506e 15455} # as_fn_mkdir_p
1c710c3c 15456if mkdir -p . 2>/dev/null; then
5213506e 15457 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15458else
15459 test -d ./-p && rmdir ./-p
15460 as_mkdir_p=false
15461fi
15462
22e05272
JM
15463
15464# as_fn_executable_p FILE
15465# -----------------------
15466# Test if FILE is an executable regular file.
15467as_fn_executable_p ()
15468{
15469 test -f "$1" && test -x "$1"
15470} # as_fn_executable_p
15471as_test_x='test -x'
15472as_executable_p=as_fn_executable_p
1c710c3c
DJ
15473
15474# Sed expression to map a string onto a valid CPP name.
15475as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15476
15477# Sed expression to map a string onto a valid variable name.
15478as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15479
15480
1c710c3c 15481exec 6>&1
5213506e
RW
15482## ----------------------------------- ##
15483## Main body of $CONFIG_STATUS script. ##
15484## ----------------------------------- ##
15485_ASEOF
15486test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15487
15488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15490# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15491# values after options handling.
15492ac_log="
1c710c3c 15493This file was extended by $as_me, which was
22e05272 15494generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
15495
15496 CONFIG_FILES = $CONFIG_FILES
15497 CONFIG_HEADERS = $CONFIG_HEADERS
15498 CONFIG_LINKS = $CONFIG_LINKS
15499 CONFIG_COMMANDS = $CONFIG_COMMANDS
15500 $ $0 $@
15501
5213506e
RW
15502on `(hostname || uname -n) 2>/dev/null | sed 1q`
15503"
15504
1c710c3c
DJ
15505_ACEOF
15506
5213506e
RW
15507case $ac_config_files in *"
15508"*) set x $ac_config_files; shift; ac_config_files=$*;;
15509esac
1c710c3c 15510
2aeb72e9 15511
2aeb72e9 15512
5213506e
RW
15513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514# Files that config.status was made for.
15515config_files="$ac_config_files"
1c710c3c 15516
5213506e 15517_ACEOF
2aeb72e9 15518
5213506e 15519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15520ac_cs_usage="\
5213506e
RW
15521\`$as_me' instantiates files and other configuration actions
15522from templates according to the current configuration. Unless the files
15523and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15524
5213506e 15525Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15526
15527 -h, --help print this help, then exit
5213506e 15528 -V, --version print version number and configuration settings, then exit
22e05272 15529 --config print configuration, then exit
5213506e
RW
15530 -q, --quiet, --silent
15531 do not print progress messages
1c710c3c
DJ
15532 -d, --debug don't remove temporary files
15533 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15534 --file=FILE[:TEMPLATE]
15535 instantiate the configuration file FILE
1c710c3c
DJ
15536
15537Configuration files:
15538$config_files
15539
5213506e 15540Report bugs to the package provider."
2aeb72e9 15541
5213506e
RW
15542_ACEOF
15543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15544ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
15545ac_cs_version="\\
15546config.status
22e05272
JM
15547configured by $0, generated by GNU Autoconf 2.69,
15548 with options \\"\$ac_cs_config\\"
1c710c3c 15549
22e05272 15550Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
15551This config.status script is free software; the Free Software Foundation
15552gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15553
15554ac_pwd='$ac_pwd'
15555srcdir='$srcdir'
15556INSTALL='$INSTALL'
87264276 15557AWK='$AWK'
5213506e 15558test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15559_ACEOF
15560
5213506e
RW
15561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15563ac_need_defaults=:
15564while test $# != 0
a4b9e93e 15565do
1c710c3c 15566 case $1 in
22e05272 15567 --*=?*)
5213506e
RW
15568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15570 ac_shift=:
15571 ;;
22e05272
JM
15572 --*=)
15573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15574 ac_optarg=
15575 ac_shift=:
15576 ;;
5213506e 15577 *)
1c710c3c
DJ
15578 ac_option=$1
15579 ac_optarg=$2
15580 ac_shift=shift
15581 ;;
1c710c3c
DJ
15582 esac
15583
15584 case $ac_option in
15585 # Handling of the options.
671aa708 15586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15587 ac_cs_recheck=: ;;
5213506e
RW
15588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15589 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15590 --config | --confi | --conf | --con | --co | --c )
15591 $as_echo "$ac_cs_config"; exit ;;
5213506e 15592 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15593 debug=: ;;
15594 --file | --fil | --fi | --f )
15595 $ac_shift
5213506e
RW
15596 case $ac_optarg in
15597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15598 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
15599 esac
15600 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15601 ac_need_defaults=false;;
5213506e
RW
15602 --he | --h | --help | --hel | -h )
15603 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15606 ac_cs_silent=: ;;
15607
15608 # This is an error.
22e05272 15609 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 15610Try \`$0 --help' for more information." ;;
1c710c3c 15611
5213506e
RW
15612 *) as_fn_append ac_config_targets " $1"
15613 ac_need_defaults=false ;;
1c710c3c 15614
0b0dc272 15615 esac
1c710c3c 15616 shift
0b0dc272
AM
15617done
15618
1c710c3c 15619ac_configure_extra_args=
0b0dc272 15620
1c710c3c
DJ
15621if $ac_cs_silent; then
15622 exec 6>/dev/null
15623 ac_configure_extra_args="$ac_configure_extra_args --silent"
15624fi
0b0dc272 15625
1c710c3c 15626_ACEOF
5213506e 15627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15628if \$ac_cs_recheck; then
22e05272 15629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
15630 shift
15631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632 CONFIG_SHELL='$SHELL'
15633 export CONFIG_SHELL
15634 exec "\$@"
1c710c3c
DJ
15635fi
15636
15637_ACEOF
5213506e
RW
15638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639exec 5>>config.log
15640{
15641 echo
15642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643## Running $as_me. ##
15644_ASBOX
15645 $as_echo "$ac_log"
15646} >&5
1c710c3c 15647
5213506e
RW
15648_ACEOF
15649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15650#
15651# INIT-COMMANDS
15652#
15653extrasub_build="$extrasub_build"
15654 extrasub_host="$extrasub_host"
15655 extrasub_target="$extrasub_target"
15656
5213506e 15657_ACEOF
1c710c3c 15658
5213506e 15659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15660
5213506e 15661# Handling of arguments.
1c710c3c
DJ
15662for ac_config_target in $ac_config_targets
15663do
5213506e
RW
15664 case $ac_config_target in
15665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15666
22e05272 15667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15668 esac
15669done
15670
5213506e 15671
1c710c3c
DJ
15672# If the user did not use the arguments to specify the items to instantiate,
15673# then the envvar interface is used. Set only those that are not.
15674# We use the long form for the default assignment because of an extremely
15675# bizarre bug on SunOS 4.1.3.
15676if $ac_need_defaults; then
15677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15678fi
15679
15680# Have a temporary directory for convenience. Make it in the build tree
5213506e 15681# simply because there is no reason against having it here, and in addition,
1c710c3c 15682# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15683# Hook for its removal unless debugging.
15684# Note that there is a small window in which the directory will not be cleaned:
15685# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15686$debug ||
15687{
22e05272 15688 tmp= ac_tmp=
5213506e 15689 trap 'exit_status=$?
22e05272
JM
15690 : "${ac_tmp:=$tmp}"
15691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
15692' 0
15693 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15694}
1c710c3c
DJ
15695# Create a (secure) tmp directory for tmp files.
15696
15697{
5213506e 15698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 15699 test -d "$tmp"
1c710c3c
DJ
15700} ||
15701{
5213506e
RW
15702 tmp=./conf$$-$RANDOM
15703 (umask 077 && mkdir "$tmp")
22e05272
JM
15704} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15705ac_tmp=$tmp
5213506e
RW
15706
15707# Set up the scripts for CONFIG_FILES section.
15708# No need to generate them if there are no CONFIG_FILES.
15709# This happens for instance with `./config.status config.h'.
15710if test -n "$CONFIG_FILES"; then
15711
15712if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15713 ac_cs_awk_getline=:
15714 ac_cs_awk_pipe_init=
15715 ac_cs_awk_read_file='
15716 while ((getline aline < (F[key])) > 0)
15717 print(aline)
15718 close(F[key])'
15719 ac_cs_awk_pipe_fini=
15720else
15721 ac_cs_awk_getline=false
15722 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15723 ac_cs_awk_read_file='
15724 print "|#_!!_#|"
15725 print "cat " F[key] " &&"
15726 '$ac_cs_awk_pipe_init
15727 # The final `:' finishes the AND list.
15728 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15729fi
15730ac_cr=`echo X | tr X '\015'`
15731# On cygwin, bash can eat \r inside `` if the user requested igncr.
15732# But we know of no other shell where ac_cr would be empty at this
15733# point, so we can use a bashism as a fallback.
15734if test "x$ac_cr" = x; then
15735 eval ac_cr=\$\'\\r\'
15736fi
15737ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15738if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 15739 ac_cs_awk_cr='\\r'
5213506e
RW
15740else
15741 ac_cs_awk_cr=$ac_cr
15742fi
15743
22e05272 15744echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
15745_ACEOF
15746
15747# Create commands to substitute file output variables.
1c710c3c 15748{
5213506e 15749 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 15750 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
15751 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15752 echo "_ACAWK" &&
15753 echo "_ACEOF"
15754} >conf$$files.sh &&
15755. ./conf$$files.sh ||
22e05272 15756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 15757rm -f conf$$files.sh
1c710c3c 15758
5213506e
RW
15759{
15760 echo "cat >conf$$subs.awk <<_ACEOF" &&
15761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15762 echo "_ACEOF"
15763} >conf$$subs.sh ||
22e05272
JM
15764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
15766ac_delim='%!_!# '
15767for ac_last_try in false false false false false :; do
15768 . ./conf$$subs.sh ||
22e05272 15769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
15770
15771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15772 if test $ac_delim_n = $ac_delim_num; then
15773 break
15774 elif $ac_last_try; then
22e05272 15775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
15776 else
15777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15778 fi
15779done
15780rm -f conf$$subs.sh
15781
15782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15784_ACEOF
5213506e
RW
15785sed -n '
15786h
15787s/^/S["/; s/!.*/"]=/
15788p
15789g
15790s/^[^!]*!//
15791:repl
15792t repl
15793s/'"$ac_delim"'$//
15794t delim
15795:nl
15796h
22e05272 15797s/\(.\{148\}\)..*/\1/
5213506e
RW
15798t more1
15799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15800p
15801n
15802b repl
15803:more1
15804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15805p
15806g
15807s/.\{148\}//
15808t nl
15809:delim
15810h
22e05272 15811s/\(.\{148\}\)..*/\1/
5213506e
RW
15812t more2
15813s/["\\]/\\&/g; s/^/"/; s/$/"/
15814p
15815b
15816:more2
15817s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15818p
15819g
15820s/.\{148\}//
15821t delim
15822' <conf$$subs.awk | sed '
15823/^[^""]/{
15824 N
15825 s/\n//
15826}
15827' >>$CONFIG_STATUS || ac_write_fail=1
15828rm -f conf$$subs.awk
15829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15830_ACAWK
22e05272 15831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
15832 for (key in S) S_is_set[key] = 1
15833 FS = "\a"
15834 \$ac_cs_awk_pipe_init
15835}
15836{
15837 line = $ 0
15838 nfields = split(line, field, "@")
15839 substed = 0
15840 len = length(field[1])
15841 for (i = 2; i < nfields; i++) {
15842 key = field[i]
15843 keylen = length(key)
15844 if (S_is_set[key]) {
15845 value = S[key]
15846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15847 len += length(value) + length(field[++i])
15848 substed = 1
15849 } else
15850 len += 1 + keylen
15851 }
15852 if (nfields == 3 && !substed) {
15853 key = field[2]
15854 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15855 \$ac_cs_awk_read_file
15856 next
15857 }
15858 }
15859 print line
15860}
15861\$ac_cs_awk_pipe_fini
15862_ACAWK
15863_ACEOF
15864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15867else
15868 cat
22e05272
JM
15869fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15870 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
15871_ACEOF
15872
22e05272
JM
15873# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
15875# trailing colons and then remove the whole line if VPATH becomes empty
15876# (actually we leave an empty line to preserve line numbers).
15877if test "x$srcdir" = x.; then
22e05272
JM
15878 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15879h
15880s///
15881s/^/:/
15882s/[ ]*$/:/
15883s/:\$(srcdir):/:/g
15884s/:\${srcdir}:/:/g
15885s/:@srcdir@:/:/g
15886s/^:*//
5213506e 15887s/:*$//
22e05272
JM
15888x
15889s/\(=[ ]*\).*/\1/
15890G
15891s/\n//
5213506e
RW
15892s/^[^=]*=[ ]*$//
15893}'
15894fi
2aeb72e9 15895
5213506e
RW
15896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897fi # test -n "$CONFIG_FILES"
2aeb72e9 15898
1c710c3c 15899
5213506e
RW
15900eval set X " :F $CONFIG_FILES "
15901shift
15902for ac_tag
15903do
15904 case $ac_tag in
15905 :[FHLC]) ac_mode=$ac_tag; continue;;
15906 esac
15907 case $ac_mode$ac_tag in
15908 :[FHL]*:*);;
22e05272 15909 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
15910 :[FH]-) ac_tag=-:-;;
15911 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15912 esac
15913 ac_save_IFS=$IFS
15914 IFS=:
15915 set x $ac_tag
15916 IFS=$ac_save_IFS
15917 shift
15918 ac_file=$1
15919 shift
79c06341 15920
5213506e
RW
15921 case $ac_mode in
15922 :L) ac_source=$1;;
15923 :[FH])
15924 ac_file_inputs=
15925 for ac_f
15926 do
15927 case $ac_f in
22e05272 15928 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
15929 *) # Look for the file first in the build tree, then in the source tree
15930 # (if the path is not absolute). The absolute path cannot be DOS-style,
15931 # because $ac_f cannot contain `:'.
15932 test -f "$ac_f" ||
15933 case $ac_f in
15934 [\\/$]*) false;;
15935 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15936 esac ||
22e05272 15937 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
15938 esac
15939 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15940 as_fn_append ac_file_inputs " '$ac_f'"
15941 done
1c710c3c 15942
5213506e
RW
15943 # Let's still pretend it is `configure' which instantiates (i.e., don't
15944 # use $as_me), people would be surprised to read:
15945 # /* config.h. Generated by config.status. */
15946 configure_input='Generated from '`
15947 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15948 `' by configure.'
15949 if test x"$ac_file" != x-; then
15950 configure_input="$ac_file. $configure_input"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15952$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15953 fi
5213506e
RW
15954 # Neutralize special characters interpreted by sed in replacement strings.
15955 case $configure_input in #(
15956 *\&* | *\|* | *\\* )
15957 ac_sed_conf_input=`$as_echo "$configure_input" |
15958 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15959 *) ac_sed_conf_input=$configure_input;;
15960 esac
11a67599 15961
5213506e 15962 case $ac_tag in
22e05272
JM
15963 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
15965 esac
15966 ;;
11a67599
ZW
15967 esac
15968
5213506e 15969 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15970$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15971 X"$ac_file" : 'X\(//\)[^/]' \| \
15972 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15973 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15974$as_echo X"$ac_file" |
15975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15976 s//\1/
15977 q
15978 }
15979 /^X\(\/\/\)[^/].*/{
15980 s//\1/
15981 q
15982 }
15983 /^X\(\/\/\)$/{
15984 s//\1/
15985 q
15986 }
15987 /^X\(\/\).*/{
15988 s//\1/
15989 q
15990 }
15991 s/.*/./; q'`
15992 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15993 ac_builddir=.
0b0dc272 15994
5213506e
RW
15995case "$ac_dir" in
15996.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15997*)
15998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15999 # A ".." for each directory in $ac_dir_suffix.
16000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16001 case $ac_top_builddir_sub in
16002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16004 esac ;;
16005esac
16006ac_abs_top_builddir=$ac_pwd
16007ac_abs_builddir=$ac_pwd$ac_dir_suffix
16008# for backward compatibility:
16009ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16010
16011case $srcdir in
5213506e 16012 .) # We are building in place.
1c710c3c 16013 ac_srcdir=.
5213506e
RW
16014 ac_top_srcdir=$ac_top_builddir_sub
16015 ac_abs_top_srcdir=$ac_pwd ;;
16016 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16017 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16018 ac_top_srcdir=$srcdir
16019 ac_abs_top_srcdir=$srcdir ;;
16020 *) # Relative name.
16021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16022 ac_top_srcdir=$ac_top_build_prefix$srcdir
16023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16024esac
5213506e 16025ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16026
0b0dc272 16027
5213506e
RW
16028 case $ac_mode in
16029 :F)
16030 #
16031 # CONFIG_FILE
16032 #
1c710c3c
DJ
16033
16034 case $INSTALL in
16035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16036 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16037 esac
5213506e 16038_ACEOF
11a67599 16039
5213506e
RW
16040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041# If the template does not know about datarootdir, expand it.
16042# FIXME: This hack should be removed a few years after 2.60.
16043ac_datarootdir_hack=; ac_datarootdir_seen=
16044ac_sed_dataroot='
16045/datarootdir/ {
16046 p
16047 q
16048}
16049/@datadir@/p
16050/@docdir@/p
16051/@infodir@/p
16052/@localedir@/p
16053/@mandir@/p'
16054case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16055*datarootdir*) ac_datarootdir_seen=yes;;
16056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16058$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16059_ACEOF
5213506e
RW
16060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16061 ac_datarootdir_hack='
16062 s&@datadir@&$datadir&g
16063 s&@docdir@&$docdir&g
16064 s&@infodir@&$infodir&g
16065 s&@localedir@&$localedir&g
16066 s&@mandir@&$mandir&g
16067 s&\\\${datarootdir}&$datarootdir&g' ;;
16068esac
16069_ACEOF
16070
16071# Neutralize VPATH when `$srcdir' = `.'.
16072# Shell code in configure.ac might set extrasub.
16073# FIXME: do we really want to maintain this feature?
16074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16076$extrasub
16077_ACEOF
5213506e 16078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16079:t
16080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16081s|@configure_input@|$ac_sed_conf_input|;t t
16082s&@top_builddir@&$ac_top_builddir_sub&;t t
16083s&@top_build_prefix@&$ac_top_build_prefix&;t t
16084s&@srcdir@&$ac_srcdir&;t t
16085s&@abs_srcdir@&$ac_abs_srcdir&;t t
16086s&@top_srcdir@&$ac_top_srcdir&;t t
16087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16088s&@builddir@&$ac_builddir&;t t
16089s&@abs_builddir@&$ac_abs_builddir&;t t
16090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16091s&@INSTALL@&$ac_INSTALL&;t t
16092$ac_datarootdir_hack
16093"
16094eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16095if $ac_cs_awk_getline; then
22e05272 16096 $AWK -f "$ac_tmp/subs.awk"
5213506e 16097else
22e05272
JM
16098 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16099fi \
16100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16101
16102test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16105 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16107which seems to be undefined. Please make sure it is defined" >&5
5213506e 16108$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16109which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16110
22e05272 16111 rm -f "$ac_tmp/stdin"
5213506e 16112 case $ac_file in
22e05272
JM
16113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16115 esac \
22e05272 16116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16117 ;;
11a67599 16118
11a67599 16119
79c06341 16120
5213506e
RW
16121 esac
16122
3e54529c
RW
16123
16124 case $ac_file$ac_mode in
16125 "Makefile":F) sed "$extrasub_build" Makefile |
16126 sed "$extrasub_host" |
16127 sed "$extrasub_target" > mf$$
16128 mv -f mf$$ Makefile ;;
16129
16130 esac
5213506e
RW
16131done # for ac_tag
16132
16133
16134as_fn_exit 0
1c710c3c 16135_ACEOF
1c710c3c
DJ
16136ac_clean_files=$ac_clean_files_save
16137
5213506e 16138test $ac_write_fail = 0 ||
22e05272 16139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16140
1c710c3c
DJ
16141
16142# configure is writing to config.log, and then calls config.status.
16143# config.status does its own redirection, appending to config.log.
16144# Unfortunately, on DOS this fails, as config.log is still kept open
16145# by configure, so config.status won't be able to write to it; its
16146# output is simply discarded. So we exec the FD to /dev/null,
16147# effectively closing config.log, so it can be properly (re)opened and
16148# appended to by config.status. When coming back to configure, we
16149# need to make the FD available again.
16150if test "$no_create" != yes; then
16151 ac_cs_success=:
16152 ac_config_status_args=
16153 test "$silent" = yes &&
16154 ac_config_status_args="$ac_config_status_args --quiet"
16155 exec 5>/dev/null
16156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16157 exec 5>>config.log
16158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16159 # would make configure fail if this is the last instruction.
22e05272 16160 $ac_cs_success || as_fn_exit 1
5213506e
RW
16161fi
16162if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16164$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16165fi
79c06341 16166